1 2008-10-18 Bruno Haible <bruno@clisp.org>
3 * modules/dirent: New file.
4 * m4/dirent_h.m4: New file.
5 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
6 Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
7 * modules/fchdir (Files): Remove lib/dirent.in.h.
8 (Depends-on): Add dirent.
9 (Makefile.am): Move rules to modules/dirent.
10 * doc/posix-headers/dirent.texi: Mention the new module.
12 2008-10-18 Bruno Haible <bruno@clisp.org>
14 Avoid -Wunused-parameter warnings in public gnulib header files.
15 * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
17 * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
19 2008-10-18 Bruno Haible <bruno@clisp.org>
21 * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
22 * doc/glibc-functions/error.texi: Mention the module 'error'.
23 * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
24 * doc/glibc-functions/getdomainname.texi: Mention the module
26 * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
27 * doc/glibc-functions/getpagesize.texi: Mention the module
29 * doc/glibc-functions/getusershell.texi: Mention the module
31 * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
32 * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
33 * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
34 * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
35 * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
36 * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
37 * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
38 * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
39 * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
40 * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
41 * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
42 * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
43 * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
44 * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
46 2008-10-17 Bruno Haible <bruno@clisp.org>
48 * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
49 HP-UX and IRIX, use -0.0L.
50 * tests/test-ceill.c (minus_zero): Likewise.
51 * tests/test-floorl.c (minus_zero): Likewise.
52 * tests/test-frexpl.c (minus_zero): Likewise.
53 * tests/test-isnan.c (minus_zerol): Likewise.
54 * tests/test-isnanl.h (minus_zero): Likewise.
55 * tests/test-ldexpl.c (minus_zero): Likewise.
56 * tests/test-roundl.c (minus_zero): Likewise.
57 * tests/test-signbit.c (minus_zerol): Likewise.
58 * tests/test-snprintf-posix.h (minus_zerol): Likewise.
59 * tests/test-sprintf-posix.h (minus_zerol): Likewise.
60 * tests/test-truncl.c (minus_zero): Likewise.
61 * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
62 * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
63 Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
64 and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
66 2008-10-17 Bruno Haible <bruno@clisp.org>
68 Avoid gcc warnings because of #pragma GCC system_header on older gcc.
69 * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
70 that it gets activated only for gcc >= 3.0.
71 * lib/dirent.in.h: Likewise.
72 * lib/errno.in.h: Likewise.
73 * lib/fcntl.in.h: Likewise.
74 * lib/float.in.h: Likewise.
75 * lib/iconv.in.h: Likewise.
76 * lib/inttypes.in.h: Likewise.
77 * lib/locale.in.h: Likewise.
78 * lib/math.in.h: Likewise.
79 * lib/netdb.in.h: Likewise.
80 * lib/netinet_in.in.h: Likewise.
81 * lib/search.in.h: Likewise.
82 * lib/signal.in.h: Likewise.
83 * lib/spawn.in.h: Likewise.
84 * lib/stdarg.in.h: Likewise.
85 * lib/stdint.in.h: Likewise.
86 * lib/stdio.in.h: Likewise.
87 * lib/stdlib.in.h: Likewise.
88 * lib/string.in.h: Likewise.
89 * lib/strings.in.h: Likewise.
90 * lib/sys_file.in.h: Likewise.
91 * lib/sys_ioctl.in.h: Likewise.
92 * lib/sys_select.in.h: Likewise.
93 * lib/sys_socket.in.h: Likewise.
94 * lib/sys_stat.in.h: Likewise.
95 * lib/sys_time.in.h: Likewise.
96 * lib/sysexits.in.h: Likewise.
97 * lib/time.in.h: Likewise.
98 * lib/unistd.in.h: Likewise.
99 * lib/wchar.in.h: Likewise.
100 * lib/wctype.in.h: Likewise.
101 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
103 2008-10-17 Jim Meyering <meyering@redhat.com>
105 ignore-value: don't depend on inline module
106 * modules/ignore-value (Depends-on): Remove 'inline'.
107 (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
108 Suggestion from Bruno Haible.
110 2008-10-17 Bruno Haible <bruno@clisp.org>
112 New implementation of condition variables for Win32.
113 * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
114 (gl_linked_waitqueue_t): New type.
116 * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
117 (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
118 gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
119 (glthread_cond_init_func, glthread_cond_wait_func,
120 glthread_cond_timedwait_func, glthread_cond_signal_func,
121 glthread_cond_broadcast_func, glthread_cond_destroy_func):
122 Reimplemented on the basis of gl_linked_waitqueue_t.
123 * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
125 (gl_rwlock_t): Update.
126 * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
128 2008-10-17 Simon Josefsson <simon@josefsson.org>
130 * modules/recvfrom (Depends-on): Add dependency on getpeername.
131 Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
133 2008-10-17 Jim Meyering <meyering@redhat.com>
135 ignore-value: new module
136 * modules/ignore-value: New file.
137 * lib/ignore-value.h: New file.
138 * MODULES.html.sh (Compiler warning management): New section,
139 just for this module. More to come.
141 2008-10-16 Paul Eggert <eggert@cs.ucla.edu>
143 open-safer.c: avoid 'signed and unsigned in conditional...' warning
144 * lib/open-safer.c (open_safer): Use an "if/else" statement in place
145 of the ternary operator. Reported by Reuben Thomas <rrt@sc3d.org>.
147 2008-10-16 Jim Meyering <meyering@redhat.com>
149 openat-die.c: avoid 'no previous prototype' warning
150 * lib/openat-die.c: Include "openat.h".
151 Reported by Reuben Thomas <rrt@sc3d.org>.
153 2008-10-16 Simon Josefsson <simon@josefsson.org>
155 * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
156 * lib/netdb.in.h: Fix typo.
157 Reported by Bruno Haible <bruno@clisp.org>
159 * lib/netdb.in.h: Include sys/socket.h for platforms without
160 netdb.h, to get structures like hostent on MinGW.
161 * modules/netdb (Depends-on): Add sys_socket.
163 2008-10-15 Simon Josefsson <simon@josefsson.org>
165 * modules/netdb, modules/netdb-tests: New file.
166 * m4/netdb_h.m4: New file.
167 * lib/netdb.in.h: Add, currently just an empty file pending
169 * tests/test-netdb.c: New file.
170 * doc/posix-headers/netdb.texi: Mention that we replace it if
172 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
175 2008-10-15 Simon Josefsson <simon@josefsson.org>
177 * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
180 2008-10-13 Bruno Haible <bruno@clisp.org>
182 * lib/glthread/cond.c (glthread_cond_wait_func,
183 glthread_cond_timedwait_func): Add a comment.
185 2008-10-13 Yoann Vandoorselaere <yoann@prelude-ids.org>
187 * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
188 * tests/test-select.c: Likewise,
190 2008-10-13 Bruno Haible <bruno@clisp.org>
192 * lib/glthread/cond.c (glthread_cond_wait_func,
193 glthread_cond_timedwait_func): Fix variable name.
194 Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
196 2008-10-13 Paolo Bonzini <bonzini@gnu.org>
198 fix getaddrinfo emulation for systems with struct sockaddr.sa_len
199 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
200 struct sockaddr.sa_len.
201 * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
203 2008-10-13 Simon Josefsson <simon@josefsson.org>
205 * build-aux/pmccabe2html: Add css and css_url parameters.
207 2008-10-12 Bruno Haible <bruno@clisp.org>
209 * tests/test-sameacls.c (main) [AIX]: Clear type argument before
211 Reported by Rainer Tammer <tammer@tammer.net>.
213 2008-10-12 Bruno Haible <bruno@clisp.org>
215 Use msvcrt aware primitives for creation/termination of Win32 threads.
216 * lib/glthread/thread.c: Include <process.h>.
217 (glthread_create_func): Use _beginthreadex instead of CreateThread.
218 (wrapper_func): Update signature.
219 (gl_thread_exit_func): Use _endthreadex instead of EndThread.
221 2008-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
222 Bruno Haible <bruno@clisp.org>
224 Provide a Win32 implementation of the 'cond' module.
225 * lib/glthread/cond.h [USE_WIN32]: New implementation.
226 * lib/glthread/cond.c (glthread_cond_init_func,
227 glthread_cond_wait_func, glthread_cond_timedwait_func,
228 glthread_cond_signal_func, glthread_cond_broadcast_func,
229 glthread_cond_destroy_func) [USE_WIN32]: New functions.
230 * modules/cond (Dependencies): Add gettimeofday.
232 2008-10-11 Bruno Haible <bruno@clisp.org>
234 Make sleep work on older versions of mingw.
235 * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
236 only whether it exists.
237 * doc/posix-functions/sleep.texi: Mention the problem with older
240 2008-10-11 Bruno Haible <bruno@clisp.org>
242 New module 'shutdown'.
243 * modules/shutdown: New file.
244 * lib/sys_socket.in.h (shutdown): New declaration.
245 * lib/winsock.c (shutdown): New function.
246 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
248 * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
249 * doc/posix-functions/shutdown.texi: Document the new module.
251 2008-10-11 Jim Meyering <meyering@redhat.com>
253 * lib/fclose.c: Fix typo in comment: s/close/fclose/.
255 2008-10-11 Bruno Haible <bruno@clisp.org>
258 * modules/fclose: New file.
259 * lib/stdio.in.h (fclose): New declaration.
260 * lib/fclose.c: New file.
261 * m4/fclose.m4: New file.
262 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
264 * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
265 * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
267 * modules/close (Depends-on): fclose.
268 * doc/posix-functions/fclose.texi: Mention the problem on Windows.
270 2008-10-11 Bruno Haible <bruno@clisp.org>
272 * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
273 set errno and don't call _close.
275 2008-10-10 Bruno Haible <bruno@clisp.org>
277 * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
278 ACL, not afterwards. Fixes test failure on Cygwin.
280 2008-10-09 Ben Pfaff <blp@gnu.org>
282 * build-aux/announce-gen: Fix gnulib version related part of usage
283 message. Die with a useful error message if no tarballs are
286 2008-10-10 Jim Meyering <meyering@redhat.com>
288 bootstrap: use git's --depth=N option only if it's supported
289 * build-aux/bootstrap: Work with git-1.4.4.4, which does not
290 recognize the --depth option. Reported by Pádraig Brady.
292 2008-10-09 Bruno Haible <bruno@clisp.org>
295 * modules/ioctl: New file.
296 * lib/sys_socket.in.h (ioctl): Remove declaration.
297 * lib/winsock.c: Include <sys/ioctl.h>.
298 (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
299 * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
300 gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
301 * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
302 * doc/posix-functions/ioctl.texi: Mention the new module.
304 2008-10-09 Bruno Haible <bruno@clisp.org>
306 New module 'sys_ioctl'.
307 * lib/sys_ioctl.in.h: New file.
308 * m4/sys_ioctl_h.m4: New file.
309 * modules/sys_ioctl: New file.
310 * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
312 2008-10-09 Bruno Haible <bruno@clisp.org>
314 * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
315 * lib/winsock.c: Include <stdarg.h>.
316 (rpl_ioctl): Change to second argument 'int' and then varargs.
318 2008-10-09 Bruno Haible <bruno@clisp.org>
320 * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
321 when the sys_socket module is present and the system has <winsock2.h>.
323 2008-10-09 Bruno Haible <bruno@clisp.org>
325 * doc/posix-functions/close.texi: Mention module 'close' instead of
328 2008-10-09 Bruno Haible <bruno@clisp.org>
330 * doc/glibc-headers/sys_ioctl.texi: New file.
331 * doc/gnulib.texi: Include it.
333 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
334 Bruno Haible <bruno@clisp.org>
336 Combine the two replacements of 'close'.
337 * lib/sys_socket.in.h (close): Define to a reminder to include
339 (_gl_close_fd_maybe_socket): New declaration.
340 (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
341 * lib/winsock.c (close): Remove undefinition.
342 (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
343 needed for the gnulib module 'close'.
344 * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
345 define to an error symbol or to a warning, if suitable.
346 * lib/close.c: Include <sys/socket.h>.
347 (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
348 * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
349 UNISTD_H_HAVE_WINSOCK2_H.
350 (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
351 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
352 UNISTD_H_HAVE_WINSOCK2_H.
353 * modules/sys_socket (Files): Add m4/unistd_h.m4.
354 (configure.ac): Set a module indicator.
355 (Makefile.am): Substitute GNULIB_CLOSE.
356 * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
357 * modules/poll-tests (Depends-on): Add close.
358 * modules/select-tests (Depends-on): Likewise.
360 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
361 Bruno Haible <bruno@clisp.org>
364 * modules/close: New file.
365 * lib/unistd.in.h (close): Move declaration out of the
366 FCHDIR_REPLACEMENT scope.
367 (_gl_unregister_fd): New declaration.
368 * lib/close.c: New file.
369 * lib/fchdir.c (rpl_close): Remove function.
370 * m4/close.m4: New file.
371 * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
373 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
375 * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
377 * modules/fchdir (Depends-on): Add close.
379 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
380 Bruno Haible <bruno@clisp.org>
382 * lib/fcntl.in.h (open): Simplify conditionals.
383 (_gl_register_fd): New declaration.
384 * lib/fchdir.c (rpl_open): Remove function.
385 * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
387 (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
388 * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
391 2008-10-09 Jim Meyering <meyering@redhat.com>
393 GNUmakefile: use the more name-space-friendly "_version"
394 * top/GNUmakefile (_dummy): Update.
395 (_version): Rename from "version".
397 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
398 Bruno Haible <bruno@clisp.org>
400 * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
402 (_gl_register_fd): New function, extracted from rpl_open.
403 (rpl_close, rpl_closedir): Use _gl_unregister_fd.
404 (rpl_open, rpl_opendir): Use _gl_register_fd.
406 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
408 Fix organization of 'open' replacement.
409 * m4/open.m4 (gl_REPLACE_OPEN): New macro.
410 (gl_FUNC_OPEN): Use it.
411 (gl_PREREQ_OPEN): Add a : to make the body non-empty.
413 2008-10-08 Bruno Haible <bruno@clisp.org>
415 * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
417 2008-10-08 Simon Josefsson <simon@josefsson.org>
419 * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock). The file is
420 AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
423 2008-10-08 Eric Blake <ebb9@byu.net>
425 GNUmakefile: add 'make version' target
426 * top/GNUmakefile (_curr-ver): Split version update rules...
427 (version): ...into a target.
429 2008-10-07 Bruno Haible <bruno@clisp.org>
431 Use a more portable replacement expression for -0.0L.
432 * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
433 instead of -0.0L. Fix m4 quotation.
435 * tests/test-signbit.c: Include <float.h>.
436 (minus_zero): New variable.
437 (test_signbitl): Use minus_zero instead of -zero.
438 * modules/signbit-tests (Depends-on): Add float.
440 * tests/test-ceill.c: Include <float.h>.
441 (zero): Remove variable.
442 (minus_zero): New variable.
443 (main): Use minus_zero instead of -zero.
444 * modules/ceill-tests (Depends-on): Add float.
446 * tests/test-floorl.c: Include <float.h>.
447 (zero): Remove variable.
448 (minus_zero): New variable.
449 (main): Use minus_zero instead of -zero.
450 * modules/floorl-tests (Depends-on): Add float.
452 * tests/test-roundl.c: Include <float.h>.
453 (zero): Remove variable.
454 (minus_zero): New variable.
455 (main): Use minus_zero instead of -zero.
456 * modules/roundl-tests (Depends-on): Add float.
458 * tests/test-truncl.c: Include <float.h>.
459 (zero): Remove variable.
460 (minus_zero): New variable.
461 (main): Use minus_zero instead of -zero.
462 * modules/truncl-tests (Depends-on): Add float.
464 * tests/test-frexpl.c (zero): Remove variable.
465 (minus_zero): New variable.
466 (main): Use minus_zero instead of -zero.
467 * modules/frexpl-tests (Depends-on): Add float.
469 * tests/test-isnan.c (zerol): Remove variable.
470 (minus_zerol): New variable.
471 (test_long_double): Use minus_zerol instead of -zerol.
472 * modules/isnan-tests (Depends-on): Add float.
474 * tests/test-isnanl.h (zero): Remove variable.
475 (minus_zero): New variable.
476 (main): Use minus_zero instead of -zero.
477 * modules/isnanl-nolibm-tests (Depends-on): Add float.
478 * modules/isnanl-tests (Depends-on): Add float.
480 * tests/test-ldexpl.c (zero): Remove variable.
481 (minus_zero): New variable.
482 (main): Use minus_zero instead of -zero.
483 * modules/ldexpl-tests (Depends-on): Add float.
485 * tests/test-snprintf-posix.h (zerol): Remove variable.
486 (minus_zerol): New variable.
487 (test_function): Use minus_zerol instead of -zerol.
488 * modules/snprintf-posix-tests (Depends-on): Add float.
489 * modules/vsnprintf-posix-tests (Depends-on): Add float.
491 * tests/test-sprintf-posix.h (zerol): Remove variable.
492 (minus_zerol): New variable.
493 (test_function): Use minus_zerol instead of -zerol.
494 * modules/sprintf-posix-tests (Depends-on): Add float.
495 * modules/vsprintf-posix-tests (Depends-on): Add float.
497 * tests/test-vasnprintf-posix.c (zerol): Remove variable.
498 (minus_zerol): New variable.
499 (test_function): Use minus_zerol instead of -zerol.
500 * modules/vasnprintf-posix-tests (Depends-on): Add float.
502 * tests/test-vasprintf-posix.c (zerol): Remove variable.
503 (minus_zerol): New variable.
504 (test_function): Use minus_zerol instead of -zerol.
505 * modules/vasprintf-posix-tests (Depends-on): Add float.
507 2008-10-07 Simon Josefsson <simon@josefsson.org>
509 * MODULES.html.sh (Support for building documentation): Mention
510 pmccabe2html. Sort entries.
512 Add pmccabe2html module, from gnupdf.
513 * build-aux/pmccabe.css: New file.
514 * build-aux/pmccabe2html: New file.
515 * m4/pmccabe2html.m4: New file.
516 * modules/pmccabe2html: New file.
518 2008-10-07 Richard W.M. Jones <rjones@redhat.com>
521 * MODULES.html.sh: Add to list of modules.
522 * lib/flock.c: flock implementation for Windows and Unix systems
524 * doc/glibc-functions/flock.texi: Update documentation.
525 * lib/sys_file.in.h: <sys/file.h> header file.
526 * m4/flock.m4: M4 macros.
527 * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
528 * modules/flock: flock module.
529 * modules/flock-tests: flock tests module.
530 * modules/sys_file: sys/file.h module.
531 * tests/test-flock.c: test suite for flock.
533 2008-10-06 Jim Meyering <meyering@redhat.com>
535 bootstrap: check for LT_INIT more portably still ;-)
536 * build-aux/bootstrap: Don't rely on \>, since it's not portable.
537 Spotted by Bruno Haible.
539 2008-10-06 Eric Blake <ebb9@byu.net>
541 test-signbit: avoid tripping Irix cc bug on -0.0L
542 * tests/test-signbit.c (minus_zerol): Delete, and replace with
543 '-zerol'. This may break on HP-UX/hppa, but at least makes the
544 entire testsuite consistent and avoids an Irix 6.2 bug.
546 2008-10-05 Bruno Haible <bruno@clisp.org>
547 Jim Meyering <jim@meyering.net>
549 Add an option for ignoring EPIPE during close_stdout.
550 * lib/closeout.h: Include <stdbool.h>.
551 (close_stdout_set_ignore_EPIPE): New declaration.
552 * lib/closeout.c: Include <stdbool.h>.
553 (ignore_EPIPE): New variable.
554 (close_stdout_set_ignore_EPIPE): New function.
555 (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
556 * lib/close-stream.c (close_stream): Mention the possible EPIPE
558 * modules/closeout (Depends-on): Add stdbool.
560 2008-10-05 Bruno Haible <bruno@clisp.org>
562 * modules/accept: New file.
563 * modules/bind: New file.
564 * modules/connect: New file.
565 * modules/getpeername: New file.
566 * modules/getsockname: New file.
567 * modules/getsockopt: New file.
568 * modules/listen: New file.
569 * modules/recv: New file.
570 * modules/recvfrom: New file.
571 * modules/send: New file.
572 * modules/sendto: New file.
573 * modules/setsockopt: New file.
574 * modules/socket: New file.
575 * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
576 (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
577 listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
578 the particular module is requested. Add a link warning when the
579 particular module is not requested.
580 * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
581 rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
582 rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
583 the particular module is requested.
584 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
585 gl_SYS_SOCKET_H_DEFAULTS): New macros.
586 (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
587 * modules/sys_socket (Depends-on): Add link-warning.
588 (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
589 GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
590 GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
591 GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
593 * doc/posix-functions/accept.texi: Mention the new module 'accept'.
594 * doc/posix-functions/bind.texi: Mention the new module 'bind'.
595 * doc/posix-functions/connect.texi: Mention the new module 'connect'.
596 * doc/posix-functions/getpeername.texi: Mention the new module
598 * doc/posix-functions/getsockname.texi: Mention the new module
600 * doc/posix-functions/getsockopt.texi: Mention the new module
602 * doc/posix-functions/listen.texi: Mention the new module 'listen'.
603 * doc/posix-functions/recv.texi: Mention the new module 'recv'.
604 * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
605 * doc/posix-functions/send.texi: Mention the new module 'send'.
606 * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
607 * doc/posix-functions/setsockopt.texi: Mention the new module
609 * doc/posix-functions/socket.texi: Mention the new module 'socket'.
610 * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
611 listen, connect, accept.
612 * modules/select-tests (Depends-on): Likewise.
614 2008-10-05 Bruno Haible <bruno@clisp.org>
616 * lib/winsock.c (strerror): Remove unused #undef.
617 (rpl_close): Remove unused local variable.
619 * modules/sys_socket (Depends-on); Add errno.
621 2008-10-05 Bruno Haible <bruno@clisp.org>
623 * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
624 (select): Add a link warning when the 'select' module is not used.
625 * modules/sys_select (Depends-on): Add link-warning.
626 (Makefile.am): Substitute the definition of GL_LINK_WARNING.
627 Suggested by Paolo Bonzini.
629 2008-10-05 Jim Meyering <meyering@redhat.com>
631 bootstrap: check for LT_INIT more portably
632 * build-aux/bootstrap: Avoid using grep -E, since it's not
633 portable enough. Suggestion from Bruno Haible.
635 2008-10-05 Bruno Haible <bruno@clisp.org>
637 * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
638 as being fixed by gnulib.
640 2008-10-05 Bruno Haible <bruno@clisp.org>
642 * modules/select-tests: New file, mostly copied from
643 modules/sys_select-tests.
644 * tests/test-select.c: New file, mostly copied from
645 tests/test-sys_select.c.
646 * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
647 * modules/sys_select-tests (Depends-on): Remove all dependencies.
648 (Makefile.am): Remove test_sys_select_LDADD.
650 * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
651 to an undefined symbol, for an error message.
652 * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
653 (gl_SYS_SELECT_H_DEFAULTS): New macro.
654 (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
655 winsock-select.c here.
656 * modules/sys_select (Files): Remove lib/winsock-select.c.
657 (Depends-on): Remove alloca.
658 (Makefile.am): Substitute GNULIB_SELECT.
659 * modules/select: New file.
660 * doc/posix-functions/select.texi: Update.
662 2008-10-05 Bruno Haible <bruno@clisp.org>
664 * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
665 * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
666 * lib/spawn_faction_addopen.c (__sysconf): Likewise.
667 * modules/posix_spawn_file_actions_addclose (Depends-on): Add
669 * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
670 * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
672 2008-10-05 Bruno Haible <bruno@clisp.org>
674 * modules/getdtablesize-tests: New file.
675 * tests/test-getdtablesize.c: New file.
677 New module 'getdtablesize'.
678 * lib/unistd.in.h (getdtablesize): New declaration.
679 * lib/getdtablesize.c: New file.
680 * m4/getdtablesize.m4: New file.
681 * modules/getdtablesize: New file.
682 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
683 GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
684 * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
686 * doc/glibc-functions/getdtablesize.texi: Mention the new module.
688 2008-10-05 Bruno Haible <bruno@clisp.org>
690 * modules/sched (Makefile.am): Fix typo.
691 Reported by Simon Josefsson.
693 2008-10-05 Jim Meyering <meyering@redhat.com>
695 bootstrap: check for LT_INIT, too
696 * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
697 are deprecated. Suggestion from Ralf Wildenhues.
699 2008-10-05 Bruno Haible <bruno@clisp.org>
701 * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
702 overriding them by ours.
703 (POSIX_SPAWN_USEVFORK): Use the next free bit position.
705 2008-10-05 Jim Meyering <meyering@redhat.com>
707 bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
708 * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
709 obsolete AM_PROG_LIBTOOL. Spotted by Debarshi Ray <rishi@gnu.org>.
711 2008-10-04 Bruno Haible <bruno@clisp.org>
713 * modules/dup2 (License): Change to LGPLv2+.
714 * modules/sleep (License): Likewise.
715 * modules/perror (License): Likewise.
716 * modules/fopen (License): Change to LGPLv2+, with approval by Eric
718 * modules/signal (License): Likewise.
719 * modules/sigprocmask (License): Likewise.
720 * modules/raise (License): Change to LGPLv2+, with approval by Jim
723 2008-10-04 Bruno Haible <bruno@clisp.org>
725 * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
726 Reported by Rainer Tammer <tammer@tammer.net>.
728 2008-10-03 Paolo Bonzini <bonzini@gnu.org>
729 Bruno Haible <bruno@clisp.org>
731 * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
732 * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
733 * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
735 2008-10-03 Kamil Dudka <kdudka@redhat.com>
737 filevercmp: new module
738 * lib/filevercmp.h: New function filevercmp comparing version strings.
739 * lib/filevercmp.c: Implementation of filevercmp function.
740 * modules/filevercmp: Module metadata.
741 * tests/test-filevercmp.c: Unit test for new module.
742 * modules/filevercmp-tests: Unit test metadata.
743 * MODULES.html.sh: Add filevercmp module.
745 2008-10-03 Bruno Haible <bruno@clisp.org>
747 * lib/c-ctype.h: Add comment.
748 Reported by Jim Meyering.
750 2008-10-02 Bruno Haible <bruno@clisp.org>
752 * modules/posix_spawn-internal (Depends-on): Add 'open'.
754 2008-10-02 Paolo Bonzini <bonzini@gnu.org>
756 * build-aux/bootstrap: Allow renaming bootstrap, and change the
757 name of bootstrap.conf accordingly.
759 2008-10-02 Paolo Bonzini <bonzini@gnu.org>
761 * build-aux/bootstrap: Install git-merge-changelog configuration
762 items into .gitconfig if needed.
764 2008-10-02 Paolo Bonzini <bonzini@gnu.org>
766 * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
767 git repository, and initialize/update it accordingly.
769 2008-10-02 Richard W.M. Jones <rjones@redhat.com>
771 * modules/fsync-tests: New file.
772 * tests/test-fsync.c: New file.
775 * lib/fsync.c: New file.
776 * m4/fsync.m4: New file.
777 * modules/fsync: New file.
778 * lib/unistd.in.h (fsync): New declaration.
779 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
780 GNULIB_FSYNC and HAVE_FSYNC.
781 * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
782 * MODULES.html.sh (posix_functions): Add fsync.
783 * doc/posix-functions/fsync.texi: Mention the new module.
785 2008-10-02 Jim Meyering <meyering@redhat.com>
787 fts.c: sync with similar code from coreutils' remove.c
788 * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
789 Guard also with "#if defined __linux__", since for now at least,
790 this code is Linux-kernel-specific.
792 2008-10-02 Jim Meyering <meyering@redhat.com>
795 * lib/fts.c: Remove unnecessary "defined" in cpp directive.
796 Include <sys/vfs.h>, not <sys/statfs.h>.
798 * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
799 Include <sys/vfs.h>, not <sys/statfs.h>.
801 2008-10-01 Bruno Haible <bruno@clisp.org>
803 Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
804 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
805 (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
806 * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
807 * doc/posix-functions/posix_spawnp.texi: Likewise.
808 * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
809 whether posix_spawn actually works.
810 * m4/pipe.m4 (gl_PIPE): Likewise.
811 * modules/execute (Files): Add m4/posix_spawn.m4.
812 * modules/pipe (Files): Add m4/posix_spawn.m4.
813 Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
815 2008-10-01 Jim Meyering <meyering@redhat.com>
817 remove trailing spaces
819 * lib/poll.c (poll): Likewise.
820 * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
821 * lib/winsock.c (rpl_close): Likewise.
822 * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
823 * modules/yield: Likewise.
824 * tests/test-poll.c (connect_to_socket, poll1): Likewise.
825 * tests/test-sys_select.c (connect_to_socket): Likewise.
827 fts.c: adjust a new interface to be more generally useful
828 * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
829 (fts_build): Adjust caller.
831 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
833 * modules/cond-tests: New file.
834 * tests/test-cond.c: New file.
836 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
837 Bruno Haible <bruno@clisp.org>
839 * modules/cond (Dependencies): Add errno, time.
840 * lib/glthread/cond.h: Include <time.h>.
841 (gl_cond_define, gl_cond_define_initialized): Use the same definition
844 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
845 Bruno Haible <bruno@clisp.org>
847 * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
849 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
850 Bruno Haible <bruno@clisp.org>
852 * modules/tls-tests (Depends-on): Add thread, yield.
853 (configure.ac): Remove all checks.
854 (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
855 * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
856 gl_thread_self): Remove definitions. Include glthread/thread.h and
857 glthread/yield.h instead.
858 (test_tls): Pass an additional NULL argument to gl_thread_join.
860 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
861 Bruno Haible <bruno@clisp.org>
863 * modules/lock-tests (Depends-on): Add thread, yield.
864 (configure.ac): Remove all checks.
865 (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
866 * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
867 gl_thread_self): Remove definitions. Include glthread/thread.h and
868 glthread/yield.h instead.
869 (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
870 additional NULL argument to gl_thread_join.
872 2008-09-30 Bruno Haible <bruno@clisp.org>
874 Fix the Win32 implementation of the 'thread' module.
875 * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
877 (gl_thread_self): Invoke gl_thread_self_func.
878 (gl_thread_self_func): New declaration.
879 * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
880 (do_init_self_key, init_self_key): New functions.
881 (struct gl_thread_struct): Renamed from 'struct thread_extra'.
883 (running_threads, running_lock): Remove variables.
884 (get_current_thread_handle): New function.
885 (gl_thread_self_func, wrapper_func, glthread_create_func,
886 glthread_join_func, gl_thread_exit_func): Largely rewritten and
889 2008-09-30 Bruno Haible <bruno@clisp.org>
891 * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
894 2008-09-30 Jim Meyering <meyering@redhat.com>
896 fts.m4: correct the test for statfs.f_type
897 * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
898 when checking for statfs.f_type.
900 2008-09-15 Simon Josefsson <simon@josefsson.org>
902 tests: avoid some compiler warnings
903 * tests/test-memchr.c (main): Pass NULL indirectly.
904 * tests/test-getdate.c (main): Remove unused variable 'ret'.
906 2008-09-29 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
908 getdate.y: disallow countable dayshifts like "4 yesterday ago"
909 * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
910 exactly specified dayshifts.
911 (dayshift): New rule.
913 (relative_time_table) [tomorrow, yesterday, today, now]:
914 Use tDAY_SHIFT in place of tDAY_UNIT.
915 * tests/test-getdate.c: Add tests for now-disallowed countable
916 dayshifts, e.g., "4 yesterday ago".
918 2008-09-29 Bruno Haible <bruno@clisp.org>
920 * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
921 * tests/test-posix_spawn1.in.sh: Renamed from
922 tests/test-posix_spawn.in.sh.
923 * tests/test-posix_spawn2.c: New file.
924 * tests/test-posix_spawn2.in.sh: New file.
925 * modules/posix_spawnp-tests (Files): Update.
926 (Makefile.am): Update. Add test-posix_spawn2 to the tests.
928 2008-09-29 Bruno Haible <bruno@clisp.org>
930 Propagate effects of putenv/setenv/unsetenv to child processes.
931 * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
932 * lib/pipe.c (create_pipe): Likewise.
934 2008-09-29 Bruno Haible <bruno@clisp.org>
936 Enable use of shell scripts as executables in mingw.
937 * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
938 run the program as a shell script.
939 * lib/pipe.c (create_pipe): Likewise.
940 * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
943 2008-09-29 Eric Blake <ebb9@byu.net>
945 * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
947 2008-08-24 Paolo Bonzini <bonzini@gnu.org>
949 * doc/posix-functions/accept.texi: Update mingw problems.
950 * doc/posix-functions/bind.texi: Update mingw problems.
951 * doc/posix-functions/close.texi: Update mingw problems.
952 * doc/posix-functions/connect.texi: Update mingw problems.
953 * doc/posix-functions/getpeername.texi: Update mingw problems.
954 * doc/posix-functions/getsockname.texi: Update mingw problems.
955 * doc/posix-functions/getsockopt.texi: Update mingw problems.
956 * doc/posix-functions/ioctl.texi: Update mingw problems.
957 * doc/posix-functions/listen.texi: Update mingw problems.
958 * doc/posix-functions/recv.texi: Update mingw problems.
959 * doc/posix-functions/recvfrom.texi: Update mingw problems.
960 * doc/posix-functions/select.texi: Update mingw problems.
961 * doc/posix-functions/send.texi: Update mingw problems.
962 * doc/posix-functions/sendto.texi: Update mingw problems.
963 * doc/posix-functions/setsockopt.texi: Update mingw problems.
964 * doc/posix-functions/socket.texi: Update mingw problems.
966 2008-09-29 Paolo Bonzini <bonzini@gnu.org>
967 Bruno Haible <bruno@clisp.org>
969 * lib/sys_select.in.h: Include sys/time.h.
970 * m4/sys_select.h.m4: Test that struct timeval is fully defined.
971 * modules/sys_select: Depend on sys_time.
972 * tests/test-sys_select.c: Test that sys/select.h defines struct
975 2008-09-29 Bruno Haible <bruno@clisp.org>
977 * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
978 * lib/sys_select.in.h: Likewise.
980 2008-09-29 Bruno Haible <bruno@clisp.org>
982 * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
984 2008-09-29 Bruno Haible <bruno@clisp.org>
986 * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
987 Set LIBSOCKET instead of augmenting LIBS.
988 * modules/sockets (Link): New section.
989 * modules/sockets-tests (test_sockets_LDADD): New variable.
990 * modules/sys_select-tests (test_sys_select_LDADD): New variable.
991 * modules/poll-tests (test_poll_LDADD): New variable.
992 * NEWS: Document the change.
994 2008-09-29 Bruno Haible <bruno@clisp.org>
996 * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
997 * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
998 ARPA_INET_H directly.
999 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
1001 2008-09-28 Bruno Haible <bruno@clisp.org>
1003 * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
1004 from gl_HEADER_SYS_SOCKET.
1005 (gl_HEADER_SYS_SOCKET): Invoke it.
1006 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
1008 2008-09-28 Bruno Haible <bruno@clisp.org>
1010 * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
1011 * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
1012 Needed on OSF/1 4.0.
1014 2008-09-28 Bruno Haible <bruno@clisp.org>
1016 Override open more carefully.
1017 * lib/open.c (orig_open): New function.
1018 (rpl_open): Use orig_open instead of open.
1019 * lib/fcntl.in.h: Add special invocation convention.
1020 * m4/open.m4 (gl_PREREQ_OPEN): New macro.
1021 (gl_FUNC_OPEN): Invoke it.
1023 Override freopen more carefully.
1024 * lib/freopen.c (orig_freopen): New function.
1025 (rpl_freopen): Use orig_freopen instead of freopen.
1026 * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
1027 (gl_FUNC_FREOPEN): Invoke it.
1029 Override fopen more carefully.
1030 * lib/fopen.c (orig_fopen): New function.
1031 (rpl_fopen): Use orig_fopen instead of fopen.
1032 * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
1033 (gl_FUNC_FOPEN): Invoke it.
1034 Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
1036 2008-09-28 Bruno Haible <bruno@clisp.org>
1038 * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
1041 2008-09-28 Bruno Haible <bruno@clisp.org>
1043 * tests/test-sigaction.c (handler, main): Disable the check whether
1044 SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
1045 glibc systems with LinuxThreads.
1047 2008-09-28 Bruno Haible <bruno@clisp.org>
1049 * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
1051 * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
1053 * lib/fcntl.in.h (open): Likewise.
1054 Reported by Rainer Tammer <tammer@tammer.net>.
1056 2008-09-28 Bruno Haible <bruno@clisp.org>
1058 * modules/posix_spawnp-tests: New file.
1059 * tests/test-posix_spawn.c: New file.
1060 * tests/test-posix_spawn.in.sh: New file.
1062 New module 'posix_spawnp'.
1063 * modules/posix_spawnp: New file.
1064 * lib/spawnp.c: New file, from GNU libc with modifications.
1065 * doc/posix-functions/posix_spawnp.texi: Mention the new module.
1067 New module 'posix_spawn'.
1068 * modules/posix_spawn: New file.
1069 * lib/spawn.c: New file, from GNU libc with modifications.
1070 * doc/posix-functions/posix_spawn.texi: Mention the new module.
1072 New module 'posix_spawnattr_destroy'.
1073 * modules/posix_spawnattr_destroy: New file.
1074 * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
1075 * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
1078 New module 'posix_spawnattr_setsigmask'.
1079 * modules/posix_spawnattr_setsigmask: New file.
1080 * lib/spawnattr_setsigmask.c: New file, from GNU libc with
1082 * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
1085 New module 'posix_spawnattr_getsigmask'.
1086 * modules/posix_spawnattr_getsigmask: New file.
1087 * lib/spawnattr_getsigmask.c: New file, from GNU libc with
1089 * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
1092 New module 'posix_spawnattr_setsigdefault'.
1093 * modules/posix_spawnattr_setsigdefault: New file.
1094 * lib/spawnattr_setdefault.c: New file, from GNU libc with
1096 * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
1099 New module 'posix_spawnattr_getsigdefault'.
1100 * modules/posix_spawnattr_getsigdefault: New file.
1101 * lib/spawnattr_getdefault.c: New file, from GNU libc with
1103 * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
1106 New module 'posix_spawnattr_setschedpolicy'.
1107 * modules/posix_spawnattr_setschedpolicy: New file.
1108 * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
1110 * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
1113 New module 'posix_spawnattr_getschedpolicy'.
1114 * modules/posix_spawnattr_getschedpolicy: New file.
1115 * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
1117 * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
1120 New module 'posix_spawnattr_setschedparam'.
1121 * modules/posix_spawnattr_setschedparam: New file.
1122 * lib/spawnattr_setschedparam.c: New file, from GNU libc with
1124 * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
1127 New module 'posix_spawnattr_getschedparam'.
1128 * modules/posix_spawnattr_getschedparam: New file.
1129 * lib/spawnattr_getschedparam.c: New file, from GNU libc with
1131 * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
1134 New module 'posix_spawnattr_setpgroup'.
1135 * modules/posix_spawnattr_setpgroup: New file.
1136 * lib/spawnattr_setpgroup.c: New file, from GNU libc with
1138 * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
1141 New module 'posix_spawnattr_getpgroup'.
1142 * modules/posix_spawnattr_getpgroup: New file.
1143 * lib/spawnattr_getpgroup.c: New file, from GNU libc with
1145 * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
1148 New module 'posix_spawnattr_setflags'.
1149 * modules/posix_spawnattr_setflags: New file.
1150 * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
1151 * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
1154 New module 'posix_spawnattr_getflags'.
1155 * modules/posix_spawnattr_getflags: New file.
1156 * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
1157 * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
1160 New module 'posix_spawnattr_init'.
1161 * modules/posix_spawnattr_init: New file.
1162 * lib/spawnattr_init.c: New file, from GNU libc with modifications.
1163 * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
1166 New module 'posix_spawn_file_actions_destroy'.
1167 * modules/posix_spawn_file_actions_destroy: New file.
1168 * lib/spawn_faction_destroy.c: New file, from GNU libc with
1170 * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
1173 New module 'posix_spawn_file_actions_addopen'.
1174 * modules/posix_spawn_file_actions_addopen: New file.
1175 * lib/spawn_faction_addopen.c: New file, from GNU libc with
1177 * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
1180 New module 'posix_spawn_file_actions_adddup2'.
1181 * modules/posix_spawn_file_actions_adddup2: New file.
1182 * lib/spawn_faction_adddup2.c: New file, from GNU libc with
1184 * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
1187 New module 'posix_spawn_file_actions_addclose'.
1188 * modules/posix_spawn_file_actions_addclose: New file.
1189 * lib/spawn_faction_addclose.c: New file, from GNU libc with
1191 * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
1194 New module 'posix_spawn_file_actions_init'.
1195 * modules/posix_spawn_file_actions_init: New file.
1196 * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
1197 * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
1200 New module 'posix_spawn-internal'.
1201 * modules/posix_spawn-internal: New file.
1202 * lib/spawn_int.h: New file, from GNU libc with modifications.
1203 * lib/spawni.c: New file, from GNU libc with modifications.
1204 * m4/posix_spawn.m4: New file.
1207 * modules/spawn: New file.
1208 * lib/spawn.in.h: New file, from GNU libc with modifications.
1209 * m4/spawn_h.m4: New file.
1210 * doc/posix-headers/spawn.texi: Mention the new module.
1212 2008-09-28 Bruno Haible <bruno@clisp.org>
1214 * modules/sched-tests: New file.
1215 * tests/test-sched.c: New file.
1218 * modules/sched: New file.
1219 * lib/sched.in.h: New file.
1220 * m4/sched_h.m4: New file.
1221 * doc/posix-headers/sched.texi: Mention the new module.
1223 2008-09-27 Eric Blake <ebb9@byu.net>
1225 Fix previous patch, and tweak references to $0.
1226 * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
1227 (func_version, func_gnulib_dir): Don't call this program
1229 (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
1230 with using $0 in function.
1231 * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
1232 (func_fatal_error): Reuse the name the user invoked us with.
1234 2008-09-27 Bruno Haible <bruno@clisp.org>
1236 * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
1237 (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
1238 (gl_ICONV_H): Not here.
1239 * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
1240 instead of assigning ICONV_H directly.
1242 * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
1243 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
1246 2008-09-27 Bruno Haible <bruno@clisp.org>
1248 * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
1249 * modules/arpa_inet (Depends-on): Add link-warning.
1250 (Makefile.am): Insert the definition of GL_LINK-WARNING.
1251 * modules/unistd (Makefile.am): Likewise.
1253 2008-09-26 Bruno Haible <bruno@clisp.org>
1255 * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
1257 (func_version): Essentially copied from gnulib-tool.
1258 (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
1259 func_readlink): Copied from gnulib-tool.
1261 2008-09-26 Bruno Haible <bruno@clisp.org>
1263 * gnulib-tool (func_version): Change directory to $gnulib_dir before
1264 invoking git-version-gen.
1266 2008-09-26 Bruno Haible <bruno@clisp.org>
1268 * posix-modules: Update to directory names changed on 2008-01-19.
1269 Remove commas in output before splitting into words. No more need to
1270 avoid 'ftruncate' since 2007-02-19.
1272 2008-09-26 Bruno Haible <bruno@clisp.org>
1274 * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
1276 2008-09-26 Bruno Haible <bruno@clisp.org>
1278 * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
1279 * modules/fwriteerror (Depends-on): Add errno.
1281 2008-09-26 Bruno Haible <bruno@clisp.org>
1283 * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
1284 * tests/test-vc-list-files-cvs.sh: Likewise.
1286 2008-09-26 Bruno Haible <bruno@clisp.org>
1288 * doc/posix-headers/sys_resource.texi: Reorder items.
1290 2008-09-26 Jim Meyering <meyering@redhat.com>
1292 fts: tweak inode comparison function
1293 * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
1294 inode numbers, as documented.
1296 fts: sort dirent entries on inode number before traversing
1297 This avoids a quadratic, seek-related performance penalty when
1298 operating on a directory containing many entries (measurable at 10k;
1299 3.5 hours at 2 million entries with a cold cache) on certain types
1300 of file systems, including ext3 and ext4, but not tmpfs.
1301 * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
1302 (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
1303 (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
1304 (fs_handles_readdir_ordered_dirents_efficiently): New function.
1305 (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
1306 (fts_build): Set the stat.st_ino member from D_INO.
1307 If it is likely to be useful, sort dirent entries on inode number.
1309 * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
1310 and the struct statfs.f_type member.
1311 * modules/fts (Depends-on): Add d-ino.
1313 2008-09-26 Bruno Haible <bruno@clisp.org>
1315 * modules/sigpipe-die (Depends-on): Add sigpipe.
1317 * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
1318 putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
1319 and GNULIB_STDIO_H_SIGPIPE are set.
1320 * lib/stdio-write.c: New file.
1321 * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
1322 GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
1323 GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
1324 REPLACE_STDIO_WRITE_FUNCS.
1325 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
1326 GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
1327 GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
1328 GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
1329 * modules/stdio (Files): Add lib/stdio-write.c.
1330 (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
1331 GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
1332 GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
1333 GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
1334 * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
1335 REPLACE_FPRINTF_POSIX.
1336 * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
1337 REPLACE_PRINTF_POSIX.
1338 * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
1339 REPLACE_VFPRINTF_POSIX.
1340 * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
1341 REPLACE_VPRINTF_POSIX.
1342 * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
1344 * doc/posix-functions/fputc.texi: Likewise.
1345 * doc/posix-functions/fputs.texi: Likewise.
1346 * doc/posix-functions/fwrite.texi: Likewise.
1347 * doc/posix-functions/printf.texi: Likewise.
1348 * doc/posix-functions/putc.texi: Likewise.
1349 * doc/posix-functions/putchar.texi: Likewise.
1350 * doc/posix-functions/puts.texi: Likewise.
1351 * doc/posix-functions/vfprintf.texi: Likewise.
1352 * doc/posix-functions/vprintf.texi: Likewise.
1354 * modules/safe-write (Depends-on): Add write.
1356 * modules/sigpipe-tests: New file.
1357 * tests/test-sigpipe.c: New file.
1358 * tests/test-sigpipe.sh: New file.
1360 * modules/write: New file.
1361 * lib/unistd.in.h: Include <sys/types.h>.
1362 (write): New declaration.
1363 * lib/write.c: New file.
1364 * m4/write.m4: New file.
1365 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
1366 GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
1367 * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
1368 GNULIB_WRITE, REPLACE_WRITE.
1369 * doc/posix-functions/write.texi: Mention the write, sigpipe modules
1370 and the SIGPIPE issue.
1372 * lib/signal.in.h (SIGPIPE): Define to a replacement value.
1373 (raise): New declaration.
1374 * lib/sigprocmask.c (SIGPIPE_handler): New variable.
1375 (ext_signal): New function.
1376 (rpl_raise): New function.
1377 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
1378 GNULIB_SIGNAL_H_SIGPIPE.
1379 * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
1380 * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
1382 * modules/sigpipe: New file.
1383 * m4/sigpipe.m4: New file.
1385 2008-09-25 Derek Price <derek@ximbiot.com>
1386 Bruno Haible <bruno@clisp.org>
1388 * gnulib-tool (func_import): Report all license incompatibilities, not
1391 2008-09-25 Bruno Haible <bruno@clisp.org>
1393 * gnulib-tool (func_import): When computing the edits, consider not
1394 only the Makefile.ams that exist but also those that will be generated.
1396 2008-09-25 Simon Josefsson <simon@josefsson.org>
1398 * modules/sys_select-tests (Depends-on): Remove sys_select itself,
1399 fixes gnulib-tool --test warning about duplicate dependency.
1401 2008-09-25 Bruno Haible <bruno@clisp.org>
1403 * gnulib-tool: Don't ask the user to perform edits in the generated
1405 (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
1406 apply to the Makefile.am being generated.
1407 (func_emit_tests_Makefile_am): Execute edits that apply to the
1408 Makefile.am being generated.
1409 (func_import): Setup list of Makefile.am edits before emitting the
1410 Makefile.ams, not at the end.
1411 (func_create_testdir): Update.
1412 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
1414 2008-09-25 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
1416 * gnulib-tool (func_import): Store the --tests-base option in the
1417 comment in gnulib-cache.m4.
1419 2008-09-24 Paolo Bonzini <bonzini@gnu.org>
1421 * NEWS: Document increased portability that sys_select now provides.
1423 * lib/sys_select.in.h: Install select wrapper.
1424 * lib/sys_socket.in.h: Use more descriptive name when there is no
1426 * lib/winsock-select.c: New.
1427 * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
1428 Require gl_HEADER_SYS_SOCKET.
1429 * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
1430 * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
1431 * tests/test-sys_select.c: Add functional tests.
1433 2008-09-24 Eric Blake <ebb9@byu.net>
1435 open, fopen: close fd leak in last patch
1436 * lib/open.c (rpl_open): Close fd before returning error.
1437 * lib/fopen.c (rpl_fopen): Close fd before returning error.
1438 * doc/posix-functions/open.texi (open): Document that Irix also
1440 * doc/posix-functions/fopen.texi (fopen): Likewise.
1441 Reported by Paolo Bonzini.
1443 2008-09-24 Bruno Haible <bruno@clisp.org>
1445 Ensure that a filename ending in a slash cannot be used to access a
1447 * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
1448 to check whether it's really a directory.
1449 * lib/fopen.c: Include fcntl.h, unistd.h.
1450 (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
1452 * modules/fopen (Depends-on): Add unistd.
1453 * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
1454 * tests/test-fopen.c (main): Likewise.
1455 * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
1456 * doc/posix-functions/fopen.texi: Likewise.
1457 Reported by Eric Blake.
1459 2008-09-23 Eric Blake <ebb9@byu.net>
1461 c-stack: avoid compiler optimizations when provoking overflow
1462 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
1463 recursion harder to optimize, to ensure a stack overflow occurs.
1464 * tests/test-c-stack.c (recurse): Likewise.
1465 Borrowed from libsigsegv.
1467 c-stack: work around Irix sigaltstack bug
1468 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
1469 whether sigaltstack uses wrong end of stack_t (copied in part from
1471 * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
1472 Irix bug, without requiring an over-allocation.
1473 * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
1476 fopen: document mingw bug on directories
1477 * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
1478 not allowing a stream visiting a directory, even though reading
1479 from such a stream is not portable.
1481 2008-09-23 Paolo Bonzini <bonzini@gnu.org>
1483 * lib/poll.c: Rewrite.
1484 * modules/poll: Depend on alloca.
1486 2008-09-23 Paolo Bonzini <bonzini@gnu.org>
1488 * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
1489 instead define prototypes for a full set of wrappers. Ensure
1490 that Cygwin does not use the compatibility code, which is only
1492 * lib/winsock.c: New.
1493 * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
1494 * modules/sys_socket: Add lib/winsock.c.
1496 * modules/poll-tests: Add errno and perror.
1497 * tests/test-poll.c: Use ioctl, not ioctlsocket.
1499 2008-09-23 Paolo Bonzini <bonzini@gnu.org>
1501 * tests/test-poll.c: Downgrade minimum needed Winsock version.
1503 2008-09-23 Bruno Haible <bruno@clisp.org>
1505 * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
1506 * doc/glibc-functions/*: Likewise.
1508 2008-09-23 Simon Josefsson <simon@josefsson.org>
1510 * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
1513 2008-09-22 Eric Blake <ebb9@byu.net>
1514 Bruno Haible <bruno@clisp.org>
1516 vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
1517 * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
1518 supply %A but mishandle pseudo-NaN.
1519 Reported by Simon Josefsson.
1521 2008-09-21 Bruno Haible <bruno@clisp.org>
1523 * tests/test-lock.c (main): Tweak skip message.
1524 * tests/test-tls.c (main): Likewise.
1526 2008-09-21 Bruno Haible <bruno@clisp.org>
1528 * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
1529 whether 'struct sigaction' has sa_sigaction here...
1530 (gl_PREREQ_SIG_HANDLER_H): ... not here.
1531 (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
1533 2008-09-21 Bruno Haible <bruno@clisp.org>
1535 * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
1537 (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
1538 strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
1540 (Support for obsolete systems lacking POSIX:2001): New section.
1541 (String handling <string.h>): Move strdup to the new section.
1542 Suggested by Simon Josefsson and Paolo Bonzini.
1544 2008-09-21 Bruno Haible <bruno@clisp.org>
1546 * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
1547 exponents in %e and %g results on 'long double'. Needed for mingw's
1548 improved *printf functions.
1549 * tests/test-vasprintf-posix.c (test_function): Likewise.
1550 * tests/test-snprintf-posix.h (test_function): Likewise.
1551 * tests/test-sprintf-posix.h (test_function): Likewise.
1552 Reported by Eric Blake.
1554 2008-09-21 Bruno Haible <bruno@clisp.org>
1556 * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
1557 * tests/test-sprintf-posix.h (test_function): Likewise.
1559 2008-09-21 Bruno Haible <bruno@clisp.org>
1561 * modules/getpass (Depends-on): Add strdup-posix.
1563 New module 'strdup-posix'.
1564 * modules/strdup-posix: New file.
1565 * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
1566 * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
1567 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
1569 * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
1570 * doc/posix-functions/strdup.texi: Mention module strdup-posix.
1571 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
1574 * modules/strdup (Depends-on): Remove malloc-posix.
1576 2008-09-20 Bruno Haible <bruno@clisp.org>
1578 * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
1581 2008-09-20 Bruno Haible <bruno@clisp.org>
1583 Ensure that wint_t gets defined on IRIX 5.3.
1584 * lib/wchar.in.h (wint_t): Define if not defined by the system.
1585 * lib/wctype.in.h (wint_t): Likewise.
1586 (__wctype_wint_t): Remove type.
1587 (isw*): Use wint_t instead of __wctype_wint_t.
1588 * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
1589 * modules/wchar (Files): Add m4/wint_t.m4.
1590 (Makefile.am): Substitute HAVE_WINT_T.
1591 * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
1592 * tests/test-wctype.c: Check that wint_t is defined.
1593 * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
1594 * doc/posix-headers/wctype.texi: Likewise.
1595 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1597 2008-09-18 Bruno Haible <bruno@clisp.org>
1599 * gnulib-tool (func_exit): Update comment.
1601 2008-09-18 Simon Josefsson <simon@josefsson.org>
1603 * modules/getaddrinfo (Depends-on): Remove strdup, this module
1604 assumes strdup exists and does not depend on strdup to return
1605 ENOMEM on out of memory conditions.
1607 2008-09-18 Bruno Haible <bruno@clisp.org>
1609 * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
1610 NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
1611 digits for the exponent.
1613 2008-09-18 Jim Meyering <meyering@redhat.com>
1614 Bruno Haible <bruno@clisp.org>
1616 * lib/vasnprintf.c (decimal_point_char): Define also if
1617 NEED_PRINTF_INFINITE_LONG_DOUBLE.
1619 2008-09-16 Bruno Haible <bruno@clisp.org>
1620 and Eric Blake <ebb9@byu.net>
1622 vasnprintf: support Irix 5.3
1623 * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
1624 that mishandle long double infinity.
1625 Reported by Tom G. Christensen.
1627 2008-09-16 Bruno Haible <bruno@clisp.org>
1629 * doc/glibc-functions/scandir.texi: Mention the function is missing on
1631 * doc/glibc-functions/alphasort.texi: Likewise.
1632 Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
1634 2008-09-16 Jim Meyering <meyering@redhat.com>
1636 posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
1637 * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
1638 a umask modification leak out of a subshell. Otherwise, the
1639 opensolaris /bin/sh would be accepted and thus cause unwarranted
1640 failures in the coreutils test suite.
1642 2008-09-16 Paolo Bonzini <bonzini@gnu.org>
1644 * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
1647 2008-09-16 Jim Meyering <meyering@redhat.com>
1649 avoid spurious test failure when library is built without ACL support
1650 * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
1651 * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
1652 * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
1653 * tests/test-copy-acl.sh: Likewise.
1655 2008-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1657 * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
1658 based on character occurrence counts.
1660 2008-09-15 Eric Blake <ebb9@byu.net>
1662 tests: avoid some compiler warnings
1663 * tests/test-memchr.c (main): Pass NULL indirectly.
1664 * tests/test-closein.c (main): Avoid unused variable.
1666 2008-09-15 Bruno Haible <bruno@clisp.org>
1668 * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
1669 are missing on OpenBSD 4.0 individually.
1670 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
1672 2008-09-15 Bruno Haible <bruno@clisp.org>
1674 * doc/posix-headers/errno.texi: Mention the Cygwin problem.
1675 * doc/posix-functions/strerror.texi: Mention also Cygwin.
1676 * doc/posix-functions/perror.texi: Likewise.
1677 * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
1679 Reported by Eric Blake.
1681 * lib/errno.in.h: Use replacement values >= 2000.
1682 Reported by Eric Blake.
1684 2008-09-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1686 * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
1687 (EARLY_ABORT): Return true when the edit_count has grown too beyond the
1689 (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
1690 compareseq was aborted.
1692 2008-09-14 Bruno Haible <bruno@clisp.org>
1694 * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
1696 (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
1697 (fstrcmp_bounded): Simplify result computation accordingly.
1699 2008-09-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1701 * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
1702 (fstrcmp): Define in terms of fstrcmp_bounded.
1703 * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
1704 lower_bound argument.
1705 Return quickly if the result is certainly < lower_bound.
1706 * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
1708 2008-09-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1710 * lib/diffseq.h (EARLY_ABORT): New macro.
1711 (compareseq): Change return type to bool. Return true when EARLY_ABORT
1714 2008-09-14 Bruno Haible <bruno@clisp.org>
1716 * modules/perror-tests: New file.
1717 * tests/test-perror.sh: New file.
1718 * tests/test-perror.c: New file.
1720 New module 'perror'.
1721 * lib/stdio.in.h (perror): New declaration.
1722 * lib/perror.c: New file.
1723 * m4/perror.m4: New file.
1724 * modules/perror: New file.
1725 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
1726 * doc/posix-functions/perror.texi: Mention the perror module.
1727 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
1729 * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
1732 2008-09-14 Bruno Haible <bruno@clisp.org>
1734 * modules/stdio (Makefile.am): Reorder to match the order in
1736 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
1738 2008-09-13 Bruno Haible <bruno@clisp.org>
1740 * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
1742 2008-09-13 Bruno Haible <bruno@clisp.org>
1744 Extend strerror to cover the added errno values.
1745 * lib/strerror.c: Include errno.h and winsock2.h if it exists.
1746 (rpl_strerror): Provide error messages for the added errno values and
1747 for the WSA* values.
1748 * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
1749 (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
1751 (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
1752 * modules/strerror (Depends-on): Add errno.
1753 * doc/posix-functions/strerror.texi: Document the change.
1754 * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
1757 2008-09-13 Bruno Haible <bruno@clisp.org>
1759 * modules/EOVERFLOW: Remove file.
1760 * m4/eoverflow.m4: Remove file.
1761 * modules/EOVERFLOW-tests: Remove file.
1762 * tests/test-EOVERFLOW.c: Remove file.
1763 * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
1764 * modules/ftell (Depends-on): Likewise.
1765 * modules/getdelim (Depends-on): Likewise.
1766 * modules/getugroups (Depends-on): Likewise.
1767 * modules/poll (Depends-on): Likewise.
1768 * modules/snprintf (Depends-on): Likewise.
1769 * modules/sprintf-posix (Depends-on): Likewise.
1770 * modules/vasnprintf (Depends-on): Likewise.
1771 * modules/vasprintf (Depends-on): Likewise.
1772 * modules/vfprintf-posix (Depends-on): Likewise.
1773 * modules/vsnprintf (Depends-on): Likewise.
1774 * modules/vsprintf-posix (Depends-on): Likewise.
1775 * modules/xvasprintf (Depends-on): Likewise.
1776 * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
1777 * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
1778 * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
1779 * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
1780 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
1781 * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
1782 * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
1783 * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
1784 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
1785 * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
1786 * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
1787 * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
1788 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
1789 * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
1790 * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
1791 * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
1792 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
1793 * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
1794 * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
1795 * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
1796 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
1797 * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
1798 * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
1799 * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
1800 * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
1801 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
1802 * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
1803 * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
1804 * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
1805 * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
1806 * MODULES.html.sh: Remove EOVERFLOW.
1807 * NEWS: Mention the change.
1809 2008-09-13 Bruno Haible <bruno@clisp.org>
1811 * modules/errno-tests: New file.
1812 * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
1814 * lib/errno.in.h: New file.
1815 * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
1816 * modules/errno: New file.
1817 * doc/posix-headers/errno.texi: Update documentation.
1818 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
1820 2008-09-13 Bruno Haible <bruno@clisp.org>
1822 * tests/test-poll.c: Use #if for native Windows, rather than testing
1825 2008-09-13 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
1826 Bruno Haible <bruno@clisp.org>
1828 * lib/glob.c: Don't include <pwd.h> on native Windows.
1829 (WINDOWS32): New macro.
1830 (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
1832 2008-09-13 Bruno Haible <bruno@clisp.org>
1834 * lib/glthread/cond.h [USE_SOLARIS_THREADS]
1835 (ETIMEDOUT): Remove macro.
1836 (glthread_cond_timedwait_multithreaded): New declaration.
1837 (glthread_cond_timedwait): Use it.
1838 * lib/glthread/cond.c [USE_SOLARIS_THREADS]
1839 (glthread_cond_timedwait_multithreaded): New function.
1841 2008-09-12 Paolo Bonzini <bonzini@gnu.org>
1843 * modules/poll-tests: Do not check for io.h.
1844 * tests/test-poll.c: Check for __MSVCRT__ instead.
1846 2008-09-12 Paolo Bonzini <bonzini@gnu.org>
1848 * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
1849 * modules/poll-tests: Add inet_pton, stdbool, sockets.
1850 * tests/test-poll.c: Use them. Use _pipe on Windows.
1852 2008-09-12 Paolo Bonzini <bonzini@gnu.org>
1854 * modules/poll-tests: New.
1855 * tests/test-poll.c: New.
1857 2008-09-12 Eric Blake <ebb9@byu.net>
1859 frexp: test for NetBSD failure on -0.0
1860 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
1861 not all, bugs from NetBSD 3.0 have been fixed.
1862 * doc/posix-functions/frexp.texi (frexp): Document bug.
1863 Reported by Thomas Klausner.
1865 signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
1866 * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
1868 Reported by Jonathan C. Patschke <jp@centtech.com>.
1870 2008-09-11 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
1872 * lib/glthread/cond.h: Use dummy implementation also if
1875 2008-09-11 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
1877 * modules/fnmatch-posix (License): Change to LGPLv2+.
1878 * modules/fnmatch-gnu (License): Likewise.
1880 2008-09-11 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
1882 * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
1884 2008-09-11 Jim Meyering <meyering@redhat.com>
1886 * users.txt: Add gtk-vnc.
1888 2008-09-08 Simon Josefsson <simon@josefsson.org>
1890 * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
1893 * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
1894 required for 16-bit and 8-bit rotates.
1895 * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
1896 rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
1897 UINT8_MAX instead of hard-coded constants.
1898 Suggested by Paul Eggert.
1900 2008-09-07 Bruno Haible <bruno@clisp.org>
1902 * tests/test-striconveh.c (main): Check behaviour when converting from
1905 Make striconveh work better with stateful encodings.
1906 * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
1907 that iconv does not increment the inptr when returning -1/EINVAL.
1909 2008-09-07 Bruno Haible <bruno@clisp.org>
1911 * build-aux/config.rpath: Update according to libtool-2.2.6.
1912 * build-aux/config.libpath: Likewise.
1914 2008-09-06 Bruno Haible <bruno@clisp.org>
1916 * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
1917 * lib/freadptr.c (freadptr): Likewise.
1918 * lib/freadseek.c (freadptrinc): Likewise.
1919 Reported by Simon Josefsson.
1921 2008-09-06 Bruno Haible <bruno@clisp.org>
1923 * modules/freadptr (License): Change to LGPLv2+.
1924 * modules/freadseek (License): Likewise.
1925 Suggested by Eric Blake.
1927 * modules/memchr2 (License): Change to LGPLv2+.
1928 Approved by Eric Blake.
1930 2008-09-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1931 Bruno Haible <bruno@clisp.org>
1933 Make gnulib-tool work with native 'sed' on AIX.
1934 * gnulib-tool (sed_noop): New variable.
1935 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
1936 func_add_or_update, func_create_testdir): Use it to initialize sed
1938 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
1940 2008-09-04 Albert Chin <bug-gnulib@mlists.thewrittenword.com>
1941 Bruno Haible <bruno@clisp.org>
1943 * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
1944 also works after #include directives.
1946 2008-09-04 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
1948 getdate.y: reject an out-of-range timezone value
1949 * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
1950 the range [-24...+24]. When specified with only one or two digits,
1951 * tests/test-getdate.c: Tests for the fix.
1952 * doc/getdate.texi: Document this change.
1954 2008-09-03 Bruno Haible <bruno@clisp.org>
1956 * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
1958 2008-09-02 Simon Josefsson <simon@josefsson.org>
1960 * lib/bitrotate.h (rotl64, rotr64): Add. Suggested by Bruce Korb
1961 <bruce.korb@gmail.com> with ideas from Ben Pfaff
1962 <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
1963 Blake <ebb9@byu.net>.
1965 * tests/test-bitrotate.c: Add more test vectors.
1967 2008-09-02 Eric Blake <ebb9@byu.net>
1969 vasnprintf-posix: handle large precision via %.*d
1970 * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
1971 when handling it ourselves.
1972 * tests/test-vasnprintf-posix.c (test_function): Add test.
1973 * tests/test-snprintf-posix.h (test_function): Likewise.
1974 * tests/test-sprintf-posix.h (test_function): Likewise.
1975 * tests/test-vasprintf-posix.c (test_function): Likewise.
1976 Reported by Alain Guibert.
1978 2008-09-01 Eric Blake <ebb9@byu.net>
1980 c-stack: make configure-time check more robust
1981 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
1982 successful sigaction call.
1983 Reported by Tom G. Christensen.
1985 2008-09-01 Bruno Haible <bruno@clisp.org>
1987 New module 'findprog-lgpl'.
1988 * modules/findprog-lgpl: New file.
1989 * lib/findprog-lgpl.c: New file.
1990 * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
1991 also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
1992 to decide whether to use strdup or xstrdup, concatenated_filename or
1993 xconcatenated_filename.
1995 2008-09-01 Bruno Haible <bruno@clisp.org>
1997 Split module 'concat-filename' into 'concat-filename' (LGPL) and
1998 'xconcat-filename' (GPL).
1999 * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
2000 (License): Change to LGPLv2+.
2001 * modules/xconcat-filename: New file.
2002 * lib/concat-filename.h (concatenated_filename): Change specification.
2003 (xconcatenated_filename): New declaration.
2004 * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
2005 (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
2007 * lib/xconcat-filename.c: New file.
2008 * NEWS: Mention the change.
2009 * lib/findprog.c: Include concat-filename.h, not filename.h.
2010 (find_in_path): Use xconcatenated_filename instead of
2011 concatenated_filename.
2012 * lib/javacomp.c: Include concat-filename.h, not filename.h.
2013 (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
2014 is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
2015 is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
2016 is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
2017 instead of concatenated_filename.
2018 * lib/javaexec.c: Include concat-filename.h, not filename.h.
2019 (execute_java_class): Use xconcatenated_filename instead of
2020 concatenated_filename.
2021 * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
2022 * modules/javacomp (Depends-on): Likewise.
2023 * modules/javaexec (Depends-on): Likewise.
2025 2008-09-01 Bruno Haible <bruno@clisp.org>
2027 Split module 'filename' into 'filename' and 'concat-filename'.
2028 * modules/filename: Keep only lib/filename.h.
2029 (License): Change to LGPLv2+.
2030 * modules/concat-filename: New file, extracted from modules/filename.
2031 * lib/filename.h (concatenated_filename): Remove declaration.
2032 * lib/concat-filename.h: New file, extracted from lib/filename.h.
2033 * lib/concat-filename.c: Include concat-filename.h.
2034 * NEWS: Mention the change.
2036 2008-09-01 Simon Josefsson <simon@josefsson.org>
2038 * lib/bitrotate.h (rotl8, rotr8): Add.
2040 * modules/bitrotate (configure.ac): Need
2041 AC_REQUIRE([AC_C_INLINE]).
2042 (Description): Mention stdint.h. Reported by Bruno Haible
2045 * lib/bitrotate.h (rotr16, rotl16): Fix mask value. Reported by
2046 Paolo Bonzini <bonzini@gnu.org>.
2048 2008-08-31 Bruno Haible <bruno@clisp.org>
2050 Assume Solaris specific bi-arch conventions on Solaris systems.
2051 * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
2052 mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
2053 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
2054 work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
2055 like acl_libdirstem.
2056 (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
2058 * NEWS: Mention the change.
2059 Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
2061 2008-08-31 Jim Meyering <meyering@redhat.com>
2063 * lib/strftime.h: Add comments describing the two added arguments.
2065 remove duplicate #include directives
2066 * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
2067 * lib/putenv.c: Remove duplicate #include <stdlib.h>.
2069 2008-08-31 Bruno Haible <bruno@clisp.org>
2071 New module 'sigpipe-die'.
2072 * modules/sigpipe-die: New file.
2073 * lib/sigpipe-die.h: New file.
2074 * lib/sigpipe-die.c: New file.
2075 * MODULES.html.sh (Signal handling): Add sigpipe-die.
2077 2008-08-31 Bruno Haible <bruno@clisp.org>
2079 Don't override previously installed signal handlers.
2080 * lib/fatal-signal.c (saved_sigactions): New variable.
2081 (uninstall_handlers): Reset the signal to the saved handler, not
2082 to SIG_DFL (except when ignored).
2083 (install_handlers): Save the previous handlers.
2085 2008-08-30 Bruno Haible <bruno@clisp.org>
2087 * gnulib-tool (func_reset_sigpipe): New function.
2088 (func_get_automake_snippet, func_modules_transitive_closure,
2089 func_import): Invoke it before a join command that reads from stdin,
2090 to avoid "echo: write error: Broken pipe" error messages on stderr.
2091 Reported by Sam Steingold <sds@gnu.org>.
2093 2008-08-30 Bruno Haible <bruno@clisp.org>
2095 * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
2096 Code copied from m4/open.m4.
2097 * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
2098 access and the filename ends in a slash. Code copied from lib/open.c.
2099 * doc/posix-functions/fopen.texi: Document bug with trailing slash.
2100 * tests/test-fopen.c (main): Check against bug with trailing slash.
2102 2008-08-29 Bruno Haible <bruno@clisp.org>
2104 Avoid some "gcc -pedantic" warnings.
2105 * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
2106 * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
2107 * lib/dirent.in.h: Likewise.
2108 * lib/fcntl.in.h: Likewise.
2109 * lib/float.in.h: Likewise.
2110 * lib/iconv.in.h: Likewise.
2111 * lib/inttypes.in.h: Likewise.
2112 * lib/locale.in.h: Likewise.
2113 * lib/math.in.h: Likewise.
2114 * lib/netinet_in.in.h: Likewise.
2115 * lib/search.in.h: Likewise.
2116 * lib/signal.in.h: Likewise.
2117 * lib/stdarg.in.h: Likewise.
2118 * lib/stdint.in.h: Likewise.
2119 * lib/stdio.in.h: Likewise.
2120 * lib/stdlib.in.h: Likewise.
2121 * lib/string.in.h: Likewise.
2122 * lib/strings.in.h: Likewise.
2123 * lib/sys_select.in.h: Likewise.
2124 * lib/sys_socket.in.h: Likewise.
2125 * lib/sys_stat.in.h: Likewise.
2126 * lib/sys_time.in.h: Likewise.
2127 * lib/sysexits.in.h: Likewise.
2128 * lib/time.in.h: Likewise.
2129 * lib/unistd.in.h: Likewise.
2130 * lib/wchar.in.h: Likewise.
2131 * lib/wctype.in.h: Likewise.
2132 * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
2133 * modules/fchdir (Makefile.am): Likewise.
2134 * modules/fcntl (Makefile.am): Likewise.
2135 * modules/float (Makefile.am): Likewise.
2136 * modules/iconv_open (Makefile.am): Likewise.
2137 * modules/inttypes (Makefile.am): Likewise.
2138 * modules/locale (Makefile.am): Likewise.
2139 * modules/math (Makefile.am): Likewise.
2140 * modules/netinet_in (Makefile.am): Likewise.
2141 * modules/search (Makefile.am): Likewise.
2142 * modules/signal (Makefile.am): Likewise.
2143 * modules/stdarg (Makefile.am): Likewise.
2144 * modules/stdint (Makefile.am): Likewise.
2145 * modules/stdio (Makefile.am): Likewise.
2146 * modules/stdlib (Makefile.am): Likewise.
2147 * modules/string (Makefile.am): Likewise.
2148 * modules/strings (Makefile.am): Likewise.
2149 * modules/sys_select (Makefile.am): Likewise.
2150 * modules/sys_socket (Makefile.am): Likewise.
2151 * modules/sys_stat (Makefile.am): Likewise.
2152 * modules/sys_time (Makefile.am): Likewise.
2153 * modules/sysexits (Makefile.am): Likewise.
2154 * modules/time (Makefile.am): Likewise.
2155 * modules/unistd (Makefile.am): Likewise.
2156 * modules/wchar (Makefile.am): Likewise.
2157 * modules/wctype (Makefile.am): Likewise.
2158 Reported by Reuben Thomas <rrt@sc3d.org>.
2160 2008-08-29 Bruno Haible <bruno@clisp.org>
2162 * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
2165 2008-08-29 Simon Josefsson <simon@josefsson.org>
2167 * MODULES.html.sh (Misc): Add bitrotate.
2169 * modules/bitrotate: New file.
2171 * lib/bitrotate.h: New file.
2173 * modules/bitrotate-tests: New file.
2175 * tests/test-bitrotate.c: New file.
2177 * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
2178 on the bitrotate module.
2180 * lib/arctwo.c: Use new bitrotate module.
2182 2008-08-29 Jim Meyering <meyering@redhat.com>
2184 bootstrap: merge changes from coreutils
2185 * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
2186 of copied files. Remove a kludge, now that this is fixed.
2187 * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
2188 * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
2189 * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
2191 2008-08-29 Bruno Haible <bruno@clisp.org>
2193 * MODULES.html.sh: Remove --cvs-urls option.
2195 2008-08-28 Jose E. Marchesi <jemarch@gnu.org> (tiny change)
2197 maint.mk: adjust to file name change
2198 * top/maint.mk: s/Makefile.cfg/cfg.mk/.
2200 2008-08-28 Jim Meyering <meyering@redhat.com>
2202 * modules/getndelim2 (License): Relicense to LGPLv2+.
2203 Approved by Richard Stallman for the version of 1995, and by
2204 Paul Eggert, Bruno Haible, Eric Blake for their contributions.
2206 2008-08-27 Paolo Bonzini <bonzini@gnu.org>
2208 * lib/getdelim.c (flockfile, funlockfile): Make all of them
2209 dummy if one is not available. Do not touch them if
2210 USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
2211 (getc_maybe_unlocked): New.
2212 * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
2214 2008-08-26 Eric Blake <ebb9@byu.net>
2216 doc/INSTALL: resync from autoconf
2217 * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
2218 (INSTALL_PRELUDE): Delete; this is done more efficiently by
2220 * install.texi [!autoconf]: ...here. Resync from autoconf.
2221 * INSTALL: Regenerate.
2222 * INSTALL.ISO: New file.
2223 * INSTALL.UTF-8: Likewise.
2225 2008-08-26 Jim Meyering <meyering@redhat.com>
2227 GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
2228 * top/GNUmakefile (_is-dist-target, _is-install-target): Make
2229 these definitions conditional, so that they may be overridden, too.
2231 2008-08-26 Bruno Haible <bruno@clisp.org>
2233 Generate INSTALL file variants with prettier quotes.
2234 * doc/Makefile (INSTALL_PRELUDE): New macro.
2236 (INSTALL.ISO, INSTALL.UTF-8): New rules.
2238 2008-08-26 Bruno Haible <bruno@clisp.org>
2240 Run makeinfo in an English locale.
2241 * doc/Makefile (MAKEINFO): New variable.
2243 2008-08-26 Bruno Haible <bruno@clisp.org>
2245 * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
2246 Suggested by Eric Blake.
2248 2008-08-25 Bruno Haible <bruno@clisp.org>
2250 * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
2252 2008-08-25 Eric Blake <ebb9@byu.net>
2254 c-stack: test that stack overflow can be caught
2255 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
2256 that platform allows handling stack overflow; at least OS/2 EMX
2257 has sigaltstack, but crashes before transferring control to
2258 handler on stack overflow.
2259 * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
2260 check for HAVE_STACK_OVERFLOW_HANDLING.
2261 Reported by Elbert Pol.
2263 2008-08-25 Bruno Haible <bruno@clisp.org>
2265 * doc/posix-functions/strftime.texi: Fix description of strftime
2268 2008-08-24 Bruno Haible <bruno@clisp.org>
2270 * tests/uniwidth/test-uc_width2.c: New file.
2271 * tests/uniwidth/test-uc_width2.sh: New file.
2272 * modules/uniwidth/width-tests (Files): Add the new files.
2273 (TESTS): Add uniwidth/test-uc_width2.sh.
2274 (TESTS_ENVIRONMENT): New variable.
2275 (check_PROGRAMS): Add test-uc_width2.
2276 (test_uc_width2_SOURCES): New variable.
2278 Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
2279 * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
2281 Reported by Alexander V. Lukyanov <lav@netis.ru>.
2283 2008-08-22 Eric Blake <ebb9@byu.net>
2285 test-lock, test-tls: mention why a test is skipped
2286 * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
2288 * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
2290 count-one-bits: relax license
2291 * modules/count-one-bits (License): Relicense to LGPLv2+.
2292 Suggested by Ludovic Courtès, approved by Ben Pfaff.
2294 2008-08-22 Andreas Schwab <schwab@suse.de>
2296 * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
2297 Remove spurious space in assignment.
2299 2008-08-21 Simon Josefsson <simon@josefsson.org>
2301 * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC. Reported by
2302 Paul Eggert <eggert@CS.UCLA.EDU>.
2304 2008-08-20 Paolo Bonzini <bonzini@gnu.org>
2306 * modules/gettext: Add m4/threadlib.m4.
2308 2008-08-19 Eric Blake <ebb9@byu.net>
2310 test-c-stack: fix compilation failure on FreeBSD 5.0
2311 * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
2312 headers before <sys/resource.h>.
2313 * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
2315 Reported by Nelson H. F. Beebe.
2317 strverscmp: migrate from "strverscmp.h" to <string.h>
2318 * modules/string (Makefile.am): Add new hooks.
2319 * modules/strverscmp (Files): Remove strverscmp.h.
2320 (Depends-on): Add string.
2321 (configure.ac): Add indicator.
2322 (Include): Mention new header.
2323 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
2325 * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
2327 * lib/strverscmp.h: Delete.
2328 * lib/string.in.h (strverscmp): Provide declaration, when needed.
2329 * tests/test-strverscmp.c (includes): Adjust client.
2330 * lib/check-version.c (includes): Likewise.
2331 * NEWS: Document the change.
2333 strverscmp: add unit test
2334 * modules/strverscmp-tests: New file.
2335 * tests/test-strverscmp.c: Likewise.
2337 2008-08-19 Simon Josefsson <simon@josefsson.org>
2339 * lib/gc-gnulib.c: Indentation cleanup. Add some comments
2340 regarding Windows crypto stuff, from Mono.
2342 2008-08-19 Adam Strzelecki <ono@java.pl> (tiny change)
2344 * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT. Try to use Intel CSP
2345 if present, for intel RND. Return error on failures.
2347 2008-08-18 Ben Pfaff <blp@gnu.org>
2349 gitlog-to-changelog: give better diagnostic for failed pipe-open
2350 * build-aux/gitlog-to-changelog: Improve error message: suggest
2351 that the version of Git may be too old.
2353 2008-08-18 Simon Josefsson <simon@josefsson.org>
2355 * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity. Use
2356 ISO 8601 format. Suggested by Greg Troxel <gdt@ir.bbn.com>.
2358 2008-08-18 Bruno Haible <bruno@clisp.org>
2360 * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
2363 2008-08-18 Bruno Haible <bruno@clisp.org>
2365 * lib/glthread/threadlib.c: Include <pthread.h>.
2367 2008-08-18 Bruno Haible <bruno@clisp.org>
2369 * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
2370 glthread_recursive_lock_* macros.
2371 * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
2374 2008-08-18 Bruno Haible <bruno@clisp.org>
2376 * lib/glthread/thread.c: Avoid forcing a context switch right after
2379 2008-08-17 Bruno Haible <bruno@clisp.org>
2381 * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
2382 * lib/glthread/thread.h: Provide Win32 specific implementation.
2383 * modules/thread (Files): Add lib/glthread/thread.c.
2384 (Depends-on): Add lock.
2385 (Makefile.am): Add glthread/thread.c to lib_SOURCES.
2387 2008-08-17 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
2390 * modules/yield: New file.
2391 * lib/glthread/yield.h: New file.
2392 * m4/yield.m4: New file.
2393 * MODULES.html.sh (Multithreading): Add yield.
2395 2008-08-17 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
2397 New module 'thread'.
2398 * modules/thread: New file.
2399 * lib/glthread/thread.h: New file.
2400 * m4/thread.m4: New file.
2401 * MODULES.html.sh (Multithreading): Add thread.
2403 2008-08-17 Bruno Haible <bruno@clisp.org>
2405 * lib/glthread/lock.h: Include <stdlib.h> always.
2406 * lib/glthread/tls.h: Likewise.
2407 * lib/glthread/cond.h: Likewise.
2409 2008-08-17 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
2412 * modules/cond: New file.
2413 * lib/glthread/cond.h: New file.
2414 * lib/glthread/cond.c: New file.
2415 * m4/cond.m4: New file.
2416 * MODULES.html.sh (Multithreading): Add cond.
2418 2008-08-16 Eric Blake <ebb9@byu.net>
2420 c-stack: fix regression on Irix 5.3 from 2008-06-21
2421 * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
2423 * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
2424 (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
2425 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
2426 * modules/signal (Makefile.am): Use the value.
2427 * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
2428 && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
2429 * doc/posix-headers/signal.texi (signal.h): Document this
2431 * doc/posix-functions/sigaction.texi (sigaction): Likewise.
2432 Reported by Tom G. Christensen.
2434 2008-08-17 Bruno Haible <bruno@clisp.org>
2436 New module 'threadlib'.
2437 * modules/threadlib: New file.
2438 * lib/glthread/threadlib.c: New file, extracted from
2439 lib/glthread/lock.c.
2440 * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
2442 * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
2443 gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
2444 * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
2446 (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
2447 (gl_DISABLE_THREADS): Remove macro.
2448 * modules/lock (Files): Remove build-aux/config.rpath.
2449 (Depends-on): Remove havelib. Add threadlib.
2450 (configure.ac-early): Remove section.
2451 * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
2452 * modules/tls (Depends-on): Remove lock. Add threadlib.
2453 (Link): New section, copied from threadlib.
2454 * MODULES.html.sh (Multithreading): Add threadlib.
2456 2008-08-14 Bruno Haible <bruno@clisp.org>
2458 * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
2459 glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
2460 glthread_rwlock_unlock, glthread_rwlock_destroy,
2461 glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
2462 glthread_recursive_lock_destroy): Define as macros always.
2463 * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
2465 (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
2466 (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
2467 (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
2468 (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
2469 (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
2470 (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
2471 (glthread_recursive_lock_lock_func): Renamed from
2472 glthread_recursive_lock_lock.
2473 (glthread_recursive_lock_unlock_func): Renamed from
2474 glthread_recursive_lock_unlock.
2475 (glthread_recursive_lock_destroy_func): Renamed from
2476 glthread_recursive_lock_destroy.
2478 2008-08-14 Bruno Haible <bruno@clisp.org>
2480 * lib/glthread/lock.h: Renamed from lib/lock.h.
2481 * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
2482 * lib/glthread/tls.h: Renamed from lib/tls.h.
2483 * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
2484 * lib/fstrcmp.c: Update includes.
2485 * lib/strsignal.c: Update includes.
2486 * modules/lock (Files, Makefile.am): Update.
2487 (Include): Change to "glthread/lock.h".
2488 * modules/tls (Files, Makefile.am): Update.
2489 (Include): Change to "glthread/tls.h".
2490 * tests/test-lock.c: Update includes.
2491 * tests/test-tls.c: Update includes.
2492 * NEWS: Mention the renamed header files.
2494 2008-08-11 Jim Meyering <meyering@redhat.com>
2496 * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
2498 2008-08-11 Eric Blake <ebb9@byu.net>
2500 test-c-stack: avoid C99-ism
2501 * tests/test-c-stack.c (main): Fix whitespace, move declaration
2503 Reported by Alain Guibert.
2505 2008-08-10 Jim Meyering <meyering@redhat.com>
2507 ensure that return value of uinttostr et al are not ignored
2508 * lib/inttostr.h (__GNUC_PREREQ): Define.
2509 (__attribute_warn_unused_result__): Define.
2510 (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
2512 2008-08-07 Paolo Bonzini <bonzini@gnu.org>
2514 * lib/lock.c (glthread_recursive_lock_init_multithreaded)
2515 [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
2517 2008-08-07 Jim Meyering <meyering@redhat.com>
2519 * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
2521 * modules/mkstemp (License): Relicense under LGPLv2+.
2522 * modules/tempname (License): Likewise.
2524 2008-08-06 Bruno Haible <bruno@clisp.org>
2526 * lib/poll.c (poll): Further micro-optimization.
2528 2008-08-06 Jim Meyering <meyering@redhat.com>
2530 inet_pton.c: use locale-independent tolower
2531 * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
2532 (inet_pton6): Use c_tolower rather than tolower.
2533 * modules/inet_pton (Depends-on): Add c-ctype.
2535 2008-08-06 Paolo Bonzini <bonzini@gnu.org>
2537 * lib/poll.c (poll): Avoid division when timeout is 0, cache
2538 _SC_OPEN_MAX, avoid repeated access to errno. Check for nfd < 0.
2540 2008-08-06 Jim Meyering <meyering@redhat.com>
2542 * modules/inet_pton (License): Relicense under LGPLv2+.
2544 2008-08-03 Bruno Haible <bruno@clisp.org>
2546 Additional non-aborting API for lock and tls.
2547 * lib/lock.h: Include <errno.h>.
2548 (glthread_lock_init): New macro/function.
2549 (gl_lock_init): Define as wrapper around glthread_lock_init.
2550 (glthread_lock_lock): New macro/function.
2551 (gl_lock_lock): Define as wrapper around glthread_lock_lock.
2552 (glthread_lock_unlock): New macro/function.
2553 (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
2554 (glthread_lock_destroy): New macro/function.
2555 (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
2556 (glthread_rwlock_init): New macro/function.
2557 (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
2558 (glthread_rwlock_rdlock): New macro/function.
2559 (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
2560 (glthread_rwlock_wrlock): New macro/function.
2561 (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
2562 (glthread_rwlock_unlock): New macro/function.
2563 (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
2564 (glthread_rwlock_destroy): New macro/function.
2565 (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
2566 (glthread_recursive_lock_init): New macro/function.
2567 (gl_recursive_lock_init): Define as wrapper around
2568 glthread_recursive_lock_init.
2569 (glthread_recursive_lock_lock): New macro/function.
2570 (gl_recursive_lock_lock): Define as wrapper around
2571 glthread_recursive_lock_lock.
2572 (glthread_recursive_lock_unlock): New macro/function.
2573 (gl_recursive_lock_unlock): Define as wrapper around
2574 glthread_recursive_lock_unlock.
2575 (glthread_recursive_lock_destroy): New macro/function.
2576 (gl_recursive_lock_destroy): Define as wrapper around
2577 glthread_recursive_lock_destroy.
2578 (glthread_once): New macro/function.
2579 (gl_once): Define as wrapper around glthread_once.
2580 Update function declarations.
2581 * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
2582 glthread_rwlock_init. Return error code.
2583 (glthread_rwlock_rdlock_multithreaded): Renamed from
2584 glthread_rwlock_rdlock. Return error code.
2585 (glthread_rwlock_wrlock_multithreaded): Renamed from
2586 glthread_rwlock_wrlock. Return error code.
2587 (glthread_rwlock_unlock_multithreaded): Renamed from
2588 glthread_rwlock_unlock. Return error code.
2589 (glthread_rwlock_destroy_multithreaded): Renamed from
2590 glthread_rwlock_destroy. Return error code.
2591 (glthread_recursive_lock_init_multithreaded): Renamed from
2592 glthread_recursive_lock_init. Return error code.
2593 (glthread_recursive_lock_lock_multithreaded): Renamed from
2594 glthread_recursive_lock_lock. Return error code.
2595 (glthread_recursive_lock_unlock_multithreaded): Renamed from
2596 glthread_recursive_lock_unlock. Return error code.
2597 (glthread_recursive_lock_destroy_multithreaded): Renamed from
2598 glthread_recursive_lock_destroy. Return error code.
2599 (glthread_once_call): Make static.
2600 (glthread_once_multithreaded): Renamed from glthread_once.
2601 * lib/tls.h: Include <errno.h>.
2602 (glthread_tls_key_init): New macro/function.
2603 (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
2604 (glthread_tls_set): New macro/function.
2605 (gl_tls_set): Define as wrapper around glthread_tls_set.
2606 (glthread_tls_key_destroy): New macro/function.
2607 (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
2608 Update function declarations.
2609 * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
2611 Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
2613 2008-08-04 Eric Blake <ebb9@byu.net>
2615 gnumakefile: use space, not TAB, outside of targets
2616 * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
2618 2008-08-02 Jim Meyering <meyering@redhat.com>
2620 getdate.y: avoid locale-dependent date parsing failure
2621 In Turkish locales, getdate would fail to recognize keywords
2622 containing a lowercase "i". The solution is not to rely on
2623 locale-sensitive case-conversion.
2624 * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
2625 (lookup_word): Use c_toupper in place of toupper.
2626 (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
2627 Reported by Vefa Bicakci <bicave@superonline.com> in
2628 <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
2629 * modules/getdate (Depends-on): Add c-ctype.
2631 2008-08-02 Bruno Haible <bruno@clisp.org>
2633 * gnulib-tool (func_import): When updating or creating a .gitignore
2634 file, prepend each added line with a slash, and ignore leading slashes
2635 from the existing lines.
2636 Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
2638 2008-08-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2640 Portability fix for GNU make 3.79.1.
2641 * top/GNUmakefile: Avoid 'else COND', which older GNU make
2642 versions do not understand.
2644 2008-08-01 Bruno Haible <bruno@clisp.org>
2646 Work around bug of HP-UX 10.20 cc with -0.0 literal.
2647 * tests/test-isnanf.h (zero): New variable.
2648 (main): Avoid literal -0.0f.
2649 * tests/test-isnand.h (zero): New variable.
2650 (main): Avoid literal -0.0.
2651 * tests/test-isnanl.h (zero): New variable.
2652 (main): Avoid literal -0.0L.
2653 * tests/test-isnan.c (zerof, zerod, zerol): New variables.
2654 (test_float, test_double, test_long_double): Avoid literals -0.0f,
2656 * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
2657 (test_signbitd): Avoid literal -0.0.
2658 (test_signbitl): Avoid literal -0.0L.
2659 * tests/test-ceilf1.c (zero): New variable.
2660 (main): Avoid literal -0.0f.
2661 * tests/test-ceill.c (zero): New variable.
2662 (main): Avoid literal -0.0L.
2663 * tests/test-floorf1.c (zero): New variable.
2664 (main): Avoid literal -0.0f.
2665 * tests/test-floorl.c (zero): New variable.
2666 (main): Avoid literal -0.0L.
2667 * tests/test-roundf1.c (zero): New variable.
2668 (main): Avoid literal -0.0f.
2669 * tests/test-round1.c (zero): New variable.
2670 (main): Avoid literal -0.0.
2671 * tests/test-roundl.c (zero): New variable.
2672 (main): Avoid literal -0.0L.
2673 * tests/test-truncf1.c (zero): New variable.
2674 (main): Avoid literal -0.0f.
2675 * tests/test-trunc1.c (zero): New variable.
2676 (main): Avoid literal -0.0.
2677 * tests/test-truncl.c (zero): New variable.
2678 (main): Avoid literal -0.0L.
2679 * tests/test-frexp.c (zero): New variable.
2680 (main): Avoid literal -0.0.
2681 * tests/test-frexpl.c (zero): New variable.
2682 (main): Avoid literal -0.0L.
2683 * tests/test-ldexpl.c (zero): New variable.
2684 (main): Avoid literal -0.0L.
2685 * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
2686 (zerod, zerol): New variables.
2687 (test_function): Avoid literals -0.0, -0.0L.
2688 * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
2689 (zerod, zerol): New variables.
2690 (test_function): Avoid literals -0.0, -0.0L.
2691 * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
2692 (zerod, zerol): New variables.
2693 (test_function): Avoid literals -0.0, -0.0L.
2694 * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
2695 (zerod, zerol): New variables.
2696 (test_function): Avoid literals -0.0, -0.0L.
2697 * tests/test-strtod.c (zero): New variable.
2698 (main): Avoid literal -0.0.
2699 Reported by Jonathan C. Patschke <jp@centtech.com>.
2701 2008-07-31 Jim Meyering <meyering@redhat.com>
2703 sha256.h: correct definition of SHA224_DIGEST_SIZE
2704 * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
2705 Reported by Paulie Pena IV <paulie4@gmail.com>.
2706 Define as 224 / 8, rather than as a literal.
2707 (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
2708 * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
2709 (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
2711 2008-07-31 Bruno Haible <bruno@clisp.org>
2713 * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
2714 on HP-UX 10.20 with "cc -Ae". Fix second conditional.
2715 Reported by Jonathan Patschke <jp@centtech.com>.
2717 2008-07-31 Bruno Haible <bruno@clisp.org>
2719 * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
2720 Reported by Paolo Bonzini <bonzini@gnu.org>.
2722 2008-07-30 Eric Blake <ebb9@byu.net>
2724 test-strtod: allow compilation without -lm
2725 * tests/test-strtod.c (main): Avoid link dependence on fabs.
2726 Reported by Dennis Clarke <blastwave@gmail.com>.
2728 2008-07-28 Jim Meyering <meyering@redhat.com>
2730 bootstrap: work also when there are no .po files in po/
2731 * build-aux/bootstrap (update_po_files): Complete the change
2732 that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
2734 2008-07-27 Jim Meyering <meyering@redhat.com>
2736 * users.txt: Add zile.
2738 2008-07-26 Ben Pfaff <blp@gnu.org>
2740 Add missing dependencies on new m4/exponent[fdl].m4 files.
2741 * modules/isnanf-nolibm: Add m4/exponentf.m4.
2742 * modules/isnand-nolibm: Add m4/exponentd.m4.
2743 * modules/isnanl-nolibm: Add m4/exponentl.m4.
2744 * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
2745 m4/isnan[fdl].m4, because the macros actually used moved.
2746 Reported by Jim Meyering.
2748 2008-07-14 Ben Pfaff <blp@gnu.org>
2751 * lib/isinf.c: New file.
2752 * lib/math.in.h: Define isinf macro if we have decided to replace
2754 * m4/isinf.m4: New file.
2755 * m4/math_h.m4: Initialize and substitute variables for isinf
2757 * modules/isinf: New file.
2758 * modules/isinf-tests: New file.
2759 * modules/math: Add substitutions for new module.
2760 * tests/test-isinf.c: New file.
2761 * doc/posix-functions/isinf.texi: Mention new module.
2762 * MODULES.html.sh: Mention new module.
2764 2008-07-14 Ben Pfaff <blp@gnu.org>
2766 Factor out some macros for use by additional modules.
2767 * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
2769 * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
2771 * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
2773 * m4/exponentf.m4: New file.
2774 * m4/exponentd.m4: New file.
2775 * m4/exponentl.m4: New file.
2776 * modules/isnanf: Use new file m4/exponentf.m4.
2777 * modules/isnand: Use new file m4/exponentd.m4.
2778 * modules/isnanl: Use new file m4/exponentl.m4.
2780 2008-07-23 Ulrich Drepper <drepper@redhat.com>
2782 mktime.c: normalize tp->tm_isdst value to -1/0/1.
2783 * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
2784 Reported by Michael Ringe <Michael.Ringe@gmx.de> in
2785 <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
2787 * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
2788 readlink on platforms without PATH_MAX.
2790 2008-07-21 Eric Blake <ebb9@byu.net>
2792 Warn, not fail, on stale version.
2793 * top/GNUmakefile (_curr-ver): Tone down previous patch.
2795 Don't allow installation with stale devel version number.
2796 * top/GNUmakefile (_is-install-target): New macro.
2797 (_curr-ver): Forbid installation with stale version number.
2799 2008-07-20 Bruno Haible <bruno@clisp.org>
2801 * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
2803 * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
2805 2008-07-20 Bruno Haible <bruno@clisp.org>
2807 * lib/c-stack.h (c_stack_action): Add documentation.
2808 * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
2810 2008-07-20 Bruno Haible <bruno@clisp.org>
2812 * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
2813 * modules/readlink (License): Likewise.
2815 2008-07-17 Eric Blake <ebb9@byu.net>
2817 * modules/c-stack (Link): Fix typo.
2819 Make c-stack use libsigsegv, when available.
2820 * modules/c-stack (Depends-on): Add libsigsegv.
2821 * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
2823 * lib/c-stack.c (SIGSTKSZ): Define fallback.
2824 (segv_handler, overflow_handler, c_stack_action)
2825 [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
2826 implementation when libsigsegv is available, but only when using
2827 the library is necessary.
2828 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
2829 comment, explaining why XSI check fails on Linux.
2830 (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
2831 * tests/test-c-stack2.sh: Tweak skip message.
2832 * NEWS: Document new link-time requirements.
2834 2008-07-16 Eric Blake <ebb9@byu.net>
2836 c-stack: Expose false positives when not using libsigsegv.
2837 * modules/c-stack-tests (Files): Expand test.
2838 * tests/test-c-stack.c (main): Add means to conditionally trigger
2839 non-overflow SIGSEGV.
2840 * tests/test-c-stack2.sh: New file.
2842 2008-07-14 Bruno Haible <bruno@clisp.org>
2844 * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
2845 Reported by Eric Blake.
2847 2008-07-14 Sam Steingold <sds@gnu.org>
2848 Bruno Haible <bruno@clisp.org>
2850 New module libsigsegv.
2851 * modules/libsigsegv: New file.
2852 * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
2854 * MODULES.html.sh (Signal handling): New section.
2856 2008-07-14 Bruno Haible <bruno@clisp.org>
2858 * modules/unictype/ctype-* (Description): Add the word "function".
2859 Improves the resulting doc in MODULES.html.
2861 2008-07-12 Ben Pfaff <blp@gnu.org>
2863 Add longlong module.
2864 * modules/longlong: New file.
2866 2008-07-12 Bruno Haible <bruno@clisp.org>
2868 * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
2871 2008-07-10 Ben Pfaff <blp@gnu.org>
2874 * doc/posix-functions/isnan.texi: Mention new module.
2875 * lib/math.in.h: Define isnan macro if we have decided to replace
2877 * m4/isnan.m4: New file.
2878 * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
2879 macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
2881 (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
2883 * m4/math_h.m4: Initialize and substitute variables for isnan
2885 * modules/isnan: New file.
2886 * modules/isnan-tests: New file.
2887 * modules/math: Add substitutions for new module.
2888 * tests/test-isnan.c: New file.
2889 * MODULES.html.sh: Mention new module.
2891 2008-07-10 Ben Pfaff <blp@gnu.org>
2894 * lib/isnanf.m4: New file.
2895 * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
2896 (gl_HAVE_ISNANF_IN_LIBM): New macro.
2897 (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
2898 gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
2899 * modules/isnanf: New file.
2900 * modules/isnanf-tests: New file.
2901 * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
2903 * tests/test-isnanf-nolibm.c: factored most of its contents into
2904 new file tests/test-isnanf.h.
2905 * tests/test-isnanf.h: New file.
2906 * tests/test-isnanf.c: New file.
2907 * MODULES.html.sh: Mention new module.
2908 * doc/glibc-functions/isnanf.texi: Mention new module.
2910 2008-07-10 Ben Pfaff <blp@gnu.org>
2913 * lib/isnand.h: New file.
2914 * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
2915 (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
2916 gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
2918 (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
2919 gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
2920 (gl_HAVE_ISNAND_IN_LIBM): New macro.
2921 * modules/isnand: New file.
2922 * modules/isnand-tests: New file.
2923 * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
2925 * tests/test-isnand-nolibm.c: factored most of its contents into
2926 new file tests/test-isnand.h.
2927 * tests/test-isnand.h: New file.
2928 * tests/test-isnand.c: New file.
2929 * MODULES.html.sh: Mention new module.
2931 2008-07-10 Ben Pfaff <blp@gnu.org>
2933 * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
2934 * lib/isnand.h: Rename lib/isnand-nolibm.h.
2935 * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
2936 * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
2937 * modules/isnanf-nolibm: Update references to renamed files.
2938 * modules/isnand-nolibm: Likewise.
2939 * modules/isnanf-nolibm-tests: Likewise.
2940 * modules/isnand-nolibm-tests: Likewise.
2941 * lib/frexp.c: Likewise.
2942 * lib/isfinite.c: Likewise.
2943 * lib/signbitd.c: Likewise.
2944 * lib/signbitf.c: Likewise.
2945 * lib/vasnprintf.c: Likewise.
2946 * tests/test-ceilf1.c: Likewise.
2947 * tests/test-ceilf2.c: Likewise.
2948 * tests/test-floorf1.c: Likewise.
2949 * tests/test-floorf2.c: Likewise.
2950 * tests/test-frexp.c: Likewise.
2951 * tests/test-round1.c: Likewise.
2952 * tests/test-round2.c: Likewise.
2953 * tests/test-roundf1.c: Likewise.
2954 * tests/test-strtod.c: Likewise.
2955 * tests/test-trunc1.c: Likewise.
2956 * tests/test-trunc2.c: Likewise.
2957 * tests/test-truncf1.c: Likewise.
2958 * tests/test-truncf2.c: Likewise.
2959 * NEWS: Mention the renamed header files.
2961 2008-07-11 Jim Meyering <meyering@redhat.com>
2963 vc-list-files: make the last-resort awk code more portable
2964 * build-aux/vc-list-files: Don't rely on awk's "sub" command.
2965 /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
2966 does not support it.
2968 2008-07-10 Eric Blake <ebb9@byu.net>
2970 Work with tar's bootstrap.
2971 * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
2972 where LIBSOURCES_DIR contains .#bootmp but must not be treated as
2975 2008-07-09 Jim Meyering <meyering@redhat.com>
2977 posix-shell.m4: fix typo that made this test malfunction
2978 * m4/posix-shell.m4: Remove capitalization in variable name.
2980 2008-07-08 Bruno Haible <bruno@clisp.org>
2982 * m4/onceonly.m4: Update comments.
2983 Reported by Ben Pfaff <blp@cs.stanford.edu>.
2985 2008-07-04 Jim Meyering <meyering@redhat.com>
2987 * users.txt: Add vc-dwim.
2988 (bison, coreutils): Use the gitweb URL.
2990 2008-07-03 Jim Meyering <meyering@redhat.com>
2992 * users.txt: Add libffcall. From Sam Steingold.
2994 2008-07-03 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
2996 getdate.y: do not ignore TZ with relative day, month or year offset
2997 * lib/getdate.y (get_date): Move the tz-handling block to follow the
2998 relative-date-handling, since otherwise, the latter would clobber the
2999 sole output (an updated Start value) of the tz-handling block.
3000 * tests/test-getdate.c: Tests for the fix
3002 2008-07-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3004 Recognize 'foo_LIBRARIES += libgnu.a'.
3005 * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
3006 makefile snippet has already specified an installation location,
3009 2008-07-02 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
3011 getdate.y: factor out common actions
3012 * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
3013 Use them in place of open-coded actions.
3015 2008-07-01 Simon Josefsson <simon@josefsson.org>
3017 Add self-test for getdate module.
3018 * modules/getdate-tests: New file.
3019 * tests/test-getdate.c: New file.
3021 2008-06-29 Bruno Haible <bruno@clisp.org>
3023 * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
3025 Reported by Sylvain Beucler <beuc@beuc.net>.
3027 2008-06-29 Bruno Haible <bruno@clisp.org>
3029 * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
3030 * m4/gnulib-tool.m4: Update to match current gnulib-tool.
3032 2008-06-29 Bruno Haible <bruno@clisp.org>
3034 * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
3036 Reported by Sylvain Beucler <beuc@beuc.net>.
3038 2008-06-26 Jim Meyering <meyering@redhat.com>
3040 make several modules depend on the "open" module
3041 This provides slightly increased consistency when opening-for-write
3042 the name of a non-directory spelled with a trailing slash.
3043 * modules/chdir-safer: Likewise.
3044 * modules/chown: Likewise.
3045 * modules/clean-temp: Likewise.
3046 * modules/copy-file: Likewise.
3047 * modules/fchdir: Likewise.
3048 * modules/fcntl-safer: Likewise.
3049 * modules/pipe: Likewise.
3050 * modules/utime: Likewise.
3051 Prompted by Eric Blake and Bruno Haible.
3053 2008-06-24 Andreas Schwab <schwab@suse.de>
3055 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
3056 literals can be used as initializers for global variables.
3058 2008-06-23 Eric Blake <ebb9@byu.net>
3060 Make gnulib-cache.m4 easier to diff.
3061 * gnulib-tool (func_import): Allow newlines when reading cached
3062 gl_MODULES, and generate newlines when creating gnulib-cache.m4.
3064 2008-06-23 Bruno Haible <bruno@clisp.org>
3066 * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
3067 (gl_PREREQ_SIGPROCMASK): Don't invoke it.
3068 * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
3069 m4/signalblocking.m4.
3070 (gl_PREREQ_SIGACTION): Don't invoke it.
3071 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
3072 gl_PREREQ_SIG_HANDLER_H.
3073 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
3074 Don't check for sigaction here.
3076 2008-06-23 Bruno Haible <bruno@clisp.org>
3078 * lib/fatal-signal.c (fatal_signal_handler): Update comment.
3079 (install_handlers): Don't set the SA_RESETHAND flag.
3081 2008-06-23 Bruno Haible <bruno@clisp.org>
3083 * m4/sigaction.m4: Comment fixes.
3084 * lib/signal.in.h: Likewise.
3086 2008-06-23 Eric Blake <ebb9@byu.net>
3089 * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
3091 Avoid SA_ namespace.
3092 * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
3093 Reported by Ralf Wildenhues.
3095 Avoid test failure due to SA_RESTORER.
3096 * tests/test-sigaction.c (SA_MASK): New macro.
3097 (main): Avoid failing due to extension flags being set.
3098 Reported by Jim Meyering.
3100 Revert use of sig-handler.h in sigprocmask.c.
3101 * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
3102 it requires the existence of struct sigaction.
3103 * lib/sigprocmask.c (handler_t): Restore typedef.
3104 (rpl_signal, old_handlers): Use local type.
3106 2008-06-22 Bruno Haible <bruno@clisp.org>
3108 * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
3110 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
3112 2008-06-22 Bruno Haible <bruno@clisp.org>
3114 * doc/posix-functions/siginterrupt.texi: Move note.
3116 * lib/signal.in.h (SA_RESTART): New macro.
3117 * lib/sigaction.c: Update comment.
3119 * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
3121 * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
3122 (gl_PREREQ_SIGPROCMASK): Invoke it.
3123 * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
3125 * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
3127 * lib/sigprocmask.c: Update a comment.
3129 2008-06-21 Eric Blake <ebb9@byu.net>
3131 Use sigaction module rather than signal().
3132 * modules/c-stack (Depends-on): Add sigaction.
3133 * modules/fatal-signal (Depends-on): Likewise.
3134 * modules/nanosleep (Depends-on): Likewise.
3135 * modules/sigprocmask (Files): Add sig-handler.h.
3136 * modules/sigaction (Files): Likewise.
3137 * lib/sig-handler.h (get_handler): New file, suggested by Paul
3139 * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
3140 (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
3141 * lib/fatal-signal.c (uninstall_handlers, install_handlers)
3142 (init_fatal_signals): Likewise.
3143 * lib/nanosleep.c (rpl_nanosleep): Likewise.
3144 (siginterrupt): Delete fallback.
3145 * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
3147 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
3150 New module sigaction, for mingw.
3151 * modules/sigaction: New module...
3152 * modules/sigaction-tests: ...and its test.
3153 * m4/sigaction.m4: New file.
3154 * lib/sigaction.c: Likewise.
3155 * tests/test-sigaction.c: Likewise.
3156 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
3157 * modules/signal (Makefile.am): Likewise.
3158 * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
3160 * doc/posix-headers/signal.texi (signal.h): Mention provided
3162 * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
3163 that sigaction is preferable.
3164 * doc/posix-functions/sigaction.texi (sigaction): Mention new
3166 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
3169 Improve robustness of sigprocmask by overriding signal.
3170 * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
3172 * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
3173 (SIGKILL, SIGSTOP): Provide fallbacks.
3174 (rpl_signal): Implement.
3175 (old_handlers, blocked_set): Mark volatile, since sigprocmask and
3176 signal can be called inside handlers.
3178 Fix nanosleep module on mingw.
3179 * modules/nanosleep (Depends-on): Add sys_select.
3180 * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
3182 Fix licensing of sigprocmask.
3183 * modules/raise (License): Relicense as LGPL.
3185 2008-06-21 Bruno Haible <bruno@clisp.org>
3187 * lib/propername.c (proper_name_utf8): Don't use the transliterated
3188 result if it contains question marks.
3189 Reported by Michael Geng <linux@michaelgeng.de>.
3191 2008-06-19 Bruno Haible <bruno@clisp.org>
3194 * doc/gnulib.texi: Include updated-stamp.texi.
3195 * doc/Makefile (GNULIB_TEXI_FILES): New variable.
3196 (updated-stamp.texi): New rule.
3197 (gnulib.info): Depend on it.
3198 * doc/.gitignore: Add updated-stamp.texi.
3199 Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
3201 2008-06-19 Bruno Haible <bruno@clisp.org>
3203 * doc/Makefile (gnulib.info): Update and simplify dependencies.
3204 Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
3206 2008-06-19 Eric Blake <ebb9@byu.net>
3208 Fix VPATH 'make dist' with GNU make and non-VCS tarball.
3209 * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
3210 Reported by Stepan Kasal.
3212 2008-06-18 Bruno Haible <bruno@clisp.org>
3214 * lib/fatal-signal.c (init_fatal_signals): Add comment.
3215 Reported by Eric Blake.
3217 2008-06-18 Eric Blake <ebb9@byu.net>
3219 Work around cygwin 1.5.25 strsignal bug.
3220 * tests/test-strsignal.c: Allow for const char *.
3221 * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
3223 2008-06-18 Simon Josefsson <simon@josefsson.org>
3225 * users.txt: Update URL to article and add author/date
3228 2008-06-17 Bruno Haible <bruno@clisp.org>
3230 New macro gl_DISABLE_THREADS.
3231 * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
3232 if the user did not pass --enable-threads or --disable-threads option.
3233 (gl_DISABLE_THREADS): New macro.
3234 Reported by Eric Blake <ebb9@byu.net>.
3236 2008-06-17 Bruno Haible <bruno@clisp.org>
3238 * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
3239 when the macro ignores it.
3240 Based on a patch by Eric Blake <ebb9@byu.net>.
3242 2008-06-17 Bruno Haible <bruno@clisp.org>
3244 * modules/tls (License): Change to LGPLv2+.
3245 Reported by Eric Blake.
3247 2008-06-17 Eric Blake <ebb9@byu.net>
3249 Simplify c-stack prerequisites.
3250 * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
3251 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
3252 no longer requires <ucontext.h> to exist. Optimize setrlimit
3254 (gl_PREREQ_C_STACK): Remove check for unused getcontext and
3257 Move c-stack test into testsuite.
3258 * modules/c-stack-tests: New file.
3259 * lib/c-stack.c [DEBUG]: Move test program...
3260 * tests/test-c-stack.c: ...into this new file. Skip rather than
3261 fail test if sigaltstack is lacking.
3262 * tests/test-c-stack.sh: New driver file.
3264 2008-06-16 Eric Blake <ebb9@byu.net>
3266 Use raise module consistently.
3267 * modules/fatal-signal (Depends-on): Add raise.
3268 * modules/sigprocmask (Depends-on): Likewise.
3269 * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
3270 * lib/sigprocmask.c (sigprocmask): Likewise.
3271 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
3272 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
3274 Fix compliance bug in sigpending.
3275 * lib/sigprocmask.c (sigpending): Return pending array via
3276 parameter, not return value.
3278 2008-06-14 Eric Blake <ebb9@byu.net>
3280 Improve obstack-printf test code.
3281 * tests/test-obstack-printf.c (test_function): Fix comment, and
3282 simplify usage of obstack_* in macros. Add a test for coverage.
3283 Reported by Bruno Haible.
3285 2008-06-14 Bruno Haible <bruno@clisp.org>
3287 * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
3288 array size as a constant, not as a const variable.
3289 * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
3290 AC_USE_SYSTEM_EXTENSIONS.
3291 * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
3292 Test whether the obstack_printf function actually exists.
3293 * modules/obstack-printf (Depends-on): Add extensions.
3294 (Include): Remove obstack.h.
3295 * modules/obstack-printf-posix (Depends-on): Add extensions.
3296 (Include): Remove obstack.h.
3298 2008-06-13 Eric Blake <ebb9@byu.net>
3300 Add obstack-printf and obstack-printf-posix modules.
3301 * modules/obstack-printf: New file.
3302 * modules/obstack-printf-posix: Likewise.
3303 * MODULES.html.sh (Misc): Mention them.
3304 * doc/glibc-functions/obstack_printf.texi (obstack_printf):
3306 * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
3308 * modules/stdio (Makefile.am): Accomodate new modules.
3309 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
3310 * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
3312 * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
3314 * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
3315 (gl_REPLACE_OBSTACK_PRINTF): New macros
3316 * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
3317 * tests/test-obstack-printf.c: New file.
3318 * modules/obstack-printf-tests: Likewise.
3319 * modules/obstack-printf-posix-tests: Likewise.
3321 2008-06-11 Bruno Haible <bruno@clisp.org>
3323 * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
3324 * lib/open.c: Include errno.h.
3325 (open): Fail when attempting to write to a file that has a trailing
3327 * tests/test-open.c (main): Test against trailing slash bug.
3328 * doc/posix-functions/open.texi: Mention the trailing slash bug.
3330 2008-06-10 Bruno Haible <bruno@clisp.org>
3332 * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
3333 for $? to work inside the trap command, with various /bin/sh-s.
3334 * tests/test-vc-list-files-cvs.sh: Likewise.
3336 2008-06-10 Bruno Haible <bruno@clisp.org>
3338 * lib/acl-internal.h: Don't include gettext.h here.
3339 * lib/set-mode-acl.c: Include gettext.h here.
3340 * lib/copy-acl.c: Likewise.
3342 2008-06-10 Bruno Haible <bruno@clisp.org>
3344 * lib/wait-process.h (wait_subprocess): Add termsigp argument.
3345 * lib/wait-process.c (wait_subprocess): Likewise.
3346 * lib/execute.h (execute): Add termsigp argument.
3347 * lib/execute.c (execute): Likewise.
3348 * lib/csharpcomp.c (compile_csharp_using_pnet,
3349 compile_csharp_using_mono, compile_csharp_using_sscli): Update.
3350 * lib/csharpexec.c (execute_csharp_using_pnet,
3351 execute_csharp_using_mono, execute_csharp_using_sscli): Update.
3352 * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
3353 compile_using_javac, compile_using_jikes, is_envjavac_gcj,
3354 is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
3355 is_jikes_present): Update.
3356 * lib/javaexec.c (execute_java_class): Update.
3357 * lib/javaversion.c (execute_and_read_line): Update.
3358 * NEWS: Document the changes.
3359 Reported by Eric Blake.
3361 2008-06-10 Eric Blake <ebb9@byu.net>
3363 Add missing include.
3364 * tests/test-strstr.c (includes): Add <signal.h>.
3365 * tests/test-strcasestr.c (includes): Likewise.
3366 * tests/test-memmem.c (includes): Likewise.
3368 2008-06-10 Bruno Haible <bruno@clisp.org>
3370 * lib/wait-process.c (wait_subprocess): Add an assertion.
3372 2008-06-10 Bruno Haible <bruno@clisp.org>
3374 * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
3376 2008-06-10 Bruno Haible <bruno@clisp.org>
3378 * tests/test-memmem.c (main): Reset SIGALRM to default handling before
3380 * tests/test-strcasestr.c (main): Likewise.
3381 * tests/test-strstr.c (main): Likewise.
3383 2008-06-09 Bruno Haible <bruno@clisp.org>
3385 Work around the Solaris 10 ACE ACLs ABI change.
3386 * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
3387 declare if ACL_NO_TRIVIAL is present.
3388 (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
3389 NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
3390 NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
3391 * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
3392 define if ACL_NO_TRIVIAL is present.
3393 (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
3394 and use the current ABI.
3395 (file_has_acl): Use same #if condition as elsewhere.
3396 * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
3397 in use, and use the current ABI.
3398 * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
3399 Reported by Jim Meyering.
3401 2008-06-09 Eric Blake <ebb9@byu.net>
3403 Work around environments that (stupidly) ignore SIGALRM.
3404 * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
3405 before using alarm().
3406 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
3407 * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
3408 Reported by Ian Beckwith <ianb@erislabs.net>.
3410 Produce autobuild blurb earlier in log.
3411 * modules/autobuild (configure.ac-early): Move AB_INIT here.
3413 2008-06-09 Jim Meyering <meyering@redhat.com>
3414 and OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
3416 utimens.c: correct kernel bug work-around
3417 OndÅ™ej VaÅ¡Ãk found that the invalid return value of 280 indicates
3418 failure, not success, and the kernel bug we're trying to work
3419 around affects not just the utimensat call, but also the fallback
3421 * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
3423 [HAVE_FUTIMENS]: Use the same work-around, here.
3425 2008-06-09 Jim Meyering <meyering@redhat.com>
3427 add more guards around definition of ACE_-related code
3428 * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
3429 ALLOW and ACE_OWNER are also defined.
3431 2008-06-08 Bruno Haible <bruno@clisp.org>
3433 * lib/acl-internal.h: Add me as co-author.
3434 * lib/file-has-acl.c: Likewise.
3435 * lib/set-mode-acl.c: Likewise.
3436 * lib/copy-acl.c: Likewise.
3438 2008-06-08 Bruno Haible <bruno@clisp.org>
3440 Add support for AIX ACLs.
3441 * lib/acl-internal.h (acl_nontrivial): New declaration.
3442 * lib/file-has-acl.c (acl_nontrivial): New function.
3443 (file_has_acl): Add implementation using AIX 4 ACL API.
3444 * lib/set-mode-acl.c (qset_acl): Likewise.
3445 * lib/copy-acl.c (qcopy_acl): Likewise.
3447 2008-06-08 Bruno Haible <bruno@clisp.org>
3449 Add support for HP-UX ACLs.
3450 * lib/acl-internal.h (acl_nontrivial): New declaration.
3451 * lib/file-has-acl.c (acl_nontrivial): New function.
3452 (file_has_acl): Add implementation using HP-UX 11 ACL API.
3453 * lib/set-mode-acl.c (qset_acl): Likewise.
3454 * lib/copy-acl.c (qcopy_acl): Likewise.
3456 2008-06-08 Bruno Haible <bruno@clisp.org>
3458 Add support for Cygwin ACLs.
3459 * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
3460 * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
3461 the chmod_or_fchmod call.
3462 * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
3464 2008-06-08 Bruno Haible <bruno@clisp.org>
3466 Fix bug with setuid modes in Solaris 10+ code.
3467 * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
3468 succeeded, when the mode contains some special bits.
3470 2008-06-08 Bruno Haible <bruno@clisp.org>
3472 Add support for Solaris 7..10 ACLs.
3473 * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
3475 * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
3477 (file_has_acl): Add implementation using Solaris 7..10 ACL API.
3478 * lib/set-mode-acl.c (qset_acl): Likewise.
3479 * lib/copy-acl.c (qcopy_acl): Likewise.
3481 2008-06-08 Bruno Haible <bruno@clisp.org>
3483 * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
3485 * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
3486 (acl_access_nontrivial): Remove MacOS X case.
3487 (file_has_acl): Use acl_extended_nontrivial.
3488 * lib/copy-acl.c (qcopy_acl): Likewise.
3490 2008-06-08 Bruno Haible <bruno@clisp.org>
3492 * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
3494 2008-06-08 Jim Meyering <meyering@redhat.com>
3496 * modules/acl (Maintainer): Add Bruno Haible.
3498 2008-06-07 Bruno Haible <bruno@clisp.org>
3500 Improve support for Tru64 ACLs.
3501 * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
3504 2008-06-07 Bruno Haible <bruno@clisp.org>
3506 Add support for MacOS X ACLs.
3507 * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
3508 ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
3509 * lib/set-mode-acl.c (qset_acl): Likewise.
3510 * lib/copy-acl.c (qcopy_acl): Likewise.
3512 2008-06-07 Bruno Haible <bruno@clisp.org>
3514 Fix memory leak introduced on 2008-05-22.
3515 * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
3518 2008-06-07 Bruno Haible <bruno@clisp.org>
3520 * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
3521 to construct an empty ACL.
3523 2008-06-07 Bruno Haible <bruno@clisp.org>
3525 * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
3527 * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
3529 2008-06-07 Bruno Haible <bruno@clisp.org>
3531 * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
3532 * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
3534 2008-06-07 Bruno Haible <bruno@clisp.org>
3536 * doc/posix-functions/_setjmp.texi: Explain the use of this function
3537 regardless of POSIX.
3538 * doc/posix-functions/_longjmp.texi: Likewise.
3539 * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
3540 SystemV platform in this case.
3542 2008-06-06 Eric Blake <ebb9@byu.net>
3544 Document abort() bugs.
3545 * doc/posix-functions/abort.texi (abort): Mention anomalies.
3547 * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
3548 * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
3550 * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
3551 siglongjmp, but only as a macro.
3552 * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
3554 * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
3556 Tweak documentation to cover cygwin argz bugs.
3557 * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
3558 argz bug fix; no code change needed since no cygwin releases
3559 occurred between the last fix and the bug being tested.
3560 * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
3561 module and recently fixed cygwin bugs.
3562 * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
3563 * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
3564 * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
3565 * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
3566 * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
3568 * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
3569 * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
3570 * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
3571 * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
3572 * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
3573 * doc/glibc-functions/argz_stringify.texi (argz_stringify):
3576 Avoid gcc warning on cygwin.
3577 * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
3578 !ACL_NO_TRIVIAL]: Avoid unused variable.
3580 2008-06-05 Eric Blake <ebb9@byu.net>
3582 Be tolerant of UNKNOWN version in gnulib-tool test dir.
3583 * top/GNUmakefile (_dummy): Warn rather than reconfigure if
3584 git-version-gen fails to come up with a version.
3585 Reported by Simon Josefsson.
3587 2008-06-05 Jim Meyering <meyering@redhat.com>
3588 Paul Eggert <eggert@cs.ucla.edu>
3590 utimens.c: work around a probable Linux kernel bug
3591 * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
3592 appears to be a kernel bug that causes utimensat to return 280
3593 instead of 0, indicating success.
3595 2008-06-04 Bruno Haible <bruno@clisp.org>
3597 * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
3600 2008-06-04 Bruno Haible <bruno@clisp.org>
3602 * lib/acl-internal.h (acl_access_nontrivial): New declaration.
3603 * lib/file-has-acl.c (acl_access_nontrivial): New function.
3604 (file_has_acl): Use it. Save errno afterwards.
3605 * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
3607 2008-06-03 Bruno Haible <bruno@clisp.org>
3609 * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
3610 draft code. Simplify #ifs.
3611 * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
3612 Put Solaris code after POSIX-draft code. Fix comments regarding
3613 Solaris 10, HP-UX. Mention Cygwin.
3614 * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
3616 2008-06-03 Eric Blake <ebb9@byu.net>
3618 Provide fallback for older kernels.
3619 * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
3620 Provide runtime fallback if kernel lacks support.
3621 Reported by Mike Frysinger.
3623 2008-06-02 Bruno Haible <bruno@clisp.org>
3625 * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
3628 2008-06-02 Bruno Haible <bruno@clisp.org>
3630 * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
3631 * lib/copy-acl.c (qcopy_acl): Update comment.
3633 2008-06-02 Bruno Haible <bruno@clisp.org>
3635 * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
3638 2008-06-02 Bruno Haible <bruno@clisp.org>
3640 * tests/test-file-has-acl.sh: Use different code for Cygwin.
3641 * tests/test-set-mode-acl.sh: Likewise.
3642 * tests/test-copy-acl.sh: Likewise.
3643 * tests/test-copy-file.sh: Likewise.
3645 2008-06-02 Bruno Haible <bruno@clisp.org>
3647 * tests/test-file-has-acl.sh: Remove unused code.
3649 2008-06-01 Bruno Haible <bruno@clisp.org>
3651 * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
3652 (copy_acl): Just a wrapper around qcopy_acl that emits the error
3654 * lib/set-mode-acl.c (qset_acl): Document return value precisely.
3656 2008-06-01 Bruno Haible <bruno@clisp.org>
3658 * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
3659 tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
3660 needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
3662 * modules/acl-tests (configure.ac): Remove tests now contained in
3665 2008-06-02 Jim Meyering <meyering@redhat.com>
3667 announce-gen: use a better key-server host name
3668 * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
3669 it may be more consistently reliable. Suggested by Werner Koch
3670 in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
3672 2008-06-01 Bruno Haible <bruno@clisp.org>
3674 * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
3675 Reported by Voroskoi Andras <voroskoi@gmail.com>.
3677 2008-06-01 Voroskoi Andras <voroskoi@gmail.com> (tiny change)
3679 * lib/stdio-impl.h [__DragonFly__]: Fix typo.
3681 2008-06-01 Bruno Haible <bruno@clisp.org>
3684 * tests/test-file-has-acl.sh: New file.
3685 * tests/test-file-has-acl.c: New file.
3686 * tests/test-set-mode-acl.sh: New file.
3687 * tests/test-set-mode-acl.c: New file.
3688 * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
3689 * tests/test-copy-acl.c: New file.
3690 * modules/acl-tests: New file, based on modules/copy-file-tests.
3691 * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
3692 (Depends-on): Add acl-tests.
3693 (configure.ac): Remove checks.
3694 (Makefile.am): Don't create test-sameacls program here any more.
3696 2008-06-01 Bruno Haible <bruno@clisp.org>
3698 * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
3699 * tests/test-sameacls.c: Include progname.h.
3700 (main): Invoke set_program_name. Portability fixes for MacOS X,
3703 2008-06-01 Bruno Haible <bruno@clisp.org>
3705 * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
3707 Reported by VOROSKOI Andras <voroskoi@gmail.com>.
3709 2008-06-01 Bruno Haible <bruno@clisp.org>
3711 * modules/rpmatch (Depends-on): Add strdup.
3713 2008-06-01 Bruno Haible <bruno@clisp.org>
3715 * lib/pipe.c: Include unistd-safer.h.
3716 (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
3717 * modules/pipe (Depends-on): Add unistd-safer.
3719 2008-05-30 Simon Josefsson <simon@josefsson.org>
3721 * modules/autobuild (configure.ac): Call AB_INIT.
3723 2008-05-30 Simon Josefsson <simon@josefsson.org>
3725 * tests/test-getaddrinfo.c: Don't print debug messages by default.
3726 Suggested by Bruno Haible <bruno@clisp.org>.
3728 2008-05-30 Simon Josefsson <simon@josefsson.org>
3730 * tests/test-base64.c: Cast size_t to unsigned long when invoking
3731 printf. Use %lu instead of %d. Reported by Bruno Haible
3734 2008-05-29 Eric Blake <ebb9@byu.net>
3736 Prefer new POSIX 200x interfaces over futimesat.
3737 * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
3738 * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
3740 [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
3742 2008-05-28 Bruno Haible <bruno@clisp.org>
3744 * modules/stpcpy (License): Change to LGPLv2+.
3745 Requested by David Lutterkort <dlutter@redhat.com>.
3747 2008-05-27 Bruno Haible <bruno@clisp.org>
3749 * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
3751 Reported by Jose E. Marchesi <jemarch@gnu.org>.
3753 2008-05-27 Bruno Haible <bruno@clisp.org>
3755 * modules/iconv_open (Link): New section, from module 'iconv'.
3756 * modules/striconv (Link): Likewise.
3757 * modules/striconveh (Link): Likewise.
3758 * modules/xstriconv (Link): Likewise.
3759 * modules/unicodeio (Link): Likewise.
3760 * modules/propername (Link): Likewise.
3761 Reported by Jim Meyering.
3763 2008-05-26 Jim Meyering <meyering@redhat.com>
3765 sha256: do not artificially restrict buffer length to be < 2^32
3766 * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
3768 * lib/sha256.c (sha256_conclude_ctx): Change type of a local
3771 avoid unaligned access errors, e.g., on sparc
3772 * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
3773 direct access through a possibly-unaligned uint64* pointer.
3774 * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
3775 direct access through a possibly-unaligned uint32* pointer.
3776 Prompted by this patch from Tom "spot" Callaway:
3777 http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
3779 sha512.c: fix typo in comment
3780 * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
3782 2008-05-25 Bruno Haible <bruno@clisp.org>
3784 * lib/set-mode-acl.c: Renamed from lib/acl.c.
3785 * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
3786 (Makefile.am): Update lib_SOURCES.
3788 2008-05-25 Bruno Haible <bruno@clisp.org>
3790 * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
3792 2008-05-25 Jim Meyering <meyering@redhat.com>
3794 useless-if-before-free: freed expr may have white-space differences
3795 * build-aux/useless-if-before-free: Recognize cases in which the
3796 freed expression differs from the tested one in embedded white
3797 space, e.g., if (p[i + 1]) free(p[i+1]). Correct thinko in prev:
3798 $1 was used, so we can't make any regexp shy. Improved tests now
3801 useless-if-before-free: accept white space in the expression.
3802 * build-aux/useless-if-before-free: For now, any white space
3803 in the expression must be identical in the free argument.
3805 useless-if-before-free: efficiency tweak
3806 * build-aux/useless-if-before-free: Make the expression-matching
3808 Make the *outer* regexp shy, not the expr-matching one.
3810 update code-in-comment to accept cast of free arg
3811 * build-aux/useless-if-before-free: Update regexp.
3813 2008-05-25 Bruno Haible <bruno@clisp.org>
3815 * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
3816 * modules/copy-file-tests (Files, Makefile.am): Update.
3817 * tests/test-copy-file.c (func_test_copy): Update.
3819 2008-05-24 Andreas Färber <andreas.faerber@web.de> (tiny change)
3821 * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
3823 2008-05-23 Bruno Haible <bruno@clisp.org>
3825 Improve support for ACLs on OSF/1.
3826 * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
3827 Remove fallback for unknown flavors of ACLs.
3829 2008-05-22 Bruno Haible <bruno@clisp.org>
3831 Add support for ACLs on OSF/1.
3832 * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
3834 (acl_free_text): New macro fallback.
3835 * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
3837 * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
3838 acl_free_text function. Require AC_C_INLINE.
3840 2008-05-22 Bruno Haible <bruno@clisp.org>
3842 Make copy_acl work on MacOS X 10.5.
3843 * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
3844 (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
3845 * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
3846 If MODE_INSIDE_ACL, don't assume that every system has the same text
3847 representation for ACLs as FreeBSD.
3848 * lib/copy-acl.c (copy_acl): Add support for platforms with
3850 * lib/file-has-acl.c (file_has_acl): Likewise.
3851 * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
3852 FreeBSD, MacOS X, or IRIX, respectively.
3854 2008-05-22 Bruno Haible <bruno@clisp.org>
3856 * lib/acl.h: Don't include <sys/acl.h>.
3857 (GETACLCNT): Move fallback to lib/acl-internal.h.
3858 * lib/acl-internal.h: Include <sys/acl.h> here.
3859 (GETACLCNT): New macro fallback, moved here from lib/acl.h.
3861 2008-05-22 Bruno Haible <bruno@clisp.org>
3863 Split off copy_acl function to separate file.
3864 * lib/copy-acl.c: New file, extracted from lib/acl.c.
3865 * lib/acl.c (copy_acl): Moved function to separate file.
3866 * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
3867 * modules/acl (Files): Add lib/copy-acl.c.
3868 (Makefiles.am): Augment lib_SOURCES.
3870 2008-05-22 Bruno Haible <bruno@clisp.org>
3872 * modules/copy-file-tests: New file.
3873 * tests/test-copy-file.sh: New file.
3874 * tests/test-copy-file.c: New file.
3875 * tests/test-copy-file-sameacls.c: New file.
3877 2008-05-22 Eric Blake <ebb9@byu.net>
3880 * tests/test-memcmp.c (main): Pass NULL indirectly.
3882 2008-05-21 Bruno Haible <bruno@clisp.org>
3884 Add reference doc about ACLs.
3885 * doc/acl-resources.txt: New file.
3886 * doc/acl-cygwin.txt: New file.
3888 2008-05-21 Bruno Haible <bruno@clisp.org>
3890 Avoid one more warning from gcc.
3891 * lib/vasnprintf.c (IF_LINT): Update comments.
3892 (VASNPRINTF): Use it also for the 'prefix' array initializer.
3894 2008-05-21 Jim Meyering <meyering@redhat.com>
3896 avoid a warning from gcc
3897 * lib/vasnprintf.c (IF_LINT): Define.
3898 (scale10_round_decimal_long_double):
3899 Use it to avoid a "may be used uninitialized" warning.
3900 (scale10_round_decimal_double): Likewise.
3902 2008-05-21 Simon Josefsson <simon@josefsson.org>
3904 * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
3907 2008-05-20 Bruno Haible <bruno@clisp.org>
3909 * tests/test-memcmp.c (main): Test also the sign of the result. Test
3910 against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
3912 2008-05-20 Simon Josefsson <simon@josefsson.org>
3914 * modules/memcmp-tests: New file.
3915 * tests/test-memcmp.c: New file.
3917 2008-05-19 Bruno Haible <bruno@clisp.org>
3919 * modules/propername (Notice, configure.ac): Put quoted "..." into
3921 * lib/propername.h: Update comments accordingly.
3922 Reported by Eric Blake.
3924 2008-05-19 Martin Lambers <marlam@marlam.de> (tiny change)
3926 * modules/getpass-gnu (Depends-on): Add fseeko.
3928 2008-05-19 Simon Josefsson <simon@josefsson.org>
3930 * modules/base64-tests: New file.
3932 2008-05-19 Bo Borgerson <gigabo@gmail.com>
3934 * lib/base64.c (base64_decode_ctx): If a decode context structure
3935 was passed in use it to ignore newlines. If a context structure
3936 was _not_ passed in, continue to treat newlines as garbage (this
3937 is the historical behavior). Formerly base64_decode.
3938 (base64_decode_alloc_ctx): Formerly base64_decode_alloc. Now
3939 takes a decode context structure.
3940 * lib/base64.h (base64_decode): Macro for four-argument calls.
3941 (base64_decode_alloc): Likewise.
3942 * lib/base64.c (base64_decode_ctx): If a decode context structure
3943 was passed in use it to ignore newlines. If a context structure
3944 was _not_ passed in, continue to treat newlines as garbage (this
3945 is the historical behavior). Formerly base64_decode.
3946 (base64_decode_alloc_ctx): Formerly base64_decode_alloc. Now
3947 takes a decode context structure.
3948 * lib/base64.h (base64_decode): Macro for four-argument calls.
3949 (base64_decode_alloc): Likewise.
3951 2008-05-19 Jim Meyering <meyering@redhat.com>
3953 avoid a warning from gcc
3954 * lib/trim.c (IF_LINT): Define.
3955 (trim2): Use it to avoid a "may be used uninitialized" warning.
3958 * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
3960 2008-05-19 Bruno Haible <bruno@clisp.org>
3962 * doc/glibc-functions/getpass.texi: Document limits of other
3965 2008-05-19 Simon Josefsson <simon@josefsson.org>
3966 Bruno Haible <bruno@clisp.org>
3968 * doc/glibc-functions/getpass.texi: Document gnulib implementation.
3970 2008-05-18 Bruno Haible <bruno@clisp.org>
3972 * modules/propername: New file, from GNU gettext.
3973 * lib/propername.h: New file, from GNU gettext.
3974 * lib/propername.c: New file, from GNU gettext.
3975 * MODULES.html.sh (Internationalization functions): Add propername.
3977 2008-05-16 Jim Meyering <meyering@redhat.com>
3978 Bruno Haible <bruno@clisp.org>
3980 Avoid some warnings from "gcc -Wshadow".
3981 * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
3983 2008-05-15 Eric Blake <ebb9@byu.net>
3985 Extend previous patch to cygwin 1.7.0.
3986 * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
3987 fast implementation in cygwin >= 1.7.0.
3988 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
3989 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
3991 2008-05-15 Bruno Haible <bruno@clisp.org>
3993 * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
3994 implementation in glibc >= 2.9.
3995 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
3996 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
3998 2008-05-15 Bruno Haible <bruno@clisp.org>
4000 * MODULES.html.sh (Internationalization functions): Remove linebreak.
4001 (Unicode string functions): Add unilbrk/*.
4002 Reported by Karl Berry.
4004 2008-05-15 Eric Blake <ebb9@byu.net>
4006 Fix violation of <stdbool.h> replacement in regex.
4007 * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
4008 * lib/regexec.c (re_search_internal): Likewise.
4009 Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
4011 2008-05-15 Jim Meyering <meyering@redhat.com>
4013 avoid distracting test output when git or cvs is not found
4014 * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
4015 * tests/test-vc-list-files-git.sh: Likewise.
4017 2008-05-15 Eric Blake <ebb9@byu.net>
4019 Glibc finally accepted the memmem speedup code, bugzilla #5514.
4020 * doc/glibc-functions/memmem.texi (memmem): Mention last broken
4022 * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
4023 * doc/posix-functions/strstr.texi (strstr): Likewise.
4024 * lib/str-two-way.h (MAX): Sychronize with glibc.
4026 2008-05-15 Paolo Bonzini <bonzini@gnu.org>
4028 * lib/regcomp.c (optimize_utf8): Add a note on why we test
4030 (calc_first): Initialize constraint field.
4031 (duplicate_node_closure): Use it instead of special casing ANCHORS.
4033 (duplicate_node): Merge constraint field for all node types.
4034 (calc_eclosure_iter): Look at constraint field for all node types.
4035 * lib/regex_internal.c (create_cd_newstate): Don't look at
4038 2008-05-14 Bruno Haible <bruno@clisp.org>
4040 Help GCC to do better code generation.
4041 * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
4042 * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
4043 * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
4044 (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
4045 Declare with attribute 'malloc' if supported.
4047 2008-05-14 Lasse Collin <lasse.collin@tukaani.org>
4049 use "echo STR|wc -c" rather than unportable "expr length STR"
4050 * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
4051 OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
4053 2008-05-14 Jim Meyering <meyering@redhat.com>
4055 use dd ibs=$n count=1 ... rather than less-portable head -c$n
4056 * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
4057 by Solaris 10's /bin/head or by the one from HP-UX 11.x.
4058 Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
4061 2008-05-14 Eric Blake <ebb9@byu.net>
4063 Avoid quadratic growth in gl_LIBSOURCES.
4064 * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
4065 Suggested by Bruno Haible.
4068 * modules/xmemdup0-tests: New file.
4069 * tests/test-xmemdup0.c: Likewise.
4071 2008-05-13 Eric Blake <ebb9@byu.net>
4073 Split xmemdup0 into its own module.
4074 * modules/xmemdup0: New file.
4075 * lib/xmemdup0.h: Likewise.
4076 * lib/xmemdup0.c: Likewise.
4077 * MODULES.html.sh (Memory management functions): Add xmemdup0.
4078 * lib/xalloc.h (xmemdup0): Remove.
4079 * lib/xmalloc.c (xmemdup0): Likewise.
4081 2008-05-13 Eric Blake <ebb9@byu.net>
4082 Bruno Haible <bruno@clisp.org>
4084 Reduce number of forks required during autoconf.
4085 * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
4086 and gl_LIBSOURCES_DIR.
4087 (func_emit_initmacro_end): Use them here in a single m4_syscmd...
4088 (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
4090 <m4_foreach_w>: Move...
4091 * m4/gnulib-common.m4 (m4_foreach_w): ...here.
4093 2008-05-13 Eric Blake <ebb9@byu.net>
4095 * gnulib-tool: Fix various comment typos.
4097 2008-05-12 Bruno Haible <bruno@clisp.org>
4099 Tailor the linebreaking algorithm.
4100 * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
4102 2008-05-12 Bruno Haible <bruno@clisp.org>
4104 Update to Unicode 5.0.0.
4105 * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
4106 LBP_JV, LBP_JT. Redistribute values.
4107 (unilbrk_table): Change size.
4108 * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
4109 Unicode TR#14 rev. 22.
4110 * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
4111 LBP_JV, LBP_JT. Redistribute values.
4112 (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
4113 (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
4115 * lib/unilbrk/lbrkprop1.h: Regenerated.
4116 * lib/unilbrk/lbrkprop2.h: Regenerated.
4117 * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
4118 Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
4119 * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
4121 * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
4123 * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
4125 * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
4126 * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
4127 * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
4128 * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
4129 * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
4130 * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
4132 2008-05-11 Bruno Haible <bruno@clisp.org>
4134 * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
4136 2008-05-11 Bruno Haible <bruno@clisp.org>
4138 * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
4139 * modules/unilbrk/gen-lbrk: New file.
4141 2008-05-11 Bruno Haible <bruno@clisp.org>
4143 * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
4144 * m4/sha512.m4 (gl_SHA512): Likewise.
4146 2008-05-11 Jim Meyering <meyering@redhat.com>
4148 New modules: crypto/sha256, crypto/sha512 (from coreutils)
4149 * modules/crypto/sha256: New file.
4150 * modules/crypto/sha512: Likewise.
4151 * lib/sha256.c: Likewise.
4152 * lib/sha256.h: Likewise.
4153 * lib/sha512.c: Likewise.
4154 * lib/sha512.h: Likewise.
4155 * lib/u64.h: Likewise.
4156 * m4/sha256.m4: Likewise.
4157 * m4/sha512.m4: Likewise.
4158 * MODULES.html.sh (Cryptographic computations (low-level)): List them.
4160 2008-05-10 Bruno Haible <bruno@clisp.org>
4162 * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
4163 (Input/Output <stdio.h>): Add xprintf.
4164 (Signal handling <signal.h>): Add strsignal.
4165 (Cryptographic computations (high-level)): Add crypto/gc-camellia.
4166 (Core language properties): Add func.
4167 (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
4168 (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
4170 (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
4171 (Input/output): New section.
4172 (File system functions): Add openat-die, stat-macros.
4173 (Networking functions): Add sockets.
4174 (Unicode string functions): Add unictype/*.
4175 (Support for building libraries and executables): Add gperf.
4176 (Support for building documentation): Add agpl-3.0.
4177 (Misc): Add nocrash.
4179 2008-05-10 Bruno Haible <bruno@clisp.org>
4181 * modules/unictype/gen-ctype: New file.
4183 2008-05-10 Jim Meyering <meyering@redhat.com>
4185 Make chdir-safer.c more efficient on a system with no symlinks.
4186 * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
4187 also if ELOOP is zero. Suggested by Bruno Haible.
4189 Make chdir-safer.c slightly safer.
4190 * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
4191 not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
4193 Avoid compile failure on systems without ELOOP (like mingw).
4194 * lib/chdir-safer.c (ELOOP): Define if not already defined.
4195 Reported by Bruno Haible.
4197 2008-05-10 Bruno Haible <bruno@clisp.org>
4199 * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
4200 (is_utf8_encoding): Use a case-insensitive comparison.
4201 * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
4204 2008-05-10 Bruno Haible <bruno@clisp.org>
4206 * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
4207 (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
4208 * lib/unilbrk/ulc-common.h (iconv_string_length,
4209 iconv_string_keeping_offsets): Remove declarations.
4210 * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
4211 Don't include <iconv.h>, streq.h, xsize.h.
4212 (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
4214 * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
4215 <iconv.h>, streq.h, xsize.h.
4216 (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
4218 * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
4219 * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
4220 uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
4221 * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
4223 2008-05-10 Bruno Haible <bruno@clisp.org>
4225 * modules/unilbrk/ulc-width-linebreaks-tests: New file.
4226 * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
4228 * modules/unilbrk/u32-width-linebreaks-tests: New file.
4229 * tests/unilbrk/test-u32-width-linebreaks.c: New file.
4231 * modules/unilbrk/u16-width-linebreaks-tests: New file.
4232 * tests/unilbrk/test-u16-width-linebreaks.c: New file.
4234 * modules/unilbrk/u8-width-linebreaks-tests: New file.
4235 * tests/unilbrk/test-u8-width-linebreaks.c: New file.
4237 * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
4238 * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
4240 * modules/unilbrk/u32-possible-linebreaks-tests: New file.
4241 * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
4243 * modules/unilbrk/u16-possible-linebreaks-tests: New file.
4244 * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
4246 * modules/unilbrk/u8-possible-linebreaks-tests: New file.
4247 * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
4249 2008-05-10 Bruno Haible <bruno@clisp.org>
4251 Split up 'linebreak' module.
4252 * lib/unilbrk.h: New file, based on lib/linebreak.h.
4253 * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
4254 * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
4256 * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
4257 * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
4258 * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
4260 * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
4262 * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
4264 * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
4265 * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
4266 * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
4268 * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
4270 * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
4272 * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
4274 * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
4276 * modules/unilbrk/base: New file.
4277 * modules/unilbrk/tables: New file.
4278 * modules/unilbrk/u8-possible-linebreaks: New file.
4279 * modules/unilbrk/u16-possible-linebreaks: New file.
4280 * modules/unilbrk/u32-possible-linebreaks: New file.
4281 * modules/unilbrk/ulc-common: New file.
4282 * modules/unilbrk/ulc-possible-linebreaks: New file.
4283 * modules/unilbrk/u8-width-linebreaks: New file.
4284 * modules/unilbrk/u16-width-linebreaks: New file.
4285 * modules/unilbrk/u32-width-linebreaks: New file.
4286 * modules/unilbrk/ulc-width-linebreaks: New file.
4287 * lib/linebreak.h: Remove file.
4288 * lib/linebreak.c: Remove file.
4289 * m4/linebreak.m4: Remove file.
4290 * modules/linebreak: Remove file.
4291 * NEWS: Mention the changes.
4293 2008-05-09 Eric Blake <ebb9@byu.net>
4296 * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
4298 * lib/xmalloc.c (xmemdup0): New C implementation.
4300 2008-05-08 Bruno Haible <bruno@clisp.org>
4302 * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
4304 2008-05-07 Eric Blake <ebb9@byu.net>
4306 Support cross-compilation of <wctype.h>.
4307 * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
4310 2008-05-06 Soren Hansen <soren@ubuntu.com> (tiny change)
4312 * build-aux/vc-list-files: Add support for bzr.
4314 2008-05-03 Jim Meyering <meyering@redhat.com>
4316 avoid failed assertion with tight malloc
4317 * tests/test-getndelim2.c: Correct an off-by-one assertion.
4319 2008-05-03 Simon Josefsson <simon@josefsson.org>
4321 * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
4322 are needed from arpa/inet.h.
4323 * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
4324 Reported by Bruno Haible.
4326 2008-05-02 Jim Meyering <meyering@redhat.com>
4328 avoid compilation error on FreeBSD 6
4329 * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
4331 2008-05-01 Jim Meyering <meyering@redhat.com>
4333 useless-if-before-free: correct --help's exit status description
4334 * build-aux/useless-if-before-free (usage): Like grep, exit 0
4335 for one or more matches, etc. Reported by Bruno Haible.
4337 vc-list-files: make the stand-alone gnulib test work
4338 * modules/vc-list-files-tests (configure.ac):
4339 Define and AC_SUBST abs_aux_dir.
4340 (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
4341 $(abs_top_srcdir) to each script and having each of them
4342 duplicate the work of setting PATH, set PATH here, using
4343 the new variable, abs_aux_dir instead.
4344 * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
4345 * tests/test-vc-list-files-git.sh: Likewise.
4346 Reported by Bruno Haible.
4348 2008-05-01 Bruno Haible <bruno@clisp.org>
4350 * lib/getndelim2.c (getndelim2): Fix newsize computation during
4351 reallocation. Rename 'done' to 'found_delimiter'.
4353 2008-05-01 Jim Meyering <meyering@redhat.com>
4355 vc-list-files: accommodate /bin/sh like the one from Solaris 10
4356 * build-aux/vc-list-files: Use `...`, not $(...).
4358 2008-04-30 Jim Meyering <meyering@redhat.com>
4360 add tests for vc-list-files
4361 * modules/vc-list-files-tests: New module.
4362 * tests/test-vc-list-files-cvs.sh: New file.
4363 * tests/test-vc-list-files-git.sh: New file.
4365 avoid a warning from gcc
4366 * lib/getndelim2.c (IF_LINT): Define.
4367 (getndelim2): Use it to avoid a "may be used uninitialized" warning.
4369 vc-list-files: work properly with build-aux/cvsu, too
4370 * build-aux/vc-list-files: Hoist the "./"-removing code to apply
4371 to all cvs-based clauses.
4373 vc-list-files: work properly in the CVS+awk case, too
4374 * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
4376 vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
4377 * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
4378 take more than one file argument, so . Add quotes, just in case $dir
4379 ever contains a shell meta-character. Prompted by Soren Hansen in
4380 <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
4382 2008-04-29 Eric Blake <ebb9@byu.net>
4384 Optimize getndelim2 to use block operations when possible.
4385 * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
4386 freadseek, and memchr2.
4387 * lib/getndelim2.c (getndelim2): Use them for block reads.
4389 2008-04-29 Bruno Haible <bruno@clisp.org>
4391 * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
4392 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
4393 * modules/inet_ntop (Depends-on): Add extensions.
4394 * modules/inet_pton (Depends-on): Likewise.
4395 Reported by Simon Josefsson.
4397 2008-04-29 Jim Meyering <meyering@redhat.com>
4399 When the is more than one match in a block, match all of them.
4400 * build-aux/useless-if-before-free: Iterate through each block
4401 until there are no more matches.
4403 Fix broken useless-if-before-free script.
4404 * build-aux/useless-if-before-free: Fix typo: missing "?" after
4405 the expression to match cast of argument to free-like function.
4407 2008-04-29 Eric Blake <ebb9@byu.net>
4410 * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
4412 2008-04-29 Jim Meyering <meyering@redhat.com>
4414 Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
4415 * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
4416 by gnulib to exist and to declare e.g., inet_ntop.
4417 Don't include "inet_ntop.h", now removed.
4419 * m4/arpa_inet_h.m4: Remove trailing blanks.
4421 2008-04-29 Eric Blake <ebb9@byu.net>
4423 Silence valgrind on safe reads beyond potential array bounds.
4424 * lib/rawmemchr.valgrind: New file.
4425 * lib/strchrnul.valgrind: Likewise.
4426 * modules/rawmemchr (Files): Distribute new file.
4427 * modules/strchrnul (Files): Likewise.
4428 Suggested by Bruno Haible.
4430 2008-04-29 Bruno Haible <bruno@clisp.org>
4432 * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
4433 (inet_ntop, inet_pton): Change portability warning's wording.
4434 * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
4435 Invoke gl_CHECK_NEXT_HEADERS.
4436 (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
4437 * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
4439 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
4440 * modules/arpa_inet (Description): No longer only for systems that
4442 (Depends-on): Add include_next.
4443 (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
4446 2008-04-29 Jim Meyering <meyering@redhat.com>
4448 * modules/mkdir (License): Re-license as LGPLv2+.
4450 2008-04-29 Bruno Haible <bruno@clisp.org>
4452 * modules/rawmemchr (Maintainer): Set to Eric.
4453 * modules/strchrnul (Maintainer): Likewise.
4455 2008-04-29 Simon Josefsson <simon@josefsson.org>
4457 * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
4458 HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
4460 * modules/arpa_inet (arpa/inet.h): Use them.
4462 2008-04-28 Eric Blake <ebb9@byu.net>
4465 * modules/getndelim2-tests: New file.
4466 * tests/test-getndelim2.c: Likewise.
4467 * lib/getndelim2.c (getndelim2): Never return 0. Lock the
4469 * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
4471 * MODULES.html.sh: Document new module.
4473 2008-04-20 Bruno Haible <bruno@clisp.org>
4475 * lib/c-stack.c (die): Use raise.
4476 * modules/c-stack (Depends-on): Add raise.
4478 2008-04-28 Bruno Haible <bruno@clisp.org>
4480 Expect rpmatch to be declared.
4481 * lib/yesno.c (rpmatch): Remove declaration.
4484 * lib/stdlib.in.h (rpmatch): New declaration.
4485 * lib/rpmatch.c: Include <stdlib.h> first.
4486 * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
4487 gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
4488 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
4490 * modules/rpmatch (Depends-on): Add stdlib, extensions.
4491 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
4492 (Include): Set to <stdlib.h>.
4493 * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
4495 * NEWS: Document the change.
4497 2008-04-28 Bruno Haible <bruno@clisp.org>
4499 Change rpmatch to use nl_langinfo when appropriate.
4500 * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
4502 (localized_pattern): New function/macro.
4503 (try): Remove match, nomatch arguments. Copy the pattern into safe
4504 memory before caching it.
4505 (rpmatch): Use localized_pattern. Add translator comments.
4506 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
4507 Suggested by Eric Blake.
4508 * modules/rpmatch (Depends-on): Add stdbool.
4510 2008-04-28 Eric Blake <ebb9@byu.net>
4512 Add rawmemchr module, matching glibc.
4513 * modules/string (Makefile.am): New indicator.
4514 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
4515 * lib/string.in.h (rawmemchr): Declare when appropriate.
4516 * modules/rawmemchr: New file.
4517 * m4/rawmemchr.m4: Likewise.
4518 * lib/rawmemchr.c: Likewise.
4519 * modules/rawmemchr-tests: Likewise.
4520 * tests/test-rawmemchr.c: Likewise.
4521 * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
4523 * modules/strchrnul (Depends-on): Add rawmemchr.
4524 * lib/strchrnul.c (strchrnul): Optimize a corner case.
4527 * tests/test-strchrnul.c: Reindent.
4528 * lib/strchrnul.c: Likewise.
4530 Optimize and test strchrnul.
4531 * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
4532 * modules/strchrnul-tests: New file.
4533 * tests/test-strchrnul.c: Likewise.
4535 Remove intprops dependency.
4536 * modules/memchr (Depends-on): Remove intprops.
4537 * modules/memrchr (Depends-on): Likewise.
4538 * modules/memchr2 (Depends-on): Likewise.
4539 * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
4540 * lib/memrchr.c (__memrchr): Likewise.
4541 * lib/memrchr2.c (memchr2): Likewise.
4542 Reported by Simon Josefsson.
4544 2008-04-28 Simon Josefsson <simon@josefsson.org>
4546 * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
4547 Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
4549 2008-04-28 Simon Josefsson <simon@josefsson.org>
4551 * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
4553 * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
4555 * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
4557 * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
4559 [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
4561 * m4/inet_pton.m4: Don't check for header files.
4563 * m4/inet_ntop.m4: Don't check for header files.
4565 2008-04-28 Simon Josefsson <simon@josefsson.org>
4567 * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
4568 * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
4569 trigger for cygwin).
4570 Reported by Bruno Haible <bruno@clisp.org>.
4572 2008-04-28 Bruno Haible <bruno@clisp.org>
4574 * doc/posix-functions/strdup.texi: Mention mingw problem.
4576 2008-04-27 Bruno Haible <bruno@clisp.org>
4578 * modules/stat-time-tests (Depends-on): Add sleep.
4579 * tests/test-stat-time.c (force_unlink): New function.
4581 (test_mtime): Remove the ctime related tests.
4582 (test_ctime): New function, containing the ctime related tests.
4583 (main): Call test_ctime, except on native Windows platforms.
4585 2008-04-27 Bruno Haible <bruno@clisp.org>
4587 * lib/rpmatch.c (rpmatch): Add some comments.
4588 Reported by James Youngman <jay@gnu.org>.
4590 2008-04-27 Bruno Haible <bruno@clisp.org>
4592 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
4595 2008-04-27 Bruno Haible <bruno@clisp.org>
4597 Make test-yesno.sh work on mingw.
4598 * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
4599 * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
4600 (main): Set stdin to binary mode.
4601 * modules/yesno-tests (Depends-on): Add binary-io.
4603 2008-04-27 Bruno Haible <bruno@clisp.org>
4605 Fix 'isfinite' on x86, x86_64, ia64 platforms.
4606 * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
4607 argument that lie outside the IEEE 854 domain.
4608 * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
4609 (gl_ISFINITE): Use it.
4610 * doc/posix-functions/isfinite.texi: Document the fixed bugs.
4612 2008-04-27 Bruno Haible <bruno@clisp.org>
4614 Allow local renaming in config.h.
4615 * lib/memrchr.c (memrchr): Don't undefine outside libc.
4617 2008-04-27 Bruno Haible <bruno@clisp.org>
4619 * lib/memchr.c (__memchr): Change type of 'i'.
4620 * lib/memchr2.c (memchr2): Likewise.
4622 2008-04-26 Eric Blake <ebb9@byu.net>
4623 and Bruno Haible <bruno@clisp.org>
4625 Optimize and test memrchr.
4626 * modules/memrchr (Depends-on): Add intprops.
4627 * lib/memrchr.c (__memrchr): Avoid false positives in loop.
4628 * modules/memrchr-tests: New file.
4629 * tests/test-memrchr.c: New file.
4631 2008-04-26 Bruno Haible <bruno@clisp.org>
4633 Add tentative support for DragonFly BSD.
4634 * lib/stdio-impl.h: Add macros for DragonFly BSD.
4635 * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
4637 * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
4638 restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
4639 * lib/fpurge.c (fpurge): Likewise.
4640 * lib/freadable.c (freaadable): Likewise.
4641 * lib/freadahead.c (freadahead): Likewise.
4642 * lib/freading.c (freading): Likewise.
4643 * lib/freadptr.c (freadptr): Likewise.
4644 * lib/freadseek.c (freadptrinc): Likewise.
4645 * lib/fseeko.c (fseeko): Likewise.
4646 * lib/fseterr.c (fseterr): Likewise.
4647 * lib/fwritable.c (fwritable): Likewise.
4648 * lib/fwriting.c (fwriting): Likewise.
4650 2008-04-26 Bruno Haible <bruno@clisp.org>
4652 * lib/stdio-impl.h: New file.
4653 * lib/fbufmode.c: Include stdio-impl.h.
4654 (fbufmode): Use fp_, remove redundant #defines.
4655 * lib/fflush.c: Include stdio-impl.h.
4656 (clear_ungetc_buffer): Remove redundant #defines.
4657 * lib/fpurge.c: Include stdio-impl.h.
4658 (fpurge): Remove redundant #defines.
4659 * lib/freadable.c: Include stdio-impl.h.
4660 (freadable): Remove redundant #defines.
4661 * lib/freadahead.c: Include stdio-impl.h.
4662 (freadahead): Remove redundant #defines.
4663 * lib/freading.c: Include stdio-impl.h.
4664 (freading): Remove redundant #defines.
4665 * lib/freadptr.c: Include stdio-impl.h.
4666 (freadptr): Remove redundant #defines.
4667 * lib/freadseek.c: Include stdio-impl.h.
4668 (freadptrinc): Remove redundant #defines.
4669 * lib/fseeko.c: Include stdio-impl.h.
4670 (rpl_fseeko): Remove redundant #defines.
4671 * lib/fseterr.c: Include stdio-impl.h.
4672 (fseterr): Remove redundant #defines.
4673 * lib/fwritable.c: Include stdio-impl.h.
4674 (fwritable: Remove redundant #defines.
4675 * lib/fwriting.c: Include stdio-impl.h.
4676 (fwriting): Remove redundant #defines.
4677 * modules/fbufmode (Files): Add lib/stdio-impl.h.
4678 * modules/fflush (Files): Likewise.
4679 * modules/fpurge (Files): Likewise.
4680 * modules/freadable (Files): Likewise.
4681 * modules/freadahead (Files): Likewise.
4682 * modules/freading (Files): Likewise.
4683 * modules/freadptr (Files): Likewise.
4684 * modules/freadseek (Files): Likewise.
4685 * modules/fseeko (Files): Likewise.
4686 * modules/fseterr (Files): Likewise.
4687 * modules/fwritable (Files): Likewise.
4688 * modules/fwriting (Files): Likewise.
4690 2008-04-26 Bruno Haible <bruno@clisp.org>
4692 * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
4693 restore_seek_optimization, update_fpos_cache): New functions, extracted
4695 (rpl_fflush): Use them.
4696 * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
4697 (gl_REPLACE_FFLUSH): Use it.
4699 2008-04-26 Bruno Haible <bruno@clisp.org>
4701 * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
4703 * tests/test-xstrtoimax.sh: Likewise.
4704 * tests/test-xstrtoumax.sh: Likewise.
4705 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
4707 2008-04-26 Bruno Haible <bruno@clisp.org>
4709 * modules/memchr-tests: New file.
4710 * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
4712 2008-04-26 Eric Blake <ebb9@byu.net>
4713 Bruno Haible <bruno@clisp.org>
4715 * lib/memchr.c: Include intprops.h.
4716 (__memchr): Optimize parallel detection of matching bytes. Rename local
4717 variables. Add explanatory comments.
4719 2008-04-26 Bruno Haible <bruno@clisp.org>
4721 Fix module 'memchr', broken since 2000-10-28.
4722 * lib/memchr.c: Outside glibc, define memchr, not __memchr.
4724 2008-04-26 Bruno Haible <bruno@clisp.org>
4726 * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
4729 2008-04-25 Eric Blake <ebb9@byu.net>
4731 Use native fstatat on cygwin 1.7.0.
4732 * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
4735 2008-04-23 Eric Blake <ebb9@byu.net>
4737 Improve memchr2 performance.
4738 * lib/memchr2.c (memchr2): Further optimize parallel detection of
4740 * modules/memchr2 (Depends-on): Use intprops.h.
4742 2008-04-23 Simon Josefsson <simon@josefsson.org>
4744 * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
4745 an inline function instead of a CPP macro. Patch by Ben Pfaff
4746 <blp@cs.stanford.edu>.
4748 2008-04-23 Simon Josefsson <simon@josefsson.org>
4750 * lib/arpa_inet.in.h: New file.
4752 * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
4753 (Makefile.am): Sed in substitute header file.
4755 * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
4756 gl_ARPA_INET_MODULE_INDICATOR. Use them.
4758 * modules/inet_ntop (configure.ac): Use
4759 gl_ARPA_INET_MODULE_INDICATOR.
4761 * modules/inet_pton (configure.ac): Use
4762 gl_ARPA_INET_MODULE_INDICATOR.
4764 2008-04-22 Jim Meyering <meyering@redhat.com>
4766 * modules/verify (License): Re-license as LGPLv2+.
4768 2008-04-22 Simon Josefsson <simon@josefsson.org>
4770 * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
4771 parameter to void* as per POSIX standard (MinGW uses char*).
4773 2008-04-21 Bruno Haible <bruno@clisp.org>
4775 * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
4776 iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
4777 Define to replacements if REPLACE_ISWCNTRL is 1.
4778 * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
4779 If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
4780 * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
4781 * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
4783 * doc/posix-functions/iswalpha.texi: Likewise.
4784 * doc/posix-functions/iswblank.texi: Likewise.
4785 * doc/posix-functions/iswcntrl.texi: Likewise.
4786 * doc/posix-functions/iswdigit.texi: Likewise.
4787 * doc/posix-functions/iswgraph.texi: Likewise.
4788 * doc/posix-functions/iswlower.texi: Likewise.
4789 * doc/posix-functions/iswprint.texi: Likewise.
4790 * doc/posix-functions/iswpunct.texi: Likewise.
4791 * doc/posix-functions/iswspace.texi: Likewise.
4792 * doc/posix-functions/iswupper.texi: Likewise.
4793 * doc/posix-functions/iswxdigit.texi: Likewise.
4794 Reported by Alain Guibert.
4796 2008-04-21 Bruno Haible <bruno@clisp.org>
4798 * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
4799 Patch by Alain Guibert.
4801 2008-04-21 Bruno Haible <bruno@clisp.org>
4803 Fix test failures on mingw.
4804 * tests/test-xstrtol.c (print_no_progname): New function.
4805 (main): Install it in error_print_progname hook.
4806 * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
4807 * tests/test-xstrtoimax.sh: Likewise.
4808 * tests/test-xstrtoumax.sh: Likewise.
4810 2008-04-21 Bruno Haible <bruno@clisp.org>
4812 Fix test failure on mingw.
4813 * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
4815 2008-04-21 Bruno Haible <bruno@clisp.org>
4817 * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
4818 Actually assign a value.
4820 2008-04-20 Bruno Haible <bruno@clisp.org>
4822 Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
4824 * lib/canonicalize.c (canonicalize_file_name): Elide if the
4825 'canonicalize-lgpl' module is also used.
4826 * lib/canonicalize-lgpl.c: Undo last change.
4827 * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
4829 2008-04-20 Bruno Haible <bruno@clisp.org>
4831 * lib/mkdir.c (mkdir): Undefine after the includes, not right after
4832 config.h. Provide _mkdir based fallback for mingw.
4833 * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
4834 if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
4835 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
4836 gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
4837 rather than defining mkdir in config.h.
4838 * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
4839 (gl_SYS_STAT_H_DEFAULTS): New macro.
4840 (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
4842 * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
4843 HAVE_DECL_MKDIR and HAVE_IO_H.
4845 2008-04-20 Bruno Haible <bruno@clisp.org>
4847 * lib/isapipe.c: Port to native Windows platforms.
4849 2008-04-20 Bruno Haible <bruno@clisp.org>
4851 * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
4853 2008-04-21 Eric Blake <ebb9@byu.net>
4855 Work around preprocessors that don't handle UINTMAX_MAX.
4856 * lib/memchr2.c (memchr2): Avoid embedded #if.
4857 Reported by Alain Guibert, fix suggested by Bruno Haible.
4859 2008-04-21 Simon Josefsson <simon@josefsson.org>
4861 * doc/posix-functions/strftime.texi (strftime): Explain better
4862 Windows incompatibility. Suggested by Micah Cowan
4865 2008-04-20 Bruno Haible <bruno@clisp.org>
4867 * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
4870 2008-04-20 Bruno Haible <bruno@clisp.org>
4872 Fix test failure on platforms with non-GNU iconv.
4873 * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
4874 (U_TO_U8): Use it, rather than u16_to_u8.
4875 * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
4876 units at the end of the input string.
4877 * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
4879 2008-04-20 Bruno Haible <bruno@clisp.org>
4881 * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
4882 when the resulting length is 0.
4883 * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
4885 2008-04-20 Bruno Haible <bruno@clisp.org>
4887 * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
4889 * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
4891 2008-04-20 Bruno Haible <bruno@clisp.org>
4893 * tests/test-tsearch.c (main): Don't use initstate if it is missing.
4894 * modules/tsearch-tests (configure.ac): Test for initstate function.
4896 2008-04-20 Bruno Haible <bruno@clisp.org>
4898 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
4899 for nlink_t if missing.
4900 * tests/test-sys_stat.c: Check the existence of the nlink_t type.
4902 2008-04-19 Bruno Haible <bruno@clisp.org>
4904 Work around snprintf bug on Linux libc5.
4905 * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
4906 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
4908 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
4909 * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
4911 * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
4912 * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
4913 * modules/snprintf (Files): Add m4/printf.m4.
4914 * modules/vsnprintf (Files): Likewise.
4915 * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
4916 * doc/posix-functions/vsnprintf.texi: Likewise.
4918 2008-04-19 Bruno Haible <bruno@clisp.org>
4920 * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
4921 from 0.0058 to less than 10^-7.
4923 2008-04-19 Bruno Haible <bruno@clisp.org>
4925 Fix rounding when a precision is given.
4926 * lib/vasnprintf.c (is_borderline): New function.
4927 (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
4929 * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
4931 * tests/test-vasprintf-posix.c (test_function): Likewise.
4932 * tests/test-snprintf-posix.h (test_function): Likewise.
4933 * tests/test-sprintf-posix.h (test_function): Likewise.
4934 * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
4935 * tests/test-printf-posix.h (test_function): Likewise.
4936 * tests/test-printf-posix.output: Update.
4937 Reported by John Darrington <john@darrington.wattle.id.au> via
4938 Ben Pfaff <blp@cs.stanford.edu>.
4940 2008-04-18 Simon Josefsson <simon@josefsson.org>
4942 * doc/posix-functions/strftime.texi (strftime): Clarify platform.
4943 Suggested by Bruno Haible <bruno@clisp.org>.
4945 2008-04-17 Bruno Haible <bruno@clisp.org>
4947 * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
4948 gl_recursive_lock_destroy): Provide no-op definitions for the dummy
4950 Patch by Bruce Merry <bmerry@gmail.com>.
4952 2008-04-17 Simon Josefsson <simon@josefsson.org>
4954 * doc/posix-functions/strftime.texi (strftime): Mention that %e
4955 doesn't work under Windows.
4957 2008-04-16 Bruno Haible <bruno@clisp.org>
4959 * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
4961 (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
4962 SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
4963 SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
4964 SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
4965 SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
4966 SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
4967 SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
4969 (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
4970 Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
4971 Northern Sotho, Uighur.
4973 2008-04-16 Bruno Haible <bruno@clisp.org>
4975 * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
4976 (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
4977 (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
4978 Reported by Daniel Bergström <daniel@octocode.com>.
4980 2007-12-25 KJK::Hyperion <hackbunny@reactos.com>
4981 Bruno Haible <bruno@clisp.org>
4983 * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
4985 (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
4986 New functions, mostly extracted from gl_locale_name_default.
4987 (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
4989 2008-04-16 Eric Blake <ebb9@byu.net>
4991 Adjust strtod detection to catch glibc 2.7 bug.
4992 * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
4993 Reported by John Gatewood Ham.
4995 2008-04-16 Bruno Haible <bruno@clisp.org>
4997 Add tentative support for Linux libc5.
4998 * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
4999 * lib/fpurge.c (fpurge): Likewise.
5000 * lib/freadable.c (freadable): Likewise.
5001 * lib/freadahead.c (freadahead): Likewise.
5002 * lib/freading.c (freading): Likewise.
5003 * lib/freadptr.c (freadptr): Likewise.
5004 * lib/freadseek.c (freadptrinc): Likewise.
5005 * lib/fseeko.c (rpl_fseeko): Likewise.
5006 * lib/fseterr.c (fseterr): Likewise.
5007 * lib/fwritable.c (fwritable): Likewise.
5008 * lib/fwriting.c (fwriting): Likewise.
5009 Reported by Alain Guibert <alguibert+bts@free.fr>.
5011 2008-04-15 Bruno Haible <bruno@clisp.org>
5013 * modules/mathl (configure.ac): Define module indicator.
5015 2008-04-15 Bruno Haible <bruno@clisp.org>
5017 * lib/logl.c (logl): Remove unused variables.
5019 2008-04-15 Bruno Haible <bruno@clisp.org>
5021 * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
5024 2008-04-15 Bruno Haible <bruno@clisp.org>
5026 * lib/trim.c (trim2): Fix argument of isspace() macro.
5028 2008-04-15 Paolo Bonzini <bonzini@gnu.org>
5030 * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
5032 * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
5034 2008-04-14 Bruno Haible <bruno@clisp.org>
5036 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
5037 AC_LANG_PROGRAM argument.
5038 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
5039 * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
5040 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
5041 * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
5042 * m4/math_h.m4 (gl_MATH_H): Likewise.
5043 * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
5044 * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
5045 * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
5046 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
5047 * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
5048 * m4/regex.m4 (gl_REGEX): Likewise.
5049 * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
5050 * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
5051 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
5052 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
5053 * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
5054 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
5055 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
5056 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
5058 2008-04-14 Jim Meyering <meyering@redhat.com>
5060 test-strtod: fix typos: s/abs/fabs/
5061 * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
5063 2008-04-13 Bruno Haible <bruno@clisp.org>
5065 Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
5066 * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
5067 module is also used and while not building the reloc-wrapper.
5069 2008-04-13 Bruno Haible <bruno@clisp.org>
5071 * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
5073 2008-04-13 Bruno Haible <bruno@clisp.org>
5075 Fix AIX compilation failure introduced on 2008-04-02.
5076 * tests/test-frexp.c (exp): Undefine before redefining.
5077 * tests/test-frexpl.c (exp): Likewise.
5079 2008-04-13 Bruno Haible <bruno@clisp.org>
5081 Work around a HP-UX stdio bug.
5082 * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
5083 * tests/test-ftello.c (main): Likewise.
5084 * doc/posix-functions/ftell.texi: Mention HP-UX bug.
5085 * doc/posix-functions/ftello.texi: Likewise.
5087 2008-04-13 Bruno Haible <bruno@clisp.org>
5089 Make test-signbit pass on HP-UX/hppa.
5090 * tests/test-signbit.c (minus_zerol): New variable.
5091 (test_signbitl): Use it.
5093 2008-04-13 Bruno Haible <bruno@clisp.org>
5095 Make truncl work on OSF/1 4.0.
5096 * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
5097 Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
5098 * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
5099 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
5101 * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
5103 * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
5105 2008-04-13 Bruno Haible <bruno@clisp.org>
5107 * lib/unictype.h: Remove trailing comma from enumeration definitions.
5109 2008-04-13 Bruno Haible <bruno@clisp.org>
5111 * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
5112 expression, so as to avoid HP-UX 11 cc compiler bug.
5114 2008-04-13 Bruno Haible <bruno@clisp.org>
5116 * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
5118 2008-04-13 Bruno Haible <bruno@clisp.org>
5120 * lib/git-merge-changelog.c: Remove empty declaration outside of
5123 2008-04-13 Bruno Haible <bruno@clisp.org>
5125 * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
5127 2008-04-13 Bruno Haible <bruno@clisp.org>
5129 * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
5130 * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
5131 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
5132 also if it exists but lacks definitions of the SHUT_* macros.
5133 * modules/sys_socket (Description): Update.
5134 Reported by Elbert Pol <e.pol@chello.nl>.
5136 2008-04-13 Bruno Haible <bruno@clisp.org>
5138 * lib/localcharset.c (OS2): Don't redefine if already defined.
5139 Reported by Elbert Pol <e.pol@chello.nl>.
5141 2008-04-13 Bruno Haible <bruno@clisp.org>
5143 * lib/binary-io.h [__EMX__]: Include <io.h>.
5144 Reported by Elbert Pol <e.pol@chello.nl>.
5146 2008-04-12 Bruno Haible <bruno@clisp.org>
5148 * lib/fpucw.h: Enable the definitions also for x86_64.
5149 Needed for NetBSD/x86_64.
5150 Reported by Thomas Klausner <tk@giga.or.at>.
5152 2008-04-12 Bruno Haible <bruno@clisp.org>
5154 * tests/test-strtod.c: Include isnand.h.
5155 (main): Use isnand instead of isnan.
5156 Reported by Jim Meyering.
5158 2008-04-12 Bruno Haible <bruno@clisp.org>
5160 * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
5161 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
5163 2008-04-12 Jim Meyering <meyering@redhat.com>
5165 * m4/math_h.m4 (gl_MATH_H): Fix typos.
5167 2008-04-12 Bruno Haible <bruno@clisp.org>
5169 * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
5170 Reported by Elbert Pol <e.pol@chello.nl>.
5172 2008-04-12 Eric Blake <ebb9@byu.net>
5174 Work around Solaris 10 math.h bug.
5175 * m4/math_h.m4 (gl_MATH_H): Check for bug.
5176 (gl_MATH_H_DEFAULTS): Set up default.
5177 * modules/math (Makefile.am): Replace new indicators.
5178 * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
5179 * tests/test-math.c (main): Test this.
5180 * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
5181 * doc/posix-headers/math.texi (math.h): Mention bug.
5182 Reported by Nelson H. F. Beebe and Jim Meyering.
5184 2008-04-11 Bruno Haible <bruno@clisp.org>
5186 Adapt to future versions of Apple GCC.
5187 * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
5188 Reported by Peter O'Gorman <peter@pogma.com>.
5190 2008-04-11 Bruno Haible <bruno@clisp.org>
5192 * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
5194 2008-04-11 Bruno Haible <bruno@clisp.org>
5196 * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
5198 * modules/getaddrinfo-tests (Makefile.am): Define
5199 test_getaddrinfo_LDADD.
5201 2008-04-11 Bruno Haible <bruno@clisp.org>
5203 * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
5204 (init): Fix syntax error.
5205 * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
5208 2008-04-11 Bruno Haible <bruno@clisp.org>
5210 * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
5211 * modules/glob (Depends-on): Add stdbool.
5213 2008-04-11 Bruno Haible <bruno@clisp.org>
5215 * lib/trim.c: Include <string.h>.
5217 2008-04-11 Eric Blake <ebb9@byu.net>
5219 Avoid compile failure on OS/2.
5220 * lib/regex_internal.h (internal_function): Disable optimization
5221 on OS/2 (__EMX__), where it caused compiler error.
5222 Reported by Elbert Pol.
5224 2008-04-11 Bruno Haible <bruno@clisp.org>
5226 Flush the standard error stream before aborting. Needed on mingw.
5227 * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
5228 * tests/test-array_list.c (ASSERT): Likewise.
5229 * tests/test-array_oset.c (ASSERT): Likewise.
5230 * tests/test-avltree_list.c (ASSERT): Likewise.
5231 * tests/test-avltree_oset.c (ASSERT): Likewise.
5232 * tests/test-avltreehash_list.c (ASSERT): Likewise.
5233 * tests/test-binary-io.c (ASSERT): Likewise.
5234 * tests/test-byteswap.c (ASSERT): Likewise.
5235 * tests/test-c-ctype.c (ASSERT): Likewise.
5236 * tests/test-c-strcasecmp.c (ASSERT): Likewise.
5237 * tests/test-c-strcasestr.c (ASSERT): Likewise.
5238 * tests/test-c-strncasecmp.c (ASSERT): Likewise.
5239 * tests/test-c-strstr.c (ASSERT): Likewise.
5240 * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
5241 * tests/test-canonicalize.c (ASSERT): Likewise.
5242 * tests/test-carray_list.c (ASSERT): Likewise.
5243 * tests/test-ceilf1.c (ASSERT): Likewise.
5244 * tests/test-ceilf2.c (ASSERT): Likewise.
5245 * tests/test-ceill.c (ASSERT): Likewise.
5246 * tests/test-count-one-bits.c (ASSERT): Likewise.
5247 * tests/test-fbufmode.c (ASSERT): Likewise.
5248 * tests/test-fflush2.c (ASSERT): Likewise.
5249 * tests/test-floorf1.c (ASSERT): Likewise.
5250 * tests/test-floorf2.c (ASSERT): Likewise.
5251 * tests/test-floorl.c (ASSERT): Likewise.
5252 * tests/test-fopen.c (ASSERT): Likewise.
5253 * tests/test-fpending.c (ASSERT): Likewise.
5254 * tests/test-fprintf-posix.c (ASSERT): Likewise.
5255 * tests/test-fpurge.c (ASSERT): Likewise.
5256 * tests/test-freadable.c (ASSERT): Likewise.
5257 * tests/test-freadahead.c (ASSERT): Likewise.
5258 * tests/test-freading.c (ASSERT): Likewise.
5259 * tests/test-freadptr.c (ASSERT): Likewise.
5260 * tests/test-freadptr2.c (ASSERT): Likewise.
5261 * tests/test-freadseek.c (ASSERT): Likewise.
5262 * tests/test-freopen.c (ASSERT): Likewise.
5263 * tests/test-frexp.c (ASSERT): Likewise.
5264 * tests/test-frexpl.c (ASSERT): Likewise.
5265 * tests/test-fseek.c (ASSERT): Likewise.
5266 * tests/test-fseeko.c (ASSERT): Likewise.
5267 * tests/test-fstrcmp.c (ASSERT): Likewise.
5268 * tests/test-ftell.c (ASSERT): Likewise.
5269 * tests/test-ftello.c (ASSERT): Likewise.
5270 * tests/test-func.c (ASSERT): Likewise.
5271 * tests/test-fwritable.c (ASSERT): Likewise.
5272 * tests/test-fwriting.c (ASSERT): Likewise.
5273 * tests/test-getdelim.c (ASSERT): Likewise.
5274 * tests/test-getline.c (ASSERT): Likewise.
5275 * tests/test-i-ring.c (ASSERT): Likewise.
5276 * tests/test-iconv-utf.c (ASSERT): Likewise.
5277 * tests/test-iconv.c (ASSERT): Likewise.
5278 * tests/test-isfinite.c (ASSERT): Likewise.
5279 * tests/test-isnand.c (ASSERT): Likewise.
5280 * tests/test-isnanf.c (ASSERT): Likewise.
5281 * tests/test-isnanl.h (ASSERT): Likewise.
5282 * tests/test-ldexpl.c (ASSERT): Likewise.
5283 * tests/test-linked_list.c (ASSERT): Likewise.
5284 * tests/test-linkedhash_list.c (ASSERT): Likewise.
5285 * tests/test-localename.c (ASSERT): Likewise.
5286 * tests/test-lseek.c (ASSERT): Likewise.
5287 * tests/test-mbscasecmp.c (ASSERT): Likewise.
5288 * tests/test-mbscasestr1.c (ASSERT): Likewise.
5289 * tests/test-mbscasestr2.c (ASSERT): Likewise.
5290 * tests/test-mbscasestr3.c (ASSERT): Likewise.
5291 * tests/test-mbscasestr4.c (ASSERT): Likewise.
5292 * tests/test-mbschr.c (ASSERT): Likewise.
5293 * tests/test-mbscspn.c (ASSERT): Likewise.
5294 * tests/test-mbsncasecmp.c (ASSERT): Likewise.
5295 * tests/test-mbspbrk.c (ASSERT): Likewise.
5296 * tests/test-mbspcasecmp.c (ASSERT): Likewise.
5297 * tests/test-mbsrchr.c (ASSERT): Likewise.
5298 * tests/test-mbsspn.c (ASSERT): Likewise.
5299 * tests/test-mbsstr1.c (ASSERT): Likewise.
5300 * tests/test-mbsstr2.c (ASSERT): Likewise.
5301 * tests/test-mbsstr3.c (ASSERT): Likewise.
5302 * tests/test-memchr2.c (ASSERT): Likewise.
5303 * tests/test-memmem.c (ASSERT): Likewise.
5304 * tests/test-open.c (ASSERT): Likewise.
5305 * tests/test-printf-frexp.c (ASSERT): Likewise.
5306 * tests/test-printf-frexpl.c (ASSERT): Likewise.
5307 * tests/test-printf-posix.c (ASSERT): Likewise.
5308 * tests/test-quotearg.c (ASSERT): Likewise.
5309 * tests/test-rbtree_list.c (ASSERT): Likewise.
5310 * tests/test-rbtree_oset.c (ASSERT): Likewise.
5311 * tests/test-rbtreehash_list.c (ASSERT): Likewise.
5312 * tests/test-round1.c (ASSERT): Likewise.
5313 * tests/test-roundf1.c (ASSERT): Likewise.
5314 * tests/test-roundl.c (ASSERT): Likewise.
5315 * tests/test-signbit.c (ASSERT): Likewise.
5316 * tests/test-sleep.c (ASSERT): Likewise.
5317 * tests/test-snprintf-posix.c (ASSERT): Likewise.
5318 * tests/test-snprintf.c (ASSERT): Likewise.
5319 * tests/test-sprintf-posix.c (ASSERT): Likewise.
5320 * tests/test-stat-time.c (ASSERT): Likewise.
5321 * tests/test-strcasestr.c (ASSERT): Likewise.
5322 * tests/test-strerror.c (ASSERT): Likewise.
5323 * tests/test-striconv.c (ASSERT): Likewise.
5324 * tests/test-striconveh.c (ASSERT): Likewise.
5325 * tests/test-striconveha.c (ASSERT): Likewise.
5326 * tests/test-strsignal.c (ASSERT): Likewise.
5327 * tests/test-strstr.c (ASSERT): Likewise.
5328 * tests/test-strtod.c (ASSERT): Likewise.
5329 * tests/test-trunc1.c (ASSERT): Likewise.
5330 * tests/test-trunc2.c (ASSERT): Likewise.
5331 * tests/test-truncf1.c (ASSERT): Likewise.
5332 * tests/test-truncf2.c (ASSERT): Likewise.
5333 * tests/test-truncl.c (ASSERT): Likewise.
5334 * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
5335 * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
5336 * tests/test-vasnprintf.c (ASSERT): Likewise.
5337 * tests/test-vasprintf-posix.c (ASSERT): Likewise.
5338 * tests/test-vasprintf.c (ASSERT): Likewise.
5339 * tests/test-vfprintf-posix.c (ASSERT): Likewise.
5340 * tests/test-vprintf-posix.c (ASSERT): Likewise.
5341 * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
5342 * tests/test-vsnprintf.c (ASSERT): Likewise.
5343 * tests/test-vsprintf-posix.c (ASSERT): Likewise.
5344 * tests/test-wcwidth.c (ASSERT): Likewise.
5345 * tests/test-xfprintf-posix.c (ASSERT): Likewise.
5346 * tests/test-xprintf-posix.c (ASSERT): Likewise.
5347 * tests/test-xvasprintf.c (ASSERT): Likewise.
5348 * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
5349 * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
5350 * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
5351 * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
5352 * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
5353 * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
5354 * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
5355 * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
5356 * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
5357 * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
5358 * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
5359 * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
5360 * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
5361 * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
5362 * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
5363 * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
5364 * tests/unictype/test-block_list.c (ASSERT): Likewise.
5365 * tests/unictype/test-block_of.c (ASSERT): Likewise.
5366 * tests/unictype/test-block_test.c (ASSERT): Likewise.
5367 * tests/unictype/test-categ_and.c (ASSERT): Likewise.
5368 * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
5369 * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
5370 * tests/unictype/test-categ_name.c (ASSERT): Likewise.
5371 * tests/unictype/test-categ_none.c (ASSERT): Likewise.
5372 * tests/unictype/test-categ_of.c (ASSERT): Likewise.
5373 * tests/unictype/test-categ_or.c (ASSERT): Likewise.
5374 * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
5375 * tests/unictype/test-combining.c (ASSERT): Likewise.
5376 * tests/unictype/test-decdigit.c (ASSERT): Likewise.
5377 * tests/unictype/test-digit.c (ASSERT): Likewise.
5378 * tests/unictype/test-mirror.c (ASSERT): Likewise.
5379 * tests/unictype/test-numeric.c (ASSERT): Likewise.
5380 * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
5381 * tests/unictype/test-pr_test.c (ASSERT): Likewise.
5382 * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
5383 * tests/unictype/test-scripts.c (ASSERT): Likewise.
5384 * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
5385 * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
5386 * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
5387 * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
5388 * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
5389 * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
5390 * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
5391 * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
5392 * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
5393 * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
5394 * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
5395 * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
5396 * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
5397 * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
5398 * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
5399 * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
5400 * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
5401 * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
5402 * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
5403 * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
5404 * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
5405 * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
5406 * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
5407 * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
5408 * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
5409 * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
5410 * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
5411 * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
5412 * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
5413 * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
5414 * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
5415 * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
5416 * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
5417 * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
5418 * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
5419 * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
5420 * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
5421 Reported by Eric Blake.
5423 2008-04-11 Bruno Haible <bruno@clisp.org>
5425 * lib/wchar.in.h: Tweak comment.
5427 2008-04-11 Bruno Haible <bruno@clisp.org>
5429 Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
5430 * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
5432 * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
5434 2008-04-11 Bruno Haible <bruno@clisp.org>
5436 * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
5438 2008-04-11 Simon Josefsson <simon@josefsson.org>
5440 * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
5441 of attempting to use non-existing /dev/*random. Based on patch
5442 from Adam Strzelecki <ono@java.pl> in
5443 <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
5445 2008-04-08 Bruno Haible <bruno@clisp.org>
5447 Add tentative support for emx+gcc.
5448 * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
5449 * lib/fpurge.c (fpurge): Likewise.
5450 * lib/freadable.c (freadable): Likewise.
5451 * lib/freadahead.c (freadahead): Likewise.
5452 * lib/freading.c (freading): Likewise.
5453 * lib/freadptr.c (freadptr): Likewise.
5454 * lib/freadseek.c (freadptrinc): Likewise.
5455 * lib/fseeko.c (rpl_fseeko): Likewise.
5456 * lib/fseterr.c (fseterr): Likewise.
5457 * lib/fwritable.c (fwritable): Likewise.
5458 * lib/fwriting.c (fwriting): Likewise.
5459 * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
5461 2008-04-09 Eric Blake <ebb9@byu.net>
5463 Avoid some autoconf warnings.
5464 * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
5465 * m4/acl.m4 (gl_FUNC_ACL): Likewise.
5466 * m4/afs.m4 (gl_AFS): Likewise.
5467 * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
5468 * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
5469 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
5470 * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
5471 (gl_INTEGER_TYPE_SUFFIX): Likewise.
5472 * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
5473 (AC_CHECK_DECLS_ONCE): Likewise.
5475 * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
5476 gnulib-tool requires autoconf 2.59 or better.
5477 * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
5479 2008-04-08 Eric Blake <ebb9@byu.net>
5481 Use 'git describe --match' if present (added in git 1.5.5).
5482 * build-aux/git-version-gen: Limit result to tags that match 'v*'
5485 2008-04-08 Bruno Haible <bruno@clisp.org>
5487 Add tentative support for OpenServer.
5488 * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
5490 * lib/fpurge.c (fpurge): Likewise.
5491 * lib/freadable.c (freadable): Likewise.
5492 * lib/freadahead.c (freadahead): Likewise.
5493 * lib/freading.c (freading): Likewise.
5494 * lib/freadptr.c (freadptr): Likewise.
5495 * lib/freadseek.c (freadptrinc): Likewise.
5496 * lib/fseeko.c (rpl_fseeko): Likewise.
5497 * lib/fseterr.c (fseterr): Likewise.
5498 * lib/fwritable.c (fwritable): Likewise.
5499 * lib/fwriting.c (fwriting): Likewise.
5500 Reported by Roger Cornelius <rac@tenzing.org> and
5501 Brian K. White <brian@aljex.com>.
5503 2008-04-06 Jim Meyering <meyering@redhat.com>
5505 * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
5507 2008-04-06 Bruno Haible <bruno@clisp.org>
5509 Avoid possible error with non-ASCII bytes in UTF-8 locales.
5510 * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
5511 * tests/test-printf-posix.sh: Likewise.
5512 * tests/test-vfprintf-posix.sh: Likewise.
5513 * tests/test-vprintf-posix.sh: Likewise.
5514 * tests/test-xprintf-posix.sh: Likewise.
5516 2008-04-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5518 * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
5519 hide error from 'ls', needed on OS/2.
5520 Report by Elbert Pol <elbert.pol@gmail.com>.
5522 2008-04-04 Eric Blake <ebb9@byu.net>
5524 Make test-fseeko.c failures meaningful.
5525 * tests/test-fseeko.c: Print line number on failure.
5526 * tests/test-fseek.c: Likewise.
5527 Reported by Nelson H. F. Beebe.
5529 Improve strtod bug detection check.
5530 * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
5531 required for Solaris 10.
5532 Reported by Bob Friesenhahn and Nelson H. F. Beebe.
5534 2008-04-04 Bruno Haible <bruno@clisp.org>
5536 * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
5539 2008-04-03 Eric Blake <ebb9@byu.net>
5541 Ensure sane .version contents.
5542 * top/GNUmakefile (_dummy): Also delete .version when rebuilding
5544 * build-aux/git-version-gen: Improve documentation.
5546 Make GNU make output nicer.
5547 * top/GNUmakefile [!_have-Makefile]: Add dependency on
5548 MAKECMDGOALS to enforce message for all command line targets. Set
5549 srcdir for use in maint.mk.
5551 Another maintainer tweak.
5552 * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
5553 a target that regenerates version.
5555 2008-04-03 Jim Meyering <meyering@redhat.com>
5557 vc-list-files: don't cause coreutils "make po-check" failure
5558 * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
5560 2008-04-03 Eric Blake <ebb9@byu.net>
5562 Allow VPATH usage of vc-list-files.
5563 * build-aux/vc-list-files (scriptversion): Add timestamp.
5564 (options): Add --help, --version, -C.
5565 (CVS): Support installed cvsu.
5567 2008-04-02 Bruno Haible <bruno@clisp.org>
5569 Avoid some "statement with no effect" warnings from gcc.
5570 * tests/test-wctype.c (main): Explicitly ignore unused values.
5571 Reported by Jim Meyering.
5573 2008-04-02 Jim Meyering <meyering@redhat.com>
5575 Avoid some warnings from "gcc -Wshadow".
5576 * tests/test-frexp.c (exp): Define to a different identifier.
5577 * tests/test-frexpl.c (exp): Likewise.
5579 2008-04-03 Jim Meyering <meyering@redhat.com>
5581 bootstrap: remove dangling *.[ch] symlinks from lib
5582 * build-aux/bootstrap [dangling symlink removal]: Move find's
5583 -depth option to precede all others, to avoid a warning.
5584 Remove *.[ch] files too, and from "$source_base" (usually lib/).
5586 2008-04-02 Bruno Haible <bruno@clisp.org>
5588 Avoid some warnings from "gcc -Wshadow".
5589 * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
5590 * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
5591 * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
5592 * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
5593 Reported by Jim Meyering.
5595 2008-04-01 Bruno Haible <bruno@clisp.org>
5597 Fix test to work on IRIX 6.5 with cc.
5598 * tests/test-math.c (numeric_equal): New function.
5601 2008-04-01 Bruno Haible <bruno@clisp.org>
5603 * doc/posix-headers/math.texi: Refine documentation of NAN problem.
5605 2008-04-01 Bruno Haible <bruno@clisp.org>
5607 * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
5608 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
5609 * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
5610 (Depends-on): Remove math.
5612 * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
5613 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
5614 * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
5615 (Depends-on): Remove math.
5617 * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
5618 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
5619 * modules/snprintf-posix-tests (Files): Add tests/nan.h.
5620 (Depends-on): Remove math.
5621 * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
5622 (Depends-on): Remove math.
5624 * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
5625 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
5626 * modules/sprintf-posix-tests (Files): Add tests/nan.h.
5627 (Depends-on): Remove math.
5628 * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
5629 (Depends-on): Remove math.
5631 * tests/test-round1.c: Include nan.h.
5632 (main): Use NaNd instead of NAN.
5633 * modules/round-tests (Files): Add tests/nan.h.
5635 * tests/test-trunc1.c: Include nan.h.
5636 (main): Use NaNd instead of NAN.
5637 * modules/trunc-tests (Files): Add tests/nan.h.
5639 * tests/test-roundf1.c: Include nan.h.
5640 (main): Use NaNf instead of NAN.
5641 * modules/roundf-tests (Files): Add tests/nan.h.
5643 * tests/test-truncf1.c: Include nan.h.
5644 (main): Use NaNf instead of NAN.
5645 * modules/truncf-tests (Files): Add tests/nan.h.
5647 * tests/test-ceilf1.c: Include nan.h.
5648 (main): Use NaNf instead of NAN.
5649 * modules/ceilf-tests (Files): Add tests/nan.h.
5651 * tests/test-floorf1.c: Include nan.h.
5652 (main): Use NaNf instead of NAN.
5653 * modules/floorf-tests (Files): Add tests/nan.h.
5655 * tests/test-isnanf.c: Include nan.h instead of <math.h>.
5656 (main): Use NaNf instead of NAN.
5657 * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
5659 * tests/test-isnand.c: Include nan.h instead of <math.h>.
5660 (main): Use NaNd instead of NAN.
5661 * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
5663 * tests/test-frexp.c: Include nan.h.
5664 (main): Use NaNd instead of NAN.
5665 * modules/frexp-tests (Files): Add tests/nan.h.
5667 * lib/isnan.c: Don't include <math.h>.
5668 (FUNC): Don't use NAN macro.
5669 * modules/isnand-nolibm (Depends-on): Remove math.
5670 * modules/isnanf-nolibm (Depends-on): Remove math.
5671 * modules/isnanl (Depends-on): Remove math.
5672 * modules/isnanl-nolibm (Depends-on): Remove math.
5674 * tests/nan.h: New file.
5676 2008-04-01 Eric Blake <ebb9@byu.net>
5679 * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
5680 values to be the right type.
5682 For now, cater to gnulib strtod inaccuracies.
5683 * tests/test-strtod.c (main): Allow 1-ulp error on expected
5684 fractional results. While not as nice from a QoI perspective, it
5685 is a quicker patch than correctly implementing decimal to binary
5688 2008-03-31 Eric Blake <ebb9@byu.net>
5690 Guarantee a definition of NAN.
5691 * lib/math.in.h (NAN): Define if missing.
5692 * tests/test-math.c (main): Test it.
5693 * doc/posix-headers/math.texi (math.h): Document this.
5694 * lib/isnan.c (rpl_isnand): Use it.
5695 * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
5696 * tests/test-floorf1.c (NaN): Likewise.
5697 * tests/test-frexp.c (NaN): Likewise.
5698 * tests/test-isnand.c (NaN): Likewise.
5699 * tests/test-isnanf.c (NaN): Likewise.
5700 * tests/test-round1.c (NaN): Likewise.
5701 * tests/test-roundf1.c (NaN): Likewise.
5702 * tests/test-snprintf-posix.h (NaN): Likewise.
5703 * tests/test-sprintf-posix.h (NaN): Likewise.
5704 * tests/test-trunc1.c (NaN): Likewise.
5705 * tests/test-truncf1.c (NaN): Likewise.
5706 * tests/test-vasnprintf-posix.c (NaN): Likewise.
5707 * tests/test-vasprintf-posix.c (NaN): Likewise.
5708 * modules/isnand-nolibm (Depends-on): Add math.
5709 * modules/isnanf-nolibm (Depends-on): Likewise.
5710 * modules/isnanl (Depends-on): Likewise.
5711 * modules/isnanl-nolibm (Depends-on): Likewise.
5712 * modules/snprintf-posix-tests (Depends-on): Likewise.
5713 * modules/sprintf-posix-tests (Depends-on): Likewise.
5714 * modules/vsnprintf-posix-tests (Depends-on): Likewise.
5715 * modules/vsprintf-posix-tests (Depends-on): Likewise.
5716 * modules/vasnprintf-posix-tests (Depends-on): Likewise.
5717 * modules/vasprintf-posix-tests (Depends-on): Likewise.
5719 2008-03-31 Bruno Haible <bruno@clisp.org>
5721 * tests/test-strtod.c (main): Update results for OSF/1 platforms.
5722 * doc/posix-functions/strtod.texi: Likewise.
5724 2008-03-31 Bruno Haible <bruno@clisp.org>
5726 * tests/test-strtod.c (main): Don't use C99 syntax.
5728 2008-03-31 Bruno Haible <bruno@clisp.org>
5730 * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
5731 Reported by Eric Blake.
5733 2008-03-31 Jim Meyering <meyering@redhat.com>
5735 Don't compare actual signbit return values.
5736 * tests/test-strtod.c (main): Rather, compare only their
5737 zero/non-zero nature.
5739 2008-03-31 Eric Blake <ebb9@byu.net>
5741 More strtod documentation.
5742 * doc/posix-functions/strtod.texi (strtod): Interpret more test
5743 failures as distinct bugs.
5745 2008-03-30 Paul Eggert <eggert@cs.ucla.edu>
5747 * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
5748 Problem reported by Erik Benada in
5749 <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
5751 2008-03-30 Bruno Haible <bruno@clisp.org>
5753 * tests/test-strtod.c: Add comments about which assertion fails on which
5755 * doc/posix-functions/strtod.texi: Add info about many more platforms.
5757 2008-03-30 Eric Blake <ebb9@byu.net>
5759 Test signbit behavior on zeros.
5760 * tests/test-signbit.c (test_signbitf): Add tests for zero.
5761 (test_signbitd, test_signbitl): Likewise.
5763 More strtod touchups.
5764 * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
5765 sign of negative underflow, for now. Use .5, not .1.
5766 * doc/posix-functions/strtod.texi (strtod): Mention these
5768 Reported by Jim Meyering.
5770 2008-03-30 Bruno Haible <bruno@clisp.org>
5772 * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
5773 from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
5775 2008-03-30 Bruno Haible <bruno@clisp.org>
5777 Avoid failure when attempting to return empty iconv results on some
5779 * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
5780 allocation, don't report ENOMEM when the resulting string is empty.
5782 2008-03-30 Bruno Haible <bruno@clisp.org>
5785 * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
5786 Don't consider the width for tmp_length. Check count against tmp_length
5787 before doing the padding. Ensure enough allocation during padding.
5789 2008-03-30 Eric Blake <ebb9@byu.net>
5792 * lib/strtod.c (strtod): Avoid compiler warnings.
5793 Reported by Jim Meyering.
5795 2008-03-30 Bruno Haible <bruno@clisp.org>
5797 * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
5798 * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
5799 * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
5800 * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
5801 * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
5802 * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
5803 * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
5804 * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
5806 * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
5807 * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
5808 * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
5809 * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
5810 * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
5811 * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
5812 * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
5813 * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
5815 * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
5816 * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
5817 * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
5818 * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
5819 * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
5820 * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
5821 * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
5822 * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
5824 * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
5825 * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
5827 * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
5828 * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
5830 * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
5831 * modules/xvasprintf (Depends-on): Add EOVERFLOW.
5833 * lib/vsprintf.c (EOVERFLOW): Remove fallback.
5834 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
5835 * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
5837 * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
5838 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
5839 * modules/vsnprintf (Depends-on): Add EOVERFLOW.
5841 * lib/vfprintf.c (EOVERFLOW): Remove fallback.
5842 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
5843 * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
5845 * lib/vasprintf.c (EOVERFLOW): Remove fallback.
5846 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
5847 * modules/vasprintf (Depends-on): Add EOVERFLOW.
5849 * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
5850 * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
5851 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
5852 * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
5853 (Depends-on): Add EOVERFLOW.
5854 * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
5855 (Depends-on): Add EOVERFLOW.
5856 * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
5857 (Depends-on): Add EOVERFLOW.
5858 * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
5859 (Depends-on): Add EOVERFLOW.
5860 * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
5861 (Depends-on): Add EOVERFLOW.
5862 * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
5863 (Depends-on): Add EOVERFLOW.
5864 * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
5865 (Depends-on): Add EOVERFLOW.
5866 * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
5867 (Depends-on): Add EOVERFLOW.
5869 * lib/sprintf.c (EOVERFLOW): Remove fallback.
5870 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
5871 * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
5873 * lib/snprintf.c (EOVERFLOW): Remove fallback.
5874 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
5875 * modules/snprintf (Depends-on): Add EOVERFLOW.
5877 * lib/poll.c (EOVERFLOW): Remove fallback.
5878 * modules/poll (Depends-on): Add EOVERFLOW.
5880 * lib/getugroups.c (EOVERFLOW): Remove fallback.
5881 * modules/getugroups (Depends-on): Add EOVERFLOW.
5883 * lib/getdelim.c (EOVERFLOW): Remove fallback.
5884 * modules/getdelim (Depends-on): Add EOVERFLOW.
5886 * lib/ftell.c (EOVERFLOW): Remove fallback.
5887 * modules/ftell (Depends-on): Add EOVERFLOW.
5889 * lib/fprintf.c (EOVERFLOW): Remove fallback.
5890 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
5891 * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
5893 * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
5895 * modules/EOVERFLOW-tests: New file.
5896 * tests/test-EOVERFLOW.c: New file.
5898 * modules/EOVERFLOW: New file.
5899 * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
5901 2008-03-30 Bruno Haible <bruno@clisp.org>
5903 Fix bug introduced on 2007-06-10.
5904 * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
5905 spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
5907 2008-03-30 Bruno Haible <bruno@clisp.org>
5909 Improve freadseek's efficiency after ungetc.
5910 * lib/freadseek.c: Include freadahead.h.
5911 (freadptrinc): New function, extracted from freadseek.
5912 (freadseek): Use it in a loop. Use freadahead to determine the number
5914 * modules/freadseek (Depends-on): Add freadahead.
5915 (configure.ac): Require AC_C_INLINE.
5917 2008-03-30 Bruno Haible <bruno@clisp.org>
5919 * lib/freadseek.c (freadseek): Don't ignore the return value of
5922 2008-03-29 Eric Blake <ebb9@byu.net>
5924 Add hex float support.
5925 * modules/strtod (Depends-on): Add c-ctype.
5926 (Link): Mention POW_LIB.
5927 * lib/strtod.c (strtod): Recognize hex floats. Don't allow
5928 whitespace between 'e' and exponent.
5929 * tests/test-strtod.c (main): Enable hex float tests.
5930 * doc/posix-functions/strtod.texi (strtod): Document what gnulib
5933 Document various strtod bugs, with some fixes.
5934 * doc/posix-functions/strtod.texi (strtod): Document bugs with
5935 "-0x", "inf", "nan", and hex constants.
5936 * doc/posix-functions/atof.texi (atof): Likewise.
5937 * modules/stdlib (Makefile.am): Support strtod.
5938 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
5939 * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
5940 detect additional strtod bugs.
5941 * lib/stdlib.in.h (rpl_strtod): Add declarations.
5942 * lib/strtod.c (strtod): Return -0.0 on negative underflow. Use
5943 bool where appropriate. Parse 'inf' and 'nan'.
5944 * tests/test-strtod.c: New file.
5945 * modules/strtod (Depends-on): Add stdbool, stdlib.
5946 (configure.ac): Turn on module indicator.
5947 * modules/strtod-tests: New module.
5949 2008-03-29 Eric Blake <ebb9@byu.net>
5952 * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
5953 * modules/ftell-tests (Depends-on): Add binary-io.
5954 * modules/ftello-tests (Depends-on): Likewise.
5955 * tests/test-ftell.c (main): Enhance test to cover behavior after
5956 ungetc. Enforce binary mode.
5957 * tests/test-ftello.c (main): Likewise.
5959 Pass test-freadseek on cygwin.
5960 * modules/freadseek (Depends-on): Use freadptr, not freadahead.
5961 * lib/freadseek.c (freadseek): Don't increment beyond bounds of
5964 * tests/test-fflush2.c (main): Fix typo.
5966 2008-03-29 Bruno Haible <bruno@clisp.org>
5968 * tests/test-fflush2.c (main): Temporarily disable the contents of
5970 * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
5971 Reported by Eric Blake.
5973 2008-03-28 Simon Josefsson <simon@josefsson.org>
5975 * lib/gc.h (enum Gc_hash): Add GC_SHA224.
5976 (GC_SHA224_DIGEST_SIZE): Add.
5978 * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
5979 (gc_hash_digest_length): Likewise.
5980 (gc_hash_buffer): Likewise.
5982 2008-03-25 Bruno Haible <bruno@clisp.org>
5984 * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
5985 detail which gettext release to use.
5986 Reported by Simon Josefsson.
5988 2008-03-26 Jim Meyering <meyering@redhat.com>
5990 gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
5991 * modules/gnumakefile (clean-GNUmakefile): Also, use
5992 test ... && ... || : syntax rather than if-then ... fi.
5994 gnumakefile: Don't double-quote-expand $(VPATH) value.
5995 * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
5997 2008-03-24 Eric Blake <ebb9@byu.net>
5999 Alter GNUmakefile to install into top directory.
6000 * modules/maintainer-makefile: Split, and add dependency...
6001 * modules/gnumakefile: to this new module.
6002 * build-aux/GNUmakefile: Move...
6003 * top/GNUmakefile: ...here.
6004 * build-aux/maint.mk: Move...
6005 * top/maint.mk: ...here.
6006 * MODULES.html.sh (Support for maintaining...): Document new
6009 2008-03-23 Bruno Haible <bruno@clisp.org>
6011 * gnulib-tool: New options --vc-files, --no-vc-files.
6012 (func_usage): Document them.
6013 (vc_files): New variable.
6014 (func_import): Consider vc_files.
6015 (func_create_testdir): Set vc_files to empty.
6016 Suggested by Jim Meyering and Karl Berry.
6018 2008-03-23 Bruno Haible <bruno@clisp.org>
6020 Fix regex compilation error on HP-UX 11.
6021 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
6022 * modules/regex (Files): Add m4/mbstate_t.m4.
6023 Reported by Ton Voon <ton.voon@altinity.com>.
6025 2008-03-23 Bruno Haible <bruno@clisp.org>
6027 * doc/gnulib-tool.texi (gettextize and autopoint): New section.
6029 2008-03-23 Eric Blake <ebb9@byu.net>
6030 Bruno Haible <bruno@clisp.org>
6032 Install files from top/ in the destination directory.
6033 * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
6034 augmentation also for the files from top/.
6035 (func_import, func_create_testdir): Rewrite file names:
6036 top/filename -> filename.
6038 2008-03-23 Bruno Haible <bruno@clisp.org>
6040 Tweak "gnulib --version" output.
6041 * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
6043 2008-03-23 Bruno Haible <bruno@clisp.org>
6045 Tweak "gnulib --version" output.
6046 * gnulib-tool (func_version): Use date of last commit to ChangeLog,
6047 rather than contents of ChangeLog, when possible.
6049 2008-03-21 Eric Blake <ebb9@byu.net>
6051 More --version tweaks.
6052 * gnulib-tool (func_version): Obey GNU Coding Standards. Output
6053 date of last ChangeLog entry.
6055 2008-03-21 Jim Meyering <meyering@redhat.com>
6057 * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
6059 2008-03-20 Eric Blake <ebb9@byu.net>
6062 * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
6064 2008-03-20 Simon Josefsson <simon@josefsson.org>
6066 * build-aux/GNUmakefile: Make git-version-gen optional. Add
6067 _build-aux variable. Suggested by Eric Blake <ebb9@byu.net>.
6069 2008-03-20 Eric Blake <ebb9@byu.net>
6071 Sync GNUmakefile with coreutils.
6072 * build-aux/GNUmakefile (have-Makefile): Rename...
6073 (_have-Makefile): ...to this, for namespace consideration.
6074 (GNUmakefile.cfg): Include, if present.
6075 (_autoreconf): Define a default.
6076 (_is-dist-target): New rule for rebuilds to pick up intra-release
6078 (maint-cfg.mk): Rename...
6079 (cfg.mk): ...to this.
6081 2008-03-18 Jim Meyering <meyering@redhat.com>
6083 New script and module: mktempd
6084 * MODULES.html.sh (maint+release support): Add mktempd.
6085 * build-aux/mktempd: New file.
6086 * modules/mktempd: New file.
6088 2008-03-15 Jim Meyering <meyering@redhat.com>
6091 * lib/sha1.c, lib/md5.c: 63 != ~63.
6092 Reported by Andreas Schwab.
6094 sha1.c, md5.c: Hoist a redundant expression.
6095 * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
6096 "ctx->buflen" only once, before calling *_process_block.
6097 * lib/md5.c (md5_process_bytes): Likewise.
6099 2008-03-14 Eric Blake <ebb9@byu.net>
6101 Bump copyright year in files generated by gnulib-tool.
6102 * gnulib-tool (func_emit_copyright_notice): Extract copyright from
6103 gnulib-tool, rather than hard-coding it.
6105 Fix 'gnulib-tool --version' output to work with git.
6106 * gnulib-tool (func_gnulib_dir): New function, extracted from...
6108 (func_version): Use it to invoke git-version-gen, rather than
6109 relying on CVS keyword expansion. Modernize wording.
6110 (cvsdatestamp, last_checkin_date, version): Kill unused
6113 2008-03-12 Jim Meyering <meyering@redhat.com>
6115 Recognize optional cast of the argument to free.
6116 * build-aux/useless-if-before-free: Update regexps.
6118 * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
6120 2008-03-11 Bruno Haible <bruno@clisp.org>
6122 Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
6123 by a single package.
6124 * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
6125 (AC_LIB_LINKFLAGS_BODY): Use the information stored by
6126 AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
6127 Reported by Sam Steingold <sds@gnu.org>.
6129 2008-03-12 Sergey Poznyakoff <gray@gnu.org.ua>
6131 * build-aux/bootstrap (version_controlled_file): Adapt for SVN
6134 2008-03-11 Bruno Haible <bruno@clisp.org>
6136 Avoid conflicts between local macro definitions.
6137 * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
6138 AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
6140 2008-03-10 Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>
6141 Bruno Haible <bruno@clisp.org>
6143 Make va_copy work with some version of xlc on AIX 5.1.
6144 * lib/stdarg.in.h: New file.
6145 * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
6146 On AIX, use a <stdarg.h> file substitute.
6147 * modules/stdarg (Files): Add lib/stdarg.in.h.
6148 (Depends-on): Add include_next.
6149 (Makefile.am): Build a stdarg.h substitute if requested.
6150 * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
6152 2008-03-10 Bruno Haible <bruno@clisp.org>
6154 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
6155 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
6156 Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
6158 2008-03-10 Bruno Haible <bruno@clisp.org>
6160 * modules/stdlib (Depends-on): Add include_next, remove
6163 2008-03-09 Bruno Haible <bruno@clisp.org>
6165 * lib/freadahead.h (freadahead): Document more precisely.
6166 * lib/freadahead.c (freadahead): When an ungetc is in effect, return
6167 the sum of both buffer sizes.
6168 * tests/test-freadahead.c (main): Also test behaviour after ungetc.
6169 * NEWS: Document the change.
6171 2008-03-09 Bruno Haible <bruno@clisp.org>
6173 Extend freadptr to return also the buffer size.
6174 * lib/freadptr.h (freadptr): Add sizep argument.
6175 * lib/freadptr.c: Include freadptr.h, not freadahead.h.
6176 (freadptr): Add sizep argument. Determine buffer size like freadahead
6178 * tests/test-freadptr.c: Don't include freadahead.h.
6179 (main): Adapt for new calling convention of freadptr.
6180 * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
6181 * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
6182 * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
6183 tests/test-freadptr2.sh.
6184 (Depends): Remove freadahead.
6185 (TESTS): Add test-freadptr2.sh.
6186 (check_PROGRAMS): Add test-freadptr2.
6188 2008-03-09 Bruno Haible <bruno@clisp.org>
6190 * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
6191 Report and solution by Simon Josefsson.
6193 2008-03-06 Bruno Haible <bruno@clisp.org>
6195 Make fflush after ungetc work on BSD platforms.
6196 * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
6197 * tests/test-fflush2.c: New file.
6198 * tests/test-fflush2.sh: New file.
6199 * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
6200 tests/test-fflush2.c.
6201 (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
6202 * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
6204 2008-03-06 Eric Blake <ebb9@byu.net>
6206 Likewise for ftello.
6207 * modules/ftello (Dependencies): Add extensions.
6208 * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
6210 2008-03-06 Bruno Haible <bruno@clisp.org>
6212 * modules/fseeko (Dependencies): Add extensions.
6213 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
6214 Needed on glibc systems.
6216 2008-03-06 Bruno Haible <bruno@clisp.org>
6218 * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
6220 Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
6222 2008-03-06 Bruno Haible <bruno@clisp.org>
6224 * users.txt: Add libgnupdf.
6226 2008-03-06 Thien-Thi Nguyen <ttn@gnuvola.org> (tiny change)
6228 * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
6229 (Header File Substitutes, Function Substitutes,
6230 Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
6231 (Build robot for gnulib): Fix typo.
6233 2008-03-06 Bruno Haible <bruno@clisp.org>
6235 * doc/gnulib-tool.texi (VCS Issues): Small updates.
6236 Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
6238 2008-03-06 Bruno Haible <bruno@clisp.org>
6240 * doc/func.texi: New file, extracted from doc/gnulib.texi.
6241 * doc/gnulib.texi: Include it.
6243 2008-03-06 Simon Josefsson <simon@josefsson.org>
6245 * modules/func (License): Change license to unlimited; there was
6246 no LGPL parts in the module anyway.
6248 2008-03-06 Simon Josefsson <simon@josefsson.org>
6250 * modules/__func__: Renamed to modules/func.
6251 * modules/__func__-tests: Renamed to modules/func-tests.
6252 * tests/test-__func__.c: Renamed to tests/test-func.c.
6253 * m4/__func__.m4: Renamed to m4/func.m4.
6254 * doc/gnulib.texi (__func__): Section renamed to func.
6255 Suggested by Eric Blake <ebb9@byu.net>.
6257 2008-03-06 Simon Josefsson <simon@josefsson.org>
6259 * doc/gnulib.texi (__func__): Use C99 terminology when talking
6260 about __func__. Make example self-contained. Suggested by Eric
6261 Blake <ebb9@byu.net>.
6263 * tests/test-__func__.c (main): Avoid extraneous () around __func.
6264 Suggested by Eric Blake <ebb9@byu.net>.
6266 2008-03-06 Simon Josefsson <simon@josefsson.org>
6268 * modules/__func__: New file.
6269 * modules/__func__-tests: New file.
6270 * tests/test-__func__.c: New file.
6271 * m4/__func__.m4: New file.
6272 * doc/gnulib.texi (__func__): Document __func__ module.
6274 2008-03-05 Simon Josefsson <simon@josefsson.org>
6276 * modules/byteswap (License): Re-license as LGPLv2+.
6278 2008-03-05 Simon Josefsson <simon@josefsson.org>
6280 * doc/Makefile: Add pdf target.
6282 2008-03-05 Simon Josefsson <simon@josefsson.org>
6284 * modules/inline (License): Use 'unlimited', since there are only
6285 *.m4 files in this module.
6287 2008-03-03 John E. Malmberg <wb8tyw@qsl.net> (tiny change)
6288 Bruno Haible <bruno@clisp.org>
6290 Add support for HP C 7.1 on OpenVMS 8.3.
6291 * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
6293 2008-03-03 John E. Malmberg <wb8tyw@qsl.net> (tiny change)
6295 Update VMS specifics.
6296 * lib/getopt.c [VMS]: Remove include of unixlib.h.
6298 2008-03-02 Jim Meyering <meyering@redhat.com>
6300 Remove the last dependency on the "free" module.
6301 * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
6302 Reported by Bob Proulx.
6304 * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
6306 Remove useless "if" tests before free. Deprecate "free" module.
6307 * doc/posix-functions/free.texi: Mention that this
6308 module is no longer useful.
6309 * modules/free (Notice): Say this module is obsolete.
6310 * modules/readutmp (Depends-on): Remove free.
6311 * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
6312 * lib/putenv.c (putenv): Likewise.
6313 * lib/gc-gnulib.c (gc_cipher_close): Likewise.
6314 * lib/getaddrinfo.c (freeaddrinfo): Likewise.
6315 * tests/test-c-strcasestr.c (main): Likewise.
6316 * tests/test-c-strstr.c (main): Likewise.
6317 * tests/test-mbscasestr1.c (main): Likewise.
6318 * tests/test-mbscasestr2.c (main): Likewise.
6319 * tests/test-mbsstr1.c (main): Likewise.
6320 * tests/test-mbsstr2.c (main): Likewise.
6321 * tests/test-memmem.c (main): Likewise.
6322 * tests/test-strcasestr.c (main): Likewise.
6323 * tests/test-striconv.c (main): Likewise.
6324 * tests/test-striconveh.c (main): Likewise.
6325 * tests/test-striconveha.c (main): Likewise.
6326 * tests/test-strstr.c (main): Likewise.
6328 * build-aux/git-version-gen: Adjust a comment and the Usage string.
6330 bootstrap: sync from coreutils again
6331 * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
6333 2008-03-01 Jim Meyering <meyering@redhat.com>
6335 bootstrap: sync from coreutils
6336 * build-aux/bootstrap (update_po_files): Copy a .po file into place
6337 also when the target doesn't exist.
6339 2008-03-01 Eric Blake <ebb9@byu.net>
6341 Fix bugs in last patch.
6342 * lib/memchr2.c (memchr2): Fix typo.
6343 * tests/test-memchr2.c: Test previous bug, and don't use GNU
6345 Reported by Bruce Korb.
6347 New module 'memchr2'.
6348 * modules/memchr2: New file.
6349 * modules/memchr2-tests: Likewise.
6350 * lib/memchr2.h: Likewise.
6351 * lib/memchr2.c: Likewise, based on memchr.c.
6352 * tests/test-memchr2.c: New test.
6353 * MODULES.html.sh (String handling): Add memchr2.
6355 2008-02-29 Bruno Haible <bruno@clisp.org>
6357 * modules/freadseek-tests: New file.
6358 * tests/test-freadseek.sh: New file.
6359 * tests/test-freadseek.c: New file.
6361 New module 'freadseek'.
6362 * modules/freadseek: New file.
6363 * lib/freadseek.h: New file.
6364 * lib/freadseek.c: New file.
6365 * MODULES.html.sh (File stream based Input/Output): Add freadseek.
6367 2008-02-29 Sergey Poznyakoff <gray@gnu.org.ua>
6369 * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
6372 * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
6373 program_invocation_name and program_invocation_short_name are
6376 2008-02-28 Bruno Haible <bruno@clisp.org>
6378 * tests/test-freadptr.c: Add a test for behaviour after ungetc.
6379 * tests/test-freadptr.sh: Also test non-seekable stdin.
6381 2008-02-28 Sergey Poznyakoff <gray@gnu.org.ua>
6383 * build-aux/bootstrap (source_base, m4_base)
6384 (doc_base, tests_base): New variables.
6385 (gnulib_tool_options): Do not hardcode base directories, use
6386 the above variables instead.
6388 2008-02-28 Atsushi SAKAI <sakaia@jp.fujitsu.com>
6390 * lib/xsize.h: Fix typo in comment: s/tupe/type/.
6392 2008-02-28 Bruno Haible <bruno@clisp.org>
6394 * modules/freadptr-tests: New file.
6395 * tests/test-freadptr.sh: New file.
6396 * tests/test-freadptr.c: New file.
6398 New module 'freadptr'.
6399 * modules/freadptr: New file.
6400 * lib/freadptr.h: New file.
6401 * lib/freadptr.c: New file.
6402 * MODULES.html.sh (File stream based Input/Output): Add freadptr.
6404 2008-02-26 Karl Berry <karl@freefriends.org>
6407 * libltdl/argz.c (argz_add, argz_count): New functions.
6408 * libltdl/argz.in.h: Declare them.
6409 Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
6411 2008-02-22 Bruno Haible <bruno@clisp.org>
6413 * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
6414 is a pointer type. Needed for HP-UX 10.
6415 * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
6416 * doc/posix-functions/gmtime_r.texi: Likewise.
6417 Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
6419 2008-02-24 Bruno Haible <bruno@clisp.org>
6421 * modules/environ-tests: New file.
6422 * tests/test-environ.c: New file.
6424 New module 'environ'.
6425 * modules/environ: New file.
6426 * lib/unistd.in.h (environ): New declaration.
6427 * m4/environ.m4: New file.
6428 (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
6430 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
6432 * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
6434 * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
6435 wrong claim that 'environ' is missing on some systems.
6436 * modules/execute (Depends-on): Add environ.
6437 * lib/execute.c (environ): Remove fallback declaration.
6438 * modules/pipe (Depends-on): Add environ.
6439 * lib/pipe.c (environ): Remove fallback declaration.
6440 * modules/setenv (Depends-on): Add environ.
6441 * lib/setenv.c (environ): Remove fallback declaration.
6442 * modules/unsetenv (Depends-on): Add environ.
6443 * lib/unsetenv.c (environ): Remove fallback declaration.
6444 * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
6446 (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
6447 (gl_PREREQ_UNSETENV): Likewise.
6449 2008-02-24 Bruno Haible <bruno@clisp.org>
6451 * doc/posix-functions/environ.texi: Document the MacOS X problem.
6453 2008-02-20 Bob Proulx <bob@proulx.com>
6455 Enable use of older two part flavor 'git describe'.
6456 * build-aux/git-version-gen: If using the older two part flavor of
6457 git version then recreate the third part now present in the
6458 newer three part flavor of git describe.
6460 2008-02-20 Martin Buchholz <martin@xemacs.org> (tiny change)
6462 * lib/fts.c (fts_build): Typo correction to comment.
6464 2008-02-17 Bruno Haible <bruno@clisp.org>
6466 * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
6467 generating no-op conflicts.
6469 2008-02-17 Bruno Haible <bruno@clisp.org>
6472 * lib/git-merge-changelog.c (main): Use the iterator to iterate through
6473 result_entries, rather than an index-based loop.
6475 2008-02-17 Bruno Haible <bruno@clisp.org>
6478 * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
6480 (entry_create): New function.
6481 (entry_hashcode): Use the cached hashcode if possible.
6482 (read_changelog_file, try_split_merged_entry): Use entry_create.
6484 2008-02-17 Bruno Haible <bruno@clisp.org>
6486 Speed up from O(n^2) to O(n) for long ChangeLog files.
6487 * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
6488 (read_changelog_file): Change implementation of entries_reversed list
6490 * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
6492 2008-02-17 Bruno Haible <bruno@clisp.org>
6494 New option --split-merged-entry.
6495 * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
6496 (find_paragraph_end, try_split_merged_entry): New functions.
6497 (long_options): Add option --split-merged-entry.
6498 (usage): Document option --split-merged-entry.
6499 (main): Implement option --split-merged-entry.
6500 Reported by Eric Blake.
6502 2008-02-17 Bruno Haible <bruno@clisp.org>
6504 * lib/git-merge-changelog.c: Include c-strstr.h.
6505 (main): Support the "git pull --rebase" situation.
6506 * modules/git-merge-changelog (Depends-on): Add c-strstr.
6507 Reported by Eric Blake.
6509 2008-02-16 Eric Blake <ebb9@byu.net>
6511 Avoid doubling \ in common case of "c-maybe" quoting style.
6512 * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
6513 eliding outer quotes.
6514 * lib/quotearg.h: Document this.
6515 * tests/test-quotearg.c (result_strings, inputs, results_g)
6516 (flag_results, locale_results): Test it by adding a new string to
6518 (compare_strings): Test new string.
6520 2008-02-13 Eric Blake <ebb9@byu.net>
6522 Avoid trigraph quoting in default output.
6523 * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
6524 * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
6525 unless explicitly requested.
6526 * tests/test-quotearg.c (flag_results, main): Add additional tests.
6528 2008-02-13 Lasse Collin <lasse.collin@tukaani.org>
6530 Don't rely on signed integer overflowing to negative value.
6531 * lib/getugroups.c (getugroups): Include <limits.h>.
6532 Instead, compare against INT_MAX, and increment only if the test passes.
6534 2008-02-13 Jim Meyering <meyering@redhat.com>
6535 and Eric Blake <ebb9@byu.net>
6537 Avoid shadowing warning and compile errors on Linux.
6538 * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
6539 forwarding macros on Linux.
6540 (dcgettext): Define a stub, for Linux.
6541 (results_g, main): Avoid warnings.
6543 2008-02-12 Eric Blake <ebb9@byu.net>
6545 Silence warning in last patch.
6546 * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
6548 Quotearg part 4: add tests, fix c-maybe colon quoting.
6549 * lib/quotearg.h: Improve documentation.
6550 * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
6551 escapes when adding outer quotes. When quoting trigraphs, use
6552 valid C notation. When quoting NUL, omit extra characters if next
6553 character is not digit. Alter prototype.
6554 (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
6556 * modules/quotearg-tests: New module.
6557 * tests/test-quotearg.c: New test.
6559 2008-02-07 Eric Blake <ebb9@byu.net>
6561 Quotearg part 3: add flag to control outer quote elision.
6562 * lib/quotearg.h (c_maybe_quoting_style): New style.
6563 (enum quoting_flags): Better documentation of flags.
6564 * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
6566 (quotearg_buffer_restyled): Handle new flag to elide outer
6569 Quotearg part 2: add flag that can control NUL elision.
6570 * lib/quotearg.h (set_quoting_flags): New prototype.
6571 * lib/quotearg.c (struct quoting_options): Add flag field.
6572 (set_quoting_flags): New function.
6573 (quotearg_buffer_restyled): Add flags parameter.
6574 (quotearg_alloc_mem): Set the flag if length cannot be returned.
6575 (quotearg_n_options): Set the flag, since length cannot be
6577 (quoting_options_from_style): Default flags correctly.
6579 Quotearg part 1: more wrappers, restore quotearg_char state.
6580 * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
6581 (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
6582 (quotearg_colon_mem): New wrappers.
6583 * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
6584 (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
6586 (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
6587 (quotearg_colon_mem): New functions.
6589 2008-02-11 Bruno Haible <bruno@clisp.org>
6591 * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
6592 library in the current directory: it does not work with parallel make.
6593 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
6595 2008-02-11 Bruno Haible <bruno@clisp.org>
6597 * .gitattributes: New file.
6599 2008-02-11 Jim Meyering <meyering@redhat.com>
6601 useless-if-before-free: Fix reversed exit values.
6602 * build-aux/useless-if-before-free: Use correct values
6603 for EXIT_MATCH and EXIT_NO_MATCH.
6605 * build-aux/useless-if-before-free: Close stdout carefully.
6607 2008-02-10 Bruno Haible <bruno@clisp.org>
6609 New module 'git-merge-changelog'.
6610 * modules/git-merge-changelog: New file.
6611 * lib/git-merge-changelog.c: New file.
6613 2008-02-10 Jim Meyering <meyering@redhat.com>
6615 useless-if-before-free: New option: --list (-l).
6617 useless-if-before-free: Don't exit immediately upon open failure.
6618 * build-aux/useless-if-before-free: Exit 2 for errors.
6619 Upon failure to open a file, don't exit immediately.
6620 Rather, just warn and continue with any remaining files.
6622 2008-02-10 Bruno Haible <bruno@clisp.org>
6624 New abstract list operation 'node_set_value'.
6625 * lib/gl_list.h (gl_list_node_set_value): New function.
6626 (struct gl_list_implementation): New field node_set_value.
6627 * lib/gl_list.c (gl_list_node_set_value): New function.
6628 * lib/gl_array_list.c (gl_array_node_set_value): New function.
6629 (gl_array_list_implementation): Update.
6630 * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
6631 (gl_carray_list_implementation): Update.
6632 * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
6633 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
6634 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
6635 * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
6636 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
6637 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
6638 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
6640 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
6641 * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
6642 (gl_sublist_list_implementation): Update.
6644 2008-02-10 Bruno Haible <bruno@clisp.org>
6646 * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
6647 Needed when ELEMENT is #defined to 'some_type *'.
6649 2008-02-10 Jim Meyering <meyering@redhat.com>
6651 New script and module: useless-if-before-free
6652 * MODULES.html.sh (maint+release support): Add useless-if-before-free.
6653 * build-aux/useless-if-before-free: New file.
6654 * modules/useless-if-before-free: New file.
6656 * build-aux/gitlog-to-changelog: Use committer date, not author date.
6658 xstrtol_error: Fix typo.
6659 * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
6660 s/exit_failure/exit_status/.
6662 2008-02-09 Jim Meyering <meyering@redhat.com>
6664 New script and module: gitlog-to-changelog
6665 * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
6666 * modules/gitlog-to-changelog: New file.
6667 * build-aux/gitlog-to-changelog: New file.
6669 2008-02-08 Jim Meyering <meyering@redhat.com>
6671 Avoid two "parameter unused" warnings.
6672 * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
6675 Use "git COMMAND", not "git-COMMAND".
6676 * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
6677 * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
6678 * build-aux/git-version-gen: Use "git status", not "git-status".
6680 2008-02-07 Bruno Haible <bruno@clisp.org>
6682 * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
6683 Avoids a crash on Windows Vista.
6684 Reported by Adam Strzelecki <ono@java.pl> via
6685 Simon Josefsson <simon@josefsson.org>.
6687 2008-02-06 Bruno Haible <bruno@clisp.org>
6689 Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
6690 * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
6691 * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
6692 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
6693 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
6694 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
6695 gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
6696 gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
6697 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
6698 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
6699 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
6700 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
6701 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
6702 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
6703 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
6704 * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
6706 * tests/test-snprintf-posix.h (test_function): Likewise.
6707 * tests/test-sprintf-posix.h (test_function): Likewise.
6708 * tests/test-vasprintf-posix.c (test_function): Likewise.
6709 * doc/posix-functions/fprintf.texi: Update.
6710 * doc/posix-functions/printf.texi: Update.
6711 * doc/posix-functions/snprintf.texi: Update.
6712 * doc/posix-functions/sprintf.texi: Update.
6713 * doc/posix-functions/vfprintf.texi: Update.
6714 * doc/posix-functions/vprintf.texi: Update.
6715 * doc/posix-functions/vsnprintf.texi: Update.
6716 * doc/posix-functions/vsprintf.texi: Update.
6717 Reported by Peter Fales <psfales@alcatel-lucent.com>.
6719 2008-02-06 Bruno Haible <bruno@clisp.org>
6721 Fix bug introduced on 2008-01-26.
6722 * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
6724 2008-02-06 Bruno Haible <bruno@clisp.org>
6726 Fix bug introduced on 2007-06-10.
6727 * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
6728 !NEED_PRINTF_FLAG_ZERO.
6730 2008-02-05 Peter O'Gorman <pogma@thewrittenword.com>
6732 getloadavg: use libperfstat on AIX5
6733 * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
6735 2008-02-03 Bruno Haible <bruno@clisp.org>
6737 * lib/diffseq.h: Add comments about required #includes.
6738 Reported by Michael Biggs <gnulib@doubleplum.net>.
6740 2008-02-01 Bruno Haible <bruno@clisp.org>
6742 * users.txt: Add gnuit.
6744 2008-01-31 Bruno Haible <bruno@clisp.org>
6746 * lib/md4.c (set_uint32): Mark as inline.
6747 * lib/md5.c (set_uint32): Likewise.
6748 * lib/sha1.c (set_uint32): Likewise.
6749 * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
6750 * m4/md5.m4 (gl_MD5): Likewise.
6751 * m4/sha1.m4 (gl_SHA1): Likewise.
6753 2008-01-31 Jim Meyering <meyering@redhat.com>
6755 Use "sizeof VAR", rather than a literal "4".
6756 * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
6757 * lib/md4.c (md4_read_ctx): Likewise.
6758 * lib/sha1.c (sha1_read_ctx): Likewise.
6760 2008-01-31 Simon Josefsson <simon@josefsson.org>
6762 * tests/test-sha1.c: New file, based on test-md5.c.
6764 * modules/crypto/sha1-tests: New file.
6766 2008-01-31 Simon Josefsson <simon@josefsson.org>
6768 * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
6770 2008-01-31 Jim Meyering <meyering@redhat.com>
6772 Prefer "sizeof v" over the equivalent "4".
6773 * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
6774 * lib/md5.c (set_uint32): Likewise.
6775 * lib/sha1.c (set_uint32): Likewise.
6777 2008-01-31 Simon Josefsson <simon@josefsson.org>
6779 * lib/sha1.c (set_uint32): Mark function as static.
6781 2008-01-31 Simon Josefsson <simon@josefsson.org>
6783 md2: clarify comments to say that alignment is not required.
6784 * lib/md2.h: Remove warning about alignment in comment.
6785 * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
6786 never been required.
6788 2008-01-31 Simon Josefsson <simon@josefsson.org>
6790 md4: adapt alignment constraint fix from sha1.
6791 * lib/md4.c (set_uint32): New function, from sha1.c
6792 (md4_read_ctx): Use it.
6793 (md4_finish_ctx): Doc fix.
6794 * lib/md4.h: Doc fix.
6796 2008-01-31 Simon Josefsson <simon@josefsson.org>
6798 md5: adapt alignment constraint fix from sha1.
6799 * lib/md5.c (set_uint32): New function, from sha1.c
6800 (md5_read_ctx): Use it.
6801 (md5_finish_ctx): Doc fix.
6802 * lib/md5.h: Doc fix.
6804 2008-01-30 Peter Palfrader <weasel@debian.org>
6806 sha1: remove the result buffer alignment constraint
6807 * lib/sha1.c (set_uint32): New function.
6808 (sha1_read_ctx): Rewrite to remove the result buffer alignment
6810 (sha1_finish_ctx): Remove comment warning about alignment constraint.
6811 * lib/sha1.h: Likewise.
6813 2008-01-30 Andreas Schwab <schwab@suse.de>
6814 Bruno Haible <bruno@clisp.org>
6816 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
6817 correct definition of LDBL_MIN_EXP.
6819 2008-01-30 Karl Berry <karl@gnu.org>
6821 * config/srclist-update: try to preserve x bit on updates.
6822 * config/srclistvars.sh: update for karl.
6824 2008-01-29 Jim Meyering <meyering@redhat.com>
6826 vasnprintf.c: Avoid warning about unused label
6827 * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
6828 "overflow" label definition and associated code with the
6829 same cpp condition that guards the sole use of that label.
6831 2008-01-26 Bruno Haible <bruno@clisp.org>
6833 * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
6834 gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
6835 * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
6836 * lib/isnanl-nolibm.h (isnanl): Likewise.
6837 Reported by Paul Eggert <eggert@cs.ucla.edu>.
6839 2008-01-26 Bruno Haible <bruno@clisp.org>
6841 * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
6842 * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
6844 2008-01-26 Bruno Haible <bruno@clisp.org>
6846 * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
6847 GCC >= 4.0 built-in.
6848 * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
6850 2008-01-26 Bruno Haible <bruno@clisp.org>
6852 Rename isnan, applicable to 'double' only, to isnand.
6853 * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
6854 (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
6855 (configure.ac): Update.
6856 (Include): Replace "isnan.h" with "isnand.h".
6857 * m4/isnand.m4: Renamed from m4/isnan.m4.
6858 (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
6859 HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
6861 * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
6862 instead of HAVE_ISNAN_IN_LIBC.
6863 (isnand): Renamed from isnan.
6864 * lib/isnand.c: New file.
6865 * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
6866 (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
6867 (Makefile.am): Update.
6868 * tests/test-isnand.c: Renamed from tests/test-isnan.c.
6869 Include isnand.h instead of isnan.h.
6870 (main): Test isnand instead of isnan.
6871 * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
6873 * modules/frexp (Depends-on): Likewise.
6874 * modules/frexp-tests (Depends-on): Likewise.
6875 * modules/frexp-nolibm (Depends-on): Likewise.
6876 * modules/frexp-nolibm-tests (Depends-on): Likewise.
6877 * modules/isfinite (Depends-on): Likewise.
6878 * modules/round-tests (Depends-on): Likewise.
6879 * modules/signbit (Depends-on): Likewise.
6880 * modules/signbit-tests (Depends-on): Likewise.
6881 * modules/snprintf-posix (Depends-on): Likewise.
6882 * modules/sprintf-posix (Depends-on): Likewise.
6883 * modules/trunc-tests (Depends-on): Likewise.
6884 * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
6885 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
6886 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
6887 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
6888 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
6889 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
6890 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
6891 * modules/vasnprintf-posix (Depends-on): Likewise.
6892 * modules/vasprintf-posix (Depends-on): Likewise.
6893 * modules/vfprintf-posix (Depends-on): Likewise.
6894 * modules/vsnprintf-posix (Depends-on): Likewise.
6895 * modules/vsprintf-posix (Depends-on): Likewise.
6896 * lib/frexp.c: Include isnand.h instead of isnan.h.
6897 (ISNAN): Set to isnand instead of isnan.
6898 * lib/isfinite.c: Include isnand.h instead of isnan.h.
6899 (gl_isfinited): Use isnand instead of isnan.
6900 * lib/signbitd.c: Include isnand.h instead of isnan.h.
6901 (gl_signbitd): Use isnand instead of isnan.
6902 * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
6903 (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
6904 * tests/test-frexp.c: Include isnand.h instead of isnan.h.
6905 (main): Use isnand instead of isnan.
6906 * tests/test-round1.c: Include isnand.h.
6907 (main): Use isnand instead of isnan.
6908 * tests/test-round2.c: Include isnand.h instead of isnan.h.
6909 (ISNAN): Set to isnand instead of isnan.
6910 * tests/test-trunc1.c: Include isnand.h.
6911 (main): Use isnand instead of isnan.
6912 * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
6913 (equal): Use isnand instead of isnan.
6914 * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
6916 * NEWS: Mention the change.
6918 2008-01-25 Paul Eggert <eggert@cs.ucla.edu>
6919 Bruno Haible <bruno@clisp.org>
6921 * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
6922 the GCC builtins for signbits are present and set
6923 REPLACE_SIGNBIT_USING_GCC if so.
6924 * lib/math.in.h (signbit): Define using GCC builtins if
6925 REPLACE_SIGNBIT_USING_GCC is set.
6926 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
6927 REPLACE_SIGNBIT_USING_GCC.
6928 * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
6930 2008-01-25 Jim Meyering <meyering@redhat.com>
6932 Prefer <config.h> over "config.h". See autoconf doc for explanation.
6933 * lib/poll.c: Include <config.h>, not "config.h".
6934 * tests/test-getaddrinfo.c: Likewise.
6936 2008-01-25 Simon Josefsson <simon@josefsson.org>
6938 * modules/sockets-tests: New file.
6940 2008-01-24 Simon Josefsson <simon@josefsson.org>
6942 * modules/sockets: New module, can be used to call WSA_Startup and
6943 WSA_Cleanup when needed.
6945 * lib/sockets.h, lib/sockets.c: New files.
6947 * m4/sockets.m4: New file.
6949 * tests/test-sockets.c: New file.
6951 2008-01-19 Bruno Haible <bruno@clisp.org>
6953 * doc/posix-headers: Renamed from doc/headers.
6954 * doc/posix-functions: Renamed from doc/functions.
6955 * doc/gnulib.texi: Update.
6957 2008-01-19 Bruno Haible <bruno@clisp.org>
6959 * doc/glibc-functions/strcasestr.texi: Include contents of
6960 doc/functions/strcasestr.texi, fixing the list of platforms.
6961 * doc/functions/strcasestr.texi: Remove file.
6963 2008-01-19 Bruno Haible <bruno@clisp.org>
6965 * doc/glibc-functions/memmem.texi: Include contents of
6966 doc/functions/memmem.texi.
6967 * doc/functions/memmem.texi: Remove file.
6969 2008-01-18 Bruno Haible <bruno@clisp.org>
6971 * doc/glibc-functions/*.texi: New files.
6972 * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
6973 to use the new files.
6975 2008-01-17 Bruno Haible <bruno@clisp.org>
6977 * tests/test-gethostname.c (main): Fix printf statement.
6979 2008-01-17 Simon Josefsson <simon@josefsson.org>
6981 * modules/gethostname-tests: New file.
6983 * tests/test-gethostname.c: New file.
6985 2008-01-17 Simon Josefsson <simon@josefsson.org>
6987 * lib/gethostname.c: Include string.h unconditionally, strncpy is
6988 used by the UNAME case. Reported by Bruno Haible
6991 2008-01-17 Eric Blake <ebb9@byu.net>
6993 Convert c-strcasestr to be more efficient.
6994 * modules/c-strcasestr (Files): Use Two-Way, not KMP.
6995 (Depends-on): Add c-strcase, remove malloca, strnlen.
6996 * tests/test-c-strcasestr.c (main): Enhance test.
6997 * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
6999 2007-01-16 Paolo Bonzini <bonzini@gnu.org>
7001 * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
7002 Use it in creating po/Makevars.
7004 2008-01-15 Simon Josefsson <simon@josefsson.org>
7006 * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
7007 Applications that requires it should initialize libgcrypt
7010 2008-01-16 Simon Josefsson <simon@josefsson.org>
7012 * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
7014 2008-01-15 Paul Eggert <eggert@cs.ucla.edu>
7016 Fix problem with getdate on mingw32 reported by Simon Josefsson
7017 in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
7018 * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
7019 tzname", when deciding whether to declare tzname.
7020 * lib/strftime.c (tzname): Likewise.
7022 2008-01-15 Bruno Haible <bruno@clisp.org>
7024 Work around a MacOS X 10.5 bug in frexpl().
7025 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
7026 * doc/functions/frexpl.texi: Document the bug.
7027 Reported by Elias Pipping <pipping@gentoo.org>.
7029 2008-01-14 Eric Blake <ebb9@byu.net>
7031 Touch up previous patch.
7032 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
7033 * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
7035 Convert strcasestr module to use Two-Way algorithm.
7036 * modules/strcasestr-simple: New module, based on the old
7037 strcasestr, but with Two-Way rather than KMP.
7038 * modules/strcasestr (Depends-on): Change to strcasestr-simple.
7039 * lib/string.in.h (rpl_strcasestr): Declare.
7040 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
7042 * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
7043 * modules/string (Makefile.am): Support strcasestr.
7044 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
7045 * modules/strcasestr-tests (Depends-on): Check for alarm.
7046 * tests/test-strcasestr.c: Augment test.
7047 * lib/str-two-way.h: Clean up stray macro.
7048 * NEWS: Document new module.
7049 * MODULES.html.sh (string handling): Likewise.
7050 * doc/functions/strcasestr.texi: New file.
7051 * doc/gnulib.texi (Function Substitutes): New node. Move memmem
7052 here, since it is not a POSIX function.
7054 2008-01-14 Colin Watson <cjwatson@debian.org>
7055 Bruno Haible <bruno@clisp.org>
7057 * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
7058 works fine; if not, set REPLACE_STRSIGNAL.
7059 (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
7060 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
7062 * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
7063 * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
7064 * tests/test-strsignal.c (main): Check out-of-range signal numbers.
7066 2008-01-14 Bruno Haible <bruno@clisp.org>
7068 * modules/strsignal (Include): Change to <string.h>.
7070 2008-01-14 Colin Watson <cjwatson@debian.org>
7072 * modules/argp (Notice): Add a notice recommending to change
7074 (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
7076 2008-01-13 Colin Watson <cjwatson@debian.org>
7078 * modules/strsignal-tests: New file.
7079 * tests/test-strsignal.c: New file.
7081 * lib/strsignal.c: New file, from glibc with modifications.
7082 * lib/siglist.h: New file, from glibc with modifications.
7083 * lib/string.in.h (strsignal): New declaration.
7084 * m4/strsignal.m4: New file.
7085 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
7086 GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
7087 * modules/strsignal: New file.
7088 * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
7089 HAVE_DECL_STRSIGNAL.
7091 2008-01-13 Bruno Haible <bruno@clisp.org>
7093 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
7094 locale encoding is not ASCII. Needed for OpenBSD 4.0.
7095 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
7096 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
7098 2008-01-13 Bruno Haible <bruno@clisp.org>
7100 * lib/argp-fmtstream.h (__attribute__): Don't redefine if
7101 __STRICT_ANSI__ is set: it's not needed by any version of gcc.
7102 * lib/argp.h (__attribute__): Likewise.
7103 * lib/c-stack.c (__attribute__): Likewise.
7104 * lib/error.h (__attribute__): Likewise.
7105 * lib/fts.c (__attribute__): Likewise.
7106 * lib/openat.h (__attribute__): Likewise.
7107 * lib/stdio.in.h (__attribute__): Likewise.
7108 * lib/string.in.h (__attribute__): Likewise.
7109 * lib/utimens.c (__attribute__): Likewise.
7110 * lib/vasnprintf.h (__attribute__): Likewise.
7111 * lib/xalloc.h (__attribute__): Likewise.
7112 * lib/xprintf.h (__attribute__): Likewise.
7113 * lib/xstrtol.h (__attribute__): Likewise.
7114 * lib/xvasprintf.h (__attribute__): Likewise.
7116 2008-01-12 Bruno Haible <bruno@clisp.org>
7118 * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
7119 * doc/glibc-headers/a.out.texi: New file.
7120 * doc/glibc-headers/aliases.texi: New file.
7121 * doc/glibc-headers/alloca.texi: New file.
7122 * doc/glibc-headers/ar.texi: New file.
7123 * doc/glibc-headers/argp.texi: New file.
7124 * doc/glibc-headers/argz.texi: New file.
7125 * doc/glibc-headers/byteswap.texi: New file.
7126 * doc/glibc-headers/crypt.texi: New file.
7127 * doc/glibc-headers/endian.texi: New file.
7128 * doc/glibc-headers/envz.texi: New file.
7129 * doc/glibc-headers/err.texi: New file.
7130 * doc/glibc-headers/error.texi: New file.
7131 * doc/glibc-headers/execinfo.texi: New file.
7132 * doc/glibc-headers/fpu_control.texi: New file.
7133 * doc/glibc-headers/fstab.texi: New file.
7134 * doc/glibc-headers/fts.texi: New file.
7135 * doc/glibc-headers/getopt.texi: New file.
7136 * doc/glibc-headers/ieee754.texi: New file.
7137 * doc/glibc-headers/ifaddrs.texi: New file.
7138 * doc/glibc-headers/libintl.texi: New file.
7139 * doc/glibc-headers/mcheck.texi: New file.
7140 * doc/glibc-headers/mntent.texi: New file.
7141 * doc/glibc-headers/obstack.texi: New file.
7142 * doc/glibc-headers/paths.texi: New file.
7143 * doc/glibc-headers/printf.texi: New file.
7144 * doc/glibc-headers/pty.texi: New file.
7145 * doc/glibc-headers/resolv.texi: New file.
7146 * doc/glibc-headers/shadow.texi: New file.
7147 * doc/glibc-headers/sysexits.texi: New file.
7148 * doc/glibc-headers/ttyent.texi: New file.
7150 2008-01-12 Jim Meyering <meyering@redhat.com>
7152 announce-gen: emit Gnulib's git-based version string.
7153 * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
7154 New option --gnulib-version=V, where V is expected to be
7155 the output of running git describe in the gnulib directory.
7156 (get_tool_versions): Request feedback on xdelta. I suspect it's
7157 not useful, and plan to stop publishing an xdelta file with each
7160 * build-aux/announce-gen: Also check for lzma-compressed files.
7162 2008-01-11 Bruno Haible <bruno@clisp.org>
7164 * tests/test-memmem.c (main): Increase maximum allowed time.
7165 * tests/test-strstr.c (main): Likewise.
7167 2008-01-11 Bruno Haible <bruno@clisp.org>
7169 * doc/functions/memmem.texi: Add more precisions about platforms.
7170 * doc/functions/strstr.texi: Likewise.
7172 2008-01-10 Eric Blake <ebb9@byu.net>
7174 * m4/strstr.m4: Delete cruft from copy-n-paste.
7175 Reported by Bruno Haible.
7177 2008-01-10 Bruno Haible <bruno@clisp.org>
7179 Make c-strstr rely on strstr.
7180 * lib/c-strstr.c: Don't include str-kmp.h.
7181 (c_strstr): Define in terms of strstr.
7182 * modules/c-strstr (Files): Remove lib/str-kmp.h.
7183 (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
7185 2008-01-10 Bruno Haible <bruno@clisp.org>
7187 * doc/gnulib.texi (String Functions in C Locale): New section.
7188 * doc/c-ctype.texi: New file.
7189 * doc/c-strcase.texi: New file.
7190 * doc/c-strcaseeq.texi: New file.
7191 * doc/c-strcasestr.texi: New file.
7192 * doc/c-strstr.texi: New file.
7193 * doc/c-strtod.texi: New file.
7194 * doc/c-strtold.texi: New file.
7196 2008-01-10 Eric Blake <ebb9@byu.net>
7198 * lib/relocatable.h: Fix a comment.
7200 2008-01-10 Eric Blake <ebb9@byu.net>
7202 Share two-way algorithm.
7203 * lib/str-two-way.h: New file, merged from...
7204 * lib/memmem.c: ...here...
7205 * lib/strstr.c: ...and here.
7206 * modules/memmem (Files): Use it.
7207 * modules/strstr (Files): Likewise.
7209 Avoid quadratic strstr implementations.
7210 * lib/strstr.c: New file.
7211 * m4/strstr.m4: Likewise.
7212 * modules/strstr: Likewise.
7213 * modules/strstr-tests: Likewise.
7214 * tests/test-strstr.c: Likewise.
7215 * lib/string.in.h (rpl_strstr): Declare.
7216 (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
7217 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
7218 * modules/string (Makefile.am): Likewise.
7219 * MODULES.html.sh (string handling): Mention new module.
7220 * doc/functions/strstr.texi (strstr): Document the bug.
7222 2008-01-10 Bruno Haible <bruno@clisp.org>
7224 * lib/relocatable.h (relocate): State whether result is freshly
7226 * lib/relocatable.c (relocate): Return a freshly allocated string
7227 instead of a pointer to a privately held string.
7228 Reported by Sylvain Beucler <beuc@gnu.org>.
7230 2008-01-10 Colin Watson <cjwatson@debian.org>
7232 * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
7235 2008-01-09 Bruno Haible <bruno@clisp.org>
7237 * doc/functions/memmem.texi: Use the same structure as snprintf.texi
7239 * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
7240 if it's only a guess.
7241 * modules/memmem: Simplify by depending on memmem-simple.
7243 2008-01-09 Bruno Haible <bruno@clisp.org>
7245 Work around OpenBSD 4.0 tdelete() bug.
7246 * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
7247 * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
7248 macros and don't redefine the enum values.
7249 * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
7250 * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
7251 * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
7253 2008-01-09 Bruno Haible <bruno@clisp.org>
7255 * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
7256 (main): Don't perform the tests if setlocale did not install a UTF-8
7257 locale. Needed on OpenBSD 4.0.
7258 * modules/wcwidth-tests (Depends-on): Add localcharset.
7260 2008-01-09 Paul Eggert <eggert@cs.ucla.edu>
7262 gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
7263 See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
7264 * NEWS: announce this.
7265 * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
7267 2008-01-09 Simon Josefsson <simon@josefsson.org>
7268 and Eric Blake <ebb9@byu.net>
7270 Add memmem-simple module.
7271 * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
7272 (gl_FUNC_MEMMEM): Separate performance from presence checks.
7273 * modules/memmem-simple: New file.
7274 * modules/memmem (Description): Tweak.
7275 * MODULES.html.sh (string handling): Mention new module.
7276 * doc/functions/memmem.texi (memmem): Distinguish which flaws are
7277 addressed by memmem-simple.
7278 * NEWS: Document the difference.
7280 2008-01-09 Eric Blake <ebb9@byu.net>
7282 Give gcc some memmem optimization hints.
7283 * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
7284 (strcasestr): Declare as pure.
7285 * modules/memmem (Maintainer): Claim my implementation.
7287 2008-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7289 Support AIX 6.1 and higher.
7290 * build-aux/config.libpath: Likewise.
7291 * build-aux/config.rpath: Likewise.
7293 2008-01-08 Jim Meyering <meyering@redhat.com>
7294 Bruno Haible <bruno@clisp.org>
7296 * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
7297 on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
7298 Reported by Peter Fales in
7299 <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
7301 2008-01-08 Bruno Haible <bruno@clisp.org>
7303 * modules/unictype/category-of (Depends-on): Add
7304 unictype/category-none.
7305 * modules/unictype/category-and-tests (Depends-on): Add
7306 unictype/category-{L,N,Lu,Nd}.
7307 * modules/unictype/category-and-not-tests (Depends-on): Likewise.
7308 * modules/unictype/category-or-tests (Depends-on): Add
7309 unictype/category-{L,N}.
7310 * modules/unictype/category-name-tests (Depends-on): Add
7311 unictype/category-{Z,Nl}.
7312 Reported by Simon Josefsson.
7314 2008-01-08 Bruno Haible <bruno@clisp.org>
7316 * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
7318 * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
7319 * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
7320 Reported by Peter Miller <millerp@canb.auug.org.au>.
7322 2008-01-08 Eric Blake <ebb9@byu.net>
7324 Rewrite memmem to guarantee linear complexity without malloc.
7325 * lib/memmem.c (memmem): Use Two-Way rather than
7326 Knuth-Morris-Pratt, to allow O(1) space usage.
7327 (critical_factorization, two_way_short_needle)
7328 (two_way_long_needle): New functions.
7329 (knuth_morris_pratt): Delete.
7330 * modules/memmem (Depends-on): No longer need malloca or stdbool.
7332 * tests/test-memmem.c (main): Add tests for periodic needle and
7333 sublinear performance.
7334 * doc/functions/memmem.texi (memmem): Document other deficiencies
7335 in cygwin and older glibc.
7337 2008-01-08 Bruno Haible <bruno@clisp.org>
7339 * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
7342 2008-01-08 Mike Frysinger <vapier@gentoo.org>
7344 Add a configure time option: --disable-acl.
7345 * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
7348 2008-01-06 Simon Josefsson <simon@josefsson.org>
7350 * tests/test-localename.c: Don't include obsolete "setenv.h".
7352 * modules/localename-tests (Depends-on): Need unsetenv.
7354 2008-01-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7356 * DEPENDENCIES: Require Texinfo version 4.6 or newer.
7358 2008-01-06 Colin Watson <cjwatson@debian.org>
7360 * users.txt: Add man-db.
7362 2008-01-07 Bruno Haible <bruno@clisp.org>
7364 * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
7365 previous section name.
7367 2008-01-07 Bruno Haible <bruno@clisp.org>
7369 * lib/progname.c (set_program_name): Don't strip off a leading
7370 "lt-" prefix outside a .libs directory.
7371 Suggested by Paul Eggert.
7373 2008-01-01 Sylvain Beucler <beuc@gnu.org>
7374 Bruno Haible <bruno@clisp.org>
7376 Improve memory cleanup in 'relocatable' module.
7377 * lib/relocatable.h (compute_curr_prefix): Change return type to
7379 * lib/relocatable.c (compute_curr_prefix): Change return type to
7380 'char *'. Free curr_installdir after use.
7381 (relocate): Free curr_prefix_better after use.
7382 * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
7384 2008-01-01 Bruno Haible <bruno@clisp.org>
7386 * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
7387 failure on older glibc systems.
7388 Reported by Peter Fales <psfales@alcatel-lucent.com>.
7390 2008-01-05 Eric Blake <ebb9@byu.net>
7392 Avoid quadratic system memmem.
7393 * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
7394 Reported by Ralf Wildenhues.
7396 Fix memmem test for mingw.
7397 * modules/memmem-tests (configure.ac): Check for alarm.
7398 * tests/test-memmem.c (main): Avoid alarm on platforms that lack
7400 * doc/functions/memmem.texi: New file.
7401 * doc/gnulib.texi (Function Substitutes): Add memmem.
7402 Reported by Bruno Haible.
7404 2008-01-04 Bruno Haible <bruno@clisp.org>
7406 * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
7407 Require gl_HEADER_STRINGS_H_DEFAULTS, not
7408 gl_HEADER_STRING_H_DEFAULTS.
7410 2008-01-04 Eric Blake <ebb9@byu.net>
7412 Shorten duration of memmem test.
7413 * tests/test-memmem.c (main): Use alarm to declare failure if test
7415 Reported by Ralf Wildenhues.
7417 2007-12-21 Simon Josefsson <simon@josefsson.org>
7419 * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
7420 string, needed by strerror.
7422 2008-01-03 Colin Watson <cjwatson@debian.org>
7423 Bruno Haible <bruno@clisp.org>
7425 * doc/gnulib-tool.texi (Localization): New section.
7427 2008-01-02 Bruno Haible <bruno@clisp.org>
7429 * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
7430 variables to 'unsigned char *' type.
7431 Reported by Paul Eggert.
7433 2008-01-02 Jim Meyering <jim@meyering.net>
7435 * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
7437 2007-12-31 Jim Meyering <jim@meyering.net>
7439 Avoid use of private FTS type name.
7440 * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
7442 2007-12-30 Karl Berry <karl@gnu.org>
7444 * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
7445 work around defect in Texinfo and/or the standalone Info browser.
7447 2007-12-30 Bruno Haible <bruno@clisp.org>
7449 Unify 5 copies of the KMP code.
7450 * lib/str-kmp.h: New file.
7451 * lib/c-strcasestr.c: Include str-kmp.h.
7452 (knuth_morris_pratt): Remove function.
7453 (c_strcasestr): Update.
7454 * lib/c-strstr.c: Include str-kmp.h.
7455 (knuth_morris_pratt): Remove function.
7456 (c_strcasestr): Update.
7457 * lib/mbscasestr.c: Include str-kmp.h.
7458 (knuth_morris_pratt_unibyte): Remove function.
7459 * lib/mbsstr.c: Include str-kmp.h.
7460 (knuth_morris_pratt_unibyte): Remove function.
7461 * lib/strcasestr.c: Include str-kmp.h.
7462 (knuth_morris_pratt): Remove function.
7463 (strcasestr): Update.
7464 * modules/c-strcasestr (Files): Add lib/str-kmp.h.
7465 * modules/c-strstr (Files): Likewise.
7466 * modules/mbscasestr (Files): Likewise.
7467 * modules/mbsstr (Files): Likewise.
7468 * modules/strcasestr (Files): Likewise.
7469 Suggested by Paul Eggert.
7471 2007-12-30 Bruno Haible <bruno@clisp.org>
7473 * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
7476 2007-12-30 Bruno Haible <bruno@clisp.org>
7478 * lib/xmalloca.h: Include xalloc.h.
7479 (xnmalloca): New macro.
7481 2007-12-30 Bruno Haible <bruno@clisp.org>
7483 * lib/malloca.h (nmalloca): New macro.
7484 * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
7485 * lib/c-strstr.c (knuth_morris_pratt): Likewise.
7486 * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
7487 knuth_morris_pratt_multibyte): Likewise.
7488 * lib/mbsstr.c (knuth_morris_pratt_unibyte,
7489 knuth_morris_pratt_multibyte): Likewise.
7490 * lib/memmem.c (knuth_morris_pratt): Likewise.
7491 * lib/strcasestr.c (knuth_morris_pratt): Likewise.
7493 2007-12-25 Bruno Haible <bruno@clisp.org>
7495 Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
7496 * lib/glob.c: Don't include openat.h.
7497 (link_exists2_p): Add back the code that deals with the
7498 !GLOB_ALTDIRFUNC case.
7499 (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
7500 let it do the filename concatenation.
7501 * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
7502 * modules/glob (Depends-on): Remove openat.
7504 2007-12-31 Bruno Haible <bruno@clisp.org>
7506 * modules/dirfd (License): Change to LGPLv2+.
7507 Approved by Jim Meyering.
7509 2007-12-29 Paul Eggert <eggert@cs.ucla.edu>
7511 * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
7512 when multiplying M by sizeof (size_t).
7514 2007-12-10 Martin Lambers <marlam@marlam.de>
7516 Override getpagesize on mingw.
7517 * lib/getpagesize.c: New file.
7518 * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
7519 * modules/getpagesize (Files): Add lib/getpagesize.c.
7520 * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
7521 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
7522 REPLACE_GETPAGESIZE.
7523 * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
7525 2007-12-25 Bruno Haible <bruno@clisp.org>
7527 * modules/localcharset (Notice): New field.
7528 (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
7529 Suggested by Ben Pfaff <blp@cs.stanford.edu>.
7531 2007-12-25 Paul Eggert <eggert@cs.ucla.edu>
7532 Bruno Haible <bruno@clisp.org>
7534 Avoid using the syntax symbol() in formatted documentation.
7535 * MODULES.html.sh (func_module): When replacing symbol() with a
7536 hyperlink, remove the parentheses. Show an error if some remain.
7537 Recognize and render the '...' syntax.
7538 * doc/alloca-opt.texi: Remove parentheses from symbol reference.
7539 Rework. Add paragraph about GCC's inlining.
7540 * doc/alloca.texi: Likewise.
7541 * doc/error.texi: Remove parentheses from symbol reference.
7542 * doc/gnulib-intro.texi: Likewise.
7543 * doc/gnulib.texi (alloca, alloca-opt): New nodes.
7544 * modules/fnmatch (Description): Reword to say "the ... function".
7545 * modules/full-read (Description): Likewise.
7546 * modules/full-write (Description): Likewise.
7547 * modules/safe-read (Description): Likewise.
7548 * modules/safe-write (Description): Likewise.
7549 * modules/strchrnul (Description): Likewise.
7550 * modules/trim (Description): Likewise.
7551 * modules/error (Description): Remove parentheses from symbol
7553 * modules/verror (Description): Likewise.
7554 Reported by Karl Berry.
7556 2007-12-25 Bruno Haible <bruno@clisp.org>
7558 Fixup after 2007-10-16 commit.
7559 * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
7561 2007-12-24 Bruno Haible <bruno@clisp.org>
7563 Make --enable-relocatable work with DESTDIR.
7564 * build-aux/install-reloc: Accept another argument 'destdir'. Use it
7565 to compute installdir from destprog.
7566 * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
7567 also set the RELOC_DESTDIR variable.
7568 Reported by Левашев Иван <octagram@bluebottle.com>.
7570 2007-12-24 Bruno Haible <bruno@clisp.org>
7572 Fix link error due to xalloc_die().
7573 * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
7575 * lib/relocwrapper.c: Update comments.
7576 * build-aux/install-reloc: Remove xreadlink.c from file list.
7577 * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
7579 Reported by Левашев Иван <octagram@bluebottle.com>.
7581 2007-12-24 Bruno Haible <bruno@clisp.org>
7583 Split setenv module into setenv and unsetenv. Get rid of setenv.h.
7584 * lib/setenv.h: Remove file.
7585 * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
7587 * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
7588 (Depends-on): Add stdlib.
7589 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
7591 (Include): Replace setenv.h with <stdlib.h>.
7592 * modules/unsetenv: New file.
7593 * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
7594 * lib/unsetenv.c: Include <stdlib.h> first.
7595 * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
7596 gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
7597 (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
7598 HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
7599 * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
7600 HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
7601 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
7602 HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
7603 * doc/functions/unsetenv.texi: Update.
7604 * modules/xsetenv (Depends-on): Add unsetenv.
7605 * modules/getdate (Depends-on): Likewise.
7606 * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
7607 * lib/xsetenv.c: Don't include setenv.h.
7608 * lib/getdate.y: Likewise.
7609 * lib/relocwrapper.c: Likewise.
7610 * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
7611 (Depends-on): Add stdlib.
7612 * NEWS: Mention the changes.
7613 Reported by Левашев Иван <octagram@bluebottle.com>.
7615 2007-12-23 Bruno Haible <bruno@clisp.org>
7617 * lib/memmem.c (memmem): Use lowercase variable names. Tab
7620 2007-12-23 Bruno Haible <bruno@clisp.org>
7622 * lib/c-strcasestr.c: Add more comments.
7623 * lib/c-strstr.c: Likewise.
7624 * lib/mbscasestr.c: Likewise.
7625 * lib/mbsstr.c: Likewise.
7626 * lib/strcasestr.c: Likewise.
7627 * lib/memmem.c: Likewise.
7629 2007-12-23 Bruno Haible <bruno@clisp.org>
7631 * tests/test-memmem.c: Include <string.h> first.
7633 2007-12-22 Bruno Haible <bruno@clisp.org>
7635 * gnulib-tool (func_create_testdir): Change $auxdir while generating
7636 the contents of $testsbase.
7637 Reported by Ralf Wildenhues.
7639 2007-12-22 Bruno Haible <bruno@clisp.org>
7641 * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
7642 two variables local_ldadd_before, local_ldadd_last.
7644 2007-12-20 Eric Blake <ebb9@byu.net>
7646 Work around circular library issue when cross-compiling.
7647 * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
7648 that progname.o does not need to pull in rpl_memcmp.
7650 2007-12-19 Eric Blake <ebb9@byu.net>
7652 Fix memmem to avoid O(n^2) worst-case complexity.
7653 * lib/memmem.c (knuth_morris_pratt): New function.
7654 (memmem): Use it if first few naive iterations fail.
7655 * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
7656 * modules/memcmp (License): Set to LGPLv2+, not LGPL.
7657 * modules/memchr (License): Likewise.
7658 * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
7660 * tests/test-memmem.c: Rewrite, borrowing ideas from
7661 test-mbsstr1.c; the old version wouldn't even compile!
7662 * modules/memmem-tests: New file.
7663 * lib/string.in.h (rpl_memmem): Add declaration.
7664 * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
7665 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
7668 2007-12-18 Paul Eggert <eggert@cs.ucla.edu>
7670 Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
7671 * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
7672 before any system include files, and undef after them all. This
7673 should fix a problem on VMS reported by John E. Malmberg in
7674 <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
7676 2007-12-17 Eric Blake <ebb9@byu.net>
7678 Revert addition of verify, for BSD/OS.
7679 * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
7680 can't handle large files, for the sake of obsolete platforms.
7681 * modules/fseeko (Depends-on): Remove verify.
7682 * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
7683 * doc/functions/ftello.texi (ftello): Likewise.
7684 * doc/functions/fgetpos.texi (fgetpos): Likewise.
7685 Reported by Larry Jones.
7687 2007-12-17 Petr Salinger <Petr.Salinger@seznam.cz>
7689 getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
7690 * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
7692 2007-12-17 Jim Meyering <meyering@redhat.com>
7694 Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
7695 which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
7696 * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
7697 * modules/getcwd (Depends-on): Add openat.
7698 Reported by Petr Salinger.
7700 2007-12-17 Bruno Haible <bruno@clisp.org>
7702 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
7703 avoid a segmentation fault of the configure test on x86_64 systems.
7705 2007-12-15 Jim Meyering <meyering@redhat.com>
7707 * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
7709 2007-12-13 Eric Blake <ebb9@byu.net>
7712 * tests/test-fseek.c (main): Also test ungetc handling.
7713 * tests/test-fseeko.c (main): Likewise.
7714 * modules/fseeko (Depends-on): Add verify.
7715 * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
7717 Reported by Larry Jones.
7719 Fix fseeko on mingw.
7720 * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
7723 Beef up fseek tests.
7724 * tests/test-fseek.c (main): Also test eof handling.
7725 * tests/test-fseeko.c (main): Likewise.
7726 Reported by Larry Jones.
7728 2007-12-13 Larry Jones <lawrence.jones@siemens.com> (tiny change)
7730 Fix fseeko on BSD-based platforms.
7731 * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
7734 2007-12-12 Eric Blake <ebb9@byu.net>
7736 Allow circular dependency of separate libtests.a
7737 * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
7740 2007-12-11 Eric Blake <ebb9@byu.net>
7742 Fix bug with -0.0L in previous patch.
7743 * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
7744 * tests/test-isnan.c (main): Also test on zeroes.
7745 * tests/test-isnanf.c (main): Likewise.
7746 * tests/test-isnanl.h (main): Likewise.
7748 Detect pseudo-denormals on x86 even when cross-compiling.
7749 * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
7750 && USE_LONG_DOUBLE && x86]: Add one more check to filter out
7751 invalid bit patterns that happen to satisfy ==.
7753 Avoid link failures with separate libtests.a.
7754 * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
7755 last, to satisfy circular dependencies.
7757 2007-12-11 Eric Blake <ebb9@byu.net>
7758 and Bruno Haible <bruno@clisp.org>
7760 Fix OpenBSD 4.0 <float.h> handling of long double.
7761 * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
7762 * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
7763 * doc/headers/float.texi (float.h): Document OpenBSD bug.
7765 2007-12-11 Jim Meyering <meyering@redhat.com>
7767 * users.txt: Add libvirt.
7769 Support versions of autoconf prior to 2.59c.
7770 * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
7771 if it is not already defined.
7773 2007-12-09 Bruno Haible <bruno@clisp.org>
7775 Let 'gnulib-tool --import' collect sources needed for the tests in
7776 tests/ rather than in lib/.
7777 * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
7778 argument. If true, add rules to generate libtests.a, and put libtests.a
7779 into $(LDADD). Consider source files in subdirectories and set
7781 (func_emit_initmacro_start, func_emit_initmacro_end,
7782 func_emit_initmacro_done): Pass all arguments explicitly.
7783 (func_import): Determine two module lists main_modules,
7784 testsrelated_modules. Determine use_libtests. Determine two variables
7785 sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
7786 instead of just sed_transform_lib_file. Determine two variables
7787 main_files and testsrelated_files. Compute 'files' as the union of
7788 both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
7789 func_add_or_update. In the generated gnulib-comp.m4, collect the
7790 object files for tests/ in different variables than those for lib/.
7791 Substitute LIBTESTS_LIBDEPS.
7792 (func_create_testdir): Combine the uses_subdirs results from
7793 func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
7795 2007-12-09 Bruno Haible <bruno@clisp.org>
7797 * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
7798 the build-aux directory.
7800 2007-12-09 Bruno Haible <bruno@clisp.org>
7802 * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
7803 introduced on 2006-09-09.
7805 2007-12-07 Jim Meyering <meyering@redhat.com>
7807 Let these macros work also with autoconf-2.59.
7808 * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59. 2.60
7809 is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
7810 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
7812 2007-12-06 Jim Meyering <meyering@redhat.com>
7814 Avoid a configure-time syntax error in gl_FUNC_ACL.
7815 * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
7816 function in each branch, before testing the cache variable.
7818 2007-12-04 Eric Blake <ebb9@byu.net>
7820 Make scripts executable.
7821 * build-aux/config.guess: Add execute permissions.
7822 * build-aux/config.sub: Likewise.
7823 * build-aux/gendocs.sh: Likewise.
7826 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
7828 * doc/functions/frexp.texi (frexp): Document the bug.
7830 Make cygwin fseeko check more reliable.
7831 * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
7832 version numbers, rather than unrelated feature check.
7833 * doc/functions/fseeko.texi (fseeko): Tweak failure report.
7834 * doc/functions/ftello.texi (ftello): Likewise.
7835 Reported by Bruno Haible.
7837 * m4/strerror.m4: Bump version number.
7839 2007-12-03 Bruno Haible <bruno@clisp.org>
7841 * doc/functions/mprotect.texi: Mention the mingw problem.
7843 2007-12-03 Eric Blake <ebb9@byu.net>
7845 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
7846 REPLACE_STRERROR is initialized before this macro.
7848 2007-12-03 Paul Eggert <eggert@cs.ucla.edu>
7850 Add support for Solaris 10 ACLs. Also, ACLs are Gnulib, not Autoconf.
7851 * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
7852 * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL. On Solaris,
7853 put -lsec in even for programs other than 'ls'. This fixes a problem
7854 for gettext reported by Bruno Haible in
7855 <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
7856 * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
7857 Add support for Solaris 10. This isn't efficient, but should get the
7860 2007-12-03 James Youngman <jay@gnu.org>
7862 * doc/regexprops-generic.texi: change "an close-group" to "a
7863 close-group" and "illegal" to "not allowed".
7865 2007-11-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7867 * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
7868 pr_byname.h. Needed for the rare case when the maintainer has done
7869 "make maintainer-clean" in the source directory and then attempts a
7870 build outside the source directory.
7871 * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
7874 2007-12-02 Martin Lambers <marlam@marlam.de>
7875 Bruno Haible <bruno@clisp.org>
7877 * lib/getpagesize.h: Remove file.
7878 * lib/unistd.in.h: Include declaration of getpagesize here.
7879 * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
7880 Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
7882 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
7883 HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
7884 * modules/getpagesize (Files): Remove lib/getpagesize.h.
7885 (Depends-on): Add unistd.
7886 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
7887 (Include): Use <unistd.h> instead of getpagesize.h.
7888 * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
7889 HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
7890 * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
7891 gl_GETPAGESIZE invocation, already handled by module dependency.
7892 * lib/pagealign_alloc.c: Don't include getpagesize.h.
7894 2007-12-02 Bruno Haible <bruno@clisp.org>
7896 * modules/strings-tests: New file.
7897 * tests/test-strings.c: New file.
7899 Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
7900 * lib/strings.in.h: New file.
7901 * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
7902 * m4/strings_h.m4: New file.
7903 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
7904 of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
7905 * modules/strings: New file.
7906 * modules/string (Makefile.am): Update.
7907 * modules/strcase (Include): Mention <strings.h>, not <string.h>.
7908 Reported by Karl Berry.
7910 2007-12-01 Eric Blake <ebb9@byu.net>
7912 * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
7913 accomodate fix in cygwin 1.5.25.
7915 2007-12-01 Jim Meyering <meyering@redhat.com>
7917 Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
7918 * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
7919 that would inhibit utf8-optimization of a regexp containing line-
7920 or buffer-anchors, e.g., `^', `$'.
7922 2007-11-30 Bruno Haible <bruno@clisp.org>
7924 * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
7925 PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
7926 glthread_recursive_lock_init.
7927 * lib/lock.c (glthread_recursive_lock_init)
7928 [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
7929 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
7931 2007-11-28 Paul Eggert <eggert@cs.ucla.edu>
7933 New function qset_acl, like set_acl but with syscall semantics.
7934 * lib/acl.h (qset_acl): New decl.
7935 * lib/acl.c (qset_acl): New function.
7936 (set_acl): Use new function. Use more-consistent diagnostics.
7938 2007-11-28 Jim Meyering <meyering@redhat.com>
7940 * modules/physmem (License): Change from GPL to LGPLv2+.
7942 2007-11-26 Bruno Haible <bruno@clisp.org>
7944 * lib/vasnprintf.c (decode_long_double): Don't abort if the
7945 'long double' type has excess precision.
7946 Reported by Jim Meyering in
7947 <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
7949 2007-11-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7951 * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
7952 Sync from <http://gnu.org/licenses>.
7953 * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
7954 with license text from same location.
7955 * doc/maintain.texi, doc/standards.texi: Sync from
7956 <http://savannah.gnu.org/projects/gnustandards>.
7958 2007-11-22 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
7959 and Jim Meyering <meyering@redhat.com>
7961 Adjust getdate' grammar to accept a slightly more regular language.
7962 E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
7963 Before, the former was rejected.
7964 * lib/getdate.y (digits_to_date_time): New function, factored
7966 (number): ...here. Just call digits_to_date_time.
7967 (hybrid): New non-terminal to handle an <unsigned number,
7968 signed relative offset> sequence consistently.
7970 2007-11-18 Jim Meyering <meyering@redhat.com>
7972 Pull my changes from coreutils:
7973 bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
7974 * build-aux/bootstrap (gnulib_tool_options): Add a space before the
7975 use of $gnulib_tool_option_extras, so that it's separated from the
7978 Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
7979 * build-aux/bootstrap (cp_mark_as_generated): Create any required
7980 parent destination directories before copying a file into place.
7982 2007-11-18 Sergey Poznyakoff <gray@gnu.org.ua>
7984 bootstrap: work also with 4-argument variant of AC_INIT
7985 * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
7987 2007-11-16 Paul Eggert <eggert@cs.ucla.edu>
7989 Port test-getaddrinfo to Solaris.
7990 Problem reported by Bruno Haible in
7991 <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
7992 * tests/test-getaddrinfo.c (simple): Add a comment asking for an
7993 explanation of setting 'hints'.
7994 Don't reject an implementation merely because it returns EAI_SERVICE.
7995 (EAI_SERVICE): Define to 0 if not defined.
7997 2007-11-15 Paul Eggert <eggert@cs.ucla.edu>
7999 The license of gnu-make and posix-shell is now "GPLed build tool".
8000 * modules/gnu-make (License): Likewise.
8001 * modules/posix-shell (License): Likewise.
8003 New module posix-shell, for determining a POSIX shell
8004 or perhaps something that is close enough to a POSIX shell.
8005 * m4/posix-shell.m4: New file.
8006 * modules/posix-shell: New file.
8008 * MODULES.html.sh: Mention new module.
8010 New module gnu-make, for determining whether we're using GNU Make.
8011 * m4/gnu-make.m4: New file.
8012 * modules/gnu-make: New file.
8013 * MODULES.html.sh: Mention new module.
8015 2007-11-14 Jim Meyering <meyering@redhat.com>
8017 Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
8018 * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
8019 use this macro to create a function _definition_.
8020 Remove useless "#undef ARGMATCH_DIE".
8022 2007-11-14 Bruno Haible <bruno@clisp.org>
8024 * lib/config.charset: Update for OpenBSD 4.1.
8025 Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
8027 2007-11-12 Paul Eggert <eggert@cs.ucla.edu>
8029 Document 64-bit #if problems in stdint.texi.
8030 * doc/headers/stdint.texi (stdint.h): Mention problems with
8031 64-bit-#if, and how to work around them.
8033 Don't insist on 'long long int' support in the preprocessor. It
8034 breaks too many things. For example, PRIdMAX still uses a 'long
8035 long int' format with the latest Sun compiler, even though
8036 HAVE_LONG_LONG_INT isn't defined due to that compiler's
8037 preprocessor problem. This causes the latest coreutils to dump
8038 core on Solaris 10 sparc with the Sun C compiler.
8039 Instead, fix the 2007-10-16 problem in a different way, by evaluating
8040 the troublesome expressions at configure-time, not at #if-time.
8041 * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
8043 * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
8044 compile-time C checks, done at 'configure'-time.
8045 (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
8046 * modules/inttypes (Makefile): Substitute the new symbols that
8047 gl_INTTYPES_H now generates.
8048 * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
8050 2007-11-12 Bruno Haible <bruno@clisp.org>
8052 Tests for Unicode character classification functions.
8054 * modules/unictype/bidicategory-byname-tests: New file.
8055 * modules/unictype/bidicategory-name-tests: New file.
8056 * modules/unictype/bidicategory-of-tests: New file.
8057 * modules/unictype/bidicategory-test-tests: New file.
8058 * modules/unictype/block-list-tests: New file.
8059 * modules/unictype/block-of-tests: New file.
8060 * modules/unictype/block-test-tests: New file.
8061 * modules/unictype/category-C-tests: New file.
8062 * modules/unictype/category-Cc-tests: New file.
8063 * modules/unictype/category-Cf-tests: New file.
8064 * modules/unictype/category-Cn-tests: New file.
8065 * modules/unictype/category-Co-tests: New file.
8066 * modules/unictype/category-Cs-tests: New file.
8067 * modules/unictype/category-L-tests: New file.
8068 * modules/unictype/category-Ll-tests: New file.
8069 * modules/unictype/category-Lm-tests: New file.
8070 * modules/unictype/category-Lo-tests: New file.
8071 * modules/unictype/category-Lt-tests: New file.
8072 * modules/unictype/category-Lu-tests: New file.
8073 * modules/unictype/category-M-tests: New file.
8074 * modules/unictype/category-Mc-tests: New file.
8075 * modules/unictype/category-Me-tests: New file.
8076 * modules/unictype/category-Mn-tests: New file.
8077 * modules/unictype/category-N-tests: New file.
8078 * modules/unictype/category-Nd-tests: New file.
8079 * modules/unictype/category-Nl-tests: New file.
8080 * modules/unictype/category-No-tests: New file.
8081 * modules/unictype/category-P-tests: New file.
8082 * modules/unictype/category-Pc-tests: New file.
8083 * modules/unictype/category-Pd-tests: New file.
8084 * modules/unictype/category-Pe-tests: New file.
8085 * modules/unictype/category-Pf-tests: New file.
8086 * modules/unictype/category-Pi-tests: New file.
8087 * modules/unictype/category-Po-tests: New file.
8088 * modules/unictype/category-Ps-tests: New file.
8089 * modules/unictype/category-S-tests: New file.
8090 * modules/unictype/category-Sc-tests: New file.
8091 * modules/unictype/category-Sk-tests: New file.
8092 * modules/unictype/category-Sm-tests: New file.
8093 * modules/unictype/category-So-tests: New file.
8094 * modules/unictype/category-Z-tests: New file.
8095 * modules/unictype/category-Zl-tests: New file.
8096 * modules/unictype/category-Zp-tests: New file.
8097 * modules/unictype/category-Zs-tests: New file.
8098 * modules/unictype/category-and-not-tests: New file.
8099 * modules/unictype/category-and-tests: New file.
8100 * modules/unictype/category-byname-tests: New file.
8101 * modules/unictype/category-name-tests: New file.
8102 * modules/unictype/category-none-tests: New file.
8103 * modules/unictype/category-of-tests: New file.
8104 * modules/unictype/category-or-tests: New file.
8105 * modules/unictype/category-test-withtable-tests: New file.
8106 * modules/unictype/combining-class-tests: New file.
8107 * modules/unictype/ctype-alnum-tests: New file.
8108 * modules/unictype/ctype-alpha-tests: New file.
8109 * modules/unictype/ctype-blank-tests: New file.
8110 * modules/unictype/ctype-cntrl-tests: New file.
8111 * modules/unictype/ctype-digit-tests: New file.
8112 * modules/unictype/ctype-graph-tests: New file.
8113 * modules/unictype/ctype-lower-tests: New file.
8114 * modules/unictype/ctype-print-tests: New file.
8115 * modules/unictype/ctype-punct-tests: New file.
8116 * modules/unictype/ctype-space-tests: New file.
8117 * modules/unictype/ctype-upper-tests: New file.
8118 * modules/unictype/ctype-xdigit-tests: New file.
8119 * modules/unictype/decimal-digit-tests: New file.
8120 * modules/unictype/digit-tests: New file.
8121 * modules/unictype/mirror-tests: New file.
8122 * modules/unictype/numeric-tests: New file.
8123 * modules/unictype/property-alphabetic-tests: New file.
8124 * modules/unictype/property-ascii-hex-digit-tests: New file.
8125 * modules/unictype/property-bidi-arabic-digit-tests: New file.
8126 * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
8127 * modules/unictype/property-bidi-block-separator-tests: New file.
8128 * modules/unictype/property-bidi-boundary-neutral-tests: New file.
8129 * modules/unictype/property-bidi-common-separator-tests: New file.
8130 * modules/unictype/property-bidi-control-tests: New file.
8131 * modules/unictype/property-bidi-embedding-or-override-tests: New file.
8132 * modules/unictype/property-bidi-eur-num-separator-tests: New file.
8133 * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
8134 * modules/unictype/property-bidi-european-digit-tests: New file.
8135 * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
8136 * modules/unictype/property-bidi-left-to-right-tests: New file.
8137 * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
8138 * modules/unictype/property-bidi-other-neutral-tests: New file.
8139 * modules/unictype/property-bidi-pdf-tests: New file.
8140 * modules/unictype/property-bidi-segment-separator-tests: New file.
8141 * modules/unictype/property-bidi-whitespace-tests: New file.
8142 * modules/unictype/property-byname-tests: New file.
8143 * modules/unictype/property-combining-tests: New file.
8144 * modules/unictype/property-composite-tests: New file.
8145 * modules/unictype/property-currency-symbol-tests: New file.
8146 * modules/unictype/property-dash-tests: New file.
8147 * modules/unictype/property-decimal-digit-tests: New file.
8148 * modules/unictype/property-default-ignorable-code-point-tests: New file.
8149 * modules/unictype/property-deprecated-tests: New file.
8150 * modules/unictype/property-diacritic-tests: New file.
8151 * modules/unictype/property-extender-tests: New file.
8152 * modules/unictype/property-format-control-tests: New file.
8153 * modules/unictype/property-grapheme-base-tests: New file.
8154 * modules/unictype/property-grapheme-extend-tests: New file.
8155 * modules/unictype/property-grapheme-link-tests: New file.
8156 * modules/unictype/property-hex-digit-tests: New file.
8157 * modules/unictype/property-hyphen-tests: New file.
8158 * modules/unictype/property-id-continue-tests: New file.
8159 * modules/unictype/property-id-start-tests: New file.
8160 * modules/unictype/property-ideographic-tests: New file.
8161 * modules/unictype/property-ids-binary-operator-tests: New file.
8162 * modules/unictype/property-ids-trinary-operator-tests: New file.
8163 * modules/unictype/property-ignorable-control-tests: New file.
8164 * modules/unictype/property-iso-control-tests: New file.
8165 * modules/unictype/property-join-control-tests: New file.
8166 * modules/unictype/property-left-of-pair-tests: New file.
8167 * modules/unictype/property-line-separator-tests: New file.
8168 * modules/unictype/property-logical-order-exception-tests: New file.
8169 * modules/unictype/property-lowercase-tests: New file.
8170 * modules/unictype/property-math-tests: New file.
8171 * modules/unictype/property-non-break-tests: New file.
8172 * modules/unictype/property-not-a-character-tests: New file.
8173 * modules/unictype/property-numeric-tests: New file.
8174 * modules/unictype/property-other-alphabetic-tests: New file.
8175 * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
8176 * modules/unictype/property-other-grapheme-extend-tests: New file.
8177 * modules/unictype/property-other-id-continue-tests: New file.
8178 * modules/unictype/property-other-id-start-tests: New file.
8179 * modules/unictype/property-other-lowercase-tests: New file.
8180 * modules/unictype/property-other-math-tests: New file.
8181 * modules/unictype/property-other-uppercase-tests: New file.
8182 * modules/unictype/property-paired-punctuation-tests: New file.
8183 * modules/unictype/property-paragraph-separator-tests: New file.
8184 * modules/unictype/property-pattern-syntax-tests: New file.
8185 * modules/unictype/property-pattern-white-space-tests: New file.
8186 * modules/unictype/property-private-use-tests: New file.
8187 * modules/unictype/property-punctuation-tests: New file.
8188 * modules/unictype/property-quotation-mark-tests: New file.
8189 * modules/unictype/property-radical-tests: New file.
8190 * modules/unictype/property-sentence-terminal-tests: New file.
8191 * modules/unictype/property-soft-dotted-tests: New file.
8192 * modules/unictype/property-space-tests: New file.
8193 * modules/unictype/property-terminal-punctuation-tests: New file.
8194 * modules/unictype/property-test-tests: New file.
8195 * modules/unictype/property-titlecase-tests: New file.
8196 * modules/unictype/property-unassigned-code-value-tests: New file.
8197 * modules/unictype/property-unified-ideograph-tests: New file.
8198 * modules/unictype/property-uppercase-tests: New file.
8199 * modules/unictype/property-variation-selector-tests: New file.
8200 * modules/unictype/property-white-space-tests: New file.
8201 * modules/unictype/property-xid-continue-tests: New file.
8202 * modules/unictype/property-xid-start-tests: New file.
8203 * modules/unictype/property-zero-width-tests: New file.
8204 * modules/unictype/scripts-tests: New file.
8205 * modules/unictype/syntax-c-ident-tests: New file.
8206 * modules/unictype/syntax-c-whitespace-tests: New file.
8207 * modules/unictype/syntax-java-ident-tests: New file.
8208 * modules/unictype/syntax-java-whitespace-tests: New file.
8209 * tests/unictype/test-bidi_byname.c: New file.
8210 * tests/unictype/test-bidi_name.c: New file.
8211 * tests/unictype/test-bidi_of.c: New file.
8212 * tests/unictype/test-bidi_test.c: New file.
8213 * tests/unictype/test-block_list.c: New file.
8214 * tests/unictype/test-block_of.c: New file.
8215 * tests/unictype/test-block_test.c: New file.
8216 * tests/unictype/test-categ_and.c: New file.
8217 * tests/unictype/test-categ_and_not.c: New file.
8218 * tests/unictype/test-categ_byname.c: New file.
8219 * tests/unictype/test-categ_name.c: New file.
8220 * tests/unictype/test-categ_none.c: New file.
8221 * tests/unictype/test-categ_of.c: New file.
8222 * tests/unictype/test-categ_or.c: New file.
8223 * tests/unictype/test-categ_test_withtable.c: New file.
8224 * tests/unictype/test-combining.c: New file.
8225 * tests/unictype/test-decdigit.c: New file.
8226 * tests/unictype/test-digit.c: New file.
8227 * tests/unictype/test-mirror.c: New file.
8228 * tests/unictype/test-numeric.c: New file.
8229 * tests/unictype/test-pr_byname.c: New file.
8230 * tests/unictype/test-pr_test.c: New file.
8231 * tests/unictype/test-predicate-part1.h: New file.
8232 * tests/unictype/test-predicate-part2.h: New file.
8233 * tests/unictype/test-scripts.c: New file.
8234 * tests/unictype/test-sy_c_ident.c: New file.
8235 * tests/unictype/test-sy_java_ident.c: New file.
8237 * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
8239 * tests/unictype/test-categ_Cc.c: Likewise.
8240 * tests/unictype/test-categ_Cf.c: Likewise.
8241 * tests/unictype/test-categ_Cn.c: Likewise.
8242 * tests/unictype/test-categ_Co.c: Likewise.
8243 * tests/unictype/test-categ_Cs.c: Likewise.
8244 * tests/unictype/test-categ_L.c: Likewise.
8245 * tests/unictype/test-categ_Ll.c: Likewise.
8246 * tests/unictype/test-categ_Lm.c: Likewise.
8247 * tests/unictype/test-categ_Lo.c: Likewise.
8248 * tests/unictype/test-categ_Lt.c: Likewise.
8249 * tests/unictype/test-categ_Lu.c: Likewise.
8250 * tests/unictype/test-categ_M.c: Likewise.
8251 * tests/unictype/test-categ_Mc.c: Likewise.
8252 * tests/unictype/test-categ_Me.c: Likewise.
8253 * tests/unictype/test-categ_Mn.c: Likewise.
8254 * tests/unictype/test-categ_N.c: Likewise.
8255 * tests/unictype/test-categ_Nd.c: Likewise.
8256 * tests/unictype/test-categ_Nl.c: Likewise.
8257 * tests/unictype/test-categ_No.c: Likewise.
8258 * tests/unictype/test-categ_P.c: Likewise.
8259 * tests/unictype/test-categ_Pc.c: Likewise.
8260 * tests/unictype/test-categ_Pd.c: Likewise.
8261 * tests/unictype/test-categ_Pe.c: Likewise.
8262 * tests/unictype/test-categ_Pf.c: Likewise.
8263 * tests/unictype/test-categ_Pi.c: Likewise.
8264 * tests/unictype/test-categ_Po.c: Likewise.
8265 * tests/unictype/test-categ_Ps.c: Likewise.
8266 * tests/unictype/test-categ_S.c: Likewise.
8267 * tests/unictype/test-categ_Sc.c: Likewise.
8268 * tests/unictype/test-categ_Sk.c: Likewise.
8269 * tests/unictype/test-categ_Sm.c: Likewise.
8270 * tests/unictype/test-categ_So.c: Likewise.
8271 * tests/unictype/test-categ_Z.c: Likewise.
8272 * tests/unictype/test-categ_Zl.c: Likewise.
8273 * tests/unictype/test-categ_Zp.c: Likewise.
8274 * tests/unictype/test-categ_Zs.c: Likewise.
8275 * tests/unictype/test-ctype_alnum.c: Likewise.
8276 * tests/unictype/test-ctype_alpha.c: Likewise.
8277 * tests/unictype/test-ctype_blank.c: Likewise.
8278 * tests/unictype/test-ctype_cntrl.c: Likewise.
8279 * tests/unictype/test-ctype_digit.c: Likewise.
8280 * tests/unictype/test-ctype_graph.c: Likewise.
8281 * tests/unictype/test-ctype_lower.c: Likewise.
8282 * tests/unictype/test-ctype_print.c: Likewise.
8283 * tests/unictype/test-ctype_punct.c: Likewise.
8284 * tests/unictype/test-ctype_space.c: Likewise.
8285 * tests/unictype/test-ctype_upper.c: Likewise.
8286 * tests/unictype/test-ctype_xdigit.c: Likewise.
8287 * tests/unictype/test-decdigit.h: Likewise.
8288 * tests/unictype/test-digit.h: Likewise.
8289 * tests/unictype/test-numeric.h: Likewise.
8290 * tests/unictype/test-pr_alphabetic.c: Likewise.
8291 * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
8292 * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
8293 * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
8294 * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
8295 * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
8296 * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
8297 * tests/unictype/test-pr_bidi_control.c: Likewise.
8298 * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
8299 * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
8300 * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
8301 * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
8302 * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
8303 * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
8304 * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
8305 * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
8306 * tests/unictype/test-pr_bidi_pdf.c: Likewise.
8307 * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
8308 * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
8309 * tests/unictype/test-pr_combining.c: Likewise.
8310 * tests/unictype/test-pr_composite.c: Likewise.
8311 * tests/unictype/test-pr_currency_symbol.c: Likewise.
8312 * tests/unictype/test-pr_dash.c: Likewise.
8313 * tests/unictype/test-pr_decimal_digit.c: Likewise.
8314 * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
8315 * tests/unictype/test-pr_deprecated.c: Likewise.
8316 * tests/unictype/test-pr_diacritic.c: Likewise.
8317 * tests/unictype/test-pr_extender.c: Likewise.
8318 * tests/unictype/test-pr_format_control.c: Likewise.
8319 * tests/unictype/test-pr_grapheme_base.c: Likewise.
8320 * tests/unictype/test-pr_grapheme_extend.c: Likewise.
8321 * tests/unictype/test-pr_grapheme_link.c: Likewise.
8322 * tests/unictype/test-pr_hex_digit.c: Likewise.
8323 * tests/unictype/test-pr_hyphen.c: Likewise.
8324 * tests/unictype/test-pr_id_continue.c: Likewise.
8325 * tests/unictype/test-pr_id_start.c: Likewise.
8326 * tests/unictype/test-pr_ideographic.c: Likewise.
8327 * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
8328 * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
8329 * tests/unictype/test-pr_ignorable_control.c: Likewise.
8330 * tests/unictype/test-pr_iso_control.c: Likewise.
8331 * tests/unictype/test-pr_join_control.c: Likewise.
8332 * tests/unictype/test-pr_left_of_pair.c: Likewise.
8333 * tests/unictype/test-pr_line_separator.c: Likewise.
8334 * tests/unictype/test-pr_logical_order_exception.c: Likewise.
8335 * tests/unictype/test-pr_lowercase.c: Likewise.
8336 * tests/unictype/test-pr_math.c: Likewise.
8337 * tests/unictype/test-pr_non_break.c: Likewise.
8338 * tests/unictype/test-pr_not_a_character.c: Likewise.
8339 * tests/unictype/test-pr_numeric.c: Likewise.
8340 * tests/unictype/test-pr_other_alphabetic.c: Likewise.
8341 * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
8342 * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
8343 * tests/unictype/test-pr_other_id_continue.c: Likewise.
8344 * tests/unictype/test-pr_other_id_start.c: Likewise.
8345 * tests/unictype/test-pr_other_lowercase.c: Likewise.
8346 * tests/unictype/test-pr_other_math.c: Likewise.
8347 * tests/unictype/test-pr_other_uppercase.c: Likewise.
8348 * tests/unictype/test-pr_paired_punctuation.c: Likewise.
8349 * tests/unictype/test-pr_paragraph_separator.c: Likewise.
8350 * tests/unictype/test-pr_pattern_syntax.c: Likewise.
8351 * tests/unictype/test-pr_pattern_white_space.c: Likewise.
8352 * tests/unictype/test-pr_private_use.c: Likewise.
8353 * tests/unictype/test-pr_punctuation.c: Likewise.
8354 * tests/unictype/test-pr_quotation_mark.c: Likewise.
8355 * tests/unictype/test-pr_radical.c: Likewise.
8356 * tests/unictype/test-pr_sentence_terminal.c: Likewise.
8357 * tests/unictype/test-pr_soft_dotted.c: Likewise.
8358 * tests/unictype/test-pr_space.c: Likewise.
8359 * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
8360 * tests/unictype/test-pr_titlecase.c: Likewise.
8361 * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
8362 * tests/unictype/test-pr_unified_ideograph.c: Likewise.
8363 * tests/unictype/test-pr_uppercase.c: Likewise.
8364 * tests/unictype/test-pr_variation_selector.c: Likewise.
8365 * tests/unictype/test-pr_white_space.c: Likewise.
8366 * tests/unictype/test-pr_xid_continue.c: Likewise.
8367 * tests/unictype/test-pr_xid_start.c: Likewise.
8368 * tests/unictype/test-pr_zero_width.c: Likewise.
8369 * tests/unictype/test-sy_c_whitespace.c: Likewise.
8370 * tests/unictype/test-sy_java_whitespace.c: Likewise.
8372 2007-11-12 Bruno Haible <bruno@clisp.org>
8374 Unicode character classification functions.
8375 * lib/unictype.h: New file.
8376 * modules/unictype/base: New file.
8377 * modules/unictype/category-L: New file.
8378 * modules/unictype/category-Lu: New file.
8379 * modules/unictype/category-Ll: New file.
8380 * modules/unictype/category-Lt: New file.
8381 * modules/unictype/category-Lm: New file.
8382 * modules/unictype/category-Lo: New file.
8383 * modules/unictype/category-M: New file.
8384 * modules/unictype/category-Mn: New file.
8385 * modules/unictype/category-Mc: New file.
8386 * modules/unictype/category-Me: New file.
8387 * modules/unictype/category-N: New file.
8388 * modules/unictype/category-Nd: New file.
8389 * modules/unictype/category-Nl: New file.
8390 * modules/unictype/category-No: New file.
8391 * modules/unictype/category-P: New file.
8392 * modules/unictype/category-Pc: New file.
8393 * modules/unictype/category-Pd: New file.
8394 * modules/unictype/category-Ps: New file.
8395 * modules/unictype/category-Pe: New file.
8396 * modules/unictype/category-Pi: New file.
8397 * modules/unictype/category-Pf: New file.
8398 * modules/unictype/category-Po: New file.
8399 * modules/unictype/category-S: New file.
8400 * modules/unictype/category-Sm: New file.
8401 * modules/unictype/category-Sc: New file.
8402 * modules/unictype/category-Sk: New file.
8403 * modules/unictype/category-So: New file.
8404 * modules/unictype/category-Z: New file.
8405 * modules/unictype/category-Zs: New file.
8406 * modules/unictype/category-Zl: New file.
8407 * modules/unictype/category-Zp: New file.
8408 * modules/unictype/category-C: New file.
8409 * modules/unictype/category-Cc: New file.
8410 * modules/unictype/category-Cf: New file.
8411 * modules/unictype/category-Cs: New file.
8412 * modules/unictype/category-Co: New file.
8413 * modules/unictype/category-Cn: New file.
8414 * modules/unictype/category-or: New file.
8415 * modules/unictype/category-of: New file.
8416 * modules/unictype/category-test: New file.
8417 * modules/unictype/category-test-withtable: New file.
8418 * modules/unictype/category-byname: New file.
8419 * modules/unictype/category-none: New file.
8420 * modules/unictype/category-and: New file.
8421 * modules/unictype/category-and-not: New file.
8422 * modules/unictype/category-name: New file.
8423 * modules/unictype/combining-class: New file.
8424 * modules/unictype/category-all: New file.
8425 * modules/unictype/bidicategory-all: New file.
8426 * modules/unictype/bidicategory-byname: New file.
8427 * modules/unictype/bidicategory-name: New file.
8428 * modules/unictype/bidicategory-of: New file.
8429 * modules/unictype/bidicategory-test: New file.
8430 * modules/unictype/decimal-digit: New file.
8431 * modules/unictype/digit: New file.
8432 * modules/unictype/numeric: New file.
8433 * modules/unictype/mirror: New file.
8434 * modules/unictype/property-white-space: New file.
8435 * modules/unictype/property-alphabetic: New file.
8436 * modules/unictype/property-other-alphabetic: New file.
8437 * modules/unictype/property-not-a-character: New file.
8438 * modules/unictype/property-default-ignorable-code-point: New file.
8439 * modules/unictype/property-other-default-ignorable-code-point: New
8441 * modules/unictype/property-deprecated: New file.
8442 * modules/unictype/property-logical-order-exception: New file.
8443 * modules/unictype/property-variation-selector: New file.
8444 * modules/unictype/property-private-use: New file.
8445 * modules/unictype/property-unassigned-code-value: New file.
8446 * modules/unictype/property-uppercase: New file.
8447 * modules/unictype/property-other-uppercase: New file.
8448 * modules/unictype/property-lowercase: New file.
8449 * modules/unictype/property-other-lowercase: New file.
8450 * modules/unictype/property-titlecase: New file.
8451 * modules/unictype/property-soft-dotted: New file.
8452 * modules/unictype/property-id-start: New file.
8453 * modules/unictype/property-other-id-start: New file.
8454 * modules/unictype/property-id-continue: New file.
8455 * modules/unictype/property-other-id-continue: New file.
8456 * modules/unictype/property-xid-start: New file.
8457 * modules/unictype/property-xid-continue: New file.
8458 * modules/unictype/property-pattern-white-space: New file.
8459 * modules/unictype/property-pattern-syntax: New file.
8460 * modules/unictype/property-join-control: New file.
8461 * modules/unictype/property-grapheme-base: New file.
8462 * modules/unictype/property-grapheme-extend: New file.
8463 * modules/unictype/property-other-grapheme-extend: New file.
8464 * modules/unictype/property-grapheme-link: New file.
8465 * modules/unictype/property-bidi-control: New file.
8466 * modules/unictype/property-bidi-left-to-right: New file.
8467 * modules/unictype/property-bidi-hebrew-right-to-left: New file.
8468 * modules/unictype/property-bidi-arabic-right-to-left: New file.
8469 * modules/unictype/property-bidi-european-digit: New file.
8470 * modules/unictype/property-bidi-eur-num-separator: New file.
8471 * modules/unictype/property-bidi-eur-num-terminator: New file.
8472 * modules/unictype/property-bidi-arabic-digit: New file.
8473 * modules/unictype/property-bidi-common-separator: New file.
8474 * modules/unictype/property-bidi-block-separator: New file.
8475 * modules/unictype/property-bidi-segment-separator: New file.
8476 * modules/unictype/property-bidi-whitespace: New file.
8477 * modules/unictype/property-bidi-non-spacing-mark: New file.
8478 * modules/unictype/property-bidi-boundary-neutral: New file.
8479 * modules/unictype/property-bidi-pdf: New file.
8480 * modules/unictype/property-bidi-embedding-or-override: New file.
8481 * modules/unictype/property-bidi-other-neutral: New file.
8482 * modules/unictype/property-hex-digit: New file.
8483 * modules/unictype/property-ascii-hex-digit: New file.
8484 * modules/unictype/property-ideographic: New file.
8485 * modules/unictype/property-unified-ideograph: New file.
8486 * modules/unictype/property-radical: New file.
8487 * modules/unictype/property-ids-binary-operator: New file.
8488 * modules/unictype/property-ids-trinary-operator: New file.
8489 * modules/unictype/property-zero-width: New file.
8490 * modules/unictype/property-space: New file.
8491 * modules/unictype/property-non-break: New file.
8492 * modules/unictype/property-iso-control: New file.
8493 * modules/unictype/property-format-control: New file.
8494 * modules/unictype/property-dash: New file.
8495 * modules/unictype/property-hyphen: New file.
8496 * modules/unictype/property-punctuation: New file.
8497 * modules/unictype/property-line-separator: New file.
8498 * modules/unictype/property-paragraph-separator: New file.
8499 * modules/unictype/property-quotation-mark: New file.
8500 * modules/unictype/property-sentence-terminal: New file.
8501 * modules/unictype/property-terminal-punctuation: New file.
8502 * modules/unictype/property-currency-symbol: New file.
8503 * modules/unictype/property-math: New file.
8504 * modules/unictype/property-other-math: New file.
8505 * modules/unictype/property-paired-punctuation: New file.
8506 * modules/unictype/property-left-of-pair: New file.
8507 * modules/unictype/property-combining: New file.
8508 * modules/unictype/property-composite: New file.
8509 * modules/unictype/property-decimal-digit: New file.
8510 * modules/unictype/property-numeric: New file.
8511 * modules/unictype/property-diacritic: New file.
8512 * modules/unictype/property-extender: New file.
8513 * modules/unictype/property-ignorable-control: New file.
8514 * modules/unictype/property-test: New file.
8515 * modules/unictype/property-byname: New file.
8516 * modules/unictype/property-all: New file.
8517 * modules/unictype/scripts: New file.
8518 * modules/unictype/scripts-all: New file.
8519 * modules/unictype/block-of: New file.
8520 * modules/unictype/block-test: New file.
8521 * modules/unictype/block-list: New file.
8522 * modules/unictype/block-all: New file.
8523 * modules/unictype/syntax-c-whitespace: New file.
8524 * modules/unictype/syntax-java-whitespace: New file.
8525 * modules/unictype/syntax-c-ident: New file.
8526 * modules/unictype/syntax-java-ident: New file.
8527 * modules/unictype/ctype-alnum: New file.
8528 * modules/unictype/ctype-alpha: New file.
8529 * modules/unictype/ctype-cntrl: New file.
8530 * modules/unictype/ctype-digit: New file.
8531 * modules/unictype/ctype-graph: New file.
8532 * modules/unictype/ctype-lower: New file.
8533 * modules/unictype/ctype-print: New file.
8534 * modules/unictype/ctype-punct: New file.
8535 * modules/unictype/ctype-space: New file.
8536 * modules/unictype/ctype-upper: New file.
8537 * modules/unictype/ctype-xdigit: New file.
8538 * modules/unictype/ctype-blank: New file.
8539 * lib/unictype/bidi_byname.c: New file.
8540 * lib/unictype/bidi_name.c: New file.
8541 * lib/unictype/bidi_of.c: New file.
8542 * lib/unictype/bidi_test.c: New file.
8543 * lib/unictype/bitmap.h: New file.
8544 * lib/unictype/block_test.c: New file.
8545 * lib/unictype/blocks.c: New file.
8546 * lib/unictype/categ_C.c: New file.
8547 * lib/unictype/categ_Cc.c: New file.
8548 * lib/unictype/categ_Cf.c: New file.
8549 * lib/unictype/categ_Cn.c: New file.
8550 * lib/unictype/categ_Co.c: New file.
8551 * lib/unictype/categ_Cs.c: New file.
8552 * lib/unictype/categ_L.c: New file.
8553 * lib/unictype/categ_Ll.c: New file.
8554 * lib/unictype/categ_Lm.c: New file.
8555 * lib/unictype/categ_Lo.c: New file.
8556 * lib/unictype/categ_Lt.c: New file.
8557 * lib/unictype/categ_Lu.c: New file.
8558 * lib/unictype/categ_M.c: New file.
8559 * lib/unictype/categ_Mc.c: New file.
8560 * lib/unictype/categ_Me.c: New file.
8561 * lib/unictype/categ_Mn.c: New file.
8562 * lib/unictype/categ_N.c: New file.
8563 * lib/unictype/categ_Nd.c: New file.
8564 * lib/unictype/categ_Nl.c: New file.
8565 * lib/unictype/categ_No.c: New file.
8566 * lib/unictype/categ_P.c: New file.
8567 * lib/unictype/categ_Pc.c: New file.
8568 * lib/unictype/categ_Pd.c: New file.
8569 * lib/unictype/categ_Pe.c: New file.
8570 * lib/unictype/categ_Pf.c: New file.
8571 * lib/unictype/categ_Pi.c: New file.
8572 * lib/unictype/categ_Po.c: New file.
8573 * lib/unictype/categ_Ps.c: New file.
8574 * lib/unictype/categ_S.c: New file.
8575 * lib/unictype/categ_Sc.c: New file.
8576 * lib/unictype/categ_Sk.c: New file.
8577 * lib/unictype/categ_Sm.c: New file.
8578 * lib/unictype/categ_So.c: New file.
8579 * lib/unictype/categ_Z.c: New file.
8580 * lib/unictype/categ_Zl.c: New file.
8581 * lib/unictype/categ_Zp.c: New file.
8582 * lib/unictype/categ_Zs.c: New file.
8583 * lib/unictype/categ_and.c: New file.
8584 * lib/unictype/categ_and_not.c: New file.
8585 * lib/unictype/categ_byname.c: New file.
8586 * lib/unictype/categ_name.c: New file.
8587 * lib/unictype/categ_none.c: New file.
8588 * lib/unictype/categ_of.c: New file.
8589 * lib/unictype/categ_or.c: New file.
8590 * lib/unictype/categ_test.c: New file.
8591 * lib/unictype/combining.c: New file.
8592 * lib/unictype/ctype_alnum.c: New file.
8593 * lib/unictype/ctype_alpha.c: New file.
8594 * lib/unictype/ctype_blank.c: New file.
8595 * lib/unictype/ctype_cntrl.c: New file.
8596 * lib/unictype/ctype_digit.c: New file.
8597 * lib/unictype/ctype_graph.c: New file.
8598 * lib/unictype/ctype_lower.c: New file.
8599 * lib/unictype/ctype_print.c: New file.
8600 * lib/unictype/ctype_punct.c: New file.
8601 * lib/unictype/ctype_space.c: New file.
8602 * lib/unictype/ctype_upper.c: New file.
8603 * lib/unictype/ctype_xdigit.c: New file.
8604 * lib/unictype/decdigit.c: New file.
8605 * lib/unictype/digit.c: New file.
8606 * lib/unictype/identsyntaxmap.h: New file.
8607 * lib/unictype/mirror.c: New file.
8608 * lib/unictype/numeric.c: New file.
8609 * lib/unictype/pr_alphabetic.c: New file.
8610 * lib/unictype/pr_ascii_hex_digit.c: New file.
8611 * lib/unictype/pr_bidi_arabic_digit.c: New file.
8612 * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
8613 * lib/unictype/pr_bidi_block_separator.c: New file.
8614 * lib/unictype/pr_bidi_boundary_neutral.c: New file.
8615 * lib/unictype/pr_bidi_common_separator.c: New file.
8616 * lib/unictype/pr_bidi_control.c: New file.
8617 * lib/unictype/pr_bidi_embedding_or_override.c: New file.
8618 * lib/unictype/pr_bidi_eur_num_separator.c: New file.
8619 * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
8620 * lib/unictype/pr_bidi_european_digit.c: New file.
8621 * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
8622 * lib/unictype/pr_bidi_left_to_right.c: New file.
8623 * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
8624 * lib/unictype/pr_bidi_other_neutral.c: New file.
8625 * lib/unictype/pr_bidi_pdf.c: New file.
8626 * lib/unictype/pr_bidi_segment_separator.c: New file.
8627 * lib/unictype/pr_bidi_whitespace.c: New file.
8628 * lib/unictype/pr_byname.c: New file.
8629 * lib/unictype/pr_byname.gperf: New file.
8630 * lib/unictype/pr_combining.c: New file.
8631 * lib/unictype/pr_composite.c: New file.
8632 * lib/unictype/pr_currency_symbol.c: New file.
8633 * lib/unictype/pr_dash.c: New file.
8634 * lib/unictype/pr_decimal_digit.c: New file.
8635 * lib/unictype/pr_default_ignorable_code_point.c: New file.
8636 * lib/unictype/pr_deprecated.c: New file.
8637 * lib/unictype/pr_diacritic.c: New file.
8638 * lib/unictype/pr_extender.c: New file.
8639 * lib/unictype/pr_format_control.c: New file.
8640 * lib/unictype/pr_grapheme_base.c: New file.
8641 * lib/unictype/pr_grapheme_extend.c: New file.
8642 * lib/unictype/pr_grapheme_link.c: New file.
8643 * lib/unictype/pr_hex_digit.c: New file.
8644 * lib/unictype/pr_hyphen.c: New file.
8645 * lib/unictype/pr_id_continue.c: New file.
8646 * lib/unictype/pr_id_start.c: New file.
8647 * lib/unictype/pr_ideographic.c: New file.
8648 * lib/unictype/pr_ids_binary_operator.c: New file.
8649 * lib/unictype/pr_ids_trinary_operator.c: New file.
8650 * lib/unictype/pr_ignorable_control.c: New file.
8651 * lib/unictype/pr_iso_control.c: New file.
8652 * lib/unictype/pr_join_control.c: New file.
8653 * lib/unictype/pr_left_of_pair.c: New file.
8654 * lib/unictype/pr_line_separator.c: New file.
8655 * lib/unictype/pr_logical_order_exception.c: New file.
8656 * lib/unictype/pr_lowercase.c: New file.
8657 * lib/unictype/pr_math.c: New file.
8658 * lib/unictype/pr_non_break.c: New file.
8659 * lib/unictype/pr_not_a_character.c: New file.
8660 * lib/unictype/pr_numeric.c: New file.
8661 * lib/unictype/pr_other_alphabetic.c: New file.
8662 * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
8663 * lib/unictype/pr_other_grapheme_extend.c: New file.
8664 * lib/unictype/pr_other_id_continue.c: New file.
8665 * lib/unictype/pr_other_id_start.c: New file.
8666 * lib/unictype/pr_other_lowercase.c: New file.
8667 * lib/unictype/pr_other_math.c: New file.
8668 * lib/unictype/pr_other_uppercase.c: New file.
8669 * lib/unictype/pr_paired_punctuation.c: New file.
8670 * lib/unictype/pr_paragraph_separator.c: New file.
8671 * lib/unictype/pr_pattern_syntax.c: New file.
8672 * lib/unictype/pr_pattern_white_space.c: New file.
8673 * lib/unictype/pr_private_use.c: New file.
8674 * lib/unictype/pr_punctuation.c: New file.
8675 * lib/unictype/pr_quotation_mark.c: New file.
8676 * lib/unictype/pr_radical.c: New file.
8677 * lib/unictype/pr_sentence_terminal.c: New file.
8678 * lib/unictype/pr_soft_dotted.c: New file.
8679 * lib/unictype/pr_space.c: New file.
8680 * lib/unictype/pr_terminal_punctuation.c: New file.
8681 * lib/unictype/pr_test.c: New file.
8682 * lib/unictype/pr_titlecase.c: New file.
8683 * lib/unictype/pr_unassigned_code_value.c: New file.
8684 * lib/unictype/pr_unified_ideograph.c: New file.
8685 * lib/unictype/pr_uppercase.c: New file.
8686 * lib/unictype/pr_variation_selector.c: New file.
8687 * lib/unictype/pr_white_space.c: New file.
8688 * lib/unictype/pr_xid_continue.c: New file.
8689 * lib/unictype/pr_xid_start.c: New file.
8690 * lib/unictype/pr_zero_width.c: New file.
8691 * lib/unictype/scripts.c: New file.
8692 * lib/unictype/sy_c_ident.c: New file.
8693 * lib/unictype/sy_c_whitespace.c: New file.
8694 * lib/unictype/sy_java_ident.c: New file.
8695 * lib/unictype/sy_java_whitespace.c: New file.
8697 * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
8699 * lib/unictype/blocks.h: Likewise.
8700 * lib/unictype/categ_C.h: Likewise.
8701 * lib/unictype/categ_Cc.h: Likewise.
8702 * lib/unictype/categ_Cf.h: Likewise.
8703 * lib/unictype/categ_Cn.h: Likewise.
8704 * lib/unictype/categ_Co.h: Likewise.
8705 * lib/unictype/categ_Cs.h: Likewise.
8706 * lib/unictype/categ_L.h: Likewise.
8707 * lib/unictype/categ_Ll.h: Likewise.
8708 * lib/unictype/categ_Lm.h: Likewise.
8709 * lib/unictype/categ_Lo.h: Likewise.
8710 * lib/unictype/categ_Lt.h: Likewise.
8711 * lib/unictype/categ_Lu.h: Likewise.
8712 * lib/unictype/categ_M.h: Likewise.
8713 * lib/unictype/categ_Mc.h: Likewise.
8714 * lib/unictype/categ_Me.h: Likewise.
8715 * lib/unictype/categ_Mn.h: Likewise.
8716 * lib/unictype/categ_N.h: Likewise.
8717 * lib/unictype/categ_Nd.h: Likewise.
8718 * lib/unictype/categ_Nl.h: Likewise.
8719 * lib/unictype/categ_No.h: Likewise.
8720 * lib/unictype/categ_P.h: Likewise.
8721 * lib/unictype/categ_Pc.h: Likewise.
8722 * lib/unictype/categ_Pd.h: Likewise.
8723 * lib/unictype/categ_Pe.h: Likewise.
8724 * lib/unictype/categ_Pf.h: Likewise.
8725 * lib/unictype/categ_Pi.h: Likewise.
8726 * lib/unictype/categ_Po.h: Likewise.
8727 * lib/unictype/categ_Ps.h: Likewise.
8728 * lib/unictype/categ_S.h: Likewise.
8729 * lib/unictype/categ_Sc.h: Likewise.
8730 * lib/unictype/categ_Sk.h: Likewise.
8731 * lib/unictype/categ_Sm.h: Likewise.
8732 * lib/unictype/categ_So.h: Likewise.
8733 * lib/unictype/categ_Z.h: Likewise.
8734 * lib/unictype/categ_Zl.h: Likewise.
8735 * lib/unictype/categ_Zp.h: Likewise.
8736 * lib/unictype/categ_Zs.h: Likewise.
8737 * lib/unictype/categ_of.h: Likewise.
8738 * lib/unictype/combining.h: Likewise.
8739 * lib/unictype/ctype_alnum.h: Likewise.
8740 * lib/unictype/ctype_alpha.h: Likewise.
8741 * lib/unictype/ctype_blank.h: Likewise.
8742 * lib/unictype/ctype_cntrl.h: Likewise.
8743 * lib/unictype/ctype_digit.h: Likewise.
8744 * lib/unictype/ctype_graph.h: Likewise.
8745 * lib/unictype/ctype_lower.h: Likewise.
8746 * lib/unictype/ctype_print.h: Likewise.
8747 * lib/unictype/ctype_punct.h: Likewise.
8748 * lib/unictype/ctype_space.h: Likewise.
8749 * lib/unictype/ctype_upper.h: Likewise.
8750 * lib/unictype/ctype_xdigit.h: Likewise.
8751 * lib/unictype/decdigit.h: Likewise.
8752 * lib/unictype/digit.h: Likewise.
8753 * lib/unictype/mirror.h: Likewise.
8754 * lib/unictype/numeric.h: Likewise.
8755 * lib/unictype/pr_alphabetic.h: Likewise.
8756 * lib/unictype/pr_ascii_hex_digit.h: Likewise.
8757 * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
8758 * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
8759 * lib/unictype/pr_bidi_block_separator.h: Likewise.
8760 * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
8761 * lib/unictype/pr_bidi_common_separator.h: Likewise.
8762 * lib/unictype/pr_bidi_control.h: Likewise.
8763 * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
8764 * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
8765 * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
8766 * lib/unictype/pr_bidi_european_digit.h: Likewise.
8767 * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
8768 * lib/unictype/pr_bidi_left_to_right.h: Likewise.
8769 * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
8770 * lib/unictype/pr_bidi_other_neutral.h: Likewise.
8771 * lib/unictype/pr_bidi_pdf.h: Likewise.
8772 * lib/unictype/pr_bidi_segment_separator.h: Likewise.
8773 * lib/unictype/pr_bidi_whitespace.h: Likewise.
8774 * lib/unictype/pr_combining.h: Likewise.
8775 * lib/unictype/pr_composite.h: Likewise.
8776 * lib/unictype/pr_currency_symbol.h: Likewise.
8777 * lib/unictype/pr_dash.h: Likewise.
8778 * lib/unictype/pr_decimal_digit.h: Likewise.
8779 * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
8780 * lib/unictype/pr_deprecated.h: Likewise.
8781 * lib/unictype/pr_diacritic.h: Likewise.
8782 * lib/unictype/pr_extender.h: Likewise.
8783 * lib/unictype/pr_format_control.h: Likewise.
8784 * lib/unictype/pr_grapheme_base.h: Likewise.
8785 * lib/unictype/pr_grapheme_extend.h: Likewise.
8786 * lib/unictype/pr_grapheme_link.h: Likewise.
8787 * lib/unictype/pr_hex_digit.h: Likewise.
8788 * lib/unictype/pr_hyphen.h: Likewise.
8789 * lib/unictype/pr_id_continue.h: Likewise.
8790 * lib/unictype/pr_id_start.h: Likewise.
8791 * lib/unictype/pr_ideographic.h: Likewise.
8792 * lib/unictype/pr_ids_binary_operator.h: Likewise.
8793 * lib/unictype/pr_ids_trinary_operator.h: Likewise.
8794 * lib/unictype/pr_ignorable_control.h: Likewise.
8795 * lib/unictype/pr_iso_control.h: Likewise.
8796 * lib/unictype/pr_join_control.h: Likewise.
8797 * lib/unictype/pr_left_of_pair.h: Likewise.
8798 * lib/unictype/pr_line_separator.h: Likewise.
8799 * lib/unictype/pr_logical_order_exception.h: Likewise.
8800 * lib/unictype/pr_lowercase.h: Likewise.
8801 * lib/unictype/pr_math.h: Likewise.
8802 * lib/unictype/pr_non_break.h: Likewise.
8803 * lib/unictype/pr_not_a_character.h: Likewise.
8804 * lib/unictype/pr_numeric.h: Likewise.
8805 * lib/unictype/pr_other_alphabetic.h: Likewise.
8806 * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
8807 * lib/unictype/pr_other_grapheme_extend.h: Likewise.
8808 * lib/unictype/pr_other_id_continue.h: Likewise.
8809 * lib/unictype/pr_other_id_start.h: Likewise.
8810 * lib/unictype/pr_other_lowercase.h: Likewise.
8811 * lib/unictype/pr_other_math.h: Likewise.
8812 * lib/unictype/pr_other_uppercase.h: Likewise.
8813 * lib/unictype/pr_paired_punctuation.h: Likewise.
8814 * lib/unictype/pr_paragraph_separator.h: Likewise.
8815 * lib/unictype/pr_pattern_syntax.h: Likewise.
8816 * lib/unictype/pr_pattern_white_space.h: Likewise.
8817 * lib/unictype/pr_private_use.h: Likewise.
8818 * lib/unictype/pr_punctuation.h: Likewise.
8819 * lib/unictype/pr_quotation_mark.h: Likewise.
8820 * lib/unictype/pr_radical.h: Likewise.
8821 * lib/unictype/pr_sentence_terminal.h: Likewise.
8822 * lib/unictype/pr_soft_dotted.h: Likewise.
8823 * lib/unictype/pr_space.h: Likewise.
8824 * lib/unictype/pr_terminal_punctuation.h: Likewise.
8825 * lib/unictype/pr_titlecase.h: Likewise.
8826 * lib/unictype/pr_unassigned_code_value.h: Likewise.
8827 * lib/unictype/pr_unified_ideograph.h: Likewise.
8828 * lib/unictype/pr_uppercase.h: Likewise.
8829 * lib/unictype/pr_variation_selector.h: Likewise.
8830 * lib/unictype/pr_white_space.h: Likewise.
8831 * lib/unictype/pr_xid_continue.h: Likewise.
8832 * lib/unictype/pr_xid_start.h: Likewise.
8833 * lib/unictype/pr_zero_width.h: Likewise.
8834 * lib/unictype/scripts.h: Likewise.
8835 * lib/unictype/scripts_byname.gperf: Likewise.
8836 * lib/unictype/sy_c_ident.h: Likewise.
8837 * lib/unictype/sy_c_whitespace.h: Likewise.
8838 * lib/unictype/sy_java_ident.h: Likewise.
8839 * lib/unictype/sy_java_whitespace.h: Likewise.
8841 * lib/unictype/Makefile: New file.
8842 * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
8844 * lib/unictype/3level.h: New file, copied from glibc.
8845 * lib/unictype/3levelbit.h: New file.
8847 2007-11-11 Bruno Haible <bruno@clisp.org>
8849 * modules/gperf: New file.
8850 * modules/iconv_open (Depends-on): Add it.
8851 (Makefile.am): Remove the GPERF definition.
8853 2007-11-11 Bruno Haible <bruno@clisp.org>
8855 * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
8856 * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
8858 2007-11-11 Bruno Haible <bruno@clisp.org>
8860 * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
8861 (usage): Remove function.
8863 2007-11-11 Bruno Haible <bruno@clisp.org>
8865 * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
8867 * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
8869 * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
8871 * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
8872 * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
8873 * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
8875 2007-11-11 Bruno Haible <bruno@clisp.org>
8877 * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
8878 roundf were declared but do not exist on functions.
8879 * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
8880 roundl were declared but do not exist on functions.
8881 * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
8882 HAVE_FLOORL_AND_CEILL, respectively.
8883 Needed for Sun C on Solaris 10.
8885 2007-11-11 Bruno Haible <bruno@clisp.org>
8887 * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
8888 HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
8889 * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
8890 HAVE_DECL_ROUND. Remove redundant AC_SUBST.
8891 * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
8892 HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
8893 * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
8895 (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
8896 (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
8897 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
8898 of HAVE_DECL_ROUND*.
8899 * modules/math (Makefile.am): Update.
8901 2007-11-10 Bruno Haible <bruno@clisp.org>
8903 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
8904 ptrdiff_t as m4/intl.m4.
8906 2007-11-10 Jim Meyering <meyering@redhat.com>
8908 Avoid link failure for the argmatch test.
8909 * tests/test-argmatch.c (usage): Define function to avoid a link
8910 failure: argmatch_die requires a usage function.
8912 2007-11-09 Bruno Haible <bruno@clisp.org>
8914 * doc/functions/snprintf.texi: Mention BeOS deficiency.
8915 * doc/functions/vsnprintf.texi: Likewise.
8916 * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
8917 with a size argument < 2.
8919 2007-11-09 Bruno Haible <bruno@clisp.org>
8921 * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
8922 buffer. Fixes an inefficiency introduced on 2007-11-03.
8924 2007-11-09 Bruno Haible <bruno@clisp.org>
8926 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
8927 none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
8929 2007-11-08 Jim Meyering <meyering@redhat.com>
8931 Change cache variable name prefix "jm_" to "gl_" everywhere.
8932 * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
8933 * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
8934 * m4/uptime.m4: s/gl_/jm_/
8936 2007-11-07 Bruno Haible <bruno@clisp.org>
8938 Update to GNU gettext 0.17.
8939 * m4/intl.m4: Update to GNU gettext 0.17.
8940 * m4/po.m4: Likewise.
8941 * modules/gettext (Files): Remove m4/ulonglong.m4.
8942 (configure.ac): Require gettext infrastructure from version 0.17.
8944 2007-11-06 Bruno Haible <bruno@clisp.org>
8946 * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
8947 symbolic values are not defined in a public header.
8948 * lib/freadable.c (freadable) [QNX]: Likewise.
8949 * lib/freadahead.c (freadahead) [QNX]: Likewise.
8950 * lib/freading.c (freading) [QNX]: Likewise.
8951 * lib/fseterr.c (fseterr) [QNX]: Likewise.
8952 * lib/fwritable.c (fwritable) [QNX]: Likewise.
8953 * lib/fwriting.c (fwriting) [QNX]: Likewise.
8954 * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
8955 Reported by Alain Magloire.
8957 * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
8959 2007-11-05 Bruno Haible <bruno@clisp.org>
8961 * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
8962 code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
8963 Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
8964 Reported by Eric Blake.
8966 2007-10-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8967 Bruno Haible <bruno@clisp.org>
8969 * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
8970 * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
8971 * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
8972 (malloc): Undefine also before including <stdlib.h>.
8973 (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
8974 Needed on OSF/1 4.0.
8976 2007-11-05 Jim Meyering <meyering@redhat.com>
8978 git-version-gen: sync from coreutils.
8979 * build-aux/git-version-gen: Add comments.
8980 Change the first '-' to '.' in the snapshot version string,
8981 e.g., 6.9-377-08144 -> 6.9.377-08144
8982 Remove first parameter.
8983 Don't declare a version "-dirty" merely because a time
8986 2007-11-04 Bruno Haible <bruno@clisp.org>
8988 * lib/lock.h: Protect all macro definitions containing an 'if'
8989 statement through a "do { ... } while (0)".
8990 * lib/tls.h: Likewise.
8992 2007-11-04 Bruno Haible <bruno@clisp.org>
8994 * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
8996 2007-11-04 Bruno Haible <bruno@clisp.org>
8998 * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
8999 * modules/fprintf-posix (Depends-on): Add nocrash.
9000 * modules/snprintf-posix (Depends-on): Likewise.
9001 * modules/sprintf-posix (Depends-on): Likewise.
9002 * modules/vasnprintf-posix (Depends-on): Likewise.
9003 * modules/vasprintf-posix (Depends-on): Likewise.
9004 * modules/vfprintf-posix (Depends-on): Likewise.
9005 * modules/vsnprintf-posix (Depends-on): Likewise.
9006 * modules/vsprintf-posix (Depends-on): Likewise.
9007 * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
9008 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
9009 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
9010 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
9011 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
9012 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
9013 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
9015 2007-11-04 Bruno Haible <bruno@clisp.org>
9017 * modules/nocrash: New file.
9018 * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
9019 GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
9021 2007-11-04 Bruno Haible <bruno@clisp.org>
9023 * tests/test-vasnprintf-posix.c (test_function): Add some tests of
9025 * tests/test-vasprintf-posix.c (test_function): Likewise.
9026 * tests/test-snprintf-posix.h (test_function): Likewise.
9027 * tests/test-sprintf-posix.h (test_function): Likewise.
9029 Fix *printf behaviour for large precisions on mingw and BeOS.
9030 * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
9031 * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
9032 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
9033 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
9034 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
9035 gl_PRINTF_PRECISION and test its result. Invoke
9036 gl_PREREQ_VASNPRINTF_PRECISION.
9037 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
9038 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
9039 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
9040 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
9041 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
9042 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
9043 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
9044 * doc/functions/fprintf.texi: Update.
9045 * doc/functions/printf.texi: Update.
9046 * doc/functions/snprintf.texi: Update.
9047 * doc/functions/sprintf.texi: Update.
9048 * doc/functions/vfprintf.texi: Update.
9049 * doc/functions/vprintf.texi: Update.
9050 * doc/functions/vsnprintf.texi: Update.
9051 * doc/functions/vsprintf.texi: Update.
9053 2007-11-04 Bruno Haible <bruno@clisp.org>
9055 * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
9057 2007-11-04 Bruno Haible <bruno@clisp.org>
9059 * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
9060 Reported by Sylvain Beucler <beuc@gnu.org>.
9062 2007-11-03 Bruno Haible <bruno@clisp.org>
9064 * tests/test-fprintf-posix2.sh: New file.
9065 * tests/test-fprintf-posix2.c: New file.
9066 * modules/fprintf-posix-tests (Files): Add them.
9067 (TESTS): Add test-fprintf-posix2.sh.
9068 (configure.ac): Check for getrlimit and setrlimit.
9069 (check_PROGRAMS): Add test-fprintf-posix2.
9071 * tests/test-printf-posix2.sh: New file.
9072 * tests/test-printf-posix2.c: New file.
9073 * modules/printf-posix-tests (Files): Add them.
9074 (TESTS): Add test-printf-posix2.sh.
9075 (configure.ac): Check for getrlimit and setrlimit.
9076 (check_PROGRAMS): Add test-printf-posix2.
9078 Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
9079 * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
9080 * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
9081 (decode_double): New function, copied from decode_long_double.
9082 (scale10_round_decimal_decoded): New function, extracted from
9083 scale10_round_decimal_long_double.
9084 (scale10_round_decimal_long_double): Use it.
9085 (scale10_round_decimal_double): New function.
9086 (floorlog10): New function.
9087 (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
9088 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
9089 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
9090 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
9091 gl_PRINTF_ENOMEM and test its result. Invoke
9092 gl_PREREQ_VASNPRINTF_ENOMEM.
9093 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
9094 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
9095 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
9096 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
9097 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
9098 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
9099 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
9100 * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
9101 * modules/snprintf-posix (Depends-on): Likewise.
9102 * modules/sprintf-posix (Depends-on): Likewise.
9103 * modules/vasnprintf-posix (Depends-on): Likewise.
9104 * modules/vasprintf-posix (Depends-on): Likewise.
9105 * modules/vfprintf-posix (Depends-on): Likewise.
9106 * modules/vsnprintf-posix (Depends-on): Likewise.
9107 * modules/vsprintf-posix (Depends-on): Likewise.
9108 * doc/functions/fprintf.texi: Update.
9109 * doc/functions/printf.texi: Update.
9110 * doc/functions/snprintf.texi: Update.
9111 * doc/functions/sprintf.texi: Update.
9112 * doc/functions/vfprintf.texi: Update.
9113 * doc/functions/vprintf.texi: Update.
9114 * doc/functions/vsnprintf.texi: Update.
9115 * doc/functions/vsprintf.texi: Update.
9117 2007-11-03 Bruno Haible <bruno@clisp.org>
9119 * modules/frexp-nolibm-tests: New file.
9121 * modules/frexp-nolibm: New file.
9122 * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
9124 2007-11-03 Bruno Haible <bruno@clisp.org>
9126 * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
9127 value is C99 compliant.
9128 Needed for OSF/1 5.1.
9130 2007-11-03 Bruno Haible <bruno@clisp.org>
9132 Fix out-of-memory handling of vasnprintf.
9133 * lib/printf-parse.c: Include <errno.h>.
9134 (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
9135 * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
9138 2007-11-02 Eric Blake <ebb9@byu.net>
9140 Fix tests on cygwin.
9141 * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
9143 2007-11-01 Bruno Haible <bruno@clisp.org>
9145 * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
9147 * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
9148 needed for POSIX compatibility.
9150 2007-11-01 Paul Eggert <eggert@cs.ucla.edu>
9152 * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
9153 for compatibility with GNU.
9155 2007-11-01 Bruno Haible <bruno@clisp.org>
9157 * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
9158 (putenv): Renamed from rpl_putenv. Change argument type from
9159 'const char *' to 'char *'.
9160 * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
9161 of defining putenv in config.h, just set REPLACE_PUTENV.
9162 * modules/putenv (Depends-on): Add stdlib.
9163 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
9164 (Include): Use <stdlib.h>.
9165 * lib/stdlib.in.h (putenv): New declaration.
9166 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
9168 * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
9170 Needed for MacOS X 10.5.0.
9171 Reported by Peter O'Gorman <peter@pogma.com>.
9173 2007-11-01 Jim Meyering <meyering@redhat.com>
9175 Treat an empty date string exactly like "0".
9176 * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
9177 if the remaining date string (to be parsed) is empty, use "0".
9178 Reported by Mischa Molhoek and discussed in this thread:
9179 <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
9181 2007-10-31 Bruno Haible <bruno@clisp.org>
9183 * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
9184 AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
9185 * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
9186 AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
9187 * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
9188 * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
9190 2007-10-31 Bruno Haible <bruno@clisp.org>
9192 * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
9193 from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
9194 (AC_TYPE_LONG_LONG_INT): Use it.
9195 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
9197 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
9199 * modules/stdint (Files): Remove m4/ulonglong.m4.
9200 * modules/strtoull (Files): Use m4/longlong.m4 instead of
9202 * modules/strtoumax (Files): Likewise.
9204 2007-10-30 Bruno Haible <bruno@clisp.org>
9206 * modules/xvasprintf-posix: New file.
9207 Suggested by Eric Blake.
9209 2007-10-30 Bruno Haible <bruno@clisp.org>
9211 * modules/xprintf-posix-tests: New file.
9212 * tests/test-xprintf-posix.sh: New file.
9213 * tests/test-xprintf-posix.c: New file.
9214 * tests/test-xfprintf-posix.c: New file.
9216 * modules/xprintf-posix: New file.
9218 2007-10-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9220 * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
9221 * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
9222 * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
9224 2007-10-29 Bruno Haible <bruno@clisp.org>
9226 * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
9227 contain the special marker '_cv_'.
9228 * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
9229 * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
9230 * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
9231 * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
9232 * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
9233 Reported by Ralf Wildenhues.
9235 2007-10-29 Bruno Haible <bruno@clisp.org>
9237 * gnulib-tool (func_import): When --lgpl is not specified, set
9238 sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
9240 Reported by Simon Josefsson.
9242 2007-10-28 Bruno Haible <bruno@clisp.org>
9244 * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
9245 * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
9247 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
9248 * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
9251 2007-10-28 Bruno Haible <bruno@clisp.org>
9253 * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
9254 integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
9256 2007-10-28 Bruno Haible <bruno@clisp.org>
9258 Fix link errors with Sun C 5.0 on Solaris 10.
9259 * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
9260 function is declared but not present in the compiler's libm.
9261 * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
9262 * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
9263 * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
9264 * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
9265 Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
9266 Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
9267 Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
9268 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
9269 * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
9270 HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
9271 REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
9274 2007-10-28 Bruno Haible <bruno@clisp.org>
9276 * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
9277 gl_FUNC_FLOORL. Cache the result.
9278 (gl_FUNC_FLOORL): Use it.
9279 * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
9280 gl_FUNC_CEILL. Cache the result.
9281 (gl_FUNC_CEILL): Use it.
9283 * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
9284 gl_FUNC_FLOOR. Cache the result.
9285 (gl_FUNC_FLOOR): Use it.
9286 * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
9287 gl_FUNC_CEIL. Cache the result.
9288 (gl_FUNC_CEIL): Use it.
9290 * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
9291 gl_FUNC_FLOORF. Cache the result.
9292 (gl_FUNC_FLOORF): Use it.
9293 * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
9294 gl_FUNC_CEILF. Cache the result.
9295 (gl_FUNC_CEILF): Use it.
9297 2007-10-28 Bruno Haible <bruno@clisp.org>
9299 * gnulib-tool: Allow specifying the LGPL version number through
9300 --lgpl=2 or --lgpl=3.
9301 (func_usage): Document --lgpl with argument.
9302 Handle --lgpl=... arguments.
9303 (func_import): Recognize also gl_LGPL calls with an argument. When
9304 --lgpl=2 is used and the module's license is just LGPL, report an
9305 error. Set sed_transform_lib_file according to the lgpl variable. In
9306 the generated files, use --lgpl or gl_LGPL invocations with argument,
9308 * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
9310 * doc/gnulib-tool.texi (Modified imports): Update explanation of
9313 2007-10-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9314 Bruno Haible <bruno@clisp.org>
9316 * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
9317 (u16_uctomb_aux): Likewise.
9318 * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
9320 * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
9322 2007-10-28 Bruno Haible <bruno@clisp.org>
9324 * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
9325 Invoke AM_GETTEXT_OPTION if it exists.
9326 * modules/vasprintf: Likewise.
9327 * modules/verror: Likewise.
9328 * modules/xprintf: Likewise.
9329 * modules/xvasprintf: Likewise.
9331 2007-10-27 Ben Pfaff <blp@gnu.org>
9333 * lib/math.in.h: Define isfinite macro and prototypes for
9334 gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
9336 * m4/math_h.m4: New substitutions for isfinite module.
9337 * lib/isfinite.c: New file.
9338 * m4/isfinite.m4: New file.
9339 * modules/math: Replace isfinite-related @VARS@ in math.in.h.
9340 * modules/isfinite: New file.
9341 * modules/isfinite-tests: New file.
9342 * tests/tests-isfinite.c: New file.
9343 * doc/functions/isfinite.texi: Mention isfinite module.
9344 * MODULES.html.sh: Mention new module.
9346 2007-10-27 Ben Pfaff <blp@gnu.org>
9348 Ralf Wildenhues reported that Tru64 4.0D declares the round
9349 functions but does not have definitions.
9350 * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
9351 cannot be found in any library, set the output variable to
9352 "missing" instead of "".
9353 * m4/round.m4: Also use our substitute if we cannot find round in
9354 any library, even if it is declared.
9355 * m4/roundf.m4: Likewise for roundf.
9356 * m4/roundl.m4: Likewise for roundl.
9357 * lib/math.in.h: Undefine roundf, round, roundl before defining
9358 their replacements, to allow for hypothetical systems where these
9359 may be defined as macros but not available in libraries.
9361 2007-10-27 Bruno Haible <bruno@clisp.org>
9363 * doc/gnulib.texi: Invoke @firstparagraphindent.
9364 * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
9366 (Source changes): New section.
9368 2007-10-26 Bruno Haible <bruno@clisp.org>
9370 * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
9371 borrowed from autoconf.
9373 2007-10-26 Bruno Haible <bruno@clisp.org>
9375 * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
9376 strerror returned the empty string. Needed on HP-UX 11.00.
9378 2007-10-24 Micah Cowan <micah@cowan.name>
9380 Remove vestiges of cvs-gnulib-checkout process. Now we use git.
9381 * build-aux/bootstrap: Remove support for now-unnecessary option,
9382 --cvs-user, and envvars CVS_USER, CVS_RSH.
9384 2007-10-24 Jim Meyering <meyering@redhat.com>
9386 Avoid diagnostics from sha1sum when there is no cached checksum.
9387 * build-aux/bootstrap (update_po_files): Skip the sha1sum check
9388 if the po.s1 file hasn't been created yet.
9390 * build-aux/bootstrap: Sync from coreutils:
9391 2007-10-24 Jim Meyering <meyering@redhat.com>
9392 Get gnulib from the git repository, not from an obsolete cvs one.
9393 * build-aux/bootstrap: Suggestion from Micah Cowan.
9394 2007-10-04 Jim Meyering <jim@meyering.net>
9395 * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
9396 (update_po_files): Work also when there are no .po files in po/.
9398 2007-10-24 Paul Eggert <eggert@cs.ucla.edu>
9400 * README: Append ".git" to git and cg examples.
9401 Problem reported by Benoit Sigoure.
9403 2007-10-23 Micah Cowan <micah@cowan.name>
9405 * users.txt: Add wget.
9407 2007-10-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9409 Fix linking of some unistdio tests on FreeBSD.
9410 * modules/unistdio/u16-vsnprintf-tests
9411 (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
9412 * modules/unistdio/u16-vsprintf-tests
9413 (test_u16_vsnprintf1_LDADD): Likewise.
9414 * modules/unistdio/u32-vsnprintf-tests
9415 (test_u32_vsnprintf1_LDADD): Likewise.
9416 * modules/unistdio/u32-vsprintf-tests
9417 (test_u32_vsprintf1_LDADD): Likewise.
9418 * modules/unistdio/u8-vsnprintf-tests
9419 (test_u8_vsnprintf1_LDADD): Likewise.
9420 * modules/unistdio/u8-vsprintf-tests
9421 (test_u8_vsprintf1_LDADD): Likewise.
9422 * modules/unistdio/ulc-vsnprintf-tests
9423 (test_ulc_vsnprintf1_LDADD): Likewise.
9424 * modules/unistdio/ulc-vsprintf-tests
9425 (test_ulc_vsprintf1_LDADD): Likewise.
9427 Fix linking of some uniconv tests on FreeBSD.
9428 * modules/uniconv/u16-conv-from-enc-tests
9429 (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
9430 * modules/uniconv/u16-conv-to-enc-tests
9431 (test_u16_conv_to_enc_LDADD): Likewise.
9432 * modules/uniconv/u16-strconv-from-enc-tests
9433 (test_u16_strconv_from_enc_LDADD): Likewise.
9434 * modules/uniconv/u16-strconv-to-enc-tests
9435 (test_u16_strconv_to_enc_LDADD): Likewise.
9436 * modules/uniconv/u32-conv-from-enc-tests
9437 (test_u32_conv_from_enc_LDADD): Likewise.
9438 * modules/uniconv/u32-conv-to-enc-tests
9439 (test_u32_conv_to_enc_LDADD): Likewise.
9440 * modules/uniconv/u32-strconv-from-enc-tests
9441 (test_u32_strconv_from_enc_LDADD): Likewise.
9442 * modules/uniconv/u32-strconv-to-enc-tests
9443 (test_u32_strconv_to_enc_LDADD): Likewise.
9444 * modules/uniconv/u8-conv-from-enc-tests
9445 (test_u8_conv_from_enc_LDADD): Likewise.
9446 * modules/uniconv/u8-conv-to-enc-tests
9447 (test_u8_conv_to_enc_LDADD): Likewise.
9448 * modules/uniconv/u8-strconv-from-enc-tests
9449 (test_u8_strconv_from_enc_LDADD): Likewise.
9450 * modules/uniconv/u8-strconv-to-enc-tests
9451 (test_u8_strconv_to_enc_LDADD): Likewise.
9453 2007-10-22 Bruno Haible <bruno@clisp.org>
9455 * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
9458 2007-10-22 Eric Blake <ebb9@byu.net>
9460 Tweak x*printf documentation.
9461 * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
9462 variable name and comments.
9463 Suggested by Bruno Haible.
9465 2007-10-22 Bruno Haible <bruno@clisp.org>
9467 * lib/acl.c (copy_acl): Fix file name in comment.
9469 2007-10-22 Paul Eggert <eggert@cs.ucla.edu>
9471 Fix Tru64 problem with stdbool.h.
9472 * lib/stdbool.in.h (false, true):
9473 [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
9474 Don't declare as an enum in this situation; it runs afoul of Tru64.
9475 Problem reported by Steven M. Schweda in
9476 <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
9478 2007-10-22 Eric Blake <ebb9@byu.net>
9480 Also wrap vf?printf.
9481 * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
9482 * lib/xprintf.c (xprintf, xfprintf): Work for C89.
9483 (xvprintf, xvfprintf): New functions.
9485 2007-10-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9487 * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
9488 @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
9490 * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
9491 * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
9493 2007-10-22 Paul Eggert <eggert@cs.ucla.edu>
9495 * lib/acl.c (copy_acl): Adjust to IRIX 6.5. Problem reported
9498 2007-10-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9501 [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
9502 Undef `sys' after including sys/table.h, for Tru64 4.0D.
9504 * tests/test-i-ring.c: Work for C89.
9506 2007-10-22 Bruno Haible <bruno@clisp.org>
9508 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
9509 -1u, in preprocessor expression, so that we don't test for the bug
9510 in HP-UX 11.00 cpp. Testing for this bug caused problems; see
9511 <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
9513 2007-10-22 Eric Blake <ebb9@byu.net>
9515 * tests/test-yesno.sh: Silence stderr during test.
9517 2007-10-22 Simon Josefsson <simon@josefsson.org>
9519 * modules/crypto/gc-camellia: New file.
9521 * m4/gc-camellia.m4: New file.
9523 * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
9525 * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
9527 2007-10-22 Simon Josefsson <simon@josefsson.org>
9529 * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
9530 --help to stdout. Reported by sms@antinode.org (Steven
9533 2007-10-22 Simon Josefsson <simon@josefsson.org>
9535 * users.txt: Fix link to libksba.
9537 2007-10-21 Ben Pfaff <blp@gnu.org>
9539 * modules/roundf-tests: Add dependency on floorf, ceilf to allow
9540 round.c roundf implementation that depends on floorf and ceilf to
9541 be tested unconditionally.
9543 2007-10-21 Ben Pfaff <blp@gnu.org>
9545 * m4/check-libm-func.m4: Removed.
9546 * m4/check-math-lib.m4: New file.
9547 * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
9548 * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
9549 definition and lack of AC_LIBOBJ([roundf]).
9550 * m4/roundl.m4: Ditto, and similarly for roundl.
9551 * modules/round: Reference new m4 file.
9552 * modules/roundf: Ditto.
9553 * modules/roundl: Ditto.
9554 * tests/test-round2.c (main): Use ROUND instead of round.
9555 Bug report from Bruno Haible.
9557 2007-10-21 Bruno Haible <bruno@clisp.org>
9559 * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
9562 2007-10-21 Bruno Haible <bruno@clisp.org>
9564 * tests/test-wcwidth.c (main): Allow negative result for some control
9567 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
9568 Needed on OSF/1 5.1.
9570 2007-10-21 Bruno Haible <bruno@clisp.org>
9572 * tests/test-floorf1.c: Include isnanf.h.
9573 (main): Use isnanf() instead of isnan().
9574 * tests/test-ceilf1.c: Include isnanf.h.
9575 (main): Use isnanf() instead of isnan().
9576 * tests/test-truncf1.c: Include isnanf.h.
9577 (main): Use isnanf() instead of isnan().
9578 * tests/test-roundf1.c: Include isnanf.h.
9579 (main): Use isnanf() instead of isnan().
9581 2007-10-21 Eric Blake <ebb9@byu.net>
9583 * users.txt: Update URL for m4.
9585 2007-10-21 Bruno Haible <bruno@clisp.org>
9587 * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
9589 2007-10-21 Bruno Haible <bruno@clisp.org>
9591 * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
9592 Git's management files if the CVS files are not present.
9594 2007-10-20 Bruno Haible <bruno@clisp.org>
9596 * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
9599 2007-10-20 Ben Pfaff <blp@gnu.org>
9601 * lib/math.in.h: Declare round, roundf, roundl if we are providing
9603 * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
9604 * lib/round.c: New file.
9605 * lib/roundf.c: New file.
9606 * lib/roundl.c: New file.
9607 * m4/round.m4: New file.
9608 * m4/roundf.m4: New file.
9609 * m4/roundl.m4: New file.
9610 * m4/check-libm-func-m4: New file.
9611 * modules/math: Replace round, roundf, roundl related @VARS@ in
9613 * modules/round: New file.
9614 * modules/round-tests: New file.
9615 * modules/roundf: New file.
9616 * modules/roundf-tests: New file.
9617 * modules/roundl: New file.
9618 * modules/roundl-tests: New file.
9619 * tests/test-round1.c: New file.
9620 * tests/test-round2.c: New file.
9621 * tests/test-roundf1.c: New file.
9622 * tests/test-roundf2.c: New file.
9623 * tests/test-roundl.c: New file.
9624 * doc/functions/round.texi: Mention round module.
9625 * doc/functions/roundf.texi: Mention roundf module.
9626 * doc/functions/roundl.texi: Mention roundl module.
9627 * MODULES.html.sh: Mention new modules.
9628 Thanks to Bruno Haible for suggestions.
9630 2007-10-20 Jim Meyering <meyering@redhat.com>
9632 * lib/xprintf.c: Include <config.h> unconditionally.
9634 Change xprintf's license to GPL.
9635 * modules/xprintf (License): s/LGPL/GPL/, since this module
9636 depends on modules (exit and exitfail) which are GPL.
9637 Suggestion from Bruno Haible.
9640 * lib/xprintf.c (xprintf, xfprintf): Use va_end.
9641 Use a clearer diagnostic.
9642 Patch from Bruno Haible.
9644 2007-10-20 Bruno Haible <bruno@clisp.org>
9646 * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
9647 length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
9648 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9650 2007-10-20 Bruno Haible <bruno@clisp.org>
9652 * tests/test-floorf2.c (correct_result_p): Don't rely on excess
9653 precision in the comparison result > x - 1 or similar.
9654 * tests/test-ceilf2.c (correct_result_p): Likewise.
9655 * tests/test-truncf2.c (correct_result_p): Likewise.
9656 * tests/test-trunc2.c (correct_result_p): Likewise.
9657 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9659 2007-10-20 Bruno Haible <bruno@clisp.org>
9661 * modules/ceil: New file.
9662 * m4/ceil.m4: New file.
9663 * doc/functions/ceil.texi: Mention the 'ceil' module.
9665 2007-10-20 Bruno Haible <bruno@clisp.org>
9667 * modules/floor: New file.
9668 * m4/floor.m4: New file.
9669 * doc/functions/floor.texi: Mention the 'floor' module.
9671 2007-10-20 Bruno Haible <bruno@clisp.org>
9673 * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
9675 * modules/floorf-tests (Depends-on): Likewise.
9676 * modules/truncf-tests (Depends-on): Likewise.
9677 * modules/trunc-tests (Depends-on): Likewise.
9678 Reported by Ben Pfaff.
9680 2007-10-19 Jim Meyering <meyering@redhat.com>
9682 * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
9683 Don't bother testing specific errno values. Just test ferror.
9686 * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
9688 2007-10-19 Bruno Haible <bruno@clisp.org>
9690 * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
9692 * modules/javaexec (Makefile.am): Likewise.
9693 * modules/relocatable-prog (Makefile.am): Likewise.
9694 Suggested by Jim Meyering.
9696 2007-10-18 Bruno Haible <bruno@clisp.org>
9698 * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
9699 Reported by Jim Meyering.
9701 2007-10-18 Eric Blake <ebb9@byu.net>
9703 * modules/filenamecat-tests (Makefile.am): Link against -lintl.
9705 2007-10-18 Bruno Haible <bruno@clisp.org>
9707 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
9708 the format string into writable memory. Needed in Fortify conditions.
9710 2007-10-18 Colin Watson <cjwatson@debian.org> (tiny change)
9711 Bruno Haible <bruno@clisp.org>
9713 * lib/trim.c: Include config.h unconditionally. Include trim.h always.
9714 Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
9715 * modules/trim (Depends-on): Add mbchar.
9716 (configure.ac): Add gl_FUNC_MBRTOWC.
9717 (Makefile.am): Augment lib_SOURCES.
9719 2007-10-17 Paul Eggert <eggert@cs.ucla.edu>
9721 Modify glob.c to use fstatat and dirfd, to simplify it.
9722 Suggested by Eric Blake.
9723 * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
9724 Don't include <stdbool.h>; not used.
9725 (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
9726 (link_exists_p): Simplify implementation, since we can now assume
9728 * modules/glob (Depends-on): Add dirfd, openat. Remove stdbool.
9730 2007-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9732 * gnulib-tool (func_get_dependencies): Fix sed script to
9735 2007-10-17 Bruno Haible <bruno@clisp.org>
9737 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
9738 allow locale names without encoding suffix.
9739 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
9740 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
9742 2007-10-16 Bruno Haible <bruno@clisp.org>
9744 * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
9745 * lib/getgroups.c (getgroups): Likewise.
9746 * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
9748 2007-10-16 Bruno Haible <bruno@clisp.org>
9750 * modules/absolute-header (License): Change from LGPL to LGPLv2+.
9751 * modules/malloc-posix (License): Likewise.
9752 * modules/realloc-posix (License): Likewise.
9753 * modules/calloc-posix (License): Likewise.
9754 * modules/intprops (License): Change from GPL to LGPL, with
9755 Paul Eggert's approval.
9757 2007-10-16 Paul Eggert <eggert@cs.ucla.edu>
9759 Merge glibc changes into lib/glob.c.
9761 * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
9762 2007-10-15 04:59:03 UTC. Here are the changes:
9764 2007-10-14 Ulrich Drepper <drepper@redhat.com>
9766 * lib/glob.c: Reimplement link_exists_p to use fstatat64.
9768 * lib/glob.c: Add some branch prediction throughout.
9770 2007-10-07 Ulrich Drepper <drepper@redhat.com>
9773 * lib/glob.c (glob): Recognize patterns starting \/.
9775 2007-02-14 Jakub Jelinek <jakub@redhat.com>
9778 * lib/glob.c (attribute_hidden): Define if not defined.
9779 (glob): Unescape dirname, filename or username when needed and not
9780 GLOB_NOESCAPE. Handle \/ correctly. Handle GLOB_MARK if filename
9781 is NULL. Handle unescaped [ in pattern without closing ].
9782 Don't pass GLOB_CHECK down to recursive glob for directories.
9783 (__glob_pattern_type): New function.
9784 (__glob_pattern_p): Implement using __glob_pattern_type.
9785 (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
9786 characters and backslashes if not GLOB_NOESCAPE or unterminated [.
9787 Remove unreachable code.
9789 2006-09-30 Ulrich Drepper <drepper@redhat.com>
9791 * lib/glob.c (glob_in_dir): Add some comments and asserts to
9792 explain why there are no leaks.
9794 2006-09-25 Jakub Jelinek <jakub@redhat.com>
9797 * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
9798 time, rather allocate increasingly bigger arrays of pointers, if
9799 possible with alloca, if too large with malloc.
9801 2007-10-16 Paul Eggert <eggert@cs.ucla.edu>
9803 Check for 64-bit int errors in HP-UX 10.20 preprocessor.
9804 Problem reported by H.Merijn Brand in
9805 <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
9806 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
9807 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
9809 2007-10-15 Bruno Haible <bruno@clisp.org>
9811 * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
9812 with explicit rpl_ prefix.
9813 * lib/fopen.c (fopen): Likewise.
9814 * lib/freopen.c (freopen): Likewise.
9815 * lib/iconv.c (iconv): Likewise.
9816 * lib/iconv_close.c (iconv_close): Likewise.
9818 2007-10-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9820 * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
9822 2007-10-15 Bruno Haible <bruno@clisp.org>
9824 * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
9825 <stddef.h> instead of <stdlib.h> since we only need NULL.
9826 Reported by Ben Pfaff <blp@cs.stanford.edu>.
9828 2007-10-15 Bruno Haible <bruno@clisp.org>
9830 * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
9831 Replace paragraph talking about LIBOBJS.
9832 Reported by Colin Watson <cjwatson@debian.org>.
9834 2007-10-15 Bruno Haible <bruno@clisp.org>
9836 * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
9837 <stdlib.h> before using NULL.
9839 2007-10-15 Simon Josefsson <simon@josefsson.org>
9841 * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
9842 Reported by Albert Chin <china@thewrittenword.com>.
9844 2007-10-14 Bruno Haible <bruno@clisp.org>
9846 * modules/iconv_open-utf-tests: New file.
9847 * tests/test-iconv-utf.c: New file.
9849 Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
9850 * modules/iconv_open-utf: New file.
9851 * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
9852 (iconv, iconv_close): New declarations.
9853 * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
9855 (iconv_open): Add special handling of conversion between UTF-8 and
9857 * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
9858 * lib/iconv_close.c: New file.
9859 * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
9861 (gl_FUNC_ICONV_OPEN): Use it.
9862 (gl_FUNC_ICONV_OPEN_UTF): New macro.
9863 * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
9864 and REPLACE_ICONV_UTF.
9865 * modules/iconv_open (Depends-on): Add c-strcase.
9866 (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
9868 * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
9870 2007-10-13 Albert Chin <china@thewrittenword.com>
9871 Bruno Haible <bruno@clisp.org>
9873 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
9874 through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
9876 2007-10-13 Bruno Haible <bruno@clisp.org>
9878 * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
9879 defined, use the ISO C99 inline semantics.
9880 * lib/argp.h (ARGP_EI): Likewise.
9882 2007-10-13 Bruno Haible <bruno@clisp.org>
9884 Handle 'inline' change in gcc 4.3.0.
9885 * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
9886 argp_fmtstream_write, argp_fmtstream_set_lmargin,
9887 argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
9888 argp_fmtstream_point): Disable 'extern' declaration if the function
9889 definition is going to be provided inline.
9890 (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
9891 semantics, not the ISO C99 inline semantics.
9892 * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
9893 'extern' declaration if the function definition is going to be provided
9895 (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
9896 the GNU C inline semantics, not the ISO C99 inline semantics. With
9897 GCC 4.2, avoid a warning.
9899 2007-10-13 Bruno Haible <bruno@clisp.org>
9901 * lib/freading.h (freading): Enable the use of __freading for
9903 * lib/freading.c (freading): Likewise.
9905 2007-10-12 Paul Eggert <eggert@cs.ucla.edu>
9907 * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
9908 "warning: C99 inline functions are not supported; using GNU89".
9910 2007-10-12 Bruno Haible <bruno@clisp.org>
9912 * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
9914 * tests/test-ceilf2.c: New file.
9915 * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
9917 * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
9918 * modules/ceilf-tests: Update.
9920 2007-10-12 Bruno Haible <bruno@clisp.org>
9922 * lib/floor.c (FUNC): Avoid rounding errors for values near a power
9924 * tests/test-floorf2.c: New file.
9925 * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
9927 * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
9928 * modules/floorf-tests: Update.
9930 2007-10-12 Bruno Haible <bruno@clisp.org>
9932 * tests/test-trunc2.c: New file.
9933 * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
9935 * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
9936 * modules/trunc-tests: Update.
9938 2007-10-12 Bruno Haible <bruno@clisp.org>
9940 * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
9942 * tests/test-truncf2.c: New file.
9943 * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
9945 * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
9946 * modules/truncf-tests: Update.
9948 2007-10-11 Eric Blake <ebb9@byu.net>
9950 Don't claim strerror is broken on Interix.
9951 * doc/functions/strerror.texi (strerror): Known broken systems are
9952 now Solaris 8, and not Interix.
9953 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
9954 Interix on cross-compile.
9955 Reported by Martin Koeppe in
9956 http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
9958 2007-10-11 Bruno Haible <bruno@clisp.org>
9960 * modules/i-ring-tests: New file.
9961 * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
9964 2007-10-11 Bruno Haible <bruno@clisp.org>
9966 * modules/filenamecat-tests: New file.
9967 * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
9968 * lib/filenamecat.c: Remove test code.
9970 2007-10-11 Paul Eggert <eggert@cs.ucla.edu>
9972 Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
9974 * lib/strerror.c: Include <string.h> always, to test interface,
9975 and to remove the need for the dummy.
9976 Include intprops.h to compute width instead of doing it ourselves
9977 and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
9978 (strerror): Define it to return NULL if there's no system strerror.
9979 (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
9980 Omit !HAVE_STRERROR code. We don't need to worry about supporting
9981 ancient pre-strerror Unix systems well any more. Saying "unknown
9982 system error" is enough.
9983 * lib/string.in.h (strerror): Simplify the ifdef to reflect the
9984 simpler strerror.c implementation.
9985 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
9986 Simplify the tests to reflect the simpler strerror implementation.
9987 * modules/strerror (Depends-on): Add intprops.
9989 2007-10-09 Eric Blake <ebb9@byu.net>
9991 Silence test-fpending.
9992 * modules/fpending-tests (Files): Add wrapper script.
9993 * tests/test-fpending.sh: New file.
9995 2007-10-09 Bruno Haible <bruno@clisp.org>
9997 * MODULES.html.sh (func_module): Don't create a hyperlink for
9998 function names like 'printf_frexp'.
9999 (Misc): Add crc, memxor.
10000 (Characteristics of floating types): New section.
10001 (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
10002 isnanf-nolibm, signbit, trunc, truncf, truncl.
10003 (Enhancements for ISO C 99 functions): New subsection Input/output.
10004 (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
10005 fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
10006 locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
10007 (Compatibility checks for POSIX:2001 functions): Add clock-time.
10008 (Enhancements for POSIX:2001 functions): Add chdir-long.
10009 (File system functions): Add areadlink, chdir-safer, read-file.
10010 Remove cycle-check.
10011 (File system as inode set): New section.
10012 (Date and time): Add gethrxtime.
10013 (Multithreading): Add openmp.
10014 (Internationalization functions): Add localename.
10015 (Unicode string functions): Add unistr/u*-mbsnlen.
10016 (Support for maintaining and releasing projects): Add git-version-gen.
10017 (Lone files): Remove directories.
10019 2007-10-08 Ben Pfaff <blp@gnu.org>
10021 * lib/xmalloca.h: Fix typo in comment.
10023 2007-10-08 Paul Eggert <eggert@cs.ucla.edu>
10025 * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
10026 when avoiding problems with integer overflow. Use a portable test
10029 2007-10-08 Simon Josefsson <simon@josefsson.org>
10031 * modules/dummy (License): Change to LGPLv2+.
10032 * modules/float (License): Likewise
10033 * modules/realloc (License): Likewise
10034 * modules/stdlib (License): Likewise
10036 2007-10-07 Bruno Haible <bruno@clisp.org>
10038 * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
10039 * floor.c (TWO_MANT_DIG): Likewise.
10040 * ceil.c (TWO_MANT_DIG): Likewise.
10041 Reported by Ben Pfaff.
10043 2007-10-07 Bruno Haible <bruno@clisp.org>
10045 Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
10046 * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
10047 * lib/frexp.c (FUNC): Likewise.
10048 * lib/printf-frexp.h (printf_frexp): Likewise.
10049 * lib/printf-frexpl.h (printf_frexpl): Likewise.
10050 * lib/printf-frexp.c (FUNC): Likewise.
10051 Suggested by Jim Meyering.
10053 2007-10-07 Jim Meyering <meyering@redhat.com>
10055 Make xnanosleep's integer overflow test more robust.
10056 * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
10057 so that gcc-4.3.0 doesn't optimize away this test for overflow.
10059 2007-10-07 Bruno Haible <bruno@clisp.org>
10061 * NEWS: Mention the license change.
10063 * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
10064 abbreviations in the modules files.
10066 Change copyright notice from GPLv2+ to GPLv3+.
10067 * README: Change copyright notice.
10068 * MODULES.html.sh: Likewise.
10069 * build-aux/bootstrap.conf: Likewise.
10070 * build-aux/config.libpath: Likewise.
10071 * build-aux/csharpcomp.sh.in: Likewise.
10072 * build-aux/csharpexec.sh.in: Likewise.
10073 * build-aux/install-reloc: Likewise.
10074 * build-aux/javacomp.sh.in: Likewise.
10075 * build-aux/javaexec.sh.in: Likewise.
10076 * build-aux/ldd.sh.in: Likewise.
10077 * build-aux/reloc-ldflags: Likewise.
10078 * build-aux/relocatable.sh.in: Likewise.
10079 * build-aux/x-to-1.in: Likewise.
10080 * check-module: Likewise.
10081 * config/srclistvars.sh: Likewise.
10082 * gnulib-tool: Likewise.
10083 * lib/acl-internal.h: Likewise.
10084 * lib/acl.c: Likewise.
10085 * lib/acl.h: Likewise.
10086 * lib/acl_entries.c: Likewise.
10087 * lib/areadlink-with-size.c: Likewise.
10088 * lib/areadlink.c: Likewise.
10089 * lib/areadlink.h: Likewise.
10090 * lib/argmatch.c: Likewise.
10091 * lib/argmatch.h: Likewise.
10092 * lib/argp-ba.c: Likewise.
10093 * lib/argp-eexst.c: Likewise.
10094 * lib/argp-fmtstream.c: Likewise.
10095 * lib/argp-fmtstream.h: Likewise.
10096 * lib/argp-fs-xinl.c: Likewise.
10097 * lib/argp-help.c: Likewise.
10098 * lib/argp-namefrob.h: Likewise.
10099 * lib/argp-parse.c: Likewise.
10100 * lib/argp-pin.c: Likewise.
10101 * lib/argp-pv.c: Likewise.
10102 * lib/argp-pvh.c: Likewise.
10103 * lib/argp-xinl.c: Likewise.
10104 * lib/argp.h: Likewise.
10105 * lib/at-func.c: Likewise.
10106 * lib/atanl.c: Likewise.
10107 * lib/backupfile.c: Likewise.
10108 * lib/backupfile.h: Likewise.
10109 * lib/basename.c: Likewise.
10110 * lib/binary-io.h: Likewise.
10111 * lib/byteswap.in.h: Likewise.
10112 * lib/c-stack.c: Likewise.
10113 * lib/c-stack.h: Likewise.
10114 * lib/c-strcasestr.c: Likewise.
10115 * lib/c-strcasestr.h: Likewise.
10116 * lib/c-strstr.c: Likewise.
10117 * lib/c-strstr.h: Likewise.
10118 * lib/c-strtod.c: Likewise.
10119 * lib/calloc.c: Likewise.
10120 * lib/canon-host.c: Likewise.
10121 * lib/canon-host.h: Likewise.
10122 * lib/canonicalize-lgpl.c: Likewise.
10123 * lib/canonicalize.c: Likewise.
10124 * lib/canonicalize.h: Likewise.
10125 * lib/ceil.c: Likewise.
10126 * lib/ceilf.c: Likewise.
10127 * lib/ceill.c: Likewise.
10128 * lib/chdir-long.c: Likewise.
10129 * lib/chdir-long.h: Likewise.
10130 * lib/chdir-safer.c: Likewise.
10131 * lib/chdir-safer.h: Likewise.
10132 * lib/chown.c: Likewise.
10133 * lib/classpath.c: Likewise.
10134 * lib/classpath.h: Likewise.
10135 * lib/clean-temp.c: Likewise.
10136 * lib/clean-temp.h: Likewise.
10137 * lib/cloexec.c: Likewise.
10138 * lib/close-stream.c: Likewise.
10139 * lib/closein.c: Likewise.
10140 * lib/closein.h: Likewise.
10141 * lib/closeout.c: Likewise.
10142 * lib/closeout.h: Likewise.
10143 * lib/concat-filename.c: Likewise.
10144 * lib/copy-file.c: Likewise.
10145 * lib/copy-file.h: Likewise.
10146 * lib/count-one-bits.h: Likewise.
10147 * lib/crc.c: Likewise.
10148 * lib/crc.h: Likewise.
10149 * lib/creat-safer.c: Likewise.
10150 * lib/csharpcomp.c: Likewise.
10151 * lib/csharpcomp.h: Likewise.
10152 * lib/csharpexec.c: Likewise.
10153 * lib/csharpexec.h: Likewise.
10154 * lib/cycle-check.c: Likewise.
10155 * lib/cycle-check.h: Likewise.
10156 * lib/diacrit.c: Likewise.
10157 * lib/diacrit.h: Likewise.
10158 * lib/diffseq.h: Likewise.
10159 * lib/dirchownmod.c: Likewise.
10160 * lib/dirent.in.h: Likewise.
10161 * lib/dirfd.c: Likewise.
10162 * lib/dirfd.h: Likewise.
10163 * lib/dirname.c: Likewise.
10164 * lib/dirname.h: Likewise.
10165 * lib/dummy.c: Likewise.
10166 * lib/dup-safer.c: Likewise.
10167 * lib/dup2.c: Likewise.
10168 * lib/eealloc.h: Likewise.
10169 * lib/error.c: Likewise.
10170 * lib/error.h: Likewise.
10171 * lib/euidaccess.c: Likewise.
10172 * lib/exclude.c: Likewise.
10173 * lib/exclude.h: Likewise.
10174 * lib/execute.c: Likewise.
10175 * lib/execute.h: Likewise.
10176 * lib/exitfail.c: Likewise.
10177 * lib/exitfail.h: Likewise.
10178 * lib/expl.c: Likewise.
10179 * lib/fatal-signal.c: Likewise.
10180 * lib/fatal-signal.h: Likewise.
10181 * lib/fbufmode.c: Likewise.
10182 * lib/fbufmode.h: Likewise.
10183 * lib/fchdir.c: Likewise.
10184 * lib/fchmodat.c: Likewise.
10185 * lib/fchownat.c: Likewise.
10186 * lib/fcntl--.h: Likewise.
10187 * lib/fcntl-safer.h: Likewise.
10188 * lib/fcntl.in.h: Likewise.
10189 * lib/fd-safer.c: Likewise.
10190 * lib/fflush.c: Likewise.
10191 * lib/file-has-acl.c: Likewise.
10192 * lib/file-set.c: Likewise.
10193 * lib/file-type.c: Likewise.
10194 * lib/file-type.h: Likewise.
10195 * lib/fileblocks.c: Likewise.
10196 * lib/filemode.c: Likewise.
10197 * lib/filemode.h: Likewise.
10198 * lib/filename.h: Likewise.
10199 * lib/filenamecat.c: Likewise.
10200 * lib/filenamecat.h: Likewise.
10201 * lib/findprog.c: Likewise.
10202 * lib/findprog.h: Likewise.
10203 * lib/float.in.h: Likewise.
10204 * lib/floor.c: Likewise.
10205 * lib/floorf.c: Likewise.
10206 * lib/floorl.c: Likewise.
10207 * lib/fopen-safer.c: Likewise.
10208 * lib/fopen.c: Likewise.
10209 * lib/fpending.c: Likewise.
10210 * lib/fpending.h: Likewise.
10211 * lib/fprintf.c: Likewise.
10212 * lib/fprintftime.h: Likewise.
10213 * lib/fpucw.h: Likewise.
10214 * lib/fpurge.c: Likewise.
10215 * lib/fpurge.h: Likewise.
10216 * lib/freadable.c: Likewise.
10217 * lib/freadable.h: Likewise.
10218 * lib/freadahead.c: Likewise.
10219 * lib/freadahead.h: Likewise.
10220 * lib/freading.c: Likewise.
10221 * lib/freading.h: Likewise.
10222 * lib/free.c: Likewise.
10223 * lib/freopen.c: Likewise.
10224 * lib/frexp.c: Likewise.
10225 * lib/frexpl.c: Likewise.
10226 * lib/fseek.c: Likewise.
10227 * lib/fseterr.c: Likewise.
10228 * lib/fseterr.h: Likewise.
10229 * lib/fstatat.c: Likewise.
10230 * lib/fstrcmp.c: Likewise.
10231 * lib/fstrcmp.h: Likewise.
10232 * lib/fsusage.c: Likewise.
10233 * lib/fsusage.h: Likewise.
10234 * lib/ftell.c: Likewise.
10235 * lib/ftello.c: Likewise.
10236 * lib/fts-cycle.c: Likewise.
10237 * lib/fts.c: Likewise.
10238 * lib/fts_.h: Likewise.
10239 * lib/full-read.c: Likewise.
10240 * lib/full-read.h: Likewise.
10241 * lib/full-write.c: Likewise.
10242 * lib/full-write.h: Likewise.
10243 * lib/fwritable.c: Likewise.
10244 * lib/fwritable.h: Likewise.
10245 * lib/fwriteerror.c: Likewise.
10246 * lib/fwriteerror.h: Likewise.
10247 * lib/fwriting.c: Likewise.
10248 * lib/fwriting.h: Likewise.
10249 * lib/gcd.c: Likewise.
10250 * lib/gcd.h: Likewise.
10251 * lib/getcwd.c: Likewise.
10252 * lib/getdate.h: Likewise.
10253 * lib/getdate.y: Likewise.
10254 * lib/getdomainname.c: Likewise.
10255 * lib/getdomainname.h: Likewise.
10256 * lib/getgroups.c: Likewise.
10257 * lib/gethostname.c: Likewise.
10258 * lib/gethrxtime.c: Likewise.
10259 * lib/gethrxtime.h: Likewise.
10260 * lib/getloadavg.c: Likewise.
10261 * lib/getndelim2.c: Likewise.
10262 * lib/getndelim2.h: Likewise.
10263 * lib/getnline.c: Likewise.
10264 * lib/getnline.h: Likewise.
10265 * lib/getopt.c: Likewise.
10266 * lib/getopt.in.h: Likewise.
10267 * lib/getopt1.c: Likewise.
10268 * lib/getopt_int.h: Likewise.
10269 * lib/getpagesize.h: Likewise.
10270 * lib/getsubopt.c: Likewise.
10271 * lib/gettime.c: Likewise.
10272 * lib/getugroups.c: Likewise.
10273 * lib/getugroups.h: Likewise.
10274 * lib/getusershell.c: Likewise.
10275 * lib/gl_anyavltree_list1.h: Likewise.
10276 * lib/gl_anyavltree_list2.h: Likewise.
10277 * lib/gl_anyhash_list1.h: Likewise.
10278 * lib/gl_anyhash_list2.h: Likewise.
10279 * lib/gl_anylinked_list1.h: Likewise.
10280 * lib/gl_anylinked_list2.h: Likewise.
10281 * lib/gl_anyrbtree_list1.h: Likewise.
10282 * lib/gl_anyrbtree_list2.h: Likewise.
10283 * lib/gl_anytree_list1.h: Likewise.
10284 * lib/gl_anytree_list2.h: Likewise.
10285 * lib/gl_anytree_oset.h: Likewise.
10286 * lib/gl_anytreehash_list1.h: Likewise.
10287 * lib/gl_anytreehash_list2.h: Likewise.
10288 * lib/gl_array_list.c: Likewise.
10289 * lib/gl_array_list.h: Likewise.
10290 * lib/gl_array_oset.c: Likewise.
10291 * lib/gl_array_oset.h: Likewise.
10292 * lib/gl_avltree_list.c: Likewise.
10293 * lib/gl_avltree_list.h: Likewise.
10294 * lib/gl_avltree_oset.c: Likewise.
10295 * lib/gl_avltree_oset.h: Likewise.
10296 * lib/gl_avltreehash_list.c: Likewise.
10297 * lib/gl_avltreehash_list.h: Likewise.
10298 * lib/gl_carray_list.c: Likewise.
10299 * lib/gl_carray_list.h: Likewise.
10300 * lib/gl_linked_list.c: Likewise.
10301 * lib/gl_linked_list.h: Likewise.
10302 * lib/gl_linkedhash_list.c: Likewise.
10303 * lib/gl_linkedhash_list.h: Likewise.
10304 * lib/gl_list.c: Likewise.
10305 * lib/gl_list.h: Likewise.
10306 * lib/gl_oset.c: Likewise.
10307 * lib/gl_oset.h: Likewise.
10308 * lib/gl_rbtree_list.c: Likewise.
10309 * lib/gl_rbtree_list.h: Likewise.
10310 * lib/gl_rbtree_oset.c: Likewise.
10311 * lib/gl_rbtree_oset.h: Likewise.
10312 * lib/gl_rbtreehash_list.c: Likewise.
10313 * lib/gl_rbtreehash_list.h: Likewise.
10314 * lib/gl_sublist.c: Likewise.
10315 * lib/gl_sublist.h: Likewise.
10316 * lib/group-member.c: Likewise.
10317 * lib/group-member.h: Likewise.
10318 * lib/hard-locale.c: Likewise.
10319 * lib/hard-locale.h: Likewise.
10320 * lib/hash-pjw.c: Likewise.
10321 * lib/hash-pjw.h: Likewise.
10322 * lib/hash-triple.c: Likewise.
10323 * lib/hash.c: Likewise.
10324 * lib/hash.h: Likewise.
10325 * lib/human.c: Likewise.
10326 * lib/human.h: Likewise.
10327 * lib/i-ring.c: Likewise.
10328 * lib/i-ring.h: Likewise.
10329 * lib/idcache.c: Likewise.
10330 * lib/imaxabs.c: Likewise.
10331 * lib/imaxdiv.c: Likewise.
10332 * lib/inet_pton.c: Likewise.
10333 * lib/inet_pton.h: Likewise.
10334 * lib/intprops.h: Likewise.
10335 * lib/inttostr.c: Likewise.
10336 * lib/inttostr.h: Likewise.
10337 * lib/inttypes.in.h: Likewise.
10338 * lib/isapipe.c: Likewise.
10339 * lib/isdir.c: Likewise.
10340 * lib/isnan.c: Likewise.
10341 * lib/isnan.h: Likewise.
10342 * lib/isnanf.c: Likewise.
10343 * lib/isnanf.h: Likewise.
10344 * lib/isnanl-nolibm.h: Likewise.
10345 * lib/isnanl.c: Likewise.
10346 * lib/isnanl.h: Likewise.
10347 * lib/javacomp.c: Likewise.
10348 * lib/javacomp.h: Likewise.
10349 * lib/javaexec.c: Likewise.
10350 * lib/javaexec.h: Likewise.
10351 * lib/javaversion.c: Likewise.
10352 * lib/javaversion.h: Likewise.
10353 * lib/javaversion.java: Likewise.
10354 * lib/lbrkprop.h: Likewise.
10355 * lib/lchmod.h: Likewise.
10356 * lib/lchown.c: Likewise.
10357 * lib/ldexpl.c: Likewise.
10358 * lib/linebreak.c: Likewise.
10359 * lib/linebreak.h: Likewise.
10360 * lib/linebuffer.c: Likewise.
10361 * lib/linebuffer.h: Likewise.
10362 * lib/locale.in.h: Likewise.
10363 * lib/logl.c: Likewise.
10364 * lib/long-options.c: Likewise.
10365 * lib/long-options.h: Likewise.
10366 * lib/lstat.c: Likewise.
10367 * lib/lstat.h: Likewise.
10368 * lib/math.in.h: Likewise.
10369 * lib/mbchar.c: Likewise.
10370 * lib/mbchar.h: Likewise.
10371 * lib/mbfile.h: Likewise.
10372 * lib/mbiter.h: Likewise.
10373 * lib/mbscasecmp.c: Likewise.
10374 * lib/mbscasestr.c: Likewise.
10375 * lib/mbschr.c: Likewise.
10376 * lib/mbscspn.c: Likewise.
10377 * lib/mbslen.c: Likewise.
10378 * lib/mbsncasecmp.c: Likewise.
10379 * lib/mbsnlen.c: Likewise.
10380 * lib/mbspbrk.c: Likewise.
10381 * lib/mbspcasecmp.c: Likewise.
10382 * lib/mbsrchr.c: Likewise.
10383 * lib/mbssep.c: Likewise.
10384 * lib/mbsspn.c: Likewise.
10385 * lib/mbsstr.c: Likewise.
10386 * lib/mbstok_r.c: Likewise.
10387 * lib/mbswidth.c: Likewise.
10388 * lib/mbswidth.h: Likewise.
10389 * lib/mbuiter.h: Likewise.
10390 * lib/memcasecmp.c: Likewise.
10391 * lib/memcasecmp.h: Likewise.
10392 * lib/memchr.c: Likewise.
10393 * lib/memcmp.c: Likewise.
10394 * lib/memcoll.c: Likewise.
10395 * lib/memcoll.h: Likewise.
10396 * lib/memcpy.c: Likewise.
10397 * lib/memrchr.c: Likewise.
10398 * lib/mkancesdirs.c: Likewise.
10399 * lib/mkdir-p.c: Likewise.
10400 * lib/mkdir-p.h: Likewise.
10401 * lib/mkdir.c: Likewise.
10402 * lib/mkdirat.c: Likewise.
10403 * lib/mkdtemp.c: Likewise.
10404 * lib/mkstemp-safer.c: Likewise.
10405 * lib/mkstemp.c: Likewise.
10406 * lib/modechange.c: Likewise.
10407 * lib/modechange.h: Likewise.
10408 * lib/mountlist.c: Likewise.
10409 * lib/mountlist.h: Likewise.
10410 * lib/mpsort.c: Likewise.
10411 * lib/nanosleep.c: Likewise.
10412 * lib/obstack.c: Likewise.
10413 * lib/obstack.h: Likewise.
10414 * lib/open-safer.c: Likewise.
10415 * lib/open.c: Likewise.
10416 * lib/openat-die.c: Likewise.
10417 * lib/openat-priv.h: Likewise.
10418 * lib/openat-proc.c: Likewise.
10419 * lib/openat.c: Likewise.
10420 * lib/openat.h: Likewise.
10421 * lib/pagealign_alloc.c: Likewise.
10422 * lib/pagealign_alloc.h: Likewise.
10423 * lib/physmem.c: Likewise.
10424 * lib/physmem.h: Likewise.
10425 * lib/pipe-safer.c: Likewise.
10426 * lib/pipe.c: Likewise.
10427 * lib/pipe.h: Likewise.
10428 * lib/posixtm.c: Likewise.
10429 * lib/posixtm.h: Likewise.
10430 * lib/posixver.c: Likewise.
10431 * lib/printf-frexp.c: Likewise.
10432 * lib/printf-frexp.h: Likewise.
10433 * lib/printf-frexpl.c: Likewise.
10434 * lib/printf-frexpl.h: Likewise.
10435 * lib/printf.c: Likewise.
10436 * lib/progname.c: Likewise.
10437 * lib/progname.h: Likewise.
10438 * lib/progreloc.c: Likewise.
10439 * lib/putenv.c: Likewise.
10440 * lib/quote.c: Likewise.
10441 * lib/quote.h: Likewise.
10442 * lib/quotearg.c: Likewise.
10443 * lib/quotearg.h: Likewise.
10444 * lib/raise.c: Likewise.
10445 * lib/readline.c: Likewise.
10446 * lib/readline.h: Likewise.
10447 * lib/readlink.c: Likewise.
10448 * lib/readtokens.c: Likewise.
10449 * lib/readtokens.h: Likewise.
10450 * lib/readtokens0.c: Likewise.
10451 * lib/readtokens0.h: Likewise.
10452 * lib/readutmp.c: Likewise.
10453 * lib/readutmp.h: Likewise.
10454 * lib/realloc.c: Likewise.
10455 * lib/relocwrapper.c: Likewise.
10456 * lib/rename-dest-slash.c: Likewise.
10457 * lib/rename.c: Likewise.
10458 * lib/rmdir.c: Likewise.
10459 * lib/rpmatch.c: Likewise.
10460 * lib/safe-read.c: Likewise.
10461 * lib/safe-read.h: Likewise.
10462 * lib/safe-write.c: Likewise.
10463 * lib/safe-write.h: Likewise.
10464 * lib/same-inode.h: Likewise.
10465 * lib/same.c: Likewise.
10466 * lib/same.h: Likewise.
10467 * lib/save-cwd.c: Likewise.
10468 * lib/save-cwd.h: Likewise.
10469 * lib/savedir.c: Likewise.
10470 * lib/savedir.h: Likewise.
10471 * lib/savewd.c: Likewise.
10472 * lib/savewd.h: Likewise.
10473 * lib/search.in.h: Likewise.
10474 * lib/setenv.c: Likewise.
10475 * lib/setenv.h: Likewise.
10476 * lib/settime.c: Likewise.
10477 * lib/sh-quote.c: Likewise.
10478 * lib/sh-quote.h: Likewise.
10479 * lib/sig2str.c: Likewise.
10480 * lib/sig2str.h: Likewise.
10481 * lib/signal.in.h: Likewise.
10482 * lib/signbitd.c: Likewise.
10483 * lib/signbitf.c: Likewise.
10484 * lib/signbitl.c: Likewise.
10485 * lib/sigprocmask.c: Likewise.
10486 * lib/sincosl.c: Likewise.
10487 * lib/sleep.c: Likewise.
10488 * lib/sprintf.c: Likewise.
10489 * lib/sqrtl.c: Likewise.
10490 * lib/stat-time.h: Likewise.
10491 * lib/stdio--.h: Likewise.
10492 * lib/stdio-safer.h: Likewise.
10493 * lib/stdlib--.h: Likewise.
10494 * lib/stdlib-safer.h: Likewise.
10495 * lib/stdlib.in.h: Likewise.
10496 * lib/stpcpy.c: Likewise.
10497 * lib/stpncpy.c: Likewise.
10498 * lib/strchrnul.c: Likewise.
10499 * lib/strcspn.c: Likewise.
10500 * lib/strerror.c: Likewise.
10501 * lib/strftime.c: Likewise.
10502 * lib/strftime.h: Likewise.
10503 * lib/striconveh.c: Likewise.
10504 * lib/striconveh.h: Likewise.
10505 * lib/striconveha.c: Likewise.
10506 * lib/striconveha.h: Likewise.
10507 * lib/stripslash.c: Likewise.
10508 * lib/strnlen1.c: Likewise.
10509 * lib/strnlen1.h: Likewise.
10510 * lib/strtod.c: Likewise.
10511 * lib/strtoimax.c: Likewise.
10512 * lib/strtok_r.c: Likewise.
10513 * lib/strtol.c: Likewise.
10514 * lib/strtoll.c: Likewise.
10515 * lib/strtoul.c: Likewise.
10516 * lib/strtoull.c: Likewise.
10517 * lib/sysexits.in.h: Likewise.
10518 * lib/tempname.c: Likewise.
10519 * lib/tempname.h: Likewise.
10520 * lib/timespec.h: Likewise.
10521 * lib/tls.c: Likewise.
10522 * lib/tls.h: Likewise.
10523 * lib/tmpdir.c: Likewise.
10524 * lib/tmpdir.h: Likewise.
10525 * lib/tmpfile-safer.c: Likewise.
10526 * lib/tmpfile.c: Likewise.
10527 * lib/trigl.c: Likewise.
10528 * lib/trigl.h: Likewise.
10529 * lib/trim.c: Likewise.
10530 * lib/trim.h: Likewise.
10531 * lib/trunc.c: Likewise.
10532 * lib/truncf.c: Likewise.
10533 * lib/truncl.c: Likewise.
10534 * lib/tsearch.c: Likewise.
10535 * lib/unicodeio.c: Likewise.
10536 * lib/unicodeio.h: Likewise.
10537 * lib/unistd--.h: Likewise.
10538 * lib/unistd-safer.h: Likewise.
10539 * lib/unistdio/ulc-fprintf.c: Likewise.
10540 * lib/unistdio/ulc-vfprintf.c: Likewise.
10541 * lib/unlinkdir.c: Likewise.
10542 * lib/unlinkdir.h: Likewise.
10543 * lib/unlocked-io.h: Likewise.
10544 * lib/unsetenv.c: Likewise.
10545 * lib/userspec.c: Likewise.
10546 * lib/utime.c: Likewise.
10547 * lib/utimecmp.c: Likewise.
10548 * lib/utimecmp.h: Likewise.
10549 * lib/utimens.c: Likewise.
10550 * lib/verify.h: Likewise.
10551 * lib/verror.c: Likewise.
10552 * lib/verror.h: Likewise.
10553 * lib/version-etc-fsf.c: Likewise.
10554 * lib/version-etc.c: Likewise.
10555 * lib/version-etc.h: Likewise.
10556 * lib/vfprintf.c: Likewise.
10557 * lib/vprintf.c: Likewise.
10558 * lib/vsprintf.c: Likewise.
10559 * lib/w32spawn.h: Likewise.
10560 * lib/wait-process.c: Likewise.
10561 * lib/wait-process.h: Likewise.
10562 * lib/wcwidth.c: Likewise.
10563 * lib/write-any-file.c: Likewise.
10564 * lib/xalloc-die.c: Likewise.
10565 * lib/xalloc.h: Likewise.
10566 * lib/xasprintf.c: Likewise.
10567 * lib/xgetcwd.c: Likewise.
10568 * lib/xgetcwd.h: Likewise.
10569 * lib/xgetdomainname.c: Likewise.
10570 * lib/xgetdomainname.h: Likewise.
10571 * lib/xgethostname.c: Likewise.
10572 * lib/xmalloc.c: Likewise.
10573 * lib/xmalloca.c: Likewise.
10574 * lib/xmalloca.h: Likewise.
10575 * lib/xmemcoll.c: Likewise.
10576 * lib/xnanosleep.c: Likewise.
10577 * lib/xreadlink.c: Likewise.
10578 * lib/xreadlink.h: Likewise.
10579 * lib/xsetenv.c: Likewise.
10580 * lib/xsetenv.h: Likewise.
10581 * lib/xstriconv.c: Likewise.
10582 * lib/xstriconv.h: Likewise.
10583 * lib/xstrndup.c: Likewise.
10584 * lib/xstrndup.h: Likewise.
10585 * lib/xstrtod.c: Likewise.
10586 * lib/xstrtod.h: Likewise.
10587 * lib/xstrtol-error.c: Likewise.
10588 * lib/xstrtol.c: Likewise.
10589 * lib/xstrtol.h: Likewise.
10590 * lib/xtime.h: Likewise.
10591 * lib/xvasprintf.c: Likewise.
10592 * lib/xvasprintf.h: Likewise.
10593 * lib/yesno.c: Likewise.
10594 * lib/yesno.h: Likewise.
10595 * posix-modules: Likewise.
10596 * tests/test-alloca-opt.c: Likewise.
10597 * tests/test-arcfour.c: Likewise.
10598 * tests/test-arctwo.c: Likewise.
10599 * tests/test-argmatch.c: Likewise.
10600 * tests/test-argp-2.sh: Likewise.
10601 * tests/test-argp.c: Likewise.
10602 * tests/test-arpa_inet.c: Likewise.
10603 * tests/test-array_list.c: Likewise.
10604 * tests/test-array_oset.c: Likewise.
10605 * tests/test-atexit.c: Likewise.
10606 * tests/test-avltree_list.c: Likewise.
10607 * tests/test-avltree_oset.c: Likewise.
10608 * tests/test-avltreehash_list.c: Likewise.
10609 * tests/test-base64.c: Likewise.
10610 * tests/test-binary-io.c: Likewise.
10611 * tests/test-byteswap.c: Likewise.
10612 * tests/test-c-ctype.c: Likewise.
10613 * tests/test-c-strcasecmp.c: Likewise.
10614 * tests/test-c-strcasestr.c: Likewise.
10615 * tests/test-c-strncasecmp.c: Likewise.
10616 * tests/test-c-strstr.c: Likewise.
10617 * tests/test-canonicalize-lgpl.c: Likewise.
10618 * tests/test-canonicalize.c: Likewise.
10619 * tests/test-carray_list.c: Likewise.
10620 * tests/test-ceilf.c: Likewise.
10621 * tests/test-ceill.c: Likewise.
10622 * tests/test-count-one-bits.c: Likewise.
10623 * tests/test-crc.c: Likewise.
10624 * tests/test-dirname.c: Likewise.
10625 * tests/test-fbufmode.c: Likewise.
10626 * tests/test-fcntl.c: Likewise.
10627 * tests/test-fflush.c: Likewise.
10628 * tests/test-floorf.c: Likewise.
10629 * tests/test-floorl.c: Likewise.
10630 * tests/test-fopen.c: Likewise.
10631 * tests/test-fprintf-posix.c: Likewise.
10632 * tests/test-fprintf-posix.h: Likewise.
10633 * tests/test-fpurge.c: Likewise.
10634 * tests/test-freadable.c: Likewise.
10635 * tests/test-freadahead.c: Likewise.
10636 * tests/test-freading.c: Likewise.
10637 * tests/test-freopen.c: Likewise.
10638 * tests/test-frexp.c: Likewise.
10639 * tests/test-frexpl.c: Likewise.
10640 * tests/test-fseek.c: Likewise.
10641 * tests/test-fseeko.c: Likewise.
10642 * tests/test-fseterr.c: Likewise.
10643 * tests/test-fstrcmp.c: Likewise.
10644 * tests/test-ftell.c: Likewise.
10645 * tests/test-ftello.c: Likewise.
10646 * tests/test-fwritable.c: Likewise.
10647 * tests/test-fwriting.c: Likewise.
10648 * tests/test-getaddrinfo.c: Likewise.
10649 * tests/test-getpass.c: Likewise.
10650 * tests/test-gettimeofday.c: Likewise.
10651 * tests/test-hmac-md5.c: Likewise.
10652 * tests/test-hmac-sha1.c: Likewise.
10653 * tests/test-iconv.c: Likewise.
10654 * tests/test-iconvme.c: Likewise.
10655 * tests/test-inttypes.c: Likewise.
10656 * tests/test-isnan.c: Likewise.
10657 * tests/test-isnanf.c: Likewise.
10658 * tests/test-isnanl-nolibm.c: Likewise.
10659 * tests/test-isnanl.c: Likewise.
10660 * tests/test-isnanl.h: Likewise.
10661 * tests/test-ldexpl.c: Likewise.
10662 * tests/test-linked_list.c: Likewise.
10663 * tests/test-linkedhash_list.c: Likewise.
10664 * tests/test-locale.c: Likewise.
10665 * tests/test-localename.c: Likewise.
10666 * tests/test-lock.c: Likewise.
10667 * tests/test-lseek.c: Likewise.
10668 * tests/test-malloca.c: Likewise.
10669 * tests/test-math.c: Likewise.
10670 * tests/test-mbscasecmp.c: Likewise.
10671 * tests/test-mbscasestr1.c: Likewise.
10672 * tests/test-mbscasestr2.c: Likewise.
10673 * tests/test-mbscasestr3.c: Likewise.
10674 * tests/test-mbscasestr4.c: Likewise.
10675 * tests/test-mbschr.c: Likewise.
10676 * tests/test-mbscspn.c: Likewise.
10677 * tests/test-mbsncasecmp.c: Likewise.
10678 * tests/test-mbspbrk.c: Likewise.
10679 * tests/test-mbspcasecmp.c: Likewise.
10680 * tests/test-mbsrchr.c: Likewise.
10681 * tests/test-mbsspn.c: Likewise.
10682 * tests/test-mbsstr1.c: Likewise.
10683 * tests/test-mbsstr2.c: Likewise.
10684 * tests/test-mbsstr3.c: Likewise.
10685 * tests/test-md5.c: Likewise.
10686 * tests/test-memmem.c: Likewise.
10687 * tests/test-netinet_in.c: Likewise.
10688 * tests/test-open.c: Likewise.
10689 * tests/test-printf-frexp.c: Likewise.
10690 * tests/test-printf-frexpl.c: Likewise.
10691 * tests/test-printf-posix.c: Likewise.
10692 * tests/test-printf-posix.h: Likewise.
10693 * tests/test-rbtree_list.c: Likewise.
10694 * tests/test-rbtree_oset.c: Likewise.
10695 * tests/test-rbtreehash_list.c: Likewise.
10696 * tests/test-read-file.c: Likewise.
10697 * tests/test-rijndael.c: Likewise.
10698 * tests/test-search.c: Likewise.
10699 * tests/test-signbit.c: Likewise.
10700 * tests/test-sleep.c: Likewise.
10701 * tests/test-snprintf-posix.c: Likewise.
10702 * tests/test-snprintf-posix.h: Likewise.
10703 * tests/test-snprintf.c: Likewise.
10704 * tests/test-sprintf-posix.c: Likewise.
10705 * tests/test-sprintf-posix.h: Likewise.
10706 * tests/test-stat-time.c: Likewise.
10707 * tests/test-stdbool.c: Likewise.
10708 * tests/test-stdint.c: Likewise.
10709 * tests/test-stdio.c: Likewise.
10710 * tests/test-stdlib.c: Likewise.
10711 * tests/test-stpncpy.c: Likewise.
10712 * tests/test-strcasestr.c: Likewise.
10713 * tests/test-striconv.c: Likewise.
10714 * tests/test-striconveh.c: Likewise.
10715 * tests/test-striconveha.c: Likewise.
10716 * tests/test-string.c: Likewise.
10717 * tests/test-sys_select.c: Likewise.
10718 * tests/test-sys_socket.c: Likewise.
10719 * tests/test-sys_stat.c: Likewise.
10720 * tests/test-sys_time.c: Likewise.
10721 * tests/test-sysexits.c: Likewise.
10722 * tests/test-time.c: Likewise.
10723 * tests/test-tls.c: Likewise.
10724 * tests/test-trunc.c: Likewise.
10725 * tests/test-truncf.c: Likewise.
10726 * tests/test-truncl.c: Likewise.
10727 * tests/test-unistd.c: Likewise.
10728 * tests/test-vasnprintf-posix.c: Likewise.
10729 * tests/test-vasnprintf-posix2.c: Likewise.
10730 * tests/test-vasnprintf.c: Likewise.
10731 * tests/test-vasprintf-posix.c: Likewise.
10732 * tests/test-vasprintf.c: Likewise.
10733 * tests/test-verify.c: Likewise.
10734 * tests/test-vfprintf-posix.c: Likewise.
10735 * tests/test-vprintf-posix.c: Likewise.
10736 * tests/test-vsnprintf-posix.c: Likewise.
10737 * tests/test-vsnprintf.c: Likewise.
10738 * tests/test-vsprintf-posix.c: Likewise.
10739 * tests/test-wchar.c: Likewise.
10740 * tests/test-wctype.c: Likewise.
10741 * tests/test-wcwidth.c: Likewise.
10742 * tests/test-xstrtol.c: Likewise.
10743 * tests/test-xvasprintf.c: Likewise.
10744 * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
10745 * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
10746 * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
10747 * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
10748 * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
10749 * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
10750 * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
10751 * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
10752 * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
10753 * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
10754 * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
10755 * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
10756 * tests/uniname/test-uninames.c: Likewise.
10757 * tests/unistdio/test-u16-asnprintf1.c: Likewise.
10758 * tests/unistdio/test-u16-asnprintf1.h: Likewise.
10759 * tests/unistdio/test-u16-printf1.h: Likewise.
10760 * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
10761 * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
10762 * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
10763 * tests/unistdio/test-u16-vasprintf1.c: Likewise.
10764 * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
10765 * tests/unistdio/test-u16-vsprintf1.c: Likewise.
10766 * tests/unistdio/test-u32-asnprintf1.c: Likewise.
10767 * tests/unistdio/test-u32-asnprintf1.h: Likewise.
10768 * tests/unistdio/test-u32-printf1.h: Likewise.
10769 * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
10770 * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
10771 * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
10772 * tests/unistdio/test-u32-vasprintf1.c: Likewise.
10773 * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
10774 * tests/unistdio/test-u32-vsprintf1.c: Likewise.
10775 * tests/unistdio/test-u8-asnprintf1.c: Likewise.
10776 * tests/unistdio/test-u8-asnprintf1.h: Likewise.
10777 * tests/unistdio/test-u8-printf1.h: Likewise.
10778 * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
10779 * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
10780 * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
10781 * tests/unistdio/test-u8-vasprintf1.c: Likewise.
10782 * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
10783 * tests/unistdio/test-u8-vsprintf1.c: Likewise.
10784 * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
10785 * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
10786 * tests/unistdio/test-ulc-printf1.h: Likewise.
10787 * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
10788 * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
10789 * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
10790 * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
10791 * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
10792 * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
10793 * tests/uniwidth/test-u16-strwidth.c: Likewise.
10794 * tests/uniwidth/test-u16-width.c: Likewise.
10795 * tests/uniwidth/test-u32-strwidth.c: Likewise.
10796 * tests/uniwidth/test-u32-width.c: Likewise.
10797 * tests/uniwidth/test-u8-strwidth.c: Likewise.
10798 * tests/uniwidth/test-u8-width.c: Likewise.
10799 * tests/uniwidth/test-uc_width.c: Likewise.
10800 * config/srclist-update: Likewise.
10801 (fixlicense): Update to GPLv3+.
10803 Change copyright notice from LGPLv2.1+ to LGPLv3+.
10804 * tests/test-tsearch.c: Change copyright notice.
10806 Change copyright notice from LGPLv2.0+ to LGPLv3+.
10807 * lib/c-strcaseeq.h: Change copyright notice.
10808 * lib/streq.h: Likewise.
10809 * lib/uniconv.h: Likewise.
10810 * lib/uniconv/u-conv-from-enc.h: Likewise.
10811 * lib/uniconv/u-conv-to-enc.h: Likewise.
10812 * lib/uniconv/u-strconv-from-enc.h: Likewise.
10813 * lib/uniconv/u-strconv-to-enc.h: Likewise.
10814 * lib/uniconv/u16-conv-from-enc.c: Likewise.
10815 * lib/uniconv/u16-conv-to-enc.c: Likewise.
10816 * lib/uniconv/u16-strconv-from-enc.c: Likewise.
10817 * lib/uniconv/u16-strconv-from-locale.c: Likewise.
10818 * lib/uniconv/u16-strconv-to-enc.c: Likewise.
10819 * lib/uniconv/u16-strconv-to-locale.c: Likewise.
10820 * lib/uniconv/u32-conv-from-enc.c: Likewise.
10821 * lib/uniconv/u32-conv-to-enc.c: Likewise.
10822 * lib/uniconv/u32-strconv-from-enc.c: Likewise.
10823 * lib/uniconv/u32-strconv-from-locale.c: Likewise.
10824 * lib/uniconv/u32-strconv-to-enc.c: Likewise.
10825 * lib/uniconv/u32-strconv-to-locale.c: Likewise.
10826 * lib/uniconv/u8-conv-from-enc.c: Likewise.
10827 * lib/uniconv/u8-conv-to-enc.c: Likewise.
10828 * lib/uniconv/u8-strconv-from-enc.c: Likewise.
10829 * lib/uniconv/u8-strconv-from-locale.c: Likewise.
10830 * lib/uniconv/u8-strconv-to-enc.c: Likewise.
10831 * lib/uniconv/u8-strconv-to-locale.c: Likewise.
10832 * lib/uniname.h: Likewise.
10833 * lib/uniname/uniname.c: Likewise.
10834 * lib/unistdio.h: Likewise.
10835 * lib/unistdio/u-asnprintf.h: Likewise.
10836 * lib/unistdio/u-asprintf.h: Likewise.
10837 * lib/unistdio/u-printf-args.c: Likewise.
10838 * lib/unistdio/u-printf-args.h: Likewise.
10839 * lib/unistdio/u-printf-parse.h: Likewise.
10840 * lib/unistdio/u-snprintf.h: Likewise.
10841 * lib/unistdio/u-sprintf.h: Likewise.
10842 * lib/unistdio/u-vasprintf.h: Likewise.
10843 * lib/unistdio/u-vsnprintf.h: Likewise.
10844 * lib/unistdio/u-vsprintf.h: Likewise.
10845 * lib/unistdio/u16-asnprintf.c: Likewise.
10846 * lib/unistdio/u16-asprintf.c: Likewise.
10847 * lib/unistdio/u16-printf-parse.c: Likewise.
10848 * lib/unistdio/u16-snprintf.c: Likewise.
10849 * lib/unistdio/u16-sprintf.c: Likewise.
10850 * lib/unistdio/u16-u16-asnprintf.c: Likewise.
10851 * lib/unistdio/u16-u16-asprintf.c: Likewise.
10852 * lib/unistdio/u16-u16-snprintf.c: Likewise.
10853 * lib/unistdio/u16-u16-sprintf.c: Likewise.
10854 * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
10855 * lib/unistdio/u16-u16-vasprintf.c: Likewise.
10856 * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
10857 * lib/unistdio/u16-u16-vsprintf.c: Likewise.
10858 * lib/unistdio/u16-vasnprintf.c: Likewise.
10859 * lib/unistdio/u16-vasprintf.c: Likewise.
10860 * lib/unistdio/u16-vsnprintf.c: Likewise.
10861 * lib/unistdio/u16-vsprintf.c: Likewise.
10862 * lib/unistdio/u32-asnprintf.c: Likewise.
10863 * lib/unistdio/u32-asprintf.c: Likewise.
10864 * lib/unistdio/u32-printf-parse.c: Likewise.
10865 * lib/unistdio/u32-snprintf.c: Likewise.
10866 * lib/unistdio/u32-sprintf.c: Likewise.
10867 * lib/unistdio/u32-u32-asnprintf.c: Likewise.
10868 * lib/unistdio/u32-u32-asprintf.c: Likewise.
10869 * lib/unistdio/u32-u32-snprintf.c: Likewise.
10870 * lib/unistdio/u32-u32-sprintf.c: Likewise.
10871 * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
10872 * lib/unistdio/u32-u32-vasprintf.c: Likewise.
10873 * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
10874 * lib/unistdio/u32-u32-vsprintf.c: Likewise.
10875 * lib/unistdio/u32-vasnprintf.c: Likewise.
10876 * lib/unistdio/u32-vasprintf.c: Likewise.
10877 * lib/unistdio/u32-vsnprintf.c: Likewise.
10878 * lib/unistdio/u32-vsprintf.c: Likewise.
10879 * lib/unistdio/u8-asnprintf.c: Likewise.
10880 * lib/unistdio/u8-asprintf.c: Likewise.
10881 * lib/unistdio/u8-printf-parse.c: Likewise.
10882 * lib/unistdio/u8-snprintf.c: Likewise.
10883 * lib/unistdio/u8-sprintf.c: Likewise.
10884 * lib/unistdio/u8-u8-asnprintf.c: Likewise.
10885 * lib/unistdio/u8-u8-asprintf.c: Likewise.
10886 * lib/unistdio/u8-u8-snprintf.c: Likewise.
10887 * lib/unistdio/u8-u8-sprintf.c: Likewise.
10888 * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
10889 * lib/unistdio/u8-u8-vasprintf.c: Likewise.
10890 * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
10891 * lib/unistdio/u8-u8-vsprintf.c: Likewise.
10892 * lib/unistdio/u8-vasnprintf.c: Likewise.
10893 * lib/unistdio/u8-vasprintf.c: Likewise.
10894 * lib/unistdio/u8-vsnprintf.c: Likewise.
10895 * lib/unistdio/u8-vsprintf.c: Likewise.
10896 * lib/unistdio/ulc-asnprintf.c: Likewise.
10897 * lib/unistdio/ulc-asprintf.c: Likewise.
10898 * lib/unistdio/ulc-printf-parse.c: Likewise.
10899 * lib/unistdio/ulc-snprintf.c: Likewise.
10900 * lib/unistdio/ulc-sprintf.c: Likewise.
10901 * lib/unistdio/ulc-vasnprintf.c: Likewise.
10902 * lib/unistdio/ulc-vasprintf.c: Likewise.
10903 * lib/unistdio/ulc-vsnprintf.c: Likewise.
10904 * lib/unistdio/ulc-vsprintf.c: Likewise.
10905 * lib/unistr.h: Likewise.
10906 * lib/unistr/u-cpy-alloc.h: Likewise.
10907 * lib/unistr/u-cpy.h: Likewise.
10908 * lib/unistr/u-endswith.h: Likewise.
10909 * lib/unistr/u-move.h: Likewise.
10910 * lib/unistr/u-set.h: Likewise.
10911 * lib/unistr/u-startswith.h: Likewise.
10912 * lib/unistr/u-stpcpy.h: Likewise.
10913 * lib/unistr/u-stpncpy.h: Likewise.
10914 * lib/unistr/u-strcat.h: Likewise.
10915 * lib/unistr/u-strcpy.h: Likewise.
10916 * lib/unistr/u-strcspn.h: Likewise.
10917 * lib/unistr/u-strdup.h: Likewise.
10918 * lib/unistr/u-strlen.h: Likewise.
10919 * lib/unistr/u-strncat.h: Likewise.
10920 * lib/unistr/u-strncpy.h: Likewise.
10921 * lib/unistr/u-strnlen.h: Likewise.
10922 * lib/unistr/u-strpbrk.h: Likewise.
10923 * lib/unistr/u-strspn.h: Likewise.
10924 * lib/unistr/u-strstr.h: Likewise.
10925 * lib/unistr/u-strtok.h: Likewise.
10926 * lib/unistr/u16-check.c: Likewise.
10927 * lib/unistr/u16-chr.c: Likewise.
10928 * lib/unistr/u16-cmp.c: Likewise.
10929 * lib/unistr/u16-cpy-alloc.c: Likewise.
10930 * lib/unistr/u16-cpy.c: Likewise.
10931 * lib/unistr/u16-endswith.c: Likewise.
10932 * lib/unistr/u16-mblen.c: Likewise.
10933 * lib/unistr/u16-mbsnlen.c: Likewise.
10934 * lib/unistr/u16-mbtouc-aux.c: Likewise.
10935 * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
10936 * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
10937 * lib/unistr/u16-mbtouc.c: Likewise.
10938 * lib/unistr/u16-mbtoucr.c: Likewise.
10939 * lib/unistr/u16-move.c: Likewise.
10940 * lib/unistr/u16-next.c: Likewise.
10941 * lib/unistr/u16-prev.c: Likewise.
10942 * lib/unistr/u16-set.c: Likewise.
10943 * lib/unistr/u16-startswith.c: Likewise.
10944 * lib/unistr/u16-stpcpy.c: Likewise.
10945 * lib/unistr/u16-stpncpy.c: Likewise.
10946 * lib/unistr/u16-strcat.c: Likewise.
10947 * lib/unistr/u16-strchr.c: Likewise.
10948 * lib/unistr/u16-strcmp.c: Likewise.
10949 * lib/unistr/u16-strcpy.c: Likewise.
10950 * lib/unistr/u16-strcspn.c: Likewise.
10951 * lib/unistr/u16-strdup.c: Likewise.
10952 * lib/unistr/u16-strlen.c: Likewise.
10953 * lib/unistr/u16-strmblen.c: Likewise.
10954 * lib/unistr/u16-strmbtouc.c: Likewise.
10955 * lib/unistr/u16-strncat.c: Likewise.
10956 * lib/unistr/u16-strncmp.c: Likewise.
10957 * lib/unistr/u16-strncpy.c: Likewise.
10958 * lib/unistr/u16-strnlen.c: Likewise.
10959 * lib/unistr/u16-strpbrk.c: Likewise.
10960 * lib/unistr/u16-strrchr.c: Likewise.
10961 * lib/unistr/u16-strspn.c: Likewise.
10962 * lib/unistr/u16-strstr.c: Likewise.
10963 * lib/unistr/u16-strtok.c: Likewise.
10964 * lib/unistr/u16-to-u32.c: Likewise.
10965 * lib/unistr/u16-to-u8.c: Likewise.
10966 * lib/unistr/u16-uctomb-aux.c: Likewise.
10967 * lib/unistr/u16-uctomb.c: Likewise.
10968 * lib/unistr/u32-check.c: Likewise.
10969 * lib/unistr/u32-chr.c: Likewise.
10970 * lib/unistr/u32-cmp.c: Likewise.
10971 * lib/unistr/u32-cpy-alloc.c: Likewise.
10972 * lib/unistr/u32-cpy.c: Likewise.
10973 * lib/unistr/u32-endswith.c: Likewise.
10974 * lib/unistr/u32-mblen.c: Likewise.
10975 * lib/unistr/u32-mbsnlen.c: Likewise.
10976 * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
10977 * lib/unistr/u32-mbtouc.c: Likewise.
10978 * lib/unistr/u32-mbtoucr.c: Likewise.
10979 * lib/unistr/u32-move.c: Likewise.
10980 * lib/unistr/u32-next.c: Likewise.
10981 * lib/unistr/u32-prev.c: Likewise.
10982 * lib/unistr/u32-set.c: Likewise.
10983 * lib/unistr/u32-startswith.c: Likewise.
10984 * lib/unistr/u32-stpcpy.c: Likewise.
10985 * lib/unistr/u32-stpncpy.c: Likewise.
10986 * lib/unistr/u32-strcat.c: Likewise.
10987 * lib/unistr/u32-strchr.c: Likewise.
10988 * lib/unistr/u32-strcmp.c: Likewise.
10989 * lib/unistr/u32-strcpy.c: Likewise.
10990 * lib/unistr/u32-strcspn.c: Likewise.
10991 * lib/unistr/u32-strdup.c: Likewise.
10992 * lib/unistr/u32-strlen.c: Likewise.
10993 * lib/unistr/u32-strmblen.c: Likewise.
10994 * lib/unistr/u32-strmbtouc.c: Likewise.
10995 * lib/unistr/u32-strncat.c: Likewise.
10996 * lib/unistr/u32-strncmp.c: Likewise.
10997 * lib/unistr/u32-strncpy.c: Likewise.
10998 * lib/unistr/u32-strnlen.c: Likewise.
10999 * lib/unistr/u32-strpbrk.c: Likewise.
11000 * lib/unistr/u32-strrchr.c: Likewise.
11001 * lib/unistr/u32-strspn.c: Likewise.
11002 * lib/unistr/u32-strstr.c: Likewise.
11003 * lib/unistr/u32-strtok.c: Likewise.
11004 * lib/unistr/u32-to-u16.c: Likewise.
11005 * lib/unistr/u32-to-u8.c: Likewise.
11006 * lib/unistr/u32-uctomb.c: Likewise.
11007 * lib/unistr/u8-check.c: Likewise.
11008 * lib/unistr/u8-chr.c: Likewise.
11009 * lib/unistr/u8-cmp.c: Likewise.
11010 * lib/unistr/u8-cpy-alloc.c: Likewise.
11011 * lib/unistr/u8-cpy.c: Likewise.
11012 * lib/unistr/u8-endswith.c: Likewise.
11013 * lib/unistr/u8-mblen.c: Likewise.
11014 * lib/unistr/u8-mbsnlen.c: Likewise.
11015 * lib/unistr/u8-mbtouc-aux.c: Likewise.
11016 * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
11017 * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
11018 * lib/unistr/u8-mbtouc.c: Likewise.
11019 * lib/unistr/u8-mbtoucr.c: Likewise.
11020 * lib/unistr/u8-move.c: Likewise.
11021 * lib/unistr/u8-next.c: Likewise.
11022 * lib/unistr/u8-prev.c: Likewise.
11023 * lib/unistr/u8-set.c: Likewise.
11024 * lib/unistr/u8-startswith.c: Likewise.
11025 * lib/unistr/u8-stpcpy.c: Likewise.
11026 * lib/unistr/u8-stpncpy.c: Likewise.
11027 * lib/unistr/u8-strcat.c: Likewise.
11028 * lib/unistr/u8-strchr.c: Likewise.
11029 * lib/unistr/u8-strcmp.c: Likewise.
11030 * lib/unistr/u8-strcpy.c: Likewise.
11031 * lib/unistr/u8-strcspn.c: Likewise.
11032 * lib/unistr/u8-strdup.c: Likewise.
11033 * lib/unistr/u8-strlen.c: Likewise.
11034 * lib/unistr/u8-strmblen.c: Likewise.
11035 * lib/unistr/u8-strmbtouc.c: Likewise.
11036 * lib/unistr/u8-strncat.c: Likewise.
11037 * lib/unistr/u8-strncmp.c: Likewise.
11038 * lib/unistr/u8-strncpy.c: Likewise.
11039 * lib/unistr/u8-strnlen.c: Likewise.
11040 * lib/unistr/u8-strpbrk.c: Likewise.
11041 * lib/unistr/u8-strrchr.c: Likewise.
11042 * lib/unistr/u8-strspn.c: Likewise.
11043 * lib/unistr/u8-strstr.c: Likewise.
11044 * lib/unistr/u8-strtok.c: Likewise.
11045 * lib/unistr/u8-to-u16.c: Likewise.
11046 * lib/unistr/u8-to-u32.c: Likewise.
11047 * lib/unistr/u8-uctomb-aux.c: Likewise.
11048 * lib/unistr/u8-uctomb.c: Likewise.
11049 * lib/unitypes.h: Likewise.
11050 * lib/uniwidth.h: Likewise.
11051 * lib/uniwidth/cjk.h: Likewise.
11052 * lib/uniwidth/u16-strwidth.c: Likewise.
11053 * lib/uniwidth/u16-width.c: Likewise.
11054 * lib/uniwidth/u32-strwidth.c: Likewise.
11055 * lib/uniwidth/u32-width.c: Likewise.
11056 * lib/uniwidth/u8-strwidth.c: Likewise.
11057 * lib/uniwidth/u8-width.c: Likewise.
11058 * lib/uniwidth/width.c: Likewise.
11060 2007-10-07 Bruno Haible <bruno@clisp.org>
11062 * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
11063 The file is still under LGPL (see modules/inttypes).
11065 2007-10-06 Bruno Haible <bruno@clisp.org>
11067 * modules/trunc (Dependencies): Add 'extensions'.
11068 * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
11069 Reported by Ben Pfaff <blp@gnu.org>.
11071 2007-10-06 Bruno Haible <bruno@clisp.org>
11073 * modules/freopen-tests: New file.
11074 * tests/test-freopen.c: New file.
11076 * modules/fopen-tests: New file.
11077 * tests/test-fopen.c: New file.
11079 * modules/fopen: New file.
11080 * lib/fopen.c: New file.
11081 * m4/fopen.m4: New file.
11082 * modules/freopen: New file.
11083 * lib/freopen.c: New file.
11084 * m4/freopen.m4: New file.
11085 * lib/stdio.in.h (fopen, freopen): New declarations.
11086 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
11087 GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
11088 * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
11089 GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
11090 * doc/functions/fopen.texi: Mention the 'fopen' module.
11091 * doc/functions/freopen.texi: Mention the 'freopen' module.
11093 2007-10-06 Bruno Haible <bruno@clisp.org>
11095 * modules/open-tests: New file.
11096 * tests/test-open.c: New file.
11098 * modules/open: New file.
11099 * lib/open.c: New file.
11100 * m4/open.m4: New file.
11101 * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
11103 * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
11104 * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
11106 (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
11107 * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
11109 * doc/functions/open.texi: Mention the 'open' module.
11111 2007-10-04 Bruno Haible <bruno@clisp.org>
11113 * modules/ceill-tests: New file.
11114 * tests/test-ceill.c: New file.
11116 * modules/ceill: New file.
11117 * lib/ceill.c: Replace entire file.
11118 * m4/ceill.m4: New file.
11119 * lib/math.in.h (ceill): Replace declaration.
11120 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
11121 * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
11122 * doc/functions/ceill.texi: Mention the 'ceill' module.
11123 * modules/mathl (Files): Remove lib/ceill.c.
11124 (Depends-on): Add ceill.
11126 2007-10-04 Bruno Haible <bruno@clisp.org>
11128 * modules/ceilf-tests: New file.
11129 * tests/test-ceilf.c: New file.
11131 * modules/ceilf: New file.
11132 * lib/ceil.c: New file.
11133 * lib/ceilf.c: New file.
11134 * m4/ceilf.m4: New file.
11135 * lib/math.in.h (ceilf): New declaration.
11136 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
11138 * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
11140 * doc/functions/ceilf.texi: Mention the 'ceilf' module.
11142 2007-10-04 Bruno Haible <bruno@clisp.org>
11144 * modules/floorl-tests: New file.
11145 * tests/test-floorl.c: New file.
11147 * modules/floorl: New file.
11148 * lib/floorl.c: Replace entire file.
11149 * m4/floorl.m4: New file.
11150 * lib/math.in.h (floorl): Replace declaration.
11151 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
11152 * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
11153 * doc/functions/floorl.texi: Mention the 'floorl' module.
11154 * modules/mathl (Files): Remove lib/floorl.c.
11155 (Depends-on): Add floorl.
11157 2007-10-04 Bruno Haible <bruno@clisp.org>
11159 * modules/floorf-tests: New file.
11160 * tests/test-floorf.c: New file.
11162 * modules/floorf: New file.
11163 * lib/floor.c: New file.
11164 * lib/floorf.c: New file.
11165 * m4/floorf.m4: New file.
11166 * lib/math.in.h (floorf): New declaration.
11167 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
11169 * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
11171 * doc/functions/floorf.texi: Mention the 'floorf' module.
11173 2007-10-04 Benoit Sigoure <tsuna@lrde.epita.fr>
11174 Bruno Haible <bruno@clisp.org>
11176 Advertise for the Git server instead of the CVS server.
11177 * doc/gnulib-intro.texi (Steady Development): Mention the Git
11178 repository instead of the CVS one.
11179 * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
11180 about all VCS systems generically.
11181 * doc/gnulib.texi (Introduction): Capitalize `Git'.
11183 2007-10-04 Bruno Haible <bruno@clisp.org>
11185 * doc/gnulib.texi (Function Substitutes): Explain what an absent module
11187 Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
11189 2007-10-04 Bruno Haible <bruno@clisp.org>
11191 * modules/truncl-tests: New file.
11192 * tests/test-truncl.c: New file.
11194 * modules/truncl: New file.
11195 * lib/truncl.c: New file.
11196 * m4/truncl.m4: New file.
11197 * lib/math.in.h (truncl): New declaration.
11198 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
11200 * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
11202 * doc/functions/truncl.texi: Mention the 'truncl' module.
11204 2007-10-04 Bruno Haible <bruno@clisp.org>
11206 * modules/truncf-tests: New file.
11207 * tests/test-truncf.c: New file.
11209 * modules/truncf: New file.
11210 * lib/trunc.c: Make paramerizable through USE_* macros.
11211 * lib/truncf.c: New file.
11212 * m4/truncf.m4: New file.
11213 * lib/math.in.h (truncf): New declaration.
11214 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
11216 * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
11218 * doc/functions/truncf.texi: Mention the 'truncf' module.
11220 2007-10-03 Bruno Haible <bruno@clisp.org>
11222 * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
11223 augmentation also for tests modules.
11224 * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
11225 * modules/atexit-tests (Makefile.am): Likewise.
11226 * modules/binary-io-tests (Makefile.am): Likewise.
11227 * modules/c-strcase-tests (Makefile.am): Likewise.
11228 * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
11229 * modules/canonicalize-tests (Makefile.am): Likewise.
11230 * modules/closein-tests (Makefile.am): Likewise.
11231 * modules/fprintf-posix-tests (Makefile.am): Likewise.
11232 * modules/freadahead-tests (Makefile.am): Likewise.
11233 * modules/fseek-tests (Makefile.am): Likewise.
11234 * modules/fseeko-tests (Makefile.am): Likewise.
11235 * modules/ftell-tests (Makefile.am): Likewise.
11236 * modules/ftello-tests (Makefile.am): Likewise.
11237 * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
11238 * modules/isnanl-tests (Makefile.am): Likewise.
11239 * modules/lseek-tests (Makefile.am): Likewise.
11240 * modules/mbscasecmp-tests (Makefile.am): Likewise.
11241 * modules/mbscasestr-tests (Makefile.am): Likewise.
11242 * modules/mbschr-tests (Makefile.am): Likewise.
11243 * modules/mbscspn-tests (Makefile.am): Likewise.
11244 * modules/mbsncasecmp-tests (Makefile.am): Likewise.
11245 * modules/mbspbrk-tests (Makefile.am): Likewise.
11246 * modules/mbspcasecmp-tests (Makefile.am): Likewise.
11247 * modules/mbsrchr-tests (Makefile.am): Likewise.
11248 * modules/mbsspn-tests (Makefile.am): Likewise.
11249 * modules/mbsstr-tests (Makefile.am): Likewise.
11250 * modules/printf-posix-tests (Makefile.am): Likewise.
11251 * modules/snprintf-posix-tests (Makefile.am): Likewise.
11252 * modules/sprintf-posix-tests (Makefile.am): Likewise.
11253 * modules/tsearch-tests (Makefile.am): Likewise.
11254 * modules/uniname/uniname-tests (Makefile.am): Likewise.
11255 * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
11256 * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
11257 * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
11258 * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
11259 * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
11260 * modules/vfprintf-posix-tests (Makefile.am): Likewise.
11261 * modules/vprintf-posix-tests (Makefile.am): Likewise.
11262 * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
11263 * modules/vsprintf-posix-tests (Makefile.am): Likewise.
11264 * modules/xstrtoimax-tests (Makefile.am): Likewise.
11265 * modules/xstrtol-tests (Makefile.am): Likewise.
11266 * modules/xstrtoumax-tests (Makefile.am): Likewise.
11267 * modules/yesno-tests (Makefile.am): Likewise.
11269 2007-10-03 Bruno Haible <bruno@clisp.org>
11271 * modules/trunc-tests: New file.
11272 * tests/test-trunc.c: New file.
11274 * modules/trunc: New file.
11275 * lib/trunc.c: New file.
11276 * m4/trunc.m4: New file.
11277 * lib/math.in.h (trunc): New declaration.
11278 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
11280 * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
11282 * doc/functions/trunc.texi: Mention the 'trunc' module.
11284 2007-10-03 Bruno Haible <bruno@clisp.org>
11286 * tests/test-fpending.c: New file, mostly copied
11287 from coreutils/lib/t-fpending.c.
11288 * modules/fpending-tests: New file.
11290 2007-10-03 Bruno Haible <bruno@clisp.org>
11292 Port the stdio extensions to QNX (untested).
11293 * lib/fseterr.c (fseterr): Add support for QNX.
11294 * lib/fbufmode.c (fbufmode): Likewise.
11295 * lib/freadable.c (freadable): Likewise.
11296 * lib/fwritable.c (fwritable): Likewise.
11297 * lib/freading.c (freading): Likewise.
11298 * lib/fwriting.c (fwriting): Likewise.
11299 * lib/freadahead.c (freadahed): Likewise.
11300 * lib/fpurge.c (fpurge): Likewise.
11301 * lib/fseeko.c (rpl_fseeko): Likewise.
11303 2007-10-03 Bruno Haible <bruno@clisp.org>
11304 Jim Meyering <jim@meyering.net>
11305 Eric Blake <ebb9@byu.net>
11307 * doc/relocatable.texi: Use @command instead of @program.
11309 2007-10-02 Jim Meyering <jim@meyering.net>
11311 Perform one more "_.h" -> ".in.h" substitution.
11312 * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
11313 instead of unistd_.h here, too.
11315 2007-10-01 Bruno Haible <bruno@clisp.org>
11317 * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
11318 Needed for the alloca-opt module.
11320 2007-09-30 Bruno Haible <bruno@clisp.org>
11322 * lib/alloca.in.h: Renamed from lib/alloca_.h.
11323 * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
11325 * lib/argz.in.h: Renamed from lib/argz_.h.
11326 * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
11327 * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
11328 * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
11330 * lib/dirent.in.h: Renamed from lib/dirent_.h.
11331 * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
11333 * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
11334 * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
11336 * lib/float.in.h: Renamed from lib/float_.h.
11337 * modules/float (Files, Makefile.am): Use float.in.h instead of
11339 * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
11340 * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
11342 * lib/getopt.in.h: Renamed from lib/getopt_.h.
11343 * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
11345 * lib/glob.in.h: Renamed from lib/glob_.h.
11346 * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
11347 * lib/iconv.in.h: Renamed from lib/iconv_.h.
11348 * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
11350 * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
11351 * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
11353 * lib/locale.in.h: Renamed from lib/locale_.h.
11354 * modules/locale (Files, Makefile.am): Use locale.in.h instead of
11356 * lib/math.in.h: Renamed from lib/math_.h.
11357 * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
11358 * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
11359 * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
11360 of netinet_in_.h. Add dependency.
11361 * lib/poll.in.h: Renamed from lib/poll_.h.
11362 * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
11363 * lib/search.in.h: Renamed from lib/search_.h.
11364 * modules/search (Files, Makefile.am): Use search.in.h instead of
11366 * lib/signal.in.h: Renamed from lib/signal_.h.
11367 * modules/signal (Files, Makefile.am): Use signal.in.h instead of
11369 * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
11370 * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
11372 * lib/stdint.in.h: Renamed from lib/stdint_.h.
11373 * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
11375 * lib/stdio.in.h: Renamed from lib/stdio_.h.
11376 * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
11378 * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
11379 * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
11381 * lib/string.in.h: Renamed from lib/string_.h.
11382 * modules/string (Files, Makefile.am): Use string.in.h instead of
11384 * doc/gnulib-tool.texi (Initial import): Update.
11385 * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
11386 * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
11387 of sys_select_.h. Add dependency.
11388 * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
11389 * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
11391 * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
11392 * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
11394 * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
11395 * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
11397 * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
11398 * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
11400 * lib/time.in.h: Renamed from lib/time_.h.
11401 * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
11402 * lib/unistd.in.h: Renamed from lib/unistd_.h.
11403 * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
11405 * lib/wchar.in.h: Renamed from lib/wchar_.h.
11406 * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
11408 * lib/wctype.in.h: Renamed from lib/wctype_.h.
11409 * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
11411 * build-aux/bootstrap (slurp): Update.
11412 * lib/.cppi-disable: Update.
11414 2007-09-30 Bruno Haible <bruno@clisp.org>
11416 * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
11419 2007-09-30 Bruno Haible <bruno@clisp.org>
11421 * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
11423 2007-09-29 Bruno Haible <bruno@clisp.org>
11425 * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
11427 2007-09-29 Bruno Haible <bruno@clisp.org>
11429 * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
11430 * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
11431 * build-aux/install-reloc: Compile also areadlink.c.
11432 * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
11434 2007-09-29 Bruno Haible <bruno@clisp.org>
11436 * gnulib-tool (func_emit_initmacro_done): Indentation.
11438 2007-09-29 Bruno Haible <bruno@clisp.org>
11440 * README: Add CVS checkout update instructions.
11441 Info from Bob Proulx <bob@proulx.com>.
11443 2007-09-28 Eric Blake <ebb9@byu.net>
11445 Provide move-if-change.
11446 * build-aux/move-if-change: New file, based on best practice
11447 rather than any canonical upstream location.
11449 2007-09-28 Jim Meyering <jim@meyering.net>
11451 Fix canonicalize loop-detection corner case.
11452 Do not attempt to stat the symlink values stored via seen_triple.
11453 Without this, coreutils' tests/misc/readlink-fp-loop test would fail
11454 on linux-2.6.18, (but not 2.6.22).
11455 * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
11456 triple_compare. The former compares dev,ino,filename, while the latter
11457 would actually stat dirname(filename) when dev and ino were equal.
11458 * lib/hash-triple.c: Install <string.h>.
11460 (triple_compare_ino_str): New function.
11461 * lib/hash-triple.h (triple_compare_ino_str): Declare it.
11463 2007-09-28 Eric Blake <ebb9@byu.net>
11465 Enforce that AC_REPLACE_FUNCS files exist.
11466 * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
11467 override check for typos.
11469 Fix test-closein on Solaris 10.
11470 * tests/test-closein.c (main): Don't assume stdin can be inherited
11471 closed on all systems.
11472 * tests/test-closein.sh: Likewise.
11473 Reported by Piotr Tarnowski.
11475 2007-09-28 Jim Meyering <jim@meyering.net>
11477 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
11479 2007-09-27 Jim Meyering <jim@meyering.net>
11481 canonicalize: Avoid a false-positive cycle failure.
11482 * modules/canonicalize (Depends-on): Add file-set and hash-triple.
11483 Sort. Remove cycle-check.
11484 * lib/canonicalize.c: Include file-set.h and hash-triple.h,
11486 (seen_triple): New function.
11487 (canonicalize_filename_mode): Use it instead of cycle-check.
11488 * tests/test-canonicalize.c: Add a test for this bug.
11489 * tests/test-canonicalize.sh: Set up and run the test.
11491 New module, file-set, from coreutils.
11492 * modules/file-set: Define it.
11493 * lib/file-set.c, lib/file-set.h: Implement.
11495 New module, hash-triple, from coreutils.
11496 * modules/hash-triple: Define it.
11497 * lib/hash-triple.c, lib/hash-triple.h: Implement.
11499 2007-09-25 Eric Blake <ebb9@byu.net>
11501 Fix strerror on Interix.
11502 * lib/string_.h (strerror): Declare replacement.
11503 * doc/functions/strerror.texi (strerror): Document the Interix
11505 * modules/string (Makefile.am): Support new hooks.
11506 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
11507 * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
11508 gl_FUNC_STRERROR_SEPARATE.
11509 (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
11510 * lib/strerror.c (rpl_strerror): Provide replacement.
11511 * modules/strerror (Depends-on): Add string.
11512 (configure.ac): Detect use of module.
11513 * tests/test-strerror.c: New file.
11514 * modules/strerror-tests: New test module.
11515 * modules/argp (Depends-on): Add strerror.
11516 * modules/error (Depends-on): Likewise.
11517 Reported by Martin Koeppe.
11519 2007-09-24 Bruno Haible <bruno@clisp.org>
11521 * README: Update git instructions.
11523 2007-09-24 Eric Blake <ebb9@byu.net>
11525 Revert fpending breakage from 2007-09-08.
11526 * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
11529 2007-09-24 Jim Meyering <jim@meyering.net>
11531 filenamecat.c: Add a test.
11532 * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
11533 showing how the function works when DIR is the empty string.
11535 2007-09-21 Simon Josefsson <simon@josefsson.org>
11537 * tests/test-canonicalize.sh: Turn on executable bit.
11539 2007-09-19 Eric Blake <ebb9@byu.net>
11541 * README: Update CVS instructions.
11543 2007-09-18 Bruno Haible <bruno@clisp.org>
11545 * modules/areadlink: New file.
11546 * lib/areadlink.h (areadlink): New declaration.
11547 * lib/areadlink.c: New file, based on lib/xreadlink.c.
11549 2007-09-17 Jim Meyering <jim@meyering.net>
11551 * lib/savewd.c (ESTALE) [!defined]: Define.
11552 Reported to be required on Interix by Martin Koeppe.
11554 2007-09-17 Bruno Haible <bruno@clisp.org>
11556 * gnulib-tool (func_version): Use $version.
11558 2007-09-16 Bruno Haible <bruno@clisp.org>
11560 * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
11561 gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
11562 Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
11563 Reported by Greg Schafer <gschafer@zip.com.au>.
11565 2007-09-15 Bruno Haible <bruno@clisp.org>
11567 * gnulib-tool (sed): Try a little harder to make bash understand the
11569 Reported by Bruce Korb <bruce.korb@gmail.com>.
11571 2007-09-13 Eric Blake <ebb9@byu.net>
11573 * ChangeLog: Remove conflict markers.
11575 2007-09-13 Simon Josefsson <simon@josefsson.org>
11577 * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
11578 Reported by Bruno Haible <bruno@clisp.org>.
11580 2007-09-12 Bruno Haible <bruno@clisp.org>
11582 * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
11583 (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
11586 2007-09-12 Eric Blake <ebb9@byu.net>
11588 Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
11589 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
11590 Autoconf definition.
11591 * modules/euidaccess (Depends-on): Add extensions, for
11592 AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
11593 * modules/fnmatch (Depends-on): Likewise.
11594 * modules/getaddrinfo (Depends-on): Likewise.
11595 * modules/getdelim (Depends-on): Likewise.
11596 * modules/getline (Depends-on): Likewise.
11597 * modules/getsubopt (Depends-on): Likewise.
11598 * modules/gettext (Depends-on): Likewise.
11599 * modules/group-member (Depends-on): Likewise.
11600 * modules/mbchar (Depends-on): Likewise.
11601 * modules/memmem (Depends-on): Likewise.
11602 * modules/mempcpy (Depends-on): Likewise.
11603 * modules/memrchr (Depends-on): Likewise.
11604 * modules/pagealign_alloc (Depends-on): Likewise.
11605 * modules/readutmp (Depends-on): Likewise.
11606 * modules/stpcpy (Depends-on): Likewise.
11607 * modules/stpncpy (Depends-on): Likewise.
11608 * modules/strchrnul (Depends-on): Likewise.
11609 * modules/strndup (Depends-on): Likewise.
11610 * modules/strsep (Depends-on): Likewise.
11611 * modules/strverscmp (Depends-on): Likewise.
11612 * modules/vasprintf (Depends-on): Likewise.
11613 * modules/wcwidth (Depends-on): Likewise.
11614 * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
11615 obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
11616 * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
11617 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
11618 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
11619 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
11620 * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
11621 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
11622 * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
11623 * m4/mbchar.m4 (gl_MBCHAR): Likewise.
11624 * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
11625 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
11626 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
11627 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
11628 * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
11629 * m4/readutmp.m4 (gl_READUTMP): Likewise.
11630 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
11631 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
11632 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
11633 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
11634 * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
11635 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
11636 * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
11637 * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
11638 * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
11639 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
11640 * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
11641 so that lock.m4 can be used in gettext without extensions module.
11643 2007-09-11 Bruno Haible <bruno@clisp.org>
11645 * m4/isc-posix.m4: Remove file.
11646 Suggested by Eric Blake.
11648 2007-09-11 Eric Blake <ebb9@byu.net>
11650 * ChangeLog: Restore lines accidentally truncated 2007-04-06.
11652 2007-09-10 Bruno Haible <bruno@clisp.org>
11654 * posix-modules: Fix typo in error message.
11655 Reported by Matt <mkraai@beckman.com>.
11657 2007-09-09 Bruno Haible <bruno@clisp.org>
11659 * doc/functions/getdelim.texi: Update list of platforms lacking the
11661 * doc/functions/getline.texi: Likewise.
11663 2007-09-09 Jim Meyering <jim@meyering.net>
11665 * lib/hash.c (hash_initialize): Detect calloc failure.
11666 Reported by Bruno Haible.
11668 2007-09-09 Bruno Haible <bruno@clisp.org>
11670 * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
11671 malloc or realloc fails.
11673 2007-09-09 Bruno Haible <bruno@clisp.org>
11675 * modules/getcwd (Depends-on): Add malloc-posix.
11676 * modules/glob (Depends-on): Likewise.
11677 * modules/putenv (Depends-on): Likewise.
11678 * modules/strdup (Depends-on): Likewise.
11679 * modules/getdelim (Depends-on): Add realloc-posix.
11680 * modules/read-file (Depends-on): Likewise.
11682 2007-09-09 Bruno Haible <bruno@clisp.org>
11684 * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
11685 (gl_FUNC_MALLOC_POSIX): Require it.
11686 * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
11687 * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
11688 * modules/realloc (Files): Add m4/malloc.m4.
11689 * modules/calloc (Files): Likewise.
11691 2007-09-09 Bruno Haible <bruno@clisp.org>
11693 * modules/malloc-posix: New file.
11694 * modules/malloc (Depends-on): Add malloc-posix.
11695 * lib/malloc.c: Include errno.h.
11696 (rpl_malloc): Merge the requirements of a glibc-compatible malloc
11697 and a POSIX-compatible malloc into a single function. Set ENOMEM
11698 when returning NULL.
11699 * m4/malloc.m4: New file.
11700 * doc/functions/malloc.texi: Mention the malloc-posix module.
11701 * lib/stdlib_.h (malloc): New declaration.
11702 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
11703 GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
11704 * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
11705 and HAVE_MALLOC_POSIX.
11707 2007-09-09 Bruno Haible <bruno@clisp.org>
11709 * modules/realloc-posix: New file.
11710 * modules/realloc (Depends-on): Add realloc-posix.
11711 * lib/realloc.c: Include errno.h.
11712 (rpl_realloc): Merge the requirements of a glibc-compatible realloc
11713 and a POSIX-compatible realloc into a single function. Set ENOMEM
11714 when returning NULL.
11715 * m4/realloc.m4: New file.
11716 * doc/functions/realloc.texi: Mention the realloc-posix module.
11717 * lib/stdlib_.h (realloc): New declaration.
11718 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
11719 GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
11720 * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
11721 and HAVE_REALLOC_POSIX.
11723 2007-09-09 Bruno Haible <bruno@clisp.org>
11725 * modules/calloc-posix: New file.
11726 * modules/calloc (Depends-on): Add calloc-posix.
11727 * lib/calloc.c: Include errno.h.
11728 (rpl_calloc): Merge the requirements of a glibc-compatible calloc
11729 and a POSIX-compatible calloc into a single function. Set ENOMEM
11730 when returning NULL.
11731 * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
11732 * doc/functions/calloc.texi: Mention the calloc-posix module.
11733 * lib/stdlib_.h (calloc): New declaration.
11734 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
11735 GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
11736 * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
11737 and HAVE_CALLOC_POSIX.
11739 2007-09-09 Bruno Haible <bruno@clisp.org>
11741 Allow for modules to show an arbitrary notice.
11742 * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
11743 * gnulib-tool: New option --extract-notice.
11744 (func_usage): Document it.
11745 (sed_extract_prog): Update.
11746 (func_get_notice): New function.
11747 (func_modules_notice): New function.
11748 (func_import, func_create_testdir): Invoke it.
11749 Suggested by Jim Meyering.
11751 2007-09-09 Bruno Haible <bruno@clisp.org>
11753 * gnulib-tool: New options --verbose, --quiet.
11754 (func_usage): Document them.
11755 (verbose): New variable.
11756 (func_execute_command): New function.
11757 (func_import): Don't show the module list and the file list if
11759 (func_create_testdir): Likewise. Use func_execute_command.
11760 (func_create_megatestdir): Use func_execute_command.
11762 2007-09-08 Bruno Haible <bruno@clisp.org>
11764 * gnulib-tool (func_import): Prefer rsync over wget when available,
11765 for fetching the PO files.
11767 2007-09-08 Bruno Haible <bruno@clisp.org>
11769 * posix-modules: New file. Portions copied from gnulib-tool.
11770 * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
11772 2007-09-08 Jim Meyering <jim@meyering.net>
11774 Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
11775 * lib/fpending.h: Rename from __fpending.h.
11776 * lib/fpending.c: Rename from __fpending.c.
11777 Include "fpending.h", not "__fpending.h".
11778 * lib/__fpending.h, lib/__fpending.c: Remove files.
11779 * modules/fpending (Files): Reflect new file names.
11780 * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
11782 2007-09-08 Bruno Haible <bruno@clisp.org>
11784 * m4/inttypes-h.m4: Remove stub file.
11786 2007-09-07 Simon Josefsson <simon@josefsson.org>
11788 * doc/headers/stdint.texi: Discuss #include_next issue.
11790 2007-09-06 Paul Eggert <eggert@cs.ucla.edu>
11792 * build-aux/bootstrap: Remove obsolete comment about wget --help.
11794 2007-09-06 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
11796 * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
11799 2007-09-03 Jim Meyering <jim@meyering.net>
11801 New module: git-version-gen.
11802 * modules/git-version-gen: New file.
11804 Import changes from coreutils for bootstrap script.
11806 * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
11808 bootstrap: uses rsync to download the .po files
11809 * build-aux/bootstrap (po_download_command_format): New global.
11810 (download_po_files): Use rsync.
11811 (update_po_files): Don't remove .po files after download,
11812 so future rsync runs can take advantage of the copies.
11814 * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
11816 Solve the unnecessary-.po-file-regeneration problem once and for all.
11817 * build-aux/bootstrap (download_po_files): New function, renamed from
11818 get_translations. Now, downloads, but doesn't update LINGUAS.
11819 (update_po_files): New function.
11821 bootstrap: Ignore more.
11822 * build-aux/bootstrap (symlink_to_dir): Add a directory name like
11823 uniwidth to e.g., lib/.gitignore.
11824 (slurp): Handle the sys_stat_.h -> sys mapping, too.
11826 * build-aux/bootstrap: New setting: vc_ignore.
11827 (insert_sorted_if_absent): Create $file if absent.
11828 Adapt to new, possibly empty, list: $vc_ignore.
11830 bootstrap: generate more ignorable names
11831 * build-aux/bootstrap (slurp): When generating ignorable names,
11832 also map .sin to .sed, .gperf to .c, and .y to .c.
11834 2007-09-03 Jim Meyering <jim@meyering.net>
11836 * build-aux/git-version-gen: New file, from coreutils. For details, see
11837 http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
11839 2007-09-02 Bruno Haible <bruno@clisp.org>
11841 Fix mis-recognition of 'mcs' on QNX 6.
11842 * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
11843 output contains the string "Mono".
11844 * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
11845 Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
11847 2007-09-01 Bruno Haible <bruno@clisp.org>
11849 Fix collision between uniwidth/* and linebreak modules.
11850 * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
11851 u32_width): Remove declarations.
11852 * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
11853 (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
11854 streq3, streq2, streq1, streq0): Remove functions.
11855 (STREQ): Remove macro.
11856 (is_cjk_encoding): Remove function.
11857 (nonspacing_table_data, nonspacing_table_ind): Remove constants.
11858 (uc_width, u8_width, u16_width, u32_width): Remove functions.
11859 * modules/linebreak (Depends-on): Add streq, uniwidth/width.
11860 * NEWS: Document the change.
11862 2007-09-01 Bruno Haible <bruno@clisp.org>
11864 * lib/streq.h: Add double-inclusion guard.
11866 2007-09-01 Karl Berry <karl@gnu.org>
11868 * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
11870 2007-08-28 Jim Meyering <jim@meyering.net>
11872 Rename mreadlink_with_size to areadlink_with_size.
11873 * NEWS: Document the change.
11874 * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
11875 * lib/areadlink-with-size.c (areadlink_with_size): ...this.
11876 * lib/mreadlink.h: Rename this to...
11877 * lib/areadlink.h: ...this.
11878 * modules/mreadlink-with-size: Rename this to...
11879 * modules/areadlink-with-size: ...this.
11880 * lib/canonicalize.c: Reflect the renaming.
11881 * modules/canonicalize: Likewise.
11883 2007-08-26 Bruno Haible <bruno@clisp.org>
11885 * gnulib-tool (func_import): When deciding which files to remove,
11886 consider also dangling symbolic links.
11887 Reported by Eric Blake.
11889 2007-08-26 Bruno Haible <bruno@clisp.org>
11891 * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
11893 2007-08-23 Simon Josefsson <simon@josefsson.org>
11895 * lib/readline.c: Don't include getline.h, the prototype is now
11898 2007-08-23 Jim Meyering <jim@meyering.net>
11901 * lib/getdelim.c (getdelim): Don't bother to save/restore errno
11902 around the funlockfile call, since funlockfile never sets errno.
11903 Don't set errno upon failed realloc.
11905 2007-08-22 Eric Blake <ebb9@byu.net>
11908 * lib/getdelim.c (getdelim): Revert regression that required *n to
11909 be 0 when *lineptr is NULL. Preserve errno across funlockfile.
11910 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
11911 getdelim, rather than whether implementation is missing.
11912 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
11913 * lib/stdio_.h (getline): Also declare if replacement is
11915 * doc/functions/getdelim.texi: New file.
11916 * doc/functions/getline.texi: Likewise.
11917 * doc/gnulib.texi (Function Substitutes): Add new files.
11918 Reported by Bruno Haible.
11920 2007-08-22 Ludovic Courtès <ludo@gnu.org>
11922 * users.txt: Add Guile.
11924 2007-08-22 Eric Blake <ebb9@byu.net>
11926 * tests/test-getdelim.c (main): Use remove, not unlink.
11927 * tests/test-getline.c (main): Likewise.
11929 Move getline and getdelim into stdio.h, per POSIX 200x.
11930 * modules/getline (Files): Remove getline.h.
11931 (Depends-on): Add stdio.
11932 (configure.ac): Add module indicator.
11933 * modules/getdelim (Files): Remove getdelim.h.
11934 (Depends-on): Add stdio.
11935 (configure.ac): Add module indicator.
11936 * modules/stdio (Makefile.am): Work with new indicators.
11937 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
11938 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
11939 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
11940 * lib/getdelim.h: Delete.
11941 * lib/getline.h: Delete.
11942 * lib/stdio_.h (getdelim, getline): Declare.
11943 * modules/getdelim-tests: New module.
11944 * modules/getline-tests: Likewise.
11945 * tests/test-getdelim.c: New file.
11946 * tests/test-getline.c: Likewise.
11947 * NEWS: Document the change.
11948 * lib/getline.c: Update choice of header.
11949 * lib/csharpcomp.c: Likewise.
11950 * lib/getpass.c: Likewise.
11951 * lib/javacomp.c: Likewise.
11952 * lib/javaversion.c: Likewise.
11953 * lib/yesno.c: Likewise.
11954 * lib/getdelim.c: Likewise.
11955 (getdelim): Set errno on failure, and avoid memory leak.
11957 2007-08-19 Bruno Haible <bruno@clisp.org>
11959 * modules/closein (Depends-on): Add freadahead.
11960 * lib/closein.c: Include freadahead.h.
11961 (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
11964 2007-08-19 Bruno Haible <bruno@clisp.org>
11966 * modules/freadahead-tests: New file.
11967 * tests/test-freadahead.sh: New file.
11968 * tests/test-freadahead.c: New file.
11970 * modules/freadahead: New file.
11971 * lib/freadahead.h: New file.
11972 * lib/freadahead.c: New file.
11973 * MODULES.html.sh (File stream based Input/Output): Add freadahead,
11974 fbufmode, fpurge, freadable, fwritable.
11976 2007-08-19 Eric Blake <ebb9@byu.net>
11978 Test yesno in combination with closein.
11979 * lib/yesno.c (yesno): Document use of stdin.
11980 * modules/yesno-tests (Files): New module.
11981 * tests/test-yesno.c (main): New file.
11982 * tests/test-yesno.sh: Likewise.
11984 2007-08-19 Bruno Haible <bruno@clisp.org>
11986 * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
11987 * lib/fseeko.c (rpl_fseeko): Likewise.
11988 * lib/fseterr.c (fseterr): Likewise.
11990 2007-08-19 Bruno Haible <bruno@clisp.org>
11992 * tests/test-lseek.c (main): Disable a test for BeOS.
11993 * doc/functions/lseek.texi: Document the BeOS bug.
11995 2007-08-19 Bruno Haible <bruno@clisp.org>
11996 Eric Blake <ebb9@byu.net>
11998 * lib/lseek.c: Include <sys/stat.h>.
11999 (rpl_lseek): Add workaround code also for Unix platforms.
12001 * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
12002 * doc/functions/lseek.texi: Document BeOS definiency.
12004 2007-08-18 Bruno Haible <bruno@clisp.org>
12006 * modules/fstrcmp-tests: New file.
12007 * tests/test-fstrcmp.c: New file.
12009 2007-08-18 Bruno Haible <bruno@clisp.org>
12011 * modules/fstrcmp: New file, from GNU gettext with modifications.
12012 * lib/fstrcmp.h: New file, from GNU gettext.
12013 * lib/fstrcmp.c: New file, from GNU gettext.
12014 * MODULES.html.sh (String handling): Add fstrcmp.
12016 2007-08-18 Bruno Haible <bruno@clisp.org>
12018 * lib/diffseq.h (struct context): Change type of 'heuristic' field to
12020 (diag, compareseq): Remove const from the ctxt argument.
12021 (USE_HEURISTIC): Undefine at the end.
12023 2007-08-18 Jim Meyering <jim@meyering.net>
12025 New file: lib/idcache.h
12026 * NEWS: Mention the addition.
12027 * modules/idcache (Files): Add lib/idcache.h
12028 * lib/idcache.c: Include "idcache.h".
12029 Don't include <sys/types.h>.
12030 Add a FIXME comment.
12031 Move file-scoped "static" declarations to the top.
12032 * lib/idcache.h: New file. Include <sys/types.h> here, instead.
12034 2007-08-17 Bruno Haible <bruno@clisp.org>
12035 and Paul Eggert <eggert@cs.ucla.edu>
12037 * MODULES.html.sh: Add diffseq.
12038 * modules/diffseq: New file.
12039 * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
12040 extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
12042 2007-08-15 Paul Eggert <eggert@cs.ucla.edu>
12044 Import changes from coreutils for bootstrap script.
12046 2007-07-21 Paul Eggert <eggert@cs.ucla.edu>
12048 * build-aux/bootstrap (slurp): Work even in environments where
12049 "ls" defaults to "ls -A". Put in a FIXME, though, since the
12050 current code does not slurp files whose names start with ".", and
12051 this looks like it might be a troublesome area.
12053 2007-07-11 Jim Meyering <jim@meyering.net>
12055 If there's a GPL vN copyright comment, require that N == 3.
12057 2007-07-08 Jim Meyering <jim@meyering.net>
12059 Run the coreutils-specific code only if tests/Makefile.am.in exists.
12060 * build-aux/bootstrap (mam_template): Move definition out of loop.
12062 Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
12064 * build-aux/bootstrap (symlink_to_dir): Rename function from
12065 symlink_to_gnulib. Add a directory parameter. Update all
12067 (cp_mark_as_generated): Also check for -- and link to -- files in
12070 2007-07-08 Jim Meyering <jim@meyering.net>
12072 Adapt to deeper hierarchy in gnulib.
12073 * build-aux/bootstrap (symlink_to_dir): If the destination
12074 directory doesn't exist, create it. This is required at least for
12075 "lib/uniwidth/cjk.h".
12077 2007-05-15 Jim Meyering <jim@meyering.net>
12079 * build-aux/bootstrap: Now that generated Makefile.am files
12080 are no longer under version control, they must be created at
12083 2007-08-14 Ben Pfaff <blp@gnu.org>
12085 * lib/count-one-bits.h: Add comments. From Bruno Haible.
12087 2007-08-14 Paul Eggert <eggert@cs.ucla.edu>
12089 * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
12090 given the changes below.
12091 (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'. Work
12092 even on hosts that have padding bits beyond the supported 64.
12094 2007-08-10 Paul Eggert <eggert@cs.ucla.edu>
12096 * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
12097 * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
12098 xstrtol.c. Include getopt.h, since xstrtol_fatal's signature
12100 (xstrtol_error): Remove.
12101 (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
12102 but with a different signature.
12103 (ATTRIBUTE_NORETURN, __attribute__): New macros.
12104 * lib/xstrtol-error.c: Include exitfail.h.
12105 (xstrtol_fatal): New function, with a different signature from the
12106 old xstrtol_error, so that the caller need not worry about passing
12107 in an exit status, or about storage management of the option argument.
12108 (xstrtol_error): Now a static function. Redo signature to
12109 implement xstrtol_fatal. Output the correct number of hyphens in
12110 front of the option so that the caller need not worry about
12111 storage management.
12113 (_): Remove; not used now.
12114 * modules/xstrtol: Depend on getopt.
12115 * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
12116 of old STRTOL_FATAL_ERROR macro.
12117 * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
12119 * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
12120 * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
12122 2007-08-08 Eric Blake <ebb9@byu.net>
12124 * lib/xstrtol-error.c: Add missing include.
12126 Move xstrtol messages into gnulib domain, when --pobase is used.
12127 * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
12128 * lib/xstrtol-error.c (xstrtol_error): ...into new file.
12129 * modules/xstrtol (Files): Distribute new file.
12130 * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
12131 * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
12132 * tests/test-xstrtol.c: ...into new file.
12133 * tests/test-xstrtoul.c: Also test xstrtoul.
12134 * tests/test-xstrtoimax.c: Also test xstrtoimax.
12135 * tests/test-xstrtoumax.c: Also test xstrtoumax.
12136 * tests/test-xstrtol.sh: Drive the tests.
12137 * tests/test-xstrtoimax.sh: Likewise.
12138 * tests/test-xstrtoumax.sh: Likewise.
12139 * modules/xstrtol-tests: New module.
12140 * modules/xstrtoimax-tests: Likewise.
12141 * modules/xstrtoumax-tests: Likewise.
12143 2007-08-08 Jim Meyering <jim@meyering.net>
12145 New function: mfile_name_concat.
12146 * lib/filenamecat.c (mfile_name_concat): New function, just like
12147 file_name_concat, but return NULL upon failure rather than exiting
12149 * lib/filenamecat.h: Declare it.
12151 2007-08-07 Bruno Haible <bruno@clisp.org>
12153 * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
12154 instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
12156 Reported by Eric Blake.
12158 2007-08-07 Simon Josefsson <simon@josefsson.org>
12160 * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
12161 * modules/crypto/arcfour (License): Likewise.
12162 * modules/crypto/des-tests (License): Likewise.
12163 * modules/crypto/gc-arctwo-tests (License): Likewise.
12164 * modules/crypto/gc-des-tests (License): Likewise.
12165 * modules/crypto/gc-hmac-md5-tests (License): Likewise.
12166 * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
12167 * modules/crypto/gc-md2-tests (License): Likewise.
12168 * modules/crypto/gc-md4-tests (License): Likewise.
12169 * modules/crypto/gc-md5-tests (License): Likewise.
12170 * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
12171 * modules/crypto/gc-rijndael-tests (License): Likewise.
12172 * modules/crypto/gc-sha1-tests (License): Likewise.
12173 * modules/crypto/gc-tests (License): Likewise.
12174 * modules/crypto/hmac-md5 (License): Likewise.
12175 * modules/crypto/hmac-sha1 (License): Likewise.
12176 * modules/crypto/md2-tests (License): Likewise.
12177 * modules/crypto/md4-tests (License): Likewise.
12178 * modules/crypto/md5 (License): Likewise.
12179 * modules/crypto/rijndael (License): Likewise.
12180 * modules/crypto/sha1 (License): Likewise.
12181 * modules/memxor (License): Likewise.
12183 2007-08-06 Paul Eggert <eggert@cs.ucla.edu>
12184 and Bruno Haible <bruno@clisp.org>
12186 * NEWS: Describe interface changes to human, xstrtol.
12187 * lib/human.h: Include <xstrtol.h>.
12188 (human_options): Return enum strtol_error, not int. Remove
12189 bool arg; take int * instead.
12190 * lib/human.c: Don't include "gettext.h".
12191 (_): Remove; no longer used.
12192 Don't include <xstrtol.h>, since human.h does it.
12193 (human_options): Adjust to abovementioned interface changes.
12194 Do not report error to stderr; that's now the caller's
12196 * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
12198 * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
12199 Str, Argument_type_string. All uses changed. Put " argument"
12200 in diagnostics to make them clearer. Change wording of suffix
12201 message for clarity.
12202 (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
12203 Argument_type_string.
12204 (STRTOL_FATAL_WARN): Remove; no longer used.
12205 * modules/human (Depends-on): Remove gettext-h.
12207 2007-08-06 Simon Josefsson <simon@josefsson.org>
12209 * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
12211 2007-07-31 Bruno Haible <bruno@clisp.org>
12213 * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
12214 are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
12215 Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
12217 2007-07-31 Bruno Haible <bruno@clisp.org>
12219 * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
12220 Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
12222 2007-07-30 Bruno Haible <bruno@clisp.org>
12224 * modules/base64 (License): Use the synonymous term "LGPLv2+".
12225 * modules/c-ctype (License): Likewise.
12226 * modules/c-strcase (License): Likewise.
12227 * modules/check-version (License): Likewise.
12228 * modules/iconv (License): Likewise.
12229 * modules/iconv_open (License): Likewise.
12230 * modules/read-file (License): Likewise.
12231 * modules/striconv (License): Likewise.
12232 * modules/strverscmp (License): Likewise.
12233 * modules/vasprintf (License): Likewise.
12234 * modules/crypto/des (License): Likewise.
12235 * modules/crypto/gc (License): Likewise.
12236 * modules/crypto/gc-arcfour (License): Likewise.
12237 * modules/crypto/gc-arctwo (License): Likewise.
12238 * modules/crypto/gc-des (License): Likewise.
12239 * modules/crypto/gc-hmac-md5 (License): Likewise.
12240 * modules/crypto/gc-hmac-sha1 (License): Likewise.
12241 * modules/crypto/gc-md2 (License): Likewise.
12242 * modules/crypto/gc-md4 (License): Likewise.
12243 * modules/crypto/gc-md5 (License): Likewise.
12244 * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
12245 * modules/crypto/gc-random (License): Likewise.
12246 * modules/crypto/gc-rijndael (License): Likewise.
12247 * modules/crypto/gc-sha1 (License): Likewise.
12248 * modules/crypto/md2 (License): Likewise.
12249 * modules/crypto/md4 (License): Likewise.
12251 2007-07-30 Jim Meyering <jim@meyering.net>
12253 * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
12254 set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
12255 it has valid stat data. This bug would cause du not to count the
12256 sizes of inaccessible directories.
12257 Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
12258 in <http://bugzilla.redhat.com/250077>.
12260 2007-07-25 Peter O'Gorman <peter@pogma.com>
12261 Bruno Haible <bruno@clisp.org>
12263 * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
12264 really works. Needed because AIX 4.3 "xlc -E" doesn't understand
12265 #include_next, gives a diagnostic about it, but reports no error in
12267 Reported by Gary V. Vaughan <gary@thewrittenword.com>.
12269 2007-07-24 Ben Pfaff <blp@gnu.org>
12271 Improve name: "count-one-bits" is better than "popcount".
12272 * MODULES.html.sh: Update name.
12273 * lib/popcount.h: Renamed lib/count-one-bits.h.
12274 (popcount): Renamed count_one_bits.
12275 (popcountl): Renamed count_one_bits_l.
12276 (popcountll): Renamed count_one_bits_ll.
12277 * m4/popcount.m4: Renamed m4/count-one-bits.m4.
12278 * modules/popcount: Renamed module/count-one-bits.
12279 * modules/popcount-tests: Renamed module/count-one-bits-tests.
12280 * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
12282 2007-07-23 Ben Pfaff <blp@gnu.org>
12284 * lib/popcount.h (popcount32): Reduce size of constants, to allow
12285 better code generation, and add U to large constants to avoid
12286 warnings, in non-GCC case.
12287 Suggested by Bruno Haible.
12289 2007-07-23 Ben Pfaff <blp@gnu.org>
12291 * lib/popcount.h: Use verify_true instead of if...abort.
12292 * modules/popcount: Depend on verify module.
12293 Suggested by Jim Meyering.
12295 2007-07-23 Bruno Haible <bruno@clisp.org>
12297 * gnulib-tool (func_import): Create a .cvsignore file also when the
12298 directory is not yet in CVS but the toplevel directory is. When
12299 creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
12300 Reported by Karl Berry.
12302 2007-07-22 Ben Pfaff <blp@gnu.org>
12304 * lib/popcount.h: Use faster, branchless algorithm for non-GCC
12306 Suggested by Eric Blake.
12308 2007-07-22 Ben Pfaff <blp@gnu.org>
12310 New module: popcount.
12311 * MODULES.html.sh: Add popcount.
12312 * modules/popcount: New file.
12313 * modules/popcount-tests: New file.
12314 * tests/test-popcount.c: New file.
12315 * lib/popcount.h: New file.
12316 * m4/popcount.m4: New file.
12318 2007-07-22 Paul Eggert <eggert@cs.ucla.edu>
12320 * build-aux/announce-gen: Update to GPLv3.
12322 * build-aux/config.guess: Update from config.
12324 2007-07-21 Bruno Haible <bruno@clisp.org>
12326 * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
12327 * lib/verror.c (_) [ENABLE_NLS]: Likewise.
12329 2007-07-20 Jim Meyering <jim@meyering.net>
12331 * check-module: Diagnose a self-dependency.
12333 2007-07-19 Bruno Haible <bruno@clisp.org>
12335 * gnulib-tool (func_import): Don't abort if pobase or po_domain is
12337 Reported by Eric Blake.
12339 2007-07-18 Bruno Haible <bruno@clisp.org>
12341 * gnulib-tool: New options --po-base, --po-domain.
12342 (func_usage): Document them.
12343 (pobase, po_domain): New variables.
12344 (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
12345 DEFAULT_TEXT_DOMAIN.
12346 (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
12347 (func_import): Consider pobase and po_domain. Create a po/ directory.
12348 (func_create_testdir): Set pobase and po_domain to empty.
12349 * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
12350 * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
12352 2007-07-18 Bruno Haible <bruno@clisp.org>
12354 * gnulib-tool (func_get_automake_snippet): Synthesize also an
12355 EXTRA_DIST augmentation for files in build-aux/.
12357 2007-07-16 Bruno Haible <bruno@clisp.org>
12359 * modules/lseek (License): Use the synonymous term "LGPLv2+".
12360 * modules/getdelim (License): Likewise.
12362 2007-07-16 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
12364 * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
12365 * modules/d-type (License): Likewise.
12366 * modules/extensions (License): Likewise.
12367 * modules/fnmatch (License): Likewise.
12368 * modules/fseeko (License): Likewise.
12369 * modules/getaddrinfo (License): Likewise.
12370 * modules/getline (License): Likewise.
12371 * modules/getlogin_r (License): Likewise.
12372 * modules/getpass (License): Likewise.
12373 * modules/gettimeofday (License): Likewise.
12374 * modules/glob (License): Likewise.
12375 * modules/inet_ntop (License): Likewise.
12376 * modules/malloc (License): Likewise.
12377 * modules/malloca (License): Likewise.
12378 * modules/memmem (License): Likewise.
12379 * modules/mempcpy (License): Likewise.
12380 * modules/memset (License): Likewise.
12381 * modules/minmax (License): Likewise.
12382 * modules/mktime (License): Likewise.
12383 * modules/netinet_in (License): Likewise.
12384 * modules/pathmax (License): Likewise.
12385 * modules/poll (License): Likewise.
12386 * modules/regex (License): Likewise.
12387 * modules/snprintf (License): Likewise.
12388 * modules/stdbool (License): Likewise.
12389 * modules/stdint (License): Likewise.
12390 * modules/stdio (License): Likewise.
12391 * modules/strcase (License): Likewise.
12392 * modules/strcasestr (License): Likewise.
12393 * modules/strdup (License): Likewise.
12394 * modules/string (License): Likewise.
12395 * modules/strndup (License): Likewise.
12396 * modules/strnlen (License): Likewise.
12397 * modules/strpbrk (License): Likewise.
12398 * modules/strptime (License): Likewise.
12399 * modules/strsep (License): Likewise.
12400 * modules/sys_select (License): Likewise.
12401 * modules/sys_socket (License): Likewise.
12402 * modules/sys_stat (License): Likewise.
12403 * modules/sys_time (License): Likewise.
12404 * modules/time (License): Likewise.
12405 * modules/time_r (License): Likewise.
12406 * modules/timegm (License): Likewise.
12407 * modules/unistd (License): Likewise.
12408 * modules/vsnprintf (License): Likewise.
12409 * modules/wctype (License): Likewise.
12411 2007-07-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12413 * modules/argz (License): LGPLv2+.
12415 2007-07-15 Karl Berry <karl@gnu.org>
12417 * doc/gnulib.texi: revise node structure per new fdl.texi.
12419 2007-07-14 Bruno Haible <bruno@clisp.org>
12421 * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
12423 * lib/uniname/uninames.h: Regenerated.
12425 2007-07-14 Karl Berry <karl@gnu.org>
12427 * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
12428 omitting sectioning and index commands.
12430 2007-07-13 Bruno Haible <bruno@clisp.org>
12432 New gnulib-tool option --more-symlinks.
12433 * gnulib-tool (func_usage): Document --more-symlinks.
12434 (do_copyrights): New variable.
12435 Recognize option --more-symlinks.
12436 (func_import): Don't add a copyright notice transform to
12437 sed_transform_lib_file if do_copyrights is empty.
12439 2007-07-13 Bruno Haible <bruno@clisp.org>
12441 * lib/vasnprintf.c (decimal_point_char): Define also if
12442 (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
12443 && !NEED_PRINTF_DIRECTIVE_A.
12444 Reported by Clemens Koller <clemens.koller@anagramm.de> via
12445 Gary V. Vaughan <gary@gnu.org>.
12447 2007-07-13 Paul Eggert <eggert@cs.ucla.edu>
12449 * lib/inttypes_.h: Undo previous change, since it was fixed
12450 in a different way in the 2007-07-02 fix to m4/inttypes.m4.
12452 2007-07-13 Bruno Haible <bruno@clisp.org>
12454 * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
12455 misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
12457 2007-07-13 Jim Meyering <jim@meyering.net>
12459 df: Don't fail for Tru64's "file-on-file mount".
12460 * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
12461 so we fall through and use statfs instead. Details here:
12462 <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
12463 Reported by Albert Chin.
12465 2007-07-13 Bruno Haible <bruno@clisp.org>
12467 * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
12468 * modules/configmake (License): Likewise.
12469 * modules/gettext (License): Likewise.
12470 * modules/gettext-h (License): Likewise.
12471 * modules/include_next (License): Likewise.
12472 * modules/link-warning (License): Likewise.
12473 * modules/localcharset (License): Likewise.
12474 * modules/localename (License): Likewise.
12475 * modules/lock (License): Likewise.
12476 * modules/relocatable-lib-lgpl (License): Likewise.
12477 * modules/size_max (License): Likewise.
12478 * modules/vasnprintf (License): Likewise.
12479 * modules/wchar (License): Likewise.
12480 * modules/xsize (License): Likewise.
12482 2007-07-13 Bruno Haible <bruno@clisp.org>
12484 * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
12485 (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
12487 2007-07-12 Bruno Haible <bruno@clisp.org>
12489 * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
12490 in the modules files.
12492 2007-07-11 Karl Berry <karl@gnu.org>
12494 * MODULES.html.sh (func_module): use
12495 sed -e '\|^'"${includefile}"'$|d'
12496 instead of /.../d, to avoid errors on $includefile's containing /.
12498 2007-07-10 Sergey Poznyakoff <gray@gnu.org.ua>
12500 * gnulib-tool (func_import): Avoid duplication of --avoid
12502 (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
12503 names to `_' in variable names.
12505 2007-07-10 Eric Blake <ebb9@byu.net>
12507 * lib/version-etc.c (version_etc_va): Default to GPLv3+.
12508 * NEWS: Document this change.
12510 2007-07-08 Bruno Haible <bruno@clisp.org>
12512 Update to Unicode 5.0.
12513 * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
12514 U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
12515 U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
12516 U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
12517 U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
12518 U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
12519 U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
12520 U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
12521 U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
12522 U+10A3F, U+1D242..U+1D244.
12523 (nonspacing_table_ind): Update.
12524 (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
12525 U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
12527 2007-07-08 Bruno Haible <bruno@clisp.org>
12529 Update to Unicode 5.0.
12530 * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
12531 code transform. Extend the name index field of unicode_name_to_code and
12532 unicode_code_to_name from 16 to 24 bits.
12533 * lib/uniname/uniname.c (unicode_character_name,
12534 unicode_name_character): Add the range 0x12xxx to the code transform.
12535 * lib/uniname/uninames.h: Regenerated.
12536 * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
12538 2007-07-07 Bruno Haible <bruno@clisp.org>
12540 * modules/wcwidth-tests: New file.
12541 * tests/test-wcwidth.c: New file.
12543 Work around MacOS X wcwidth() bug.
12544 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
12545 * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
12546 (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
12547 original wcwidth in non-UTF-8 locales.
12548 * modules/wcwidth (Depends-on): Add localcharset, streq,
12550 * doc/functions/wcwidth.texi: Update.
12552 2007-07-07 Bruno Haible <bruno@clisp.org>
12554 * lib/wchar_.h: Include the GL_LINK_WARNING macro.
12555 (wcwidth): New declaration.
12556 * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
12558 (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
12559 here. Prepare for creating <wchar.h> unconditionally.
12560 * modules/wchar (Depends-on): Add link-warning.
12561 (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
12562 REPLACE_WCWIDTH, and GL_LINK_WARNING.
12563 * lib/wcwidth.h: Remove file.
12564 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
12565 HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
12566 * modules/wcwidth (Files): Remove lib/wcwidth.h.
12567 (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
12568 (Include): Replace wcwidth.h with <wchar.h>.
12569 * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
12570 * lib/mbchar.h: Don't include wcwidth.h.
12571 * lib/mbswidth.c: Likewise.
12572 * NEWS: Mention the change.
12574 2007-07-07 Bruno Haible <bruno@clisp.org>
12576 * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
12577 * lib/wcwidth.h: Don't include wctype.h. Replace inline function
12578 definition with an external declaration.
12579 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
12580 defined as a function. Remove AC_C_INLINE requirement.
12581 * modules/wcwidth (Files): Add lib/wcwidth.c.
12582 (Makefile.am): Remove redundant statement.
12584 2007-07-07 Bruno Haible <bruno@clisp.org>
12586 * MODULES.html.sh (Unicode string functions): Add the new modules.
12588 * tests/uniwidth/test-u32-strwidth.c: New file.
12589 * modules/uniwidth/u32-strwidth-tests: New file.
12591 * lib/uniwidth/u32-strwidth.c: New file.
12592 * modules/uniwidth/u32-strwidth: New file.
12594 * tests/uniwidth/test-u16-strwidth.c: New file.
12595 * modules/uniwidth/u16-strwidth-tests: New file.
12597 * lib/uniwidth/u16-strwidth.c: New file.
12598 * modules/uniwidth/u16-strwidth: New file.
12600 * tests/uniwidth/test-u8-strwidth.c: New file.
12601 * modules/uniwidth/u8-strwidth-tests: New file.
12603 * lib/uniwidth/u8-strwidth.c: New file.
12604 * modules/uniwidth/u8-strwidth: New file.
12606 * tests/uniwidth/test-u32-width.c: New file.
12607 * modules/uniwidth/u32-width-tests: New file.
12609 * lib/uniwidth/u32-width.c: New file.
12610 * modules/uniwidth/u32-width: New file.
12612 * tests/uniwidth/test-u16-width.c: New file.
12613 * modules/uniwidth/u16-width-tests: New file.
12615 * lib/uniwidth/u16-width.c: New file.
12616 * modules/uniwidth/u16-width: New file.
12618 * tests/uniwidth/test-u8-width.c: New file.
12619 * modules/uniwidth/u8-width-tests: New file.
12621 * lib/uniwidth/u8-width.c: New file.
12622 * modules/uniwidth/u8-width: New file.
12624 * tests/uniwidth/test-uc_width.c: New file.
12625 * modules/uniwidth/width-tests: New file.
12627 * lib/uniwidth/width.c: New file, from GNU libiconv.
12628 * lib/uniwidth/cjk.h: New file, from GNU libiconv.
12629 * modules/uniwidth/width: New file.
12631 * lib/uniwidth.h: New file, from GNU libiconv.
12632 * modules/uniwidth/base: New file.
12634 2007-07-07 Bruno Haible <bruno@clisp.org>
12636 * lib/uniname.h: New file, from GNU gettext.
12637 * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
12638 * lib/uniname/uninames.h: New file, from GNU gettext.
12639 * lib/uniname/uniname.c: New file, from GNU gettext.
12640 * tests/uniname/test-uninames.sh: New file.
12641 * tests/uniname/test-uninames.c: New file, from GNU gettext.
12642 * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
12643 * modules/uniname/base: New file.
12644 * modules/uniname/uniname: New file.
12645 * modules/uniname/uniname-tests: New file.
12646 * MODULES.html.sh (Unicode string functions): Add the new modules.
12648 2007-07-06 Bruno Haible <bruno@clisp.org>
12650 * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
12652 2007-07-06 Bruno Haible <bruno@clisp.org>
12654 * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
12655 a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
12656 includes <cygwin/sys_time.h> which includes <sys/select.h> which
12657 include <sys/time.h>.
12658 Reported by Eric Blake.
12660 2007-07-06 Eric Blake <ebb9@byu.net>
12662 Fix testing canonicalize on cygwin.
12663 * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
12664 Revert patch from 2007-06-19.
12665 * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
12666 canonicalize module is also in use.
12667 * tests/test-canonicalize.c: New file.
12668 * tests/test-canonicalize.sh: Likewise.
12669 * modules/canonicalize-tests: Likewise.
12671 2007-07-06 Jim Meyering <jim@meyering.net>
12673 * lib/getugroups.c (getugroups): Detect getgrent failure.
12674 Adjust comment to reflect reality: this function may return -1.
12676 2007-07-05 Sergey Poznyakoff <gray@gnu.org.ua>
12678 * build-aux/bootstrap (TP_URL,get_translations): Update to use
12679 the new TP address.
12681 (gnulib_mk): New variable.
12683 2007-07-05 Jim Meyering <jim@meyering.net>
12685 Don't let endgrent clobber errno, no matter how improbable.
12686 * lib/getugroups.c (getugroups): Save and restore errno around
12689 Close the group DB even when failing with 2^31 or more members.
12690 * lib/getugroups.c (getugroups): Don't return without calling endgrent.
12692 2007-07-04 Jim Meyering <jim@meyering.net>
12694 * lib/getugroups.h: New file.
12695 * lib/getugroups.c: Include "getugroups.h".
12696 Remove uses of "register" keyword.
12697 Move local variable, "cp", down into scope where used.
12698 Give "username" parameter the "const" attribute.
12699 * modules/getugroups (Files): Add lib/getugroups.h
12701 2007-07-04 Karl Berry <karl@gnu.org>
12703 * MODULES.html.sh (func_all_modules): Complete rename of
12704 gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
12706 2007-07-02 Bruno Haible <bruno@clisp.org>
12708 * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
12709 mode, when inttypes.h comes from gnulib.
12710 Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
12712 2007-07-02 Simon Josefsson <simon@josefsson.org>
12714 * NEWS: Mention lgpl module name change.
12716 * modules/lgpl-2.1: Renamed from lgpl.
12718 * NEWS: Mention gpl module name change.
12720 * modules/gpl-3.0: New file, based on gpl-2.0.
12722 * modules/gpl-2.0: Renamed from gpl.
12724 * modules/gpl: Fix filename, doc/gpl.texi is now found at
12727 2007-07-02 Paul Eggert <eggert@cs.ucla.edu>
12729 * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
12730 #define __STDC_LIMIT_MACROS temporarily while including
12731 <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
12732 Problem reported by Joel E. Denny in
12733 <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
12735 2007-07-01 Bruno Haible <bruno@clisp.org>
12737 * lib/unistdio.h: New file.
12738 * lib/unistdio/u-asnprintf.h: New file.
12739 * lib/unistdio/u-asprintf.h: New file.
12740 * lib/unistdio/u-printf-args.c: New file.
12741 * lib/unistdio/u-printf-args.h: New file.
12742 * lib/unistdio/u-printf-parse.h: New file.
12743 * lib/unistdio/u-snprintf.h: New file.
12744 * lib/unistdio/u-sprintf.h: New file.
12745 * lib/unistdio/u-vasprintf.h: New file.
12746 * lib/unistdio/u-vsnprintf.h: New file.
12747 * lib/unistdio/u-vsprintf.h: New file.
12748 * lib/unistdio/ulc-asnprintf.c: New file.
12749 * lib/unistdio/ulc-asprintf.c: New file.
12750 * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
12751 * lib/unistdio/ulc-printf-parse.c: New file.
12752 * lib/unistdio/ulc-snprintf.c: New file.
12753 * lib/unistdio/ulc-sprintf.c: New file.
12754 * lib/unistdio/ulc-vasnprintf.c: New file.
12755 * lib/unistdio/ulc-vasprintf.c: New file.
12756 * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
12757 * lib/unistdio/ulc-vsnprintf.c: New file.
12758 * lib/unistdio/ulc-vsprintf.c: New file.
12759 * lib/unistdio/u8-asnprintf.c: New file.
12760 * lib/unistdio/u8-asprintf.c: New file.
12761 * lib/unistdio/u8-printf-parse.c: New file.
12762 * lib/unistdio/u8-snprintf.c: New file.
12763 * lib/unistdio/u8-sprintf.c: New file.
12764 * lib/unistdio/u8-vasnprintf.c: New file.
12765 * lib/unistdio/u8-vasprintf.c: New file.
12766 * lib/unistdio/u8-vsnprintf.c: New file.
12767 * lib/unistdio/u8-vsprintf.c: New file.
12768 * lib/unistdio/u8-u8-asnprintf.c: New file.
12769 * lib/unistdio/u8-u8-asprintf.c: New file.
12770 * lib/unistdio/u8-u8-snprintf.c: New file.
12771 * lib/unistdio/u8-u8-sprintf.c: New file.
12772 * lib/unistdio/u8-u8-vasnprintf.c: New file.
12773 * lib/unistdio/u8-u8-vasprintf.c: New file.
12774 * lib/unistdio/u8-u8-vsnprintf.c: New file.
12775 * lib/unistdio/u8-u8-vsprintf.c: New file.
12776 * lib/unistdio/u16-asnprintf.c: New file.
12777 * lib/unistdio/u16-asprintf.c: New file.
12778 * lib/unistdio/u16-printf-parse.c: New file.
12779 * lib/unistdio/u16-snprintf.c: New file.
12780 * lib/unistdio/u16-sprintf.c: New file.
12781 * lib/unistdio/u16-vasnprintf.c: New file.
12782 * lib/unistdio/u16-vasprintf.c: New file.
12783 * lib/unistdio/u16-vsnprintf.c: New file.
12784 * lib/unistdio/u16-vsprintf.c: New file.
12785 * lib/unistdio/u16-u16-asnprintf.c: New file.
12786 * lib/unistdio/u16-u16-asprintf.c: New file.
12787 * lib/unistdio/u16-u16-snprintf.c: New file.
12788 * lib/unistdio/u16-u16-sprintf.c: New file.
12789 * lib/unistdio/u16-u16-vasnprintf.c: New file.
12790 * lib/unistdio/u16-u16-vasprintf.c: New file.
12791 * lib/unistdio/u16-u16-vsnprintf.c: New file.
12792 * lib/unistdio/u16-u16-vsprintf.c: New file.
12793 * lib/unistdio/u32-asnprintf.c: New file.
12794 * lib/unistdio/u32-asprintf.c: New file.
12795 * lib/unistdio/u32-printf-parse.c: New file.
12796 * lib/unistdio/u32-snprintf.c: New file.
12797 * lib/unistdio/u32-sprintf.c: New file.
12798 * lib/unistdio/u32-vasnprintf.c: New file.
12799 * lib/unistdio/u32-vasprintf.c: New file.
12800 * lib/unistdio/u32-vsnprintf.c: New file.
12801 * lib/unistdio/u32-vsprintf.c: New file.
12802 * lib/unistdio/u32-u32-asnprintf.c: New file.
12803 * lib/unistdio/u32-u32-asprintf.c: New file.
12804 * lib/unistdio/u32-u32-snprintf.c: New file.
12805 * lib/unistdio/u32-u32-sprintf.c: New file.
12806 * lib/unistdio/u32-u32-vasnprintf.c: New file.
12807 * lib/unistdio/u32-u32-vasprintf.c: New file.
12808 * lib/unistdio/u32-u32-vsnprintf.c: New file.
12809 * lib/unistdio/u32-u32-vsprintf.c: New file.
12810 * tests/unistdio/test-ulc-asnprintf1.c: New file.
12811 * tests/unistdio/test-ulc-asnprintf1.h: New file.
12812 * tests/unistdio/test-ulc-printf1.h: New file.
12813 * tests/unistdio/test-ulc-vasnprintf1.c: New file.
12814 * tests/unistdio/test-ulc-vasnprintf2.c: New file.
12815 * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
12816 * tests/unistdio/test-ulc-vasnprintf3.c: New file.
12817 * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
12818 * tests/unistdio/test-ulc-vasprintf1.c: New file.
12819 * tests/unistdio/test-ulc-vsnprintf1.c: New file.
12820 * tests/unistdio/test-ulc-vsprintf1.c: New file.
12821 * tests/unistdio/test-u8-asnprintf1.c: New file.
12822 * tests/unistdio/test-u8-asnprintf1.h: New file.
12823 * tests/unistdio/test-u8-printf1.h: New file.
12824 * tests/unistdio/test-u8-vasnprintf1.c: New file.
12825 * tests/unistdio/test-u8-vasnprintf2.c: New file.
12826 * tests/unistdio/test-u8-vasnprintf2.sh: New file.
12827 * tests/unistdio/test-u8-vasnprintf3.c: New file.
12828 * tests/unistdio/test-u8-vasnprintf3.sh: New file.
12829 * tests/unistdio/test-u8-vasprintf1.c: New file.
12830 * tests/unistdio/test-u8-vsnprintf1.c: New file.
12831 * tests/unistdio/test-u8-vsprintf1.c: New file.
12832 * tests/unistdio/test-u16-asnprintf1.c: New file.
12833 * tests/unistdio/test-u16-asnprintf1.h: New file.
12834 * tests/unistdio/test-u16-printf1.h: New file.
12835 * tests/unistdio/test-u16-vasnprintf1.c: New file.
12836 * tests/unistdio/test-u16-vasnprintf2.c: New file.
12837 * tests/unistdio/test-u16-vasnprintf2.sh: New file.
12838 * tests/unistdio/test-u16-vasnprintf3.c: New file.
12839 * tests/unistdio/test-u16-vasnprintf3.sh: New file.
12840 * tests/unistdio/test-u16-vasprintf1.c: New file.
12841 * tests/unistdio/test-u16-vsnprintf1.c: New file.
12842 * tests/unistdio/test-u16-vsprintf1.c: New file.
12843 * tests/unistdio/test-u32-asnprintf1.c: New file.
12844 * tests/unistdio/test-u32-asnprintf1.h: New file.
12845 * tests/unistdio/test-u32-printf1.h: New file.
12846 * tests/unistdio/test-u32-vasnprintf1.c: New file.
12847 * tests/unistdio/test-u32-vasnprintf2.c: New file.
12848 * tests/unistdio/test-u32-vasnprintf2.sh: New file.
12849 * tests/unistdio/test-u32-vasnprintf3.c: New file.
12850 * tests/unistdio/test-u32-vasnprintf3.sh: New file.
12851 * tests/unistdio/test-u32-vasprintf1.c: New file.
12852 * tests/unistdio/test-u32-vsnprintf1.c: New file.
12853 * tests/unistdio/test-u32-vsprintf1.c: New file.
12854 * modules/unistdio/base: New file.
12855 * modules/unistdio/u-printf-args: New file.
12856 * modules/unistdio/ulc-asnprintf: New file.
12857 * modules/unistdio/ulc-asprintf: New file.
12858 * modules/unistdio/ulc-fprintf: New file.
12859 * modules/unistdio/ulc-printf-parse: New file.
12860 * modules/unistdio/ulc-snprintf: New file.
12861 * modules/unistdio/ulc-sprintf: New file.
12862 * modules/unistdio/ulc-vasnprintf: New file.
12863 * modules/unistdio/ulc-vasprintf: New file.
12864 * modules/unistdio/ulc-vfprintf: New file.
12865 * modules/unistdio/ulc-vsnprintf: New file.
12866 * modules/unistdio/ulc-vsprintf: New file.
12867 * modules/unistdio/u8-asnprintf: New file.
12868 * modules/unistdio/u8-asprintf: New file.
12869 * modules/unistdio/u8-printf-parse: New file.
12870 * modules/unistdio/u8-snprintf: New file.
12871 * modules/unistdio/u8-sprintf: New file.
12872 * modules/unistdio/u8-vasnprintf: New file.
12873 * modules/unistdio/u8-vasprintf: New file.
12874 * modules/unistdio/u8-vsnprintf: New file.
12875 * modules/unistdio/u8-vsprintf: New file.
12876 * modules/unistdio/u8-u8-asnprintf: New file.
12877 * modules/unistdio/u8-u8-asprintf: New file.
12878 * modules/unistdio/u8-u8-snprintf: New file.
12879 * modules/unistdio/u8-u8-sprintf: New file.
12880 * modules/unistdio/u8-u8-vasnprintf: New file.
12881 * modules/unistdio/u8-u8-vasprintf: New file.
12882 * modules/unistdio/u8-u8-vsnprintf: New file.
12883 * modules/unistdio/u8-u8-vsprintf: New file.
12884 * modules/unistdio/u16-asnprintf: New file.
12885 * modules/unistdio/u16-asprintf: New file.
12886 * modules/unistdio/u16-printf-parse: New file.
12887 * modules/unistdio/u16-snprintf: New file.
12888 * modules/unistdio/u16-sprintf: New file.
12889 * modules/unistdio/u16-vasnprintf: New file.
12890 * modules/unistdio/u16-vasprintf: New file.
12891 * modules/unistdio/u16-vsnprintf: New file.
12892 * modules/unistdio/u16-vsprintf: New file.
12893 * modules/unistdio/u16-u16-asnprintf: New file.
12894 * modules/unistdio/u16-u16-asprintf: New file.
12895 * modules/unistdio/u16-u16-snprintf: New file.
12896 * modules/unistdio/u16-u16-sprintf: New file.
12897 * modules/unistdio/u16-u16-vasnprintf: New file.
12898 * modules/unistdio/u16-u16-vasprintf: New file.
12899 * modules/unistdio/u16-u16-vsnprintf: New file.
12900 * modules/unistdio/u16-u16-vsprintf: New file.
12901 * modules/unistdio/u32-asnprintf: New file.
12902 * modules/unistdio/u32-asprintf: New file.
12903 * modules/unistdio/u32-printf-parse: New file.
12904 * modules/unistdio/u32-snprintf: New file.
12905 * modules/unistdio/u32-sprintf: New file.
12906 * modules/unistdio/u32-vasnprintf: New file.
12907 * modules/unistdio/u32-vasprintf: New file.
12908 * modules/unistdio/u32-vsnprintf: New file.
12909 * modules/unistdio/u32-vsprintf: New file.
12910 * modules/unistdio/u32-u32-asnprintf: New file.
12911 * modules/unistdio/u32-u32-asprintf: New file.
12912 * modules/unistdio/u32-u32-snprintf: New file.
12913 * modules/unistdio/u32-u32-sprintf: New file.
12914 * modules/unistdio/u32-u32-vasnprintf: New file.
12915 * modules/unistdio/u32-u32-vasprintf: New file.
12916 * modules/unistdio/u32-u32-vsnprintf: New file.
12917 * modules/unistdio/u32-u32-vsprintf: New file.
12918 * modules/unistdio/ulc-asnprintf-tests: New file.
12919 * modules/unistdio/ulc-vasnprintf-tests: New file.
12920 * modules/unistdio/ulc-vasprintf-tests: New file.
12921 * modules/unistdio/ulc-vsnprintf-tests: New file.
12922 * modules/unistdio/ulc-vsprintf-tests: New file.
12923 * modules/unistdio/u8-asnprintf-tests: New file.
12924 * modules/unistdio/u8-vasnprintf-tests: New file.
12925 * modules/unistdio/u8-vasprintf-tests: New file.
12926 * modules/unistdio/u8-vsnprintf-tests: New file.
12927 * modules/unistdio/u8-vsprintf-tests: New file.
12928 * modules/unistdio/u16-asnprintf-tests: New file.
12929 * modules/unistdio/u16-vasnprintf-tests: New file.
12930 * modules/unistdio/u16-vasprintf-tests: New file.
12931 * modules/unistdio/u16-vsnprintf-tests: New file.
12932 * modules/unistdio/u16-vsprintf-tests: New file.
12933 * modules/unistdio/u32-asnprintf-tests: New file.
12934 * modules/unistdio/u32-vasnprintf-tests: New file.
12935 * modules/unistdio/u32-vasprintf-tests: New file.
12936 * modules/unistdio/u32-vsnprintf-tests: New file.
12937 * modules/unistdio/u32-vsprintf-tests: New file.
12938 * MODULES.html.sh (Unicode string functions): Add the new modules.
12940 2007-07-01 Bruno Haible <bruno@clisp.org>
12942 * lib/sprintf.c (sprintf): Limit the available length estimation,
12943 to avoid address wraparound.
12944 * lib/vsprintf.c (vsprintf): Likewise.
12945 * modules/sprintf-posix (Dependencies): Add stdint.
12946 * modules/vsprintf-posix (Dependencies): Likewise.
12948 2007-07-01 Bruno Haible <bruno@clisp.org>
12950 * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
12951 Windows PATH as well. Conservative double-quoting. Comments.
12953 2007-07-01 Bruno Haible <bruno@clisp.org>
12954 Eric Blake <ebb9@byu.net>
12955 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12957 * gnulib-tool (self_abspathname): Fix algorithm to cope with
12958 empty components in $PATH, denoting '.'.
12960 2007-07-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12962 * gnulib-tool: Fix indentation.
12963 (func_create_megatestdir): Likewise.
12964 Report by Bruno Haible.
12966 2007-06-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12968 Sync from Automake.
12969 * build-aux/gnupload: Fix shell portability issues with for loops.
12970 Report by Karl Berry.
12972 2007-06-29 Simon Josefsson <simon@josefsson.org>
12974 * build-aux/maint.mk (POURL): Use translationproject.org.
12976 2007-06-27 Simon Josefsson <simon@josefsson.org>
12977 Bruno Haible <bruno@clisp.org>
12979 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
12980 before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
12981 explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
12982 (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
12983 HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
12985 2007-06-27 Bruno Haible <bruno@clisp.org>
12987 * build-aux/config.rpath: Upgrade to libtool-1.5.24.
12988 * build-aux/config.libpath: Upgrade to libtool-1.5.24.
12990 2007-06-26 Karl Berry <karl@gnu.org>
12992 * MODULES.html.sh: remove xreadlink-with-size.
12994 2007-06-23 Paul Eggert <eggert@cs.ucla.edu>
12996 * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
12997 method that I hope also handles the double-include problem noted
12999 <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
13001 2007-06-23 Bruno Haible <bruno@clisp.org>
13003 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
13004 Don't let the 'mostlyclean' target fail if the last subdirectory could
13006 Reported by Karl Berry.
13008 2007-06-23 Bruno Haible <bruno@clisp.org>
13010 * gnulib-tool (echo): Add a speedier workaround for ksh.
13011 * tests/test-echo.sh: Likewise.
13013 2007-06-23 Bruno Haible <bruno@clisp.org>
13015 * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
13016 * tests/test-echo.sh: Likewise.
13018 2007-06-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13020 * gnulib-tool (IFS): Initialize early, so we don't set it to
13022 (self_abspathname): Rewrite algorithm to set it, reindent.
13023 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
13024 (func_create_megatestdir): Merge some sed scripts.
13026 2007-06-23 Paul Eggert <eggert@cs.ucla.edu>
13028 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
13029 exposed by Sun Studio 11 cc on Solaris 8.
13031 2007-06-22 Bruno Haible <bruno@clisp.org>
13033 * gnulib-tool (echo): Ensure the echo primitive does not interpret
13035 * tests/test-echo.sh: New file.
13037 2007-06-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13039 * gnulib-tool (func_add_or_update, func_create_testdir): Do not
13040 simplify `sed_replace_build_aux' scripts, they are portable but
13041 echoing them with `echo' is not.
13042 Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
13044 2007-06-21 Karl Berry <karl@gnu.org>
13046 * config/srclist.txt: guess we can't handle the licenses via
13047 srclist at the moment.
13049 2007-06-21 Paul Eggert <eggert@cs.ucla.edu>
13051 * MODULES.html.sh: Add include_next.
13052 * modules/include_next: New file.
13054 2007-06-20 Paul Eggert <eggert@cs.ucla.edu>
13056 * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
13058 (gl_CHECK_NEXT_HEADERS): New macro.
13059 * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
13060 the obsolescent gl_ABSOLUTE_HEADER.
13061 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
13062 * m4/float_h.m4 (gl_FLOAT_H): Likewise.
13063 * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
13064 * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
13065 * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
13066 * m4/math_h.m4 (gl_MATH_H): Likewise.
13067 * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
13068 * m4/search_h.m4 (gl_SEARCH_H): Likewise.
13069 * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
13070 * m4/stdint.m4 (gl_STDINT_H): Likewise.
13071 * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
13072 * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
13073 * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
13074 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
13075 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
13076 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
13077 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
13078 * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
13079 * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
13080 * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
13081 * m4/wchar.m4 (gl_WCHAR_H): Likewise.
13082 * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
13083 * m4/inttypes.m4 (gl_INTTYPES_H): Define
13084 _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
13085 builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
13086 * m4/stdint.m4 (gl_STDINT_H): Likewise, for
13087 _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
13088 * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
13089 rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
13090 * lib/float_.h: Likewise.
13091 * lib/inttypes_.h: Likewise.
13092 * lib/math_.h: Likewise.
13093 * lib/search_.h: Likewise.
13094 * lib/signal_.h: Likewise.
13095 * lib/stdint_.h: Likewise.
13096 * lib/stdio_.h: Likewise.
13097 * lib/stdlib_.h: Likewise.
13098 * lib/string_.h: Likewise.
13099 * lib/sys_stat_.h: Likewise.
13100 * lib/sys_time_.h: Likewise.
13101 * lib/time_.h: Likewise.
13102 * lib/unistd_.h: Likewise.
13103 * lib/wchar_.h: Likewise.
13104 * lib/wctype_.h: Likewise.
13105 * lib/dirent_.h: Likewise.
13106 * lib/iconv_.h: Likewise.
13107 * lib/locale_.h: Likewise.
13108 * lib/netinet_in_.h: Likewise.
13109 * lib/sys_select_.h: Likewise.
13110 * lib/sys_socket_.h: Likewise.
13111 * lib/sysexits_.h: Likewise.
13112 * modules/fcntl (Depends-on): Depend on include_next, not
13114 (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
13115 HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
13116 * modules/fchdir: Likewise.
13117 * modules/float: Likewise.
13118 * modules/iconv_open: Likewise.
13119 * modules/inttypes: Likewise.
13120 * modules/locale: Likewise.
13121 * modules/math: Likewise.
13122 * modules/netinet_in: Likewise.
13123 * modules/search: Likewise.
13124 * modules/signal: Likewise.
13125 * modules/stdint: Likewise.
13126 * modules/stdio: Likewise.
13127 * modules/stdlib: Likewise.
13128 * modules/string: Likewise.
13129 * modules/sys_select: Likewise.
13130 * modules/sys_socket: Likewise.
13131 * modules/sys_stat: Likewise.
13132 * modules/sys_time: Likewise.
13133 * modules/sysexits: Likewise.
13134 * modules/time: Likewise.
13135 * modules/unistd: Likewise.
13136 * modules/wchar: Likewise.
13137 * modules/wctype: Likewise.
13138 * modules/sys_stat: Change maintainer to "all".
13139 * modules/unistd: Likewise.
13141 2007-06-20 Karl Berry <karl@gnu.org>
13143 * config/srclist.txt: track www changes in license files.
13145 2007-06-20 Sergey Poznyakoff <gray@gnu.org.ua>
13147 * build-aux/bootstrap: Remove stray dot.
13148 Make sure build_aux settings are honored when linking
13149 gnulib_extra_files.
13151 2007-06-19 Eric Blake <ebb9@byu.net>
13153 * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
13154 Allow compilation on cygwin.
13156 2007-06-19 Jim Meyering <jim@meyering.net>
13158 xreadlink-with-size: Remove module. No longer used.
13159 Ex-callers now use xreadlink or mreadlink-with-size.
13160 * modules/xreadlink-with-size: Remove module.
13161 * lib/xreadlink-with-size.c: Remove file.
13162 * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
13163 (xreadlink): Remove inaccurate comment. The one in xreadlink.c,
13164 just before the function definition *is* accurate.
13166 Eliminate one way canonicalize_filename_mode could exit.
13167 * lib/canonicalize.c (canonicalize_filename_mode):
13168 Use mreadlink_with_size, not xreadlink_with_size.
13170 2007-06-18 Paul Eggert <eggert@cs.ucla.edu>
13172 Detect porting problems to FreeBSD/arm, which has time_t wider than
13173 long int. Original problem reported for GNU diff by Xin Li in
13174 <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
13175 * modules/getdate (Depends-on): Add intprops, verify.
13176 * lib/getdate.y: Include intprops.h, verify.h. Verify that time_t
13177 is an integer type no wider than long int.
13179 2007-06-18 Jim Meyering <jim@meyering.net>
13181 New module: mreadlink-with-size.
13182 * MODULES.html.sh: Add mreadlink-with-size.
13183 * modules/mreadlink-with-size: New module
13184 * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
13185 not xreadlink-with-size.
13186 * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
13188 2007-06-16 Bruno Haible <bruno@clisp.org>
13190 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
13191 * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
13192 Reported by Gary V. Vaughan <gary@gnu.org>.
13194 2007-06-15 Paul Eggert <eggert@cs.ucla.edu>
13196 Revamp lchown so that it lives in unistd.h where it belongs.
13197 * lib/lchown.h: Remove.
13198 * lib/dirchownmod.c: Don't include lib/lchown.h.
13199 * lib/fchownat.c: Likewise.
13200 * lib/openat.c: Likewise.
13201 * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
13202 does not follow symlinks.
13203 (EOPNOTSUPP): Define if not defined.
13204 * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
13206 (lchown): New decl.
13207 * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
13208 Do not check for lchown decl.
13209 Set REPLACE_LCHOWN.
13210 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
13212 * modules/chown: Make it clear it follows symlinks.
13213 * modules/lchown: Make it clear it doesn't follow symlinks.
13214 (Files): Remove lib/lchown.h
13215 (Depends-on): Add unistd.
13216 (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
13217 (Include): Include <unistd.h>, not "lchown.h".
13218 * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
13221 2007-06-15 Jim Meyering <jim@meyering.net>
13223 Change license (GPL to LGPL) of fsusage and dependents.
13224 * modules/fsusage (License): Change to LGPL.
13225 * modules/full-read (License): Likewise.
13226 * modules/full-write (License): Likewise.
13227 * modules/safe-read (License): Likewise.
13228 * modules/safe-write (License): Likewise.
13230 2007-06-14 Ben Pfaff <blp@gnu.org>
13232 Missing part of allocsa -> malloca transition.
13233 * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
13236 2007-06-12 Bruno Haible <bruno@clisp.org>
13238 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
13239 to ia64, x86_64, i386.
13240 Reported by Eric Blake.
13242 2007-06-12 Bruno Haible <bruno@clisp.org>
13244 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
13245 cross-compiling to x86_64.
13247 2007-06-12 Paul Eggert <eggert@cs.ucla.edu>
13249 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
13250 glitch reported by Ralf Wildenhues in
13251 <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
13253 * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
13256 2007-06-11 Bruno Haible <bruno@clisp.org>
13258 * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
13259 replacement string.
13260 Reported by Eric Blake.
13262 2007-06-10 Bruno Haible <bruno@clisp.org>
13264 Prepare vasnprintf code for use with Unicode strings.
13265 * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
13266 (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
13268 (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
13269 a_u32_string variants.
13270 (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
13271 * lib/printf-args.c: Don't include config.h and the specification
13272 header if PRINTF_FETCHARGS is already defined.
13273 (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
13274 (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
13275 TYPE_U16_STRING, TYPE_U32_STRING.
13276 * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
13277 u16_directive, u16_directives, u32_directive, u32_directives): New
13279 (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
13281 * lib/printf-parse.c: Don't include config.h and the specification
13282 header if PRINTF_PARSE is already defined. Eliminate the set of
13283 parameters for WIDE_CHAR_VERSION; the user of this file must provide
13284 them now. Include c-ctype.h.
13285 (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
13286 directive and CHAR_T_ONLY_ASCII.
13287 * lib/vasnprintf.c: Don't include config.h and the specification header
13288 if VASNPRINTF is already defined.
13289 (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
13290 (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
13291 DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
13292 type. Handle the case that TCHAR_T and FCHAR_T are not of the same
13293 size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
13294 add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
13296 (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
13297 pad_ourselves also in this case, with the 'c' and 's' directives, and
13298 with a different notion of "width".
13299 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
13301 2007-06-10 Bruno Haible <bruno@clisp.org>
13303 * modules/unistr/u32-mbsnlen: New file.
13304 * lib/unistr/u32-mbsnlen.c: New file.
13306 * modules/unistr/u16-mbsnlen: New file.
13307 * lib/unistr/u16-mbsnlen.c: New file.
13309 * modules/unistr/u8-mbsnlen: New file.
13310 * lib/unistr/u8-mbsnlen.c: New file.
13312 * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
13315 2007-06-10 Bruno Haible <bruno@clisp.org>
13317 * lib/string_.h (mbsnlen): New declaration.
13318 * lib/mbsnlen.c: New file.
13319 * m4/mbsnlen.m4: New file.
13320 * modules/mbsnlen: New file.
13321 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
13322 * modules/string (string.h): Substitute GNULIB_MBSNLEN.
13323 * MODULES.html.sh (Internationalization functions): Add mbsnlen.
13325 2007-06-10 Bruno Haible <bruno@clisp.org>
13327 * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
13329 2007-06-10 Bruno Haible <bruno@clisp.org>
13331 * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
13332 * lib/mbuiter.h: Likewise.
13334 2007-06-10 Bruno Haible <bruno@clisp.org>
13336 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
13339 2007-06-10 Karl Berry <karl@gnu.org>
13341 * config/srclist.txt: remove gettext entries, Bruno prefers
13342 to update individually.
13344 2007-06-10 Bruno Haible <bruno@clisp.org>
13346 * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
13347 'maxlen'. Ensure only length + width bytes are allocated, not
13348 length + 1 + width.
13350 2007-06-09 Bruno Haible <bruno@clisp.org>
13352 * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
13353 (CHAR_T): Remove macro.
13354 (VASNPRINTF): Update.
13356 2007-06-09 Bruno Haible <bruno@clisp.org>
13358 * MODULES.html.sh (Unicode string functions): Add the new modules.
13360 * modules/uniconv/u32-conv-to-enc: New file.
13361 * lib/uniconv/u32-conv-to-enc.c: New file.
13362 * modules/uniconv/u32-conv-to-enc-tests: New file.
13363 * tests/uniconv/test-u32-conv-to-enc.c: New file.
13365 * modules/uniconv/u16-conv-to-enc: New file.
13366 * lib/uniconv/u16-conv-to-enc.c: New file.
13367 * lib/uniconv/u-conv-to-enc.h: New file.
13368 * modules/uniconv/u16-conv-to-enc-tests: New file.
13369 * tests/uniconv/test-u16-conv-to-enc.c: New file.
13371 * modules/uniconv/u8-conv-to-enc: New file.
13372 * lib/uniconv/u8-conv-to-enc.c: New file.
13373 * modules/uniconv/u8-conv-to-enc-tests: New file.
13374 * tests/uniconv/test-u8-conv-to-enc.c: New file.
13376 * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
13377 u32_conv_to_encoding): New declarations.
13379 2007-06-09 Bruno Haible <bruno@clisp.org>
13381 * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
13383 2007-06-09 Bruno Haible <bruno@clisp.org>
13385 Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
13386 * modules/malloca: Renamed from modules/allocsa, updated.
13387 * lib/malloca.h: Renamed from lib/allocsa.h, updated.
13388 * lib/malloca.c: Renamed from lib/allocsa.c, updated.
13389 * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
13390 * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
13391 * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
13392 * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
13393 * modules/xmalloca: Renamed from modules/xallocsa, updated.
13394 * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
13395 * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
13396 * modules/c-strcasestr (Depends-on): Update.
13397 * lib/c-strcasestr.c: Update.
13398 * modules/c-strstr (Depends-on): Update.
13399 * lib/c-strstr.c: Update.
13400 * modules/canonicalize-lgpl (Depends-on): Update.
13401 * lib/canonicalize-lgpl.c: Update.
13402 * modules/clean-temp (Depends-on): Update.
13403 * lib/clean-temp.c: Update.
13404 * modules/csharpcomp (Depends-on): Update.
13405 * lib/csharpcomp.c: Update.
13406 * modules/csharpexec (Depends-on): Update.
13407 * lib/csharpexec.c: Update.
13408 * modules/javacomp (Depends-on): Update.
13409 * lib/javacomp.c: Update.
13410 * modules/javaexec (Depends-on): Update.
13411 * lib/javaexec.c: Update.
13412 * modules/mbscasestr (Depends-on): Update.
13413 * lib/mbscasestr.c: Update.
13414 * modules/mbsstr (Depends-on): Update.
13415 * lib/mbsstr.c: Update.
13416 * modules/setenv (Depends-on): Update.
13417 * lib/setenv.c: Update.
13418 * modules/strcasestr (Depends-on): Update.
13419 * lib/strcasestr.c: Update.
13420 * modules/striconveha (Depends-on): Update.
13421 * lib/striconveha.c: Update.
13422 * modules/relocatable-prog-wrapper (Files): Update.
13423 * lib/relocwrapper.c: Update.
13424 * build-aux/install-reloc: Update.
13425 * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
13427 2007-06-08 Bruno Haible <bruno@clisp.org>
13430 * lib/fbufmode.c (fbufmode): Add special code for uClibc.
13431 * lib/fpurge.c (fpurge): Likewise.
13432 * lib/freading.c (freading): Likewise.
13433 * lib/fseeko.c (rpl_fseeko): Likewise.
13434 * lib/fseterr.c (fseterr): Likewise.
13435 * lib/fwriting.c (fwriting): Likewise.
13436 * tests/test-fflush.c (main): Avoid a failure on uClibc.
13438 2007-06-08 Bruno Haible <bruno@clisp.org>
13440 * m4/intlmacosx.m4: New file, extracted from gettext.m4.
13441 * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
13442 * modules/gettext (Files): Add m4/intlmacosx.m4.
13444 2007-06-07 Bruno Haible <bruno@clisp.org>
13446 * modules/localename-tests: New file.
13447 * tests/test-localename.c: New file.
13449 New module 'localename'.
13450 * lib/localename.h: New file.
13451 * lib/localename.c: New file, from GNU gettext.
13452 * m4/localename.m4: New file.
13453 * modules/localename: New file.
13455 2007-06-07 Bruno Haible <bruno@clisp.org>
13457 Work around the lack of <wchar.h> on some builds of uClibc.
13458 * doc/headers/wchar.texi: Update.
13459 * lib/wchar_.h: Include <wchar.h> only if it exists.
13460 * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
13461 * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
13462 (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
13464 * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
13465 * modules/mbfile (Depends-on): Add wchar.
13466 * modules/mbiter (Depends-on): Likewise.
13467 * modules/mbuiter (Depends-on): Likewise.
13468 Reported by Simon Josefsson.
13470 2007-06-06 Paul Eggert <eggert@cs.ucla.edu>
13472 Work around problem reported by Steven M. Schweda in
13473 <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
13474 Tru64 5.1B with the Compaq compiler environment installed declares
13475 an 'isblank' function but does not define it in the C library.
13476 * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
13477 * lib/regex_internal.h (isblank): Likewise.
13478 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
13479 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
13481 2007-06-05 Bruno Haible <bruno@clisp.org>
13483 Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
13485 * modules/printf-safe: New file.
13486 * modules/fprintf-posix (Depends-on): Add printf-safe.
13487 * modules/printf-posix (Depends-on): Likewise.
13488 * modules/snprintf-posix (Depends-on): Likewise.
13489 * modules/sprintf-posix (Depends-on): Likewise.
13490 * modules/vasnprintf-posix (Depends-on): Likewise.
13491 * modules/vasprintf-posix (Depends-on): Likewise.
13492 * modules/vfprintf-posix (Depends-on): Likewise.
13493 * modules/vprintf-posix (Depends-on): Likewise.
13494 * modules/vsnprintf-posix (Depends-on): Likewise.
13495 * modules/vsprintf-posix (Depends-on): Likewise.
13496 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
13497 AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
13498 non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
13499 "no" on i386, x86_64, ia64.
13500 * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
13501 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
13502 on i386, x86_64, ia64.
13503 * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
13504 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
13505 on i386, x86_64, ia64.
13506 * tests/test-vasnprintf-posix.c: Include float.h.
13507 (LDBL80_WORDS): New macro.
13508 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
13509 on i386, x86_64, ia64.
13510 * tests/test-vasprintf-posix.c: Include float.h.
13511 (LDBL80_WORDS): New macro.
13512 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
13513 on i386, x86_64, ia64.
13514 * tests/test-snprintf-posix.c: Include float.h.
13515 * tests/test-sprintf-posix.c: Likewise.
13516 * tests/test-vsnprintf-posix.c: Likewise.
13517 * tests/test-vsprintf-posix.c: Likewise.
13519 2007-06-05 Bruno Haible <bruno@clisp.org>
13521 Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
13522 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
13523 non-IEEE numbers on i386, x86_64, ia64.
13524 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
13525 * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
13526 * tests/test-isnanl.h: Include float.h.
13527 (main): Check also non-IEEE numbers on i386, x86_64, ia64.
13529 2007-06-05 Bruno Haible <bruno@clisp.org>
13531 * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
13532 also the %a / %A. Handle the %a / %A code before this extra handling.
13534 2007-06-05 Bruno Haible <bruno@clisp.org>
13536 * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
13537 NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
13539 2007-06-05 Bruno Haible <bruno@clisp.org>
13541 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
13542 typo in variable name.
13544 2007-06-05 Eric Blake <ebb9@byu.net>
13546 * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
13547 Reported by Simon Josefsson.
13549 2007-06-04 Bruno Haible <bruno@clisp.org>
13551 Avoid test failures on some PowerPC platforms.
13552 * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
13553 Define differently for PowerPC.
13554 * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
13555 Reported by Gary V. Vaughan <gary@gnu.org>.
13557 2007-06-02 Bruno Haible <bruno@clisp.org>
13559 Fix test-stdint failure on FreeBSD/ia64.
13560 * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
13561 PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
13562 WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
13563 * doc/headers/stdint.texi: Update.
13565 2007-06-01 Bruno Haible <bruno@clisp.org>
13567 * tests/test-binary-io.c (main): Pass a third argument to open().
13568 Reported by Gary V. Vaughan <gary@gnu.org>.
13570 2007-06-01 Bruno Haible <bruno@clisp.org>
13572 * doc/functions/frexpl.texi: Update for mingw.
13574 2007-06-01 Bruno Haible <bruno@clisp.org>
13576 * tests/test-lseek.c (main): Disable test of errno for invalid third
13578 * doc/functions/lseek.texi: Update.
13579 Reported by Gary V. Vaughan <gary@gnu.org>.
13581 2007-05-28 Bruno Haible <bruno@clisp.org>
13583 * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
13585 2007-05-31 Eric Blake <ebb9@byu.net>
13587 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
13590 2007-05-30 Eric Blake <ebb9@byu.net>
13591 and Bruno Haible <bruno@clisp.org>
13593 Work around mingw test failures exposed by m4-1.4.9b.
13594 * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
13595 * tests/test-unistd.c: Disable uid_t and git_t tests for the
13598 2007-05-30 Bruno Haible <bruno@clisp.org>
13600 * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
13601 assuming that they are closed. Needed on HP-UX 11.
13603 2007-05-29 Bruno Haible <bruno@clisp.org>
13605 Fix a problem with #include_next.
13606 * lib/dirent_.h: Split the double-inclusion guard.
13607 * lib/fcntl_.h: Likewise.
13608 * lib/float_.h: Likewise.
13609 * lib/iconv_.h: Likewise.
13610 * lib/inttypes_.h: Likewise.
13611 * lib/locale_.h: Likewise.
13612 * lib/math_.h: Likewise.
13613 * lib/netinet_in_.h: Likewise.
13614 * lib/search_.h: Likewise.
13615 * lib/signal_.h: Likewise.
13616 * lib/stdint_.h: Likewise.
13617 * lib/stdio_.h: Likewise.
13618 * lib/stdlib_.h: Likewise.
13619 * lib/string_.h: Likewise.
13620 * lib/sys_select_.h: Likewise.
13621 * lib/sys_socket_.h: Likewise.
13622 * lib/sys_stat_.h: Likewise.
13623 * lib/sys_time_.h: Likewise.
13624 * lib/sysexits_.h: Likewise.
13625 * lib/time_.h: Likewise.
13626 * lib/unistd_.h: Likewise.
13627 * lib/wchar_.h: Likewise.
13628 * lib/wctype_.h: Likewise.
13630 2007-05-29 Bruno Haible <bruno@clisp.org>
13632 * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
13635 2007-05-29 Bruno Haible <bruno@clisp.org>
13637 * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
13639 Reported by Eric Blake.
13641 2007-05-29 Bruno Haible <bruno@clisp.org>
13643 * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
13646 2007-05-29 Eric Blake <ebb9@byu.net>
13647 Bruno Haible <bruno@clisp.org>
13649 * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
13652 2007-05-28 Eric Blake <ebb9@byu.net>
13654 * modules/closein-tests (test_closein_LDADD): Support test on
13655 cygwin with libtool.
13657 2007-05-28 Bruno Haible <bruno@clisp.org>
13659 * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
13660 * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
13661 * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
13662 * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
13663 * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
13664 * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
13665 * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
13666 * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
13667 * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
13669 2007-05-28 Eric Blake <ebb9@byu.net>
13671 Unconditionally include <config.h> in unit tests.
13672 * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
13673 * tests/test-allocsa.c, tests/test-arcfour.c,
13674 tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
13675 tests/test-array_list.c, tests/test-array_oset.c,
13676 tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
13677 test-avltreehash_list.c, test-base64.c, test-binary-io.c,
13678 test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
13679 test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
13680 test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
13681 test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
13682 test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
13683 test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
13684 test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
13685 test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
13686 test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
13687 test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
13688 test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
13689 test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
13690 test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
13691 test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
13692 test-md5.c, test-memmem.c, test-printf-posix.c,
13693 test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
13694 test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
13695 test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
13696 test-strcasestr.c, test-striconv.c, test-striconveh.c,
13697 test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
13698 test-vasnprintf-posix2.c, test-vasnprintf.c,
13699 test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
13700 test-vfprintf-posix.c, test-vprintf-posix.c,
13701 test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
13702 test-xvasprintf.c: Likewise.
13704 2007-05-28 Bruno Haible <bruno@clisp.org>
13706 * gnulib-tool (func_import): Remember the --with-tests command-line
13707 option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
13708 Reported by Eric Blake.
13710 2007-05-28 Bruno Haible <bruno@clisp.org>
13712 * modules/ftell-tests: New file.
13713 * tests/test-ftell.c: New file, based on tests/test-ftello.c.
13714 * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
13716 * lib/ftell.c: New file.
13717 * modules/ftell: New file.
13718 * m4/ftell.m4: New file.
13719 * doc/functions/ftell.texi: Update.
13720 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
13722 * lib/stdio_.h (rpl_ftell): New declaration.
13723 * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
13726 2007-05-28 Eric Blake <ebb9@byu.net>
13728 * lib/allocsa.h (safe_alloca): Avoid compiler warning.
13730 2007-05-28 Bruno Haible <bruno@clisp.org>
13732 * modules/fseek-tests: New file.
13733 * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
13734 * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
13736 * lib/fseek.c: New file.
13737 * modules/fseek: New file.
13738 * m4/fseek.m4: New file.
13739 * doc/functions/fseek.texi: Update.
13740 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
13742 * lib/stdio_.h (rpl_fseek): New declaration.
13743 * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
13746 2007-05-28 Bruno Haible <bruno@clisp.org>
13748 * lib/stdio_.h (fflush): More comments.
13750 2007-05-28 Bruno Haible <bruno@clisp.org>
13752 * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
13755 2007-05-28 Eric Blake <ebb9@byu.net>
13757 Improve lseek module.
13758 * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
13759 * lib/unistd_.h (lseek): Scale back link warning message.
13760 * tests/test-lseek.c: Beef up test.
13761 * tests/test-lseek.sh: Exercise more facets of lseek.
13762 Reported by Bruno Haible.
13764 2007-05-28 Bruno Haible <bruno@clisp.org>
13766 * tests/test-unistd.c: Test all the types that <unistd.h> is expected
13769 2007-05-27 Bruno Haible <bruno@clisp.org>
13771 * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
13773 2007-05-27 Bruno Haible <bruno@clisp.org>
13775 * modules/openmp: New file.
13776 * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
13779 2007-05-26 Bruno Haible <bruno@clisp.org>
13781 * modules/chdir-long (Depends-on): Add fchdir.
13782 * modules/chdir-safer (Depends-on): Likewise.
13783 * modules/fts (Depends-on): Likewise.
13784 * modules/fts-lgpl (Depends-on): Likewise.
13785 * modules/openat (Depends-on): Likewise.
13786 * modules/savewd (Depends-on): Likewise.
13788 2007-05-24 Eric Blake <ebb9@byu.net>
13790 Fix lseek on mingw.
13791 * modules/lseek: New module.
13792 * m4/lseek.m4: New file.
13793 * lib/lseek.c: New file.
13794 * modules/lseek-tests: New file.
13795 * tests/test-lseek.c: New file.
13796 * tests/test-lseek.sh: New file.
13797 * MODULES.html.sh: Document lseek module.
13798 * modules/fflush (Depends-on): Add lseek, fseeko.
13799 * modules/fseeko (Depends-on): Likewise.
13800 * modules/ftello (Depends-on): Likewise.
13801 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
13803 * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
13805 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
13806 * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
13807 * lib/ftello.c (rpl_ftello): Likewise.
13808 * tests/test-fseeko.c (main): Test this.
13809 * tests/test-fseeko.sh: Likewise.
13810 * tests/test-ftello.c (main): Likewise.
13811 * tests/test-ftello.sh: Likewise.
13812 * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
13813 implies replacing fseek.
13814 * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
13816 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
13817 * modules/unistd (Makefile.am): Likewise.
13818 * lib/unistd_.h (lseek): Declare a replacement.
13819 * doc/functions/lseek.texi (lseek): Document this fix.
13820 * doc/functions/fseek.texi (fseek): Likewise.
13821 * doc/functions/ftell.texi (ftell): Likewise.
13823 2007-05-24 Bruno Haible <bruno@clisp.org>
13825 * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
13826 in the printed representation of a NaN.
13827 * tests/test-vasprintf-posix.c (test_function): Likewise.
13828 * tests/test-snprintf-posix.h (test_function): Likewise.
13829 * tests/test-sprintf-posix.h (test_function): Likewise.
13830 Reported by Eric Blake.
13832 2007-05-23 Eric Blake <ebb9@byu.net>
13834 Fix fseeko/ftello on cygwin 1.5.24.
13835 * doc/functions/fseeko.texi (fseeko): Document the fix.
13836 * doc/functions/ftello.texi (ftello): Document the fix.
13837 * doc/functions/stdin.texi (stdin): Document the cygwin bug.
13838 * doc/functions/stdout.text (stdout): New file.
13839 * doc/functions/stderr.text (stderr): New file.
13840 * doc/gnulib.texi (Function Substitutes): Use new files.
13841 * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
13843 * tests/test-ftello.c (main): Likewise for ftello.
13844 * tests/test-fseeko.sh: New file.
13845 * tests/test-ftello.sh: New file.
13846 * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
13847 with seekable stdin.
13848 * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
13849 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
13850 (gl_REPLACE_FSEEKO): New macro.
13851 * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
13852 * modules/fseeko (Files): Distribute fseeko.c.
13853 * modules/ftello (Files): Distribute ftello.c.
13854 * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
13856 * lib/ftello.c (rpl_ftello): New file.
13857 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
13859 (gl_STDIN_LARGE_OFFSET): New macro.
13860 * modules/stdio (Makefile.am): Perform the replacement.
13861 * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
13863 2007-05-23 Bruno Haible <bruno@clisp.org>
13865 * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
13866 GNULIB_POSIXCHECK is defined.
13868 2007-05-21 Bruno Haible <bruno@clisp.org>
13870 * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
13871 Check also the output for NaN arguments. When cross-compiling, guess
13873 * lib/vasnprintf.c: Update comments.
13874 * tests/test-vasnprintf-posix.c (strisnan): New function.
13875 (test_function): Use it.
13876 * tests/test-vasprintf-posix.c (strisnan): New function.
13877 (test_function): Use it.
13878 * tests/test-snprintf-posix.h (strisnan): New function.
13879 (test_function): Use it.
13880 * tests/test-sprintf-posix.h (strisnan): New function.
13881 (test_function): Use it.
13882 Reported by Eric Blake.
13884 2007-05-20 Bruno Haible <bruno@clisp.org>
13886 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
13887 numbers that fails on BeOS.
13888 * doc/functions/frexpl.texi: Update.
13890 2007-05-20 Jim Meyering <jim@meyering.net>
13892 * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
13893 forced upon us by glibc-2.6.
13895 2007-05-20 Bruno Haible <bruno@clisp.org>
13897 Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
13898 * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
13899 (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
13900 * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
13901 NEED_PRINTF_INFINITE.
13902 (is_infinitel): New function.
13903 (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
13904 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
13905 gl_PREREQ_VASNPRINTF_INFINITE.
13906 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
13907 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
13908 gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
13909 gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
13910 gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
13911 gl_PREREQ_VASNPRINTF_INFINITE.
13912 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
13913 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
13914 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
13915 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
13916 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
13917 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
13918 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
13919 * doc/functions/fprintf.texi: Update.
13920 * doc/functions/printf.texi: Update.
13921 * doc/functions/snprintf.texi: Update.
13922 * doc/functions/sprintf.texi: Update.
13923 * doc/functions/vfprintf.texi: Update.
13924 * doc/functions/vprintf.texi: Update.
13925 * doc/functions/vsnprintf.texi: Update.
13926 * doc/functions/vsprintf.texi: Update.
13928 2007-05-20 Bruno Haible <bruno@clisp.org>
13930 * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
13931 was not found in libc.
13932 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
13934 2007-05-20 Bruno Haible <bruno@clisp.org>
13936 * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
13937 printed as "-nan" instead of "nan".
13938 * tests/test-vasprintf-posix.c (test_function): Likewise.
13939 * tests/test-snprintf-posix.h (test_function): Likewise.
13940 * tests/test-sprintf-posix.h (test_function): Likewise.
13941 Needed for HP-UX 11.
13943 2007-05-20 Jim Meyering <jim@meyering.net>
13945 Fix buggy test for the fchownat-deref bug.
13946 * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
13947 symlink required for the run-test. Without it, this test would
13948 always declare that fchownat doesn't work, and client code would
13949 unnecessarily use the replacement function with fixed libc.
13950 (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
13951 Reported by Greg Schafer.
13953 2007-05-19 Bruno Haible <bruno@clisp.org>
13955 * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
13956 (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
13957 * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
13958 Needed for IRIX 6.5 and Solaris 2.5.1.
13960 2007-05-19 Bruno Haible <bruno@clisp.org>
13962 * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
13963 (test_function): Skip tests involving -0.0 on platforms where
13965 * tests/test-vasprintf-posix.c (have_minus_zero): New function.
13966 (test_function): Skip tests involving -0.0 on platforms where
13968 * tests/test-snprintf-posix.h (have_minus_zero): New function.
13969 (test_function): Skip tests involving -0.0 on platforms where
13971 * tests/test-sprintf-posix.h (have_minus_zero): New function.
13972 (test_function): Skip tests involving -0.0 on platforms where
13974 * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
13976 * tests/test-printf-posix.h (test_function): Likewise.
13977 * tests/test-printf-posix.output: Remove all -0.0 related results.
13978 Needed for IRIX 6.5.
13980 2007-05-19 Bruno Haible <bruno@clisp.org>
13982 * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
13983 printed as "nan0x7fffffff" instead of "nan".
13984 * tests/test-vasprintf-posix.c (test_function): Likewise.
13985 * tests/test-snprintf-posix.h (test_function): Likewise.
13986 * tests/test-sprintf-posix.h (test_function): Likewise.
13987 * tests/test-fprintf-posix.h (NaN): Remove macro.
13988 (test_function): Remove all NaN related tests.
13989 * tests/test-printf-posix.h (NaN): Remove macro.
13990 (test_function): Remove all NaN related tests.
13991 * tests/test-printf-posix.output: Remove all NaN related results.
13992 Needed for IRIX 6.5.
13994 2007-05-19 Bruno Haible <bruno@clisp.org>
13996 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
13997 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
13999 2007-05-19 Bruno Haible <bruno@clisp.org>
14001 * lib/float_.h: New file.
14002 * m4/float_h.m4: New file.
14003 * modules/float: New file.
14004 * modules/isnanl (Dependencies): Add float.
14005 * modules/isnanl-nolibm (Dependencies): Likewise.
14006 * modules/mathl (Dependencies): Likewise.
14007 * modules/printf-frexpl (Dependencies): Likewise.
14008 * modules/signbit (Dependencies): Likewise.
14009 * modules/vasnprintf (Dependencies): Likewise.
14010 * doc/headers/float.texi: Update.
14012 2007-05-19 Jim Meyering <jim@meyering.net>
14014 * lib/utimens.c (gl_futimens): Rename from futimens,
14015 now that glibc-2.6 declares futimens.
14016 * lib/utimens.h: Likewise.
14018 2007-05-19 Bruno Haible <bruno@clisp.org>
14020 Avoid test failures on mingw.
14021 * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
14022 * tests/test-printf-posix.sh: Likewise.
14023 * tests/test-vfprintf-posix.sh: Likewise.
14024 * tests/test-vprintf-posix.sh: Likewise.
14026 2007-05-19 Bruno Haible <bruno@clisp.org>
14028 Fix *printf result for NaN, Inf, -0.0 on mingw.
14029 * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
14030 * lib/vasnprintf.c: Include math.h and isnan.h.
14031 (is_infinite_or_zero): New function.
14032 (VASNPRINTF): Fix also the handling of infinite or zero 'double'
14033 values in the %f, %F, %e, %E, %g, %G directives.
14034 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
14035 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
14036 gl_PRINTF_INFINITE and test its result. Invoke
14037 gl_PREREQ_VASNPRINTF_INFINITE.
14038 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
14039 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
14040 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
14041 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
14042 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
14043 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
14044 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
14045 * doc/functions/fprintf.texi: Update.
14046 * doc/functions/printf.texi: Update.
14047 * doc/functions/snprintf.texi: Update.
14048 * doc/functions/sprintf.texi: Update.
14049 * doc/functions/vfprintf.texi: Update.
14050 * doc/functions/vprintf.texi: Update.
14051 * doc/functions/vsnprintf.texi: Update.
14052 * doc/functions/vsprintf.texi: Update.
14054 2007-05-19 Bruno Haible <bruno@clisp.org>
14056 * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
14057 (scale10_round_decimal_long_double): Inline scale10_round_long_double.
14058 Instead of multiplying with 10^k, set extra_zeroes to k.
14059 (scale10_round_long_double): Remove function.
14061 2007-05-18 Bruno Haible <bruno@clisp.org>
14063 * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
14064 introduced on 2007-05-06.
14066 2007-05-18 Bruno Haible <bruno@clisp.org>
14068 * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
14070 * tests/test-vasprintf-posix.c (test_function): Likewise.
14071 * tests/test-snprintf-posix.h (test_function): Likewise.
14072 * tests/test-sprintf-posix.h (test_function): Likewise.
14074 2007-05-18 Bruno Haible <bruno@clisp.org>
14076 * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
14077 (strmatch): New function.
14078 (test_function): Test the %f directive on numbers of various exponents.
14079 * tests/test-vasprintf-posix.c (SIZEOF): New macro.
14080 (strmatch): New function.
14081 (test_function): Test the %f directive on numbers of various exponents.
14082 * tests/test-snprintf-posix.h (strmatch): New function.
14083 (test_function): Test the %f directive on numbers of various exponents.
14084 * tests/test-sprintf-posix.h (strmatch): New function.
14085 (test_function): Test the %f directive on numbers of various exponents.
14086 * tests/test-snprintf-posix.c (SIZEOF): New macro.
14087 * tests/test-sprintf-posix.c (SIZEOF): New macro.
14088 * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
14089 * tests/test-vsprintf-posix.c (SIZEOF): New macro.
14091 2007-05-18 Bruno Haible <bruno@clisp.org>
14093 Add support for 'long double' number output.
14094 * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
14095 * lib/vasnprintf.c: Include math.h and float+.h.
14096 (mp_limb_t): New type.
14097 (GMP_LIMB_BITS): New macro.
14098 (mp_twolimb_t): New type.
14099 (GMP_TWOLIMB_BITS): New macro.
14101 (multiply, divide, convert_to_decimal, decode_long_double,
14102 scale10_round_long_double, scale10_round_decimal_long_double,
14103 floorlog10l): New functions.
14104 (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
14105 for the %f, %F, %e, %E, %g, %G directives.
14106 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
14107 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
14108 gl_PRINTF_LONG_DOUBLE and test its result. Invoke
14109 gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
14110 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
14111 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
14112 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
14113 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
14114 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
14115 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
14116 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
14117 * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
14118 * modules/snprintf-posix (Depends-on): Likewise.
14119 * modules/sprintf-posix (Depends-on): Likewise.
14120 * modules/vasnprintf-posix (Depends-on): Likewise.
14121 * modules/vasprintf-posix (Depends-on): Likewise.
14122 * modules/vfprintf-posix (Depends-on): Likewise.
14123 * modules/vsnprintf-posix (Depends-on): Likewise.
14124 * modules/vsprintf-posix (Depends-on): Likewise.
14125 * modules/vasnprintf (Files): Add lib/float+.h.
14126 * doc/functions/fprintf.texi: Update.
14127 * doc/functions/printf.texi: Update.
14128 * doc/functions/snprintf.texi: Update.
14129 * doc/functions/sprintf.texi: Update.
14130 * doc/functions/vfprintf.texi: Update.
14131 * doc/functions/vprintf.texi: Update.
14132 * doc/functions/vsnprintf.texi: Update.
14133 * doc/functions/vsprintf.texi: Update.
14135 2007-05-18 Bruno Haible <bruno@clisp.org>
14137 * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
14139 2007-05-18 Bruno Haible <bruno@clisp.org>
14141 * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
14142 for printing 64-bit integers. Needed for mingw.
14144 2007-05-18 Bruno Haible <bruno@clisp.org>
14146 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
14147 gl_FUNC_FREXPL_WORKS.
14148 * modules/printf-frexpl (Files): Add m4/frexpl.m4.
14150 2007-05-18 Bruno Haible <bruno@clisp.org>
14152 * modules/frexpl-nolibm-tests: New file.
14154 * modules/frexpl-nolibm: New file.
14155 * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
14157 2007-05-17 Paul Eggert <eggert@cs.ucla.edu>
14159 * lib/dirent_.h: Prefer #include_next <foo.h> to #include
14160 @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@. This works better with
14161 GCC 4.2, which otherwise issues a lot of warnings.
14162 * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
14163 * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
14165 * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
14166 * modules/iconv_open (iconv.h): Likewise.
14167 * modules/locale (locale.h): Likewise.
14168 * modules/netinet_in (netinet/in.h): Likewise.
14169 * modules/sys_select (sys_select.h): Likewise.
14170 * modules/sys_socket (sys/socket.h): Likewise.
14171 * modules/sys_stat (sys/stat.h): Likewise.
14172 * modules/sysexits (sysexits.h): Likewise.
14173 * modules/unistd (unistd.h): Likewise.
14175 2007-05-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14177 * modules/closein-tests (Makefile.am): Distribute
14180 2007-05-17 Bruno Haible <bruno@clisp.org>
14182 * tests/test-printf-posix.output: Renamed from
14183 tests/test-fprintf-posix.out.
14184 * modules/fprintf-posix-tests: Update.
14185 * modules/printf-posix-tests: Update.
14186 * modules/vfprintf-posix-tests: Update.
14187 * modules/vprintf-posix-tests: Update.
14188 * tests/test-fprintf-posix.sh: Update.
14189 * tests/test-printf-posix.sh: Update.
14190 * tests/test-vfprintf-posix.sh: Update.
14191 * tests/test-vprintf-posix.sh: Update.
14192 Reported by Ralf Wildenhues.
14194 2007-05-16 Paul Eggert <eggert@cs.ucla.edu>
14196 * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
14197 @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@. This works better with
14198 GCC 4.2, which otherwise issues a lot of warnings.
14199 * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
14200 * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
14201 * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
14202 * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
14203 it should no longer be needed.
14204 * lib/string_.h: Likewise.
14205 * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
14206 * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
14207 * modules/inttypes (inttypes.h): Likewise.
14208 * modules/math (math.h): Likewise.
14209 * modules/search (search.h): Likewise.
14210 * modules/signal (signal.h): Likewise.
14211 * modules/stdint (stdint.h): Likewise.
14212 * modules/stdio (stdio.h): Likewise.
14213 * modules/stdlib (stdlib.h): Likewise.
14214 * modules/string (string.h): Likewise.
14215 * modules/sys_time (sys/time.h): Likewise.
14216 * modules/time (time.h): Likewise.
14217 * modules/wchar (wchar.h): Likewise.
14218 * modules/wctype (wtype.h): Likewise.
14220 2007-05-16 Thien-Thi Nguyen <ttn@gnuvola.org> (tiny change)
14222 * doc/gnulib-tool.texi (CVS Issues): Fix typo.
14224 2007-05-13 Bruno Haible <bruno@clisp.org>
14226 * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
14227 * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
14228 * strsep.m4 (gl_FUNC_STRSEP): Likewise.
14229 * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
14230 (gl_PREREQ_STRTOK_R): Don't require it here.
14232 2007-05-13 Bruno Haible <bruno@clisp.org>
14234 * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
14235 when used in C++ mode.
14237 2007-05-12 Bruno Haible <bruno@clisp.org>
14239 * lib/linebuffer.h: Tweak doc.
14240 * lib/linebuffer.c: Likewise.
14242 2007-05-12 James Youngman <jay@gnu.org>
14244 * lib/linebuffer.c (readlinebuffer_delim): New function,
14245 like readlinebuffer, but use a caller-specified delimiter.
14246 (readlinebuffer): Just call readlinebuffer_delim with '\n'
14248 * lib/linebuffer.h (readlinebuffer_delim): Declare it.
14250 2007-05-12 Sergey Poznyakoff <gray@gnu.org.ua>
14252 * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
14253 * modules/openat (Files): Remove openat-die.c.
14254 (Depends-on): Add openat-die.
14255 * modules/openat-die: New module.
14257 2007-05-06 Bruno Haible <bruno@clisp.org>
14259 * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
14260 Update with info about Cygwin.
14261 * doc/functions/fprintf.texi: Update.
14262 * doc/functions/printf.texi: Update.
14263 * doc/functions/snprintf.texi: Update.
14264 * doc/functions/sprintf.texi: Update.
14265 * doc/functions/vfprintf.texi: Update.
14266 * doc/functions/vprintf.texi: Update.
14267 * doc/functions/vsnprintf.texi: Update.
14268 * doc/functions/vsprintf.texi: Update.
14269 Reported by Eric Blake.
14271 2007-05-06 Bruno Haible <bruno@clisp.org>
14273 * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
14274 padding ourselves for the floating-point directives.
14275 * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
14276 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
14277 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
14278 gl_PRINTF_FLAG_ZERO and test its result. Invoke
14279 gl_PREREQ_VASNPRINTF_FLAG_ZERO.
14280 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
14281 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
14282 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
14283 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
14284 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
14285 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
14286 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
14287 * tests/test-snprintf-posix.h (test_function): Also check the width
14288 and some flags in the %f directive.
14289 * tests/test-sprintf-posix.h (test_function): Likewise.
14290 * tests/test-vasnprintf-posix.c (test_function): Likewise.
14291 * tests/test-vasprintf-posix.c (test_function): Likewise.
14292 * doc/functions/fprintf.texi: Update.
14293 * doc/functions/printf.texi: Update.
14294 * doc/functions/snprintf.texi: Update.
14295 * doc/functions/sprintf.texi: Update.
14296 * doc/functions/vfprintf.texi: Update.
14297 * doc/functions/vprintf.texi: Update.
14298 * doc/functions/vsnprintf.texi: Update.
14299 * doc/functions/vsprintf.texi: Update.
14301 2007-05-06 Bruno Haible <bruno@clisp.org>
14303 * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
14304 pass the ' flag character to sprintf or snprintf.
14305 * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
14306 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
14307 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
14308 gl_PRINTF_FLAG_GROUPING and test its result. Invoke
14309 gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
14310 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
14311 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
14312 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
14313 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
14314 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
14315 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
14316 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
14317 * tests/test-snprintf-posix.h (test_function): Also check the grouping
14319 * tests/test-sprintf-posix.h (test_function): Likewise.
14320 * tests/test-vasnprintf-posix.c (test_function): Likewise.
14321 * tests/test-vasprintf-posix.c (test_function): Likewise.
14322 * doc/functions/fprintf.texi: Update.
14323 * doc/functions/printf.texi: Update.
14324 * doc/functions/snprintf.texi: Update.
14325 * doc/functions/sprintf.texi: Update.
14326 * doc/functions/vfprintf.texi: Update.
14327 * doc/functions/vprintf.texi: Update.
14328 * doc/functions/vsnprintf.texi: Update.
14329 * doc/functions/vsprintf.texi: Update.
14331 2007-05-01 Bruno Haible <bruno@clisp.org>
14333 * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
14335 2007-05-03 Paul Eggert <eggert@cs.ucla.edu>
14337 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
14338 comment for D_INO_IN_DIRENT. Problem reported by James Youngman.
14340 2007-05-02 Paul Eggert <eggert@cs.ucla.edu>
14342 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
14343 readdir returns garbage in d_ino. Problem reported by Kaz Sasayama in
14344 <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
14346 2007-05-02 Sergey Poznyakoff <gray@gnu.org.ua>
14348 * lib/argp-help.c (struct hol_entry): New member `ord'.
14349 (HOL_ENTRY_PTRCMP): Use ord for comparison
14350 (hol_sort): Initialize ord.
14352 2007-05-01 Bruno Haible <bruno@clisp.org>
14354 * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
14355 Reported by Eric Blake.
14356 * doc/gnulib.texi (Function Substitutes): Update.
14358 2007-05-01 Bruno Haible <bruno@clisp.org>
14360 * doc/functions.texi: Remove file, now redundant through
14361 doc/functions/*.texi.
14363 2007-05-01 Bruno Haible <bruno@clisp.org>
14365 * modules/argp (Depends-on): Add sleep.
14367 2007-05-01 Bruno Haible <bruno@clisp.org>
14369 * modules/sleep-tests: New file.
14370 * tests/test-sleep.c: New file.
14372 * modules/sleep: New file.
14373 * lib/sleep.c: New file.
14374 * m4/sleep.m4: New file.
14375 * lib/unistd_.h (sleep): New declaration.
14376 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
14378 * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
14379 * doc/functions/sleep.texi: Document the sleep module.
14381 2007-05-01 Bruno Haible <bruno@clisp.org>
14383 * lib/sigprocmask.h: Remove file.
14384 * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
14385 * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
14386 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
14387 HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
14388 * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
14389 gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
14390 (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
14391 HAVE_SIGSET_T as a shell variable.
14392 * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
14393 HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
14394 * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
14395 (Depends-on): Add signal. Remove verify.
14396 (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
14397 (Include): Mention <signal.h> instead of sigprocmask.h.
14398 * NEWS: Mention the change.
14399 * lib/fatal-signal.c: Don't include sigprocmask.h.
14401 2007-05-01 Bruno Haible <bruno@clisp.org>
14403 * modules/signal: New file.
14404 * lib/signal_.h: New file.
14405 * m4/signal_h.m4: New file.
14407 2007-05-01 Bruno Haible <bruno@clisp.org>
14409 * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
14410 * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
14411 * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
14412 HAVE_WCTYPE_CTMP_BUG into wctype.h.
14414 2007-05-01 Bruno Haible <bruno@clisp.org>
14416 * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
14418 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
14419 HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
14420 * modules/sys_stat (Makefile.am): Substitute their values into
14423 2007-05-01 Bruno Haible <bruno@clisp.org>
14425 * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
14426 * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
14427 * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
14429 2007-05-01 Bruno Haible <bruno@clisp.org>
14431 * doc/header/assert.texi: Undo last change: don't mention the gnulib
14432 'assert' module here.
14434 2007-05-01 Bruno Haible <bruno@clisp.org>
14436 * doc/functions/*.texi: New files.
14437 * doc/functions/google-ranking.txt: New file.
14438 * doc/gnulib.texi (Function Substitutes): New chapter.
14439 (ctime, inet_ntoa): Remove sections.
14440 * doc/ctime.texi: Remove file.
14441 * doc/inet_ntoa.texi: Remove file.
14442 * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
14444 (%.info): New rule, specifying a --reference-limit.
14446 2007-05-01 Bruno Haible <bruno@clisp.org>
14448 * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
14450 2007-05-01 Bruno Haible <bruno@clisp.org>
14452 * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
14453 the portability of 'mkdir' to mingw systems.
14455 2007-05-01 Bruno Haible <bruno@clisp.org>
14457 * doc/headers/google-ranking.txt: New file.
14459 2007-04-30 Eric Blake <ebb9@byu.net>
14461 Prefer fseeko to fseek.
14462 * modules/getpass (Depends-on): Add fseeko.
14463 * lib/getpass.c (getpass): Use fseeko, not fseek.
14465 2007-04-30 Sergey Poznyakoff <gray@gnu.org.ua>
14467 * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
14468 assumes the sorting is stable, while most qsort implementations
14469 are not. Use argument addresses to ensure they never compare as
14472 * tests/test-argp-2.sh (usage-indent test): Fix output
14473 (func_compare): Restore diff options
14474 * tests/test-argp.c: Restore #include "progname.h"
14476 2007-04-29 Bruno Haible <bruno@clisp.org>
14478 * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
14479 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
14480 gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
14481 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
14482 * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
14483 (configure.ac): Define CHECK_SNPRINTF_POSIX.
14484 (TESTS, check_PROGRAMS): Add test-snprintf.
14485 * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
14486 (configure.ac): Define CHECK_VSNPRINTF_POSIX.
14487 (TESTS, check_PROGRAMS): Add test-vsnprintf.
14488 * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
14489 assertions that fail on HP-UX, OSF/1, or IRIX.
14490 * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
14492 2007-04-29 Bruno Haible <bruno@clisp.org>
14494 * MODULES.html.sh (posix_functions): Remove 'contents'.
14496 2007-04-29 Karl Berry <karl@gnu.org>
14498 * config/srclist.txt (gendocs_template_min): new entry.
14500 2007-04-29 Bruno Haible <bruno@clisp.org>
14502 Work around fpurge bug on BSD systems.
14503 * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
14504 * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
14505 * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
14506 fpurge to rpl_fpurge if the system already has this function.
14507 * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
14508 the case where the system already has this function. Correct invariants
14510 * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
14513 2007-04-29 Sergey Poznyakoff <gray@gnu.org.ua>
14515 * lib/argp-help.c (hol_cluster_cmp): Reverse comparison. Change
14516 proposed by Sven Verdoolaege.
14518 * tests/test-argp.c: Fix option ordering. Test deeply clustered
14520 * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
14521 (usage and help tests): Update
14523 2007-04-29 Bruno Haible <bruno@clisp.org>
14525 * tests/test-fflush.c (main): Use a file of size 17, not 10.
14526 Print more information in case of failure. Disable a test on BeOS.
14528 2007-04-29 Bruno Haible <bruno@clisp.org>
14530 * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
14531 This helps debugging on systems on which no gdb is available.
14533 2007-04-29 Bruno Haible <bruno@clisp.org>
14535 * lib/freading.h: Improve comments.
14536 * lib/fwriting.h: Likewise.
14537 * tests/test-freading.c (main): Don't check freading immediately after
14538 repositioning. Needed for glibc.
14540 2007-04-29 Bruno Haible <bruno@clisp.org>
14542 * lib/freading.c (freading): Trivial simplification.
14544 2007-04-28 Bruno Haible <bruno@clisp.org>
14546 * tests/test-fwriting.c (main): Also test the interaction between
14547 fflush and fwriting.
14548 * modules/fwriting-tests (Depends-on): Add fflush.
14550 * tests/test-freading.c (main): Also test the interaction between
14551 fflush and freading.
14552 * modules/freading-tests (Depends-on): Add fflush.
14554 2007-04-28 Bruno Haible <bruno@clisp.org>
14556 * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
14558 Suggested by Eric Blake.
14560 2007-04-28 Jim Meyering <jim@meyering.net>
14562 Avoid false-negative in gl_STDINT_H's C99 conformance test.
14563 * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
14564 to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
14566 2007-04-27 Eric Blake <ebb9@byu.net>
14568 * doc/headers/assert.texi (assert.h): Document assert module use.
14570 2007-04-27 Bruno Haible <bruno@clisp.org>
14572 * doc/headers/*.texi: New files.
14573 * doc/gnulib.texi (Header File Substitutes): New chapter.
14574 * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
14576 (standards.info ,standards.html, standards.dvi): Update dependencies.
14577 (mostlyclean, clean): New targets.
14579 2007-04-27 Bruno Haible <bruno@clisp.org>
14581 * lib/sysexits_.h: Renamed from lib/sysexit_.h.
14582 * modules/sysexits (Files, Makefile.am): Update.
14584 * lib/sys_socket_.h: Renamed from lib/socket_.h.
14585 * modules/sys_socket (Files, Makefile.am): Update.
14587 * lib/sys_stat_.h: Renamed from lib/stat_.h.
14588 * modules/sys_stat (Files, Makefile.am): Update.
14590 2007-04-27 Eric Blake <ebb9@byu.net>
14592 * lib/freading.h: Improve comments.
14593 * lib/fwriting.h: Likewise.
14594 * lib/fflush.c: Likewise.
14596 Fix closein for mingw.
14597 * modules/closein-tests: Add tests for closein.
14598 * tests/test-closein.c: New file.
14599 * tests/test-closein.sh: Likewise.
14600 * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
14601 * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
14603 2007-04-27 Bruno Haible <bruno@clisp.org>
14605 * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
14607 * lib/math_.h [__DECC]: Likewise.
14608 * lib/stdio_.h [__DECC]: Likewise.
14609 * lib/stdlib_.h [__DECC]: Likewise.
14610 * lib/string_.h [__DECC]: Likewise.
14611 * lib/time_.h [__DECC]: Likewise.
14612 * lib/wchar_.h [__DECC]: Likewise.
14613 * lib/wctype_.h [__DECC]: Likewise.
14615 2007-04-27 Bruno Haible <bruno@clisp.org>
14617 * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
14619 2007-04-27 Bruno Haible <bruno@clisp.org>
14621 * lib/fflush.c: Add comments.
14622 * modules/fpurge-tests (Depends-on): Add fflush.
14623 * modules/freadable-tests (Depends-on): Likewise.
14624 * modules/fwritable-tests (Depends-on): Likewise.
14626 2007-04-27 Charles Wilson <libtool@cwilson.fastmail.fm>
14628 * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
14629 SYSTEM_ARGZ_IS_BROKEN. Also, minor stylistic improvements.
14630 Report by Bruno Haible <bruno@clisp.org>.
14632 2007-04-26 Eric Blake <ebb9@byu.net>
14634 Fix fflush on mingw.
14635 * modules/fflush (Depends-on): Add freading.
14636 * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
14639 2007-04-26 Eric Blake <ebb9@byu.net>
14640 and Bruno Haible <bruno@clisp.org>
14642 Implement freading and fwriting.
14643 * lib/freading.c: New file.
14644 * lib/freading.h: Likewise.
14645 * m4/freading.m4: Likewise.
14646 * modules/freading: Likewise.
14647 * modules/freading-tests: Likewise.
14648 * tests/test-freading.c: Likewise.
14649 * lib/fwriting.c: New file.
14650 * lib/fwriting.h: Likewise.
14651 * m4/fwriting.m4: Likewise.
14652 * modules/fwriting: Likewise.
14653 * modules/fwriting-tests: Likewise.
14654 * tests/test-fwriting.c: Likewise.
14655 * MODULES.html.sh (File stream based Input/Output): Mention them.
14657 2007-04-26 Bruno Haible <bruno@clisp.org>
14659 * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
14660 'long' when we assume it.
14661 Suggested by Eric Blake.
14663 2007-04-26 Bruno Haible <bruno@clisp.org>
14665 Ensure fseeko, ftello are declared on glibc systems.
14666 * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
14667 * modules/fseeko (configure.ac-early): Likewise.
14668 * modules/ftello (configure.ac-early): Likewise.
14669 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
14670 AC_FUNC_FSEEKO for this.
14671 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
14672 (gl_CHECK_FSEEKO): Remove macro.
14674 2007-04-26 Bruno Haible <bruno@clisp.org>
14676 * tests/test-fflush.c (main): Also check the ftell result after
14677 fflush and fseek/fseeko.
14678 * lib/fflush.c (rpl_fflush): For BSD implementations, update the
14679 file descriptor position cache in the stream.
14680 * lib/fseeko.c (rpl_fseeko): Likewise.
14682 2007-04-26 Bruno Haible <bruno@clisp.org>
14684 * modules/fflush-tests (Depends-on): Add fseeko.
14686 2007-04-25 Charles Wilson <libtool@cwilson.fastmail.fm>
14687 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14689 * lib/argz_.h: ensure error_t definition is obtained in same
14690 mechanism system argz.h would have.
14691 * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
14692 argz facilities are known bad. Err on the side of caution if
14695 2007-04-25 Eric Blake <ebb9@byu.net>
14697 * lib/fpurge.c (includes): Use stdlib.h for free.
14698 * tests/test-fflush.c (main): Also test fflush-fseeko.
14700 2007-04-25 Bruno Haible <bruno@clisp.org>
14702 Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
14703 * lib/fseeko.c: New file.
14704 * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
14705 (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
14706 * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
14708 (gl_FUNC_FSEEKO): Invoke it.
14709 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
14710 gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
14711 * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
14713 2007-04-25 Bruno Haible <bruno@clisp.org>
14715 * modules/fflush (Depends-on): Add ftello.
14717 2007-04-25 Bruno Haible <bruno@clisp.org>
14719 * modules/ftello-tests: New file.
14720 * tests/test-ftello.c: New file.
14722 * modules/ftello: New file.
14723 * m4/ftello.m4: New file.
14724 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
14726 * lib/stdio_.h (ftello): New declaration.
14727 * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
14730 2007-04-25 Bruno Haible <bruno@clisp.org>
14732 * modules/fseeko-tests: New file.
14733 * tests/test-fseeko.c: New file.
14735 * modules/fseeko: New file.
14736 * m4/fseeko.m4: New file.
14737 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
14739 * lib/stdio_.h (fseeko): New declaration.
14740 * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
14743 2007-04-25 Bruno Haible <bruno@clisp.org>
14745 * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
14747 2007-04-25 Bruno Haible <bruno@clisp.org>
14749 * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
14750 * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
14751 * tests/test-unistd.c: Likewise.
14752 * tests/test-fcntl.c: Likewise.
14754 2007-04-23 Eric Blake <ebb9@byu.net>
14756 * lib/fflush.c: Fix missing include.
14757 Reported by Bruno Haible.
14759 2007-04-23 Bruno Haible <bruno@clisp.org>
14761 * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
14762 Reported by Eric Blake.
14764 2007-04-23 Bruno Haible <bruno@clisp.org>
14766 * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
14768 2007-04-23 Bruno Haible <bruno@clisp.org>
14770 * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
14772 2007-04-23 Bruno Haible <bruno@clisp.org>
14774 * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
14775 Needed on HP-UX 11.
14777 2007-04-16 Eric Blake <ebb9@byu.net>
14779 Make fflush rely on fpurge.
14780 * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
14781 open coding all variants.
14782 * modules/fflush (Depends-on): Add fpurge and unistd.
14783 * modules/fflush-tests (Depends-on): Unistd is no longer extra.
14784 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
14786 Fix --with-tests compilation on cygwin.
14787 * modules/argmatch-tests (Makefile.am): List gnulib library first
14789 * modules/argp-tests (Makefile.am): Likewise.
14790 * modules/array-list-tests (Makefile.am): Likewise.
14791 * modules/array-oset-tests (Makefile.am): Likewise.
14792 * modules/avltree-list-tests (Makefile.am): Likewise.
14793 * modules/avltree-oset-tests (Makefile.am): Likewise.
14794 * modules/avltreehash-list-tests (Makefile.am): Likewise.
14795 * modules/carray-list-tests (Makefile.am): Likewise.
14796 * modules/dirname-tests (Makefile.am): Likewise.
14797 * modules/frexp-tests (Makefile.am): Likewise.
14798 * modules/isnanl-tests (Makefile.am): Likewise.
14799 * modules/linked-list-tests (Makefile.am): Likewise.
14800 * modules/linkedhash-list-tests (Makefile.am): Likewise.
14801 * modules/lock-tests (Makefile.am): Likewise.
14802 * modules/rbtree-list-tests (Makefile.am): Likewise.
14803 * modules/rbtree-oset-tests (Makefile.am): Likewise.
14804 * modules/rbtreehash-list-tests (Makefile.am): Likewise.
14805 * modules/tls-tests (Makefile.am): Likewise.
14806 * modules/tsearch-tests (Makefile.am): Likewise.
14807 * modules/xvasprintf-tests (Makefile.am): Likewise.
14809 Fix fpurge for cygwin.
14810 * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
14812 * modules/fpurge-tests (Depends-on): Clean up trash.
14814 2007-04-16 Simon Josefsson <simon@josefsson.org>
14816 * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
14818 * m4/autobuild.m4: Re-indent.
14820 2007-04-13 Bruno Haible <bruno@clisp.org>
14822 * modules/fpurge-tests: New file.
14823 * tests/test-fpurge.c: New file.
14825 * modules/fpurge: New file.
14826 * lib/fpurge.h: New file.
14827 * lib/fpurge.c: New file.
14828 * m4/fpurge.m4: New file.
14830 2007-04-13 Bruno Haible <bruno@clisp.org>
14832 * modules/fbufmode-tests: New file.
14833 * tests/test-fbufmode.c: New file.
14835 * modules/fbufmode: New file.
14836 * lib/fbufmode.h: New file.
14837 * lib/fbufmode.c: New file.
14838 * m4/fbufmode.m4: New file.
14840 2007-04-13 Bruno Haible <bruno@clisp.org>
14842 * modules/fwritable-tests: New file.
14843 * tests/test-fwritable.c: New file.
14845 * modules/fwritable: New file.
14846 * lib/fwritable.h: New file.
14847 * lib/fwritable.c: New file.
14848 * m4/fwritable.m4: New file.
14850 2007-04-13 Bruno Haible <bruno@clisp.org>
14852 * modules/freadable-tests: New file.
14853 * tests/test-freadable.c: New file.
14855 * modules/freadable: New file.
14856 * lib/freadable.h: New file.
14857 * lib/freadable.c: New file.
14858 * m4/freadable.m4: New file.
14860 2007-04-13 Bruno Haible <bruno@clisp.org>
14862 * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
14865 2007-04-13 Paul Eggert <eggert@cs.ucla.edu>
14867 * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
14868 gzip bootstrap.conf to avoid dragging in i18n machinery.
14869 (gnulib_tool_option): Use it.
14871 2007-04-13 Bruno Haible <bruno@clisp.org>
14873 * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
14875 * tests/test-vasprintf-posix.c (test_function): Likewise.
14876 * tests/test-snprintf-posix.h (test_function): Likewise.
14877 * tests/test-sprintf-posix.h (test_function): Likewise.
14878 * tests/test-fprintf-posix.h (test_function): Likewise.
14879 * tests/test-printf-posix.h (test_function): Likewise.
14880 * tests/test-fprintf-posix.out: Likewise.
14882 2007-04-13 Bruno Haible <bruno@clisp.org>
14884 * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
14885 * modules/tls-tests (configure.ac): Likewise.
14886 Reported by Arto C. Nirkko <anirkko@insel.ch>.
14888 2007-04-13 Bruno Haible <bruno@clisp.org>
14890 * lib/tls.c (glthread_tls_get): Fix return type.
14891 Patch by Arto C. Nirkko <anirkko@insel.ch>.
14893 2007-04-12 Eric Blake <ebb9@byu.net>
14895 * modules/gettime (Depends-on): Remove gettime.
14896 Reported by Dmitry V. Levin.
14898 2007-04-12 Bruno Haible <bruno@clisp.org>
14900 * modules/fflush (Include): Mention <stdio.h>.
14901 * modules/strtoimax (Include): Mention <inttypes.h>.
14902 * modules/strtoumax (Include): Likewise.
14904 2007-04-12 Eric Blake <ebb9@byu.net>
14906 * .cvsignore: New file.
14907 * .gitignore: Likewise.
14909 2007-04-12 Bruno Haible <bruno@clisp.org>
14911 * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
14912 not before, since $(LDADD) often contains libgnu.a.
14913 * modules/striconv-tests (test_striconv_LDADD): Likewise.
14914 * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
14915 * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
14918 2007-04-12 Eric Blake <ebb9@byu.net>
14920 Work around glibc's failure to flush stdin on fclose.
14921 * lib/closein.c (close_stdin): Flush stdin before closing.
14923 Work around glibc's failure to reset seekable stdin on exit.
14924 * modules/closein: New module.
14925 * lib/closein.c: New file.
14926 * lib/closein.h: Likewise.
14927 * m4/closein.m4: Likewise.
14928 * MODULES.html.sh (File stream based Input/Output): Document it.
14930 2007-04-12 Simon Josefsson <simon@josefsson.org>
14932 * gnulib-tool: Rename generated 'autobuild' script to
14933 'do-autobuild' in --create-megatestdir output.
14935 * doc/gnulib.texi (Build robot for gnulib): Fix.
14937 2007-04-12 Simon Josefsson <simon@josefsson.org>
14939 * modules/sysexits (Depends-on): Add absolute-header.
14941 2007-04-12 Eric Blake <ebb9@byu.net>
14943 No need to preserve errno on success.
14944 * lib/fflush.c (rpl_fflush): Simplify errno tracking.
14945 Reported by Bruno Haible.
14947 2007-04-12 Simon Josefsson <simon@josefsson.org>
14949 * MODULES.html.sh (Support for maintaining and releasing
14950 projects): Add autobuild. Suggested by Eric Blake <ebb9@byu.net>.
14952 2007-04-12 Simon Josefsson <simon@josefsson.org>
14954 * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
14956 2007-04-12 Simon Josefsson <simon@josefsson.org>
14958 * modules/autobuild: New module.
14960 * m4/autobuild.m4: New file.
14962 2007-04-11 Bruno Haible <bruno@clisp.org>
14964 * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
14965 %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
14966 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
14967 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
14968 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
14969 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
14970 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
14971 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
14972 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
14973 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
14974 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
14975 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
14976 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
14977 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
14978 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
14979 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
14980 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
14981 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
14982 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
14983 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
14984 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
14985 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
14986 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
14987 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
14988 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
14989 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
14990 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
14991 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
14992 Reported by Eric Blake.
14994 2007-04-11 Bruno Haible <bruno@clisp.org>
14996 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
14998 2007-04-10 Bruno Haible <bruno@clisp.org>
15000 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
15001 for NaN and Infinity. Needed on FreeBSD 6.1.
15002 * tests/test-vasnprintf-posix.c (test_function): Undo last change
15003 regarding results for "%010a" of Infinity and NaN.
15004 * tests/test-vasprintf-posix.c (test_function): Likewise.
15005 * tests/test-snprintf-posix.h (test_function): Likewise.
15006 * tests/test-sprintf-posix.h (test_function): Likewise.
15007 * tests/test-fprintf-posix.h (test_function): Likewise.
15008 * tests/test-printf-posix.h (test_function): Likewise.
15009 * tests/test-fprintf-posix.out: Likewise.
15011 2007-04-10 Bruno Haible <bruno@clisp.org>
15013 * modules/locale-tests: New file.
15014 * tests/test-locale.c: New file.
15016 * modules/locale: New file.
15017 * lib/locale_.h: New file.
15018 * m4/locale_h.m4: New file.
15020 2007-04-10 Paul Eggert <eggert@cs.ucla.edu>
15021 Bruno Haible <bruno@clisp.org>
15023 * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
15024 be determined, test for availability of the copysignf, copysign,
15025 copysignl functions.
15026 * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
15027 * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
15028 * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
15030 2007-04-09 Eric Blake <ebb9@byu.net>
15032 * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
15033 * modules/stdio (Makefile.am): Support fflush.
15034 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
15035 * modules/fflush: New file.
15036 * lib/fflush.c: Likewise.
15037 * m4/fflush.m4: Likewise.
15038 * modules/fflush-tests: New test.
15039 * tests/test-fflush.c: Likewise.
15040 * MODULES.html.sh (Input/output <stdio.h>): Document new module.
15042 2007-04-06 Bruno Haible <bruno@clisp.org>
15044 * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
15045 (VASNPRINTF): Use signbit for faster determination whether to print a
15047 * modules/vasnprintf (Files): Remove lib/float+.h.
15048 * modules/fprintf-posix (Depends-on): Add signbit.
15049 * modules/snprintf-posix (Depends-on): Likewise.
15050 * modules/sprintf-posix (Depends-on): Likewise.
15051 * modules/vasnprintf-posix (Depends-on): Likewise.
15052 * modules/vasprintf-posix (Depends-on): Likewise.
15053 * modules/vfprintf-posix (Depends-on): Likewise.
15054 * modules/vsnprintf-posix (Depends-on): Likewise.
15055 * modules/vsprintf-posix (Depends-on): Likewise.
15057 2007-04-06 Bruno Haible <bruno@clisp.org>
15059 * tests/test-frexp.c (main): Test also the sign bit of zero results.
15060 * tests/test-frexpl.c (main): Likewise.
15061 * tests/test-ldexpl.c (main): Likewise.
15062 * modules/frexp-tests (Depends-on): Add signbit.
15063 * modules/frexpl-tests (Depdends-on): Likewise.
15064 * modules/ldexpl-tests (Depdends-on): Likewise.
15066 2007-04-06 Bruno Haible <bruno@clisp.org>
15068 * modules/signbit-tests: New file.
15069 * tests/test-signbit.c: New file.
15071 * modules/signbit: New file.
15072 * lib/signbitf.c: New file.
15073 * lib/signbitd.c: New file.
15074 * lib/signbitl.c: New file.
15075 * m4/signbit.m4: New file.
15076 * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
15077 (signbit): New macro.
15078 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
15080 * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
15081 REPLACE_FREXPL into math.h.
15083 2007-04-06 Bruno Haible <bruno@clisp.org>
15085 * modules/isnanf-nolibm-tests: New file.
15086 * tests/test-isnanf.c: New file.
15088 * modules/isnanf-nolibm: New file.
15089 * lib/isnanf.h: New file.
15090 * lib/isnanf.c: New file.
15091 * lib/isnan.c: Consider the USE_FLOAT macro.
15092 * m4/isnanf.m4: New file.
15094 2007-04-06 Bruno Haible <bruno@clisp.org>
15096 * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
15097 (Link): New section.
15099 * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
15101 2007-04-06 Bruno Haible <bruno@clisp.org>
15103 Assume the 'long double' type.
15104 * m4/longdouble.m4: Remove file.
15105 * config/srclist.txt: Don't mention longdouble.m4.
15106 * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
15107 * lib/float+.h: Likewise.
15108 * lib/frexp.c: Likewise.
15109 * lib/printf-args.h: Likewise.
15110 * lib/printf-args.c: Likewise.
15111 * lib/printf-frexp.c: Likewise.
15112 * lib/printf-parse.c: Likewise.
15113 * lib/vasnprintf.c: Likewise.
15114 * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
15115 * m4/intl.m4: Likewise.
15116 * m4/isnanl.m4: Likewise.
15117 * m4/printf.m4: Likewise.
15118 * m4/printf-frexpl.m4: Likewise.
15119 * m4/vasnprintf.m4: Likewise.
15120 * modules/allocsa (Files): Remove m4/longdouble.m4.
15121 * modules/gettext (Files): Likewise.
15122 * modules/relocatable-prog-wrapper (Files): Likewise.
15123 * modules/vasnprintf (Files): Likewise.
15124 * modules/isnanl (Files): Likewise.
15125 (Include): Simplify.
15126 * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
15127 (Include): Simplify.
15128 * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
15129 (Include): Simplify.
15130 * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
15131 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
15132 * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
15133 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
15134 * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
15135 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
15136 * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
15137 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
15138 * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
15139 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
15140 * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
15141 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
15142 * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
15143 * tests/test-isnanl.c: Likewise.
15144 * tests/test-snprintf-posix.h: Likewise.
15145 * tests/test-sprintf-posix.h: Likewise.
15146 * tests/test-vasnprintf-posix.c: Likewise.
15147 * tests/test-vasnprintf-posix2.c: Likewise.
15148 * tests/test-vasprintf-posix.c: Likewise.
15150 2007-04-06 Bruno Haible <bruno@clisp.org>
15152 Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
15153 * lib/math_.h [__DECC]: Include the overridden include file through
15154 #include_next, outside the double-inclusion guard.
15155 * lib/stdio_.h [__DECC]: Likewise.
15156 * lib/stdlib_.h [__DECC]: Likewise.
15157 * lib/string_.h [__DECC]: Likewise.
15158 * lib/time_.h [__DECC]: Likewise.
15159 * lib/wchar_.h [__DECC]: Likewise.
15160 * lib/wctype_.h [__DECC]: Likewise.
15161 * lib/inttypes_.h [__DECC]: Likewise.
15162 Reported by Albert Chin <china@thewrittenword.com> in
15163 <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
15165 2007-04-04 Eric Blake <ebb9@byu.net>
15167 * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
15170 2007-04-04 Bruno Haible <bruno@clisp.org>
15172 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
15173 rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
15175 2007-04-04 Bruno Haible <bruno@clisp.org>
15177 * tests/test-vasnprintf-posix.c (test_function): Allow two possible
15178 results for "%010a" of Infinity and NaN.
15179 * tests/test-vasprintf-posix.c (test_function): Likewise.
15180 * tests/test-snprintf-posix.h (test_function): Likewise.
15181 * tests/test-sprintf-posix.h (test_function): Likewise.
15182 * tests/test-fprintf-posix.h (test_function): Remove these tests.
15183 * tests/test-printf-posix.h (test_function): Likewise.
15184 * tests/test-fprintf-posix.out: Update.
15185 Needed for FreeBSD 6.1.
15187 2007-04-04 Bruno Haible <bruno@clisp.org>
15189 * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
15190 directly used by the gnulib modules nor by gnulib-tool.
15192 2007-04-04 Paul Eggert <eggert@cs.ucla.edu>
15194 * DEPENDENCIES: Give overall description of version dependency
15195 desirability. Use more-typical names for apps.
15196 Add shell, coreutils, diffutils, grep, tar, gzip.
15198 2007-04-04 Simon Josefsson <simon@josefsson.org>
15200 * MODULES.html.sh: Rename crypto modules. Remove iconvme.
15202 2007-04-04 Karl Berry <karl@gnu.org>
15204 * MODULES.html.sh (func_module): missing '.
15206 2007-04-03 Bruno Haible <bruno@clisp.org>
15208 * modules/argmatch-tests (Makefile.am): New variable
15209 test_argmatch_LDADD.
15210 * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
15211 * modules/array-list-tests (Makefile.am): New variable
15212 test_array_list_LDADD.
15213 * modules/array-oset-tests (Makefile.am): New variable
15214 test_array_oset_LDADD.
15215 * modules/avltree-list-tests (Makefile.am): New variable
15216 test_avltree_list_LDADD.
15217 * modules/avltree-oset-tests (Makefile.am): New variable
15218 test_avltree_oset_LDADD.
15219 * modules/avltreehash-list-tests (Makefile.am): New variable
15220 test_avltreehash_list_LDADD.
15221 * modules/canonicalize-lgpl-tests (Makefile.am): New variable
15222 test_canonicalize_lgpl_LDADD.
15223 * modules/carray-list-tests (Makefile.am): New variable
15224 test_carray_list_LDADD.
15225 * modules/dirname-tests (Makefile.am): New variable
15226 test_dirname_LDADD.
15227 * modules/linked-list-tests (Makefile.am): New variable
15228 test_linked_list_LDADD.
15229 * modules/linkedhash-list-tests (Makefile.am): New variable
15230 test_linkedhash_list_LDADD.
15231 * modules/rbtree-list-tests (Makefile.am): New variable
15232 test_rbtree_list_LDADD.
15233 * modules/rbtree-oset-tests (Makefile.am): New variable
15234 test_rbtree_oset_LDADD.
15235 * modules/rbtreehash-list-tests (Makefile.am): New variable
15236 test_rbtreehash_list_LDADD.
15237 * modules/xvasprintf-tests (Makefile.am): New variable
15238 test_xvasprintf_LDADD.
15239 Reported by Eric Blake.
15241 2007-04-03 Eric Blake <ebb9@byu.net>
15243 * DEPENDENCIES: Weaken m4 requirements.
15245 2007-04-03 Bruno Haible <bruno@clisp.org>
15247 * modules/frexp-tests (configure.ac): Remove AC_SUBST.
15248 * modules/isnanl-tests (configure.ac): Likewise.
15250 2007-04-03 Ben Pfaff <blp@gnu.org>
15252 * modules/iconv_open: Add $(srcdir)/ to source directory
15253 references in Makefile fragments that call gperf, to fix VPATH
15256 2007-04-03 Bruno Haible <bruno@clisp.org>
15258 * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
15259 * lib/ldexpl.c: Undo last change.
15261 2007-04-03 Bruno Haible <bruno@clisp.org>
15263 * modules/printf-frexpl (Depends-on): Undo last change.
15264 (Files): Add m4/ldexpl.m4.
15266 2007-04-03 Bruno Haible <bruno@clisp.org>
15268 * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
15269 * modules/isnanl (Link): New section.
15271 * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
15272 * modules/frexp (Link): New section.
15274 * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
15275 * modules/frexpl (Link): New section.
15277 * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
15278 * modules/ldexpl (Link): New section.
15280 2007-04-03 Bruno Haible <bruno@clisp.org>
15282 * modules/TEMPLATE-EXTENDED: New file.
15283 * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
15285 2007-04-03 Bruno Haible <bruno@clisp.org>
15287 * DEPENDENCIES: New file.
15288 Suggested by Simon Josefsson.
15290 2007-04-03 Bruno Haible <bruno@clisp.org>
15292 * doc/gnulib.texi: Escape @.
15294 2007-04-03 James Youngman <jay@gnu.org>
15295 and Paul Eggert <eggert@cs.ucla.edu>
15297 * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
15298 birthtime on all systems that have birthtime, not just those which
15299 use st_birthtimensec rather than st_birthtim. Putting zero in
15300 st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
15301 that the birth time is not available for files on an NFS mount.
15303 2007-04-03 Simon Josefsson <simon@josefsson.org>
15305 * modules/memxor: Move back from crypto/, suggested by Bruno.
15306 * modules/crypto/hmac-sha1: Fix memxor dependency.
15308 * modules/crypto/gc: Moved from ../.
15310 2007-04-02 Eric Blake <ebb9@byu.net>
15312 * lib/ldexpl.c (includes): Avoid libm.
15314 * modules/printf-frexpl (Depends-on): Depend on ldexpl.
15316 2007-04-02 Bruno Haible <bruno@clisp.org>
15318 * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
15321 2007-04-02 Bruno Haible <bruno@clisp.org>
15323 * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
15324 x86 or x86_64 platforms running MacOS X.
15325 Reported by Ryan Schmidt <@ryandesign.com>.
15327 2007-04-02 Bruno Haible <bruno@clisp.org>
15329 * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
15332 2007-04-01 Simon Josefsson <simon@josefsson.org>
15334 * modules/crypto/arcfour: Moved from ../.
15335 * modules/crypto/arcfour-tests: Moved from ../.
15336 * modules/crypto/arctwo: Moved from ../.
15337 * modules/crypto/arctwo-tests: Moved from ../.
15338 * modules/crypto/des: Moved from ../.
15339 * modules/crypto/des-tests: Moved from ../.
15340 * modules/crypto/gc-arcfour: Moved from ../.
15341 * modules/crypto/gc-arcfour-tests: Moved from ../.
15342 * modules/crypto/gc-arctwo: Moved from ../.
15343 * modules/crypto/gc-arctwo-tests: Moved from ../.
15344 * modules/crypto/gc-des: Moved from ../.
15345 * modules/crypto/gc-des-tests: Moved from ../.
15346 * modules/crypto/gc-hmac-md5: Moved from ../.
15347 * modules/crypto/gc-hmac-md5-tests: Moved from ../.
15348 * modules/crypto/gc-hmac-sha1: Moved from ../.
15349 * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
15350 * modules/crypto/gc-md2: Moved from ../.
15351 * modules/crypto/gc-md2-tests: Moved from ../.
15352 * modules/crypto/gc-md4: Moved from ../.
15353 * modules/crypto/gc-md4-tests: Moved from ../.
15354 * modules/crypto/gc-md5: Moved from ../.
15355 * modules/crypto/gc-md5-tests: Moved from ../.
15356 * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
15357 * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
15358 * modules/crypto/gc-random: Moved from ../.
15359 * modules/crypto/gc-rijndael: Moved from ../.
15360 * modules/crypto/gc-rijndael-tests: Moved from ../.
15361 * modules/crypto/gc-sha1: Moved from ../.
15362 * modules/crypto/gc-sha1-tests: Moved from ../.
15363 * modules/crypto/gc-tests: Moved from ../.
15364 * modules/crypto/hmac-md5: Moved from ../.
15365 * modules/crypto/hmac-md5-tests: Moved from ../.
15366 * modules/crypto/hmac-sha1: Moved from ../.
15367 * modules/crypto/hmac-sha1-tests: Moved from ../.
15368 * modules/crypto/md2: Moved from ../.
15369 * modules/crypto/md2-tests: Moved from ../.
15370 * modules/crypto/md4: Moved from ../.
15371 * modules/crypto/md4-tests: Moved from ../.
15372 * modules/crypto/md5: Moved from ../.
15373 * modules/crypto/md5-tests: Moved from ../.
15374 * modules/crypto/memxor: Moved from ../.
15375 * modules/crypto/rijndael: Moved from ../.
15376 * modules/crypto/rijndael-tests: Moved from ../.
15377 * modules/crypto/sha1: Moved from ../.
15379 2007-03-30 James Youngman <jay@gnu.org>
15381 * tests/test-stat-time.c (prepare_test): use chmod() rather than
15382 rename() to change the ctime of a file (because ctime is unaffected
15383 by rename on jfs2 on AIX 5.1).
15384 (main): Start by doing cleanup, in case a previous run failed leaving
15387 2007-03-31 Bruno Haible <bruno@clisp.org>
15389 Support old proprietary implementations of iconv.
15390 * modules/iconv_open: New file.
15391 * lib/iconv_.h: New file.
15392 * m4/iconv_h.m4: New file.
15393 * lib/iconv_open.c: New file.
15394 * lib/iconv_open-aix.gperf: New file.
15395 * lib/iconv_open-hpux.gperf: New file.
15396 * lib/iconv_open-irix.gperf: New file.
15397 * lib/iconv_open-osf.gperf: New file.
15398 * m4/iconv_open.m4: New file.
15399 * modules/linebreak (Depends-on): Add iconv_open.
15400 * modules/striconv (Depends-on): Likewise.
15401 * modules/striconveh (Depends-on): Likewise.
15402 * modules/unicodeio (Depends-on): Likewise.
15403 * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
15405 * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
15406 conversion if cd is (iconv_t)(-1).
15407 (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
15410 2007-03-31 Bruno Haible <bruno@clisp.org>
15412 * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
15413 work on Solaris either. Protect also second use of "autodetect_jp".
15415 2007-03-31 Bruno Haible <bruno@clisp.org>
15417 * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
15418 the function is not present.
15420 2007-03-31 Bruno Haible <bruno@clisp.org>
15422 * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
15423 the function is not present.
15425 2007-03-31 Bruno Haible <bruno@clisp.org>
15427 * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
15428 a bug in HP-UX iconv_open().
15430 2007-03-31 Bruno Haible <bruno@clisp.org>
15432 * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
15433 (Mathematics <math.h>): New section, add fpieee.
15434 (Input/output <stdio.h>): Add fseterr.
15435 (Mathematics <math.h>): New section, add printf-frexp.
15436 (Container data structures): Add sublist.
15437 (Core language properties): Add fpucw, inline.
15438 (Functions for greatest-width integer types <inttypes.h>): Add
15439 imaxabs, imaxdiv, inttypes.
15440 (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
15441 isnanl-nolibm, ldexp.
15442 (Mathematics <math.h>): New section, add printf-frexpl.
15443 (Support for systems lacking POSIX:2001): Add fprintf-posix,
15444 printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
15445 sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
15446 vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
15447 (Unicode string functions): Add unistr/u*-mbtoucr.
15448 (Java): Add javacomp-script, javaexec-script.
15449 (C#): Add csharpcomp-script, csharpexec-script.
15450 (Support for building libraries and executables): Add havelib,
15452 (Support for maintaining and releasing projects): Renamed from
15453 'Support for maintaining and release projects'. Add announce-gen.
15455 2007-03-31 Bruno Haible <bruno@clisp.org>
15457 * README: Talk primarily about git.
15458 (git and CVS): Renamed from CVS.
15459 * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
15460 gnulib is available through git.
15461 * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
15463 2007-03-30 Bruno Haible <bruno@clisp.org>
15465 * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
15466 * lib/poll_.h: Likewise.
15467 * lib/stat_.h: Likewise.
15468 * lib/sys_time_.h: Likewise.
15469 * lib/sysexit_.h: Likewise.
15470 * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
15471 * lib/stdbool_.h: Likewise.
15472 * lib/byteswap_.h: Add double-inclusion guard.
15474 2007-03-30 Sergey Poznyakoff <gray@mirddin.farlep.net>
15476 * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
15478 2007-03-30 Karl Berry <karl@gnu.org>
15480 * config/srclist-update: double space after USA in the license
15481 substitution, since that's how it's usually (?) written.
15483 2007-03-30 Paul Eggert <eggert@cs.ucla.edu>
15485 * lib/write-any-file.c (can_write_any_file): Fix else-else bug
15486 reported by Bruno Haible.
15488 2007-03-29 Bruno Haible <bruno@clisp.org>
15490 * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
15491 a bug in AIX iconv().
15493 2007-03-29 Bruno Haible <bruno@clisp.org>
15495 * modules/ldexpl-tests: New file.
15496 * tests/test-ldexpl.c: New file.
15498 2007-03-29 Bruno Haible <bruno@clisp.org>
15500 * lib/ldexpl.c: Include fpucw.h.
15501 (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
15503 * modules/ldexpl (Depends-on): Add fpucw.
15505 2007-03-29 Bruno Haible <bruno@clisp.org>
15507 * modules/ldexpl: New file.
15508 * m4/ldexpl.m4: New file.
15509 * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
15511 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
15513 * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
15515 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
15516 gl_FUNC_LDEXPL_WORKS.
15517 * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
15518 * modules/mathl (Files): Remove lib/ldexpl.c.
15519 (Depends-on): Add ldexpl.
15521 2007-03-29 Bruno Haible <bruno@clisp.org>
15523 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
15525 2007-03-29 Bruno Haible <bruno@clisp.org>
15527 * tests/test-striconveh.c (main): Don't assume that a direct conversion
15528 between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
15529 and possibly also HP-UX.
15530 * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
15531 work on AIX, IRIX, HP-UX, OSF/1.
15532 * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
15533 * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
15534 * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
15535 * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
15536 * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
15537 * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
15539 2007-03-29 Bruno Haible <bruno@clisp.org>
15541 * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
15543 2007-03-29 Paul Eggert <eggert@cs.ucla.edu>
15545 * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
15546 to work around a problem on OSF/1 5.1 reported by Bruno Haible.
15548 2007-03-29 Eric Blake <ebb9@byu.net>
15550 * lib/acl-internal.h: Remove redundant include.
15551 (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
15552 Cygwin when a file is locked.
15554 2007-03-29 Bruno Haible <bruno@clisp.org>
15556 * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
15558 * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
15560 2007-03-29 Paul Eggert <eggert@cs.ucla.edu>
15562 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
15563 try to remove a parent directory if the child couldn't be removed
15564 (except for the first rmdir, which could fail because the child
15565 doesn't exist). Problem reported by Jeff Blaine in
15566 <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
15568 2007-03-28 Bruno Haible <bruno@clisp.org>
15570 * lib/striconveh.c (utf8conv_carefully): New function.
15571 (mem_cd_iconveh_internal): Invoke it.
15573 2007-03-28 Bruno Haible <bruno@clisp.org>
15575 * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
15576 of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
15578 * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
15579 utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
15582 2007-03-28 Bruno Haible <bruno@clisp.org>
15584 * modules/unistr/u8-mbtoucr: New file.
15585 * lib/unistr/u8-mbtoucr.c: New file.
15586 * modules/unistr/u16-mbtoucr: New file.
15587 * lib/unistr/u16-mbtoucr.c: New file.
15588 * modules/unistr/u16-mbtoucr: New file.
15589 * lib/unistr/u16-mbtoucr.c: New file.
15590 * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
15592 2007-03-27 Simon Josefsson <simon@josefsson.org>
15593 Bruno Haible <bruno@clisp.org>
15595 * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
15596 REPLACE_VASPRINTF. Set HAVE_VASPRINTF. Add
15597 AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
15599 * m4/stdio_h.m4: Add stubs for vasprintf too.
15601 * modules/stdio: Support vasprintf in sed command.
15603 * modules/vasprintf: Depend on stdio for prototypes. Remove
15604 vasprintf.h. Add stdio module indicator.
15606 * lib/stdio_.h: Declare asprintf and vasprintf, based on
15609 * lib/vasprintf.h: File removed.
15611 * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
15612 * lib/vasprintf.c: Ditto.
15613 * lib/xvasprintf.c: Ditto.
15614 * tests/test-vasprintf-posix.c: Ditto.
15615 * tests/test-vasprintf.c: Ditto.
15617 2007-03-27 Bruno Haible <bruno@clisp.org>
15619 Make vasnprintf multithread-safe.
15620 * lib/vasnprintf.c (decimal_point_char): New function.
15621 (VASNPRINTF): Use it.
15622 Suggested by Simon Josefsson.
15624 2007-03-27 Eric Blake <ebb9@byu.net>
15626 Support sub-second birthtime on cygwin.
15627 * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
15628 * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
15629 (get_stat_birthtime): Also work with st_birthtim.
15631 2007-03-27 Paul Eggert <eggert@cs.ucla.edu>
15633 * lib/stat-time.h (USE_BIRTHTIME): Remove.
15634 (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
15635 (get_stat_birthtime_ns): Do not try to use "spare" fields.
15636 (get_stat_birthtime_ns): Simplify compile-time tests.
15637 (get_stat_birthtime): Change the API to look like
15638 get_stat_mtime etc., except return a negative tv_nsec on error.
15639 * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
15640 Don't check for "spare" fields.
15641 (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
15642 or for struct stat.st_birthtime, as these tests aren't used.
15643 * tests/test-stat-time.c (test_birthtime): Adjust to new API.
15645 2007-03-27 Bruno Haible <bruno@clisp.org>
15647 * lib/stat-time.h: Include <sys/stat.h>.
15649 2007-03-27 James Youngman <jay@gnu.org>
15651 * lib/stat-time.h (get_stat_birthtime): New function for
15652 retrieving st_birthtime as provided by UFS2 (hence *BSD).
15653 * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
15655 * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
15656 * modules/stat-time-test: New file.
15657 * tests/test-stat-time.c: New test, devised by Bruno Haible.
15659 2007-03-26 Bruno Haible <bruno@clisp.org>
15661 Better support of signalling NaNs.
15662 * lib/atanl.c: Include isnanl.h.
15663 (atanl): Perform test for NaN at the beginning of the function and
15664 through a call to isnanl.
15665 * lib/cosl.c: Include isnanl.h.
15666 (cosl): Perform test for NaN at the beginning of the function and
15667 through a call to isnanl.
15668 * lib/ldexpl.c: Include isnanl.h.
15669 (ldexpl): Perform test for NaN through a call to isnanl.
15670 * lib/logl.c: Include isnanl.h.
15671 (logl): Perform test for NaN at the beginning of the function and
15672 through a call to isnanl.
15673 * lib/sinl.c: Include isnanl.h.
15674 (sinl): Perform test for NaN at the beginning of the function and
15675 through a call to isnanl.
15676 * lib/sqrtl.c: Include isnanl.h.
15677 (sqrtl): Perform test for NaN at the beginning of the function and
15678 through a call to isnanl.
15679 * lib/tanl.c: Include isnanl.h.
15680 (tanl): Perform test for NaN at the beginning of the function and
15681 through a call to isnanl.
15682 * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
15683 * modules/mathl (Depends-on): Add isnanl.
15685 2007-03-26 Eric Blake <ebb9@byu.net>
15687 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
15688 regression in logic sense of previous patch.
15690 2007-03-26 Bruno Haible <bruno@clisp.org>
15692 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
15693 unportable shell command "if ! ...".
15694 Reported by Ralf Wildenhues.
15696 2007-03-25 Bruno Haible <bruno@clisp.org>
15698 * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
15699 <sysexits.h> file, and only add EX_CONFIG.
15700 * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
15701 absolute file name and whether it is sufficient. Substitute also
15702 HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
15703 * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
15704 ABSOLUTE_SYSEXITS_H into sysexits.h.
15706 2007-03-25 Bruno Haible <bruno@clisp.org>
15708 * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
15711 2007-03-25 Bruno Haible <bruno@clisp.org>
15713 * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
15714 * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
15716 2007-03-25 Bruno Haible <bruno@clisp.org>
15718 * lib/vasnprintf.c: Include langinfo.h.
15719 (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
15721 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
15722 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
15723 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
15724 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
15725 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
15726 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
15727 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
15728 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
15729 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
15730 Reported by Simon Josefsson.
15732 2007-03-25 Bruno Haible <bruno@clisp.org>
15734 * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
15735 (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
15736 * modules/vasnprintf (Depends-on): Add stdint.
15738 2007-03-25 Bruno Haible <bruno@clisp.org>
15740 * modules/fpieee: New file.
15741 * m4/fpieee.m4: New file.
15742 * modules/isnan-nolibm (Depends-on): Add fpieee.
15743 * modules/isnanl-nolibm (Depends-on): Add fpieee.
15744 * modules/isnanl (Depends-on): Add fpieee.
15746 2007-03-25 Bruno Haible <bruno@clisp.org>
15748 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
15750 2007-03-25 Bruno Haible <bruno@clisp.org>
15752 Avoid test failures on IRIX 6.5.
15753 * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
15755 * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
15759 2007-03-25 Bruno Haible <bruno@clisp.org>
15761 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
15762 (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
15763 exists but doesn't work.
15764 * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
15765 is set. Don't provide a prototype if REPLACE_FREXPL is not set.
15766 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
15767 * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
15769 2007-03-25 Bruno Haible <bruno@clisp.org>
15771 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
15772 returns inf. Needed on IRIX 6.5.
15774 2007-03-25 Bruno Haible <bruno@clisp.org>
15776 * tests/test-frexpl.c: Include isnanl-nolibm.h.
15777 (main): Use isnanl instead of x != x idiom.
15778 * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
15780 * tests/test-frexp.c: Include isnan.h.
15781 (main): Use isnan instead of x != x idiom.
15782 * modules/frexp-tests (Depends-on): Add isnan-nolibm.
15784 2007-03-25 Bruno Haible <bruno@clisp.org>
15786 * tests/test-frexp.c (NaN): New function/macro.
15787 (main): Use it instead of 0.0 / 0.0.
15788 * tests/test-isnan.c (NaN): New function/macro.
15789 (main): Use it instead of 0.0 / 0.0.
15790 * tests/test-vasnprintf-posix.c (NaN): New function/macro.
15791 (test_function): Use it instead of 0.0 / 0.0.
15792 * tests/test-vasprintf-posix.c (NaN): New function/macro.
15793 (test_function): Use it instead of 0.0 / 0.0.
15794 * tests/test-snprintf-posix.h (NaN): New function/macro.
15795 (test_function): Use it instead of 0.0 / 0.0.
15796 * tests/test-sprintf-posix.h (NaN): New function/macro.
15797 (test_function): Use it instead of 0.0 / 0.0.
15798 * tests/test-fprintf-posix.h (NaN): New function/macro.
15799 (test_function): Use it instead of 0.0 / 0.0.
15800 * tests/test-printf-posix.h (NaN): New function/macro.
15801 (test_function): Use it instead of 0.0 / 0.0.
15803 * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
15805 2007-03-25 Bruno Haible <bruno@clisp.org>
15807 * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
15809 2007-03-25 Bruno Haible <bruno@clisp.org>
15811 * lib/regexec.c (merge_state_with_log): Make static.
15813 2007-03-25 Bruno Haible <bruno@clisp.org>
15815 * lib/trigl.c (kernel_rem_pio2): Make static.
15817 2007-03-25 Bruno Haible <bruno@clisp.org>
15819 * lib/sincosl.c (sincosl_table): Make static.
15821 2007-03-25 Bruno Haible <bruno@clisp.org>
15823 * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
15824 if the compiler does not support C99.
15826 2007-03-25 Bruno Haible <bruno@clisp.org>
15828 * modules/time (Makefile.am): Ensure all rule action lines start with a
15831 2007-03-24 Bruno Haible <bruno@clisp.org>
15833 * modules/tsearch-tests: New file.
15834 * tests/test-tsearch.sh: New file.
15835 * tests/test-tsearch.c: New file, mostly copied from glibc.
15837 * modules/search-tests: New file.
15838 * tests/test-search.c: New file.
15840 * modules/search: New file.
15841 * lib/search_.h: New file, incorporating lib/tsearch.h.
15842 * m4/search_h.m4: New file.
15843 * lib/tsearch.h: Remove file.
15844 * lib/tsearch.c: Include search.h instead of tsearch.h.
15845 * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
15847 * modules/tsearch (Files): Remove lib/tsearch.h.
15848 (Depends-on): Add search.
15849 (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
15850 (Include): Change tsearch.h into search.h.
15852 2007-03-24 Bruno Haible <bruno@clisp.org>
15854 * modules/fpucw: New file.
15855 * lib/fpucw.h: New file.
15856 * lib/frexp.c: Include fpucw.h.
15857 (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
15859 * lib/printf-frexp.c: Include fpucw.h.
15860 (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
15862 * lib/vasnprintf.c: Include fpucw.h.
15863 (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
15864 'long double' calculations.
15865 * tests/test-frexpl.c: Include fpucw.h.
15866 (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
15867 * tests/test-printf-frexpl.c: Include fpucw.h.
15868 (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
15869 * modules/frexpl (Depends-on): Add fpucw.
15870 * modules/printf-frexpl (Depends-on): Likewise.
15871 * modules/fprintf-posix (Depends-on): Likewise.
15872 * modules/snprintf-posix (Depends-on): Likewise.
15873 * modules/sprintf-posix (Depends-on): Likewise.
15874 * modules/vasnprintf-posix (Depends-on): Likewise.
15875 * modules/vasprintf-posix (Depends-on): Likewise.
15876 * modules/vfprintf-posix (Depends-on): Likewise.
15877 * modules/vsnprintf-posix (Depends-on): Likewise.
15878 * modules/vsprintf-posix (Depends-on): Likewise.
15879 * modules/frexpl-tests (Depends-on): Likewise.
15880 * modules/printf-frexpl-tests (Depends-on): Likewise.
15882 2007-03-24 Bruno Haible <bruno@clisp.org>
15884 * lib/float+.h: New file.
15885 * lib/isnan.c: Include float+.h.
15887 (FUNC): Compare only SIZE bytes of the value.
15888 * lib/vasnprintf.c: Include float+.h.
15889 (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
15890 SIZEOF_LDBL or SIZEOF_DBL bytes.
15891 * modules/isnan-nolibm (Files): Add lib/float+.h.
15892 * modules/isnanl-nolibm (Files): Add lib/float+.h.
15893 * modules/isnanl (Files): Add lib/float+.h.
15894 * modules/vasnprintf (Files): Add lib/float+.h.
15896 2007-03-24 Bruno Haible <bruno@clisp.org>
15898 * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
15899 include isnanl-nolibm.h.
15901 2007-03-24 Bruno Haible <bruno@clisp.org>
15903 * tests/test-read-file.c (main): Don't produce spurious output for
15904 expected situations. Make the test fail if it encountered unexpected
15907 2007-03-24 Bruno Haible <bruno@clisp.org>
15909 * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
15910 since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
15912 2007-03-24 Bruno Haible <bruno@clisp.org>
15914 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
15916 2007-03-24 Bruno Haible <bruno@clisp.org>
15918 * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
15919 utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
15921 * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
15922 * modules/utf8-ucs4: Turn into a symbolic link to module
15925 * modules/unistr/u8-mbtouc-unsafe: Add source files from module
15927 * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
15928 unistr/u8-mbtouc-unsafe.
15930 * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
15931 * modules/utf16-ucs4: Turn into a symbolic link to module
15934 * modules/unistr/u16-mbtouc-unsafe: Add source files from module
15936 * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
15937 unistr/u16-mbtouc-unsafe.
15939 * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
15940 * modules/ucs4-utf8: Turn into a symbolic link to module
15943 * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
15944 * modules/ucs4-utf16: Turn into a symbolic link to module
15947 2007-03-24 Bruno Haible <bruno@clisp.org>
15949 * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
15950 Enable the function only if HAVE_INLINE.
15951 * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
15952 lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
15953 * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
15954 Enable the function only if HAVE_INLINE.
15955 * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
15956 lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
15957 * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
15958 Enable the function only if HAVE_INLINE.
15959 * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
15960 Enable the function only if HAVE_INLINE.
15961 * modules/utf8-ucs4: Update.
15962 * modules/utf8-ucs4-unsafe: Update.
15963 * modules/utf16-ucs4: Update.
15964 * modules/utf16-ucs4-unsafe: Update.
15965 * modules/ucs4-utf8: Update.
15966 * modules/ucs4-utf16: Update.
15968 2007-03-24 Bruno Haible <bruno@clisp.org>
15970 * lib/utf8-ucs4.h: Remove file.
15971 * lib/utf8-ucs4-unsafe.h: Remove file.
15972 * lib/utf16-ucs4.h: Remove file.
15973 * lib/utf16-ucs4-unsafe.h: Remove file.
15974 * lib/ucs4-utf8.h: Remove file.
15975 * lib/ucs4-utf16.h: Remove file.
15976 * lib/unistr.h: Include their previous contents.
15977 * m4/utf-ucs4.m4: Remove file.
15978 * m4/ucs4-utf.m4: Remove file.
15979 * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
15980 (Depends-on): Add unistr/base.
15981 (configure.ac): Remove gl_UTF_UCS4.
15982 (Makefile.am): Update.
15983 (Include): Change to unistr.h.
15984 * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
15985 (Depends-on): Add unistr/base.
15986 (configure.ac): Remove gl_UTF_UCS4.
15987 (Makefile.am): Update.
15988 (Include): Change to unistr.h.
15989 * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
15990 (Depends-on): Add unistr/base.
15991 (configure.ac): Remove gl_UTF_UCS4.
15992 (Makefile.am): Update.
15993 (Include): Change to unistr.h.
15994 * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
15995 (Depends-on): Add unistr/base.
15996 (configure.ac): Remove gl_UTF_UCS4.
15997 (Makefile.am): Update.
15998 (Include): Change to unistr.h.
15999 * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
16000 (Depends-on): Add unistr/base.
16001 (configure.ac): Remove gl_UCS4_UTF.
16002 (Makefile.am): Update.
16003 (Include): Change to unistr.h.
16004 * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
16005 (Depends-on): Add unistr/base.
16006 (configure.ac): Remove gl_UCS4_UTF.
16007 (Makefile.am): Update.
16008 (Include): Change to unistr.h.
16009 * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
16010 * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
16011 utf8-ucs4-unsafe.h.
16012 * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
16013 * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
16014 utf16-ucs4-unsafe.h.
16015 * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
16016 * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
16017 * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
16018 * lib/unistr/u8-strchr.c: Likewise.
16019 * lib/unistr/u8-strrchr.c: Likewise.
16020 * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
16021 * lib/unistr/u16-strchr.c: Likewise.
16022 * lib/unistr/u16-strrchr.c: Likewise.
16023 * lib/striconveh.c: Update.
16024 * lib/linebreak.c: Update.
16026 2007-03-24 Bruno Haible <bruno@clisp.org>
16028 * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
16029 arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
16031 2007-03-22 Bruno Haible <bruno@clisp.org>
16033 * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
16035 2007-03-23 Paul Eggert <eggert@cs.ucla.edu>
16037 * MODULES.html.sh (File system functions): New module write-any-file.
16038 * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
16039 * m4/write-any-file.m4: New files.
16041 2007-03-23 Eric Blake <ebb9@byu.net>
16043 * gnulib-tool: Rearrange space-tab sequences, since some editors
16046 2007-03-23 Eric Blake <ebb9@byu.net>
16048 * lib/version-etc.c (version_etc_va): Update license wording to
16049 be more concise. Recommended by Richard Stallman.
16051 2007-03-22 Bruno Haible <bruno@clisp.org>
16053 * lib/poll.c (MSG_PEEK): New fallback definition.
16055 2007-03-22 Bruno Haible <bruno@clisp.org>
16057 * modules/sys_socket-tests (configure.ac): Check for shutdown function.
16058 * tests/test-sys_socket.c (a): Test only if shutdown() exists.
16060 Fixes a compilation error on BeOS.
16062 2007-03-22 Bruno Haible <bruno@clisp.org>
16064 * modules/frexpl-tests: New file.
16065 * tests/test-frexpl.c: New file.
16067 * modules/frexpl: New file.
16068 * m4/frexpl.m4: New file.
16069 * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
16070 * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
16071 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
16072 * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
16073 (Depends-on): Add frexpl. Remove isnanl-nolibm.
16074 * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
16076 2007-03-22 Bruno Haible <bruno@clisp.org>
16078 * lib/frexpl.c: Share code with lib/frexp.c.
16079 * modules/mathl (Files): Add lib/frexp.c.
16080 (Depends-on): Add isnanl-nolibm.
16082 2007-03-22 Bruno Haible <bruno@clisp.org>
16084 * modules/printf-frexp (Files): Add m4/frexp.m4.
16085 * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
16086 only if the found frexp function actually works.
16088 2007-03-22 Bruno Haible <bruno@clisp.org>
16090 * lib/frexp.c: Remove older implementation that uses divisions.
16092 2007-03-21 Bruno Haible <bruno@clisp.org>
16094 * modules/frexp-tests: New file.
16095 * tests/test-frexp.c: New file.
16097 * modules/frexp: New file.
16098 * lib/frexp.c: New file.
16099 * m4/frexp.m4: New file.
16100 * lib/math_.h (frexp): New declaration.
16101 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
16103 * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
16105 2007-03-21 Bruno Haible <bruno@clisp.org>
16107 * modules/isnanl-tests: New file.
16108 * tests/test-isnanl.c: New file.
16110 * modules/isnanl: New file.
16111 * lib/isnanl.h: New file.
16112 * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
16113 (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
16114 gl_FUNC_ISNANL_WORKS.
16115 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
16118 2007-03-21 Bruno Haible <bruno@clisp.org>
16120 * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
16123 * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
16124 * lib/vasnprintf.c: Update.
16125 * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
16126 tests/test-isnanl.h, remove tests/test-isnanl.c.
16127 (Makefile.am): Update.
16128 * tests/test-isnanl-nolibm.c: New file.
16129 * tests/test-isnanl.h: New file.
16130 * tests/test-isnanl.c: Remove file.
16132 2007-03-21 Jim Meyering <jim@meyering.net>
16134 When trying to open ".", treat ESTALE like EACCES.
16135 * lib/savewd.c (savewd_save): Resort to forking not just upon
16136 failure with EACCES, but also when errno is ESTALE.
16138 2007-03-20 Bruno Haible <bruno@clisp.org>
16140 * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
16141 Needed on AIX 5.1. Reported by Matthew Woehlke.
16143 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
16145 Suggestions by Bruno Haible:
16146 * lib/acl-internal.h: Include "gettext.h" rather than rolling
16148 (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
16149 * modules/acl (Depends-on): Add gettext.
16151 2007-03-19 Bruno Haible <bruno@clisp.org>
16153 * modules/iconvme: Remove file.
16154 * lib/iconvme.h: Remove file.
16155 * lib/iconvme.c: Remove file.
16156 * m4/iconvme.m4: Remove file.
16158 2007-03-19 Bruno Haible <bruno@clisp.org>
16160 * doc/relocatable-maint.texi: Break long shell script line.
16161 Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
16163 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
16165 Add limited support for Solaris 10 ZFS-style ACLs: just enough to
16166 handle file_has_acl.
16167 * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
16168 * lib/acl.c: Move header inclusions and related macro defns into
16169 lib/acl-internal.h.
16170 (S_ISLNK): Remove defn, since that's now done for us.
16171 (file_has_acl): Move to lib/file-has-acl.c.
16172 Call acl_trivial if available. This is the crucial part of the fix.
16173 (acl_entries): Move to lib/acl_entries.c. Now extern, since it's
16174 shared within the library. Rewrite a bit, partly to make it compatible
16175 with the GNU coding style.
16176 * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
16177 Remove unnecessary double-quotes.
16178 Don't test for acl_to_text; the build will catch that.
16179 Replace acl_entries if it doesn't exist and it is needed.
16180 Check for -lsec and acl_trivial (as used on Solaris 10).
16181 * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
16182 lib/file-has-acl.c.
16183 (Depends-on): Add sys_stat, for S_ISLNK.
16185 2007-03-19 Ben Pfaff <blp@gnu.org>
16187 * doc/gnulib.texi: Fix typos.
16188 Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
16190 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
16192 * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
16193 If size is zero here, buf must be zero.
16195 2007-03-19 Simon Josefsson <simon@josefsson.org>
16197 * des.c: Remove weak_keys_chksum. Reported by Bruno Haible
16200 2007-03-18 Bruno Haible <bruno@clisp.org>
16202 * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
16203 Suggested by Eric Blake.
16205 2007-03-18 Ben Pfaff <blp@gnu.org>
16207 * doc/relocatable.texi: Recommend using as prefix a directory
16208 that does not exist and will never be created. Based on
16209 discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
16212 2007-03-17 Bruno Haible <bruno@clisp.org>
16214 * lib/fchownat.c: Include lchown.h.
16216 2007-03-17 Bruno Haible <bruno@clisp.org>
16218 Fix endless loop when the given allocated size was > INT_MAX.
16219 * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
16220 (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
16221 larger than INT_MAX, or when it grow to a value larger than INT_MAX.
16222 * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
16223 * lib/sprintf.c (sprintf): Likewise.
16225 2007-03-17 Bruno Haible <bruno@clisp.org>
16227 * tests/test-argp-2.sh (func_compare): Output a context diff.
16229 2007-03-17 Bruno Haible <bruno@clisp.org>
16231 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
16232 locale's decimal-point character.
16234 2007-03-17 Bruno Haible <bruno@clisp.org>
16236 * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
16237 before comparing it. Needed because on some platforms (e.g. x86) a
16238 'long double' occupies less bytes than sizeof (long double).
16240 2007-03-17 Bruno Haible <bruno@clisp.org>
16242 * tests/test-crc.c (main): Make printf statements 64-bit clean.
16243 * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
16244 * tests/test-getaddrinfo.c (simple): Likewise.
16245 * tests/test-read-file.c (main): Likewise.
16247 2007-03-17 Bruno Haible <bruno@clisp.org>
16249 * tests/test-dirname.c (main): Make printf statements 64-bit clean.
16251 2007-03-17 Bruno Haible <bruno@clisp.org>
16253 * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
16256 2007-03-17 Bruno Haible <bruno@clisp.org>
16258 * tests/test-c-strcasecmp.c: Include c-strcase.h.
16259 * tests/test-c-strncasecmp.c: Likewise.
16261 2007-03-17 Bruno Haible <bruno@clisp.org>
16263 * modules/stdlib (Depends-on): Add unistd.
16264 * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
16265 Needed for MacOS X 10.3.
16267 2007-03-17 Bruno Haible <bruno@clisp.org>
16269 * lib/unistr/u-strdup.h: Include <stdlib.h>.
16271 2007-03-17 Bruno Haible <bruno@clisp.org>
16273 * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
16275 2007-03-17 Bruno Haible <bruno@clisp.org>
16277 * gnulib-tool (func_import): Update .cvsignore and .gitignore files
16278 to reflect files copied from gnulib (with or without modifications).
16279 Suggested by Jim Meyering.
16281 2007-03-17 Eric Blake <ebb9@byu.net>
16283 * NEWS: Document stdlib change from 2007-02-18.
16285 2007-03-17 Jim Meyering <jim@meyering.net>
16287 Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
16288 * build-aux/bootstrap: Put ""s around use of $build_aux, in case
16289 someone uses a name containing shell meta-characters.
16290 Reported by Alfred M. Szmidt.
16292 * build-aux/bootstrap: Don't use \> in grep regexp. For HP-UX.
16294 2007-03-16 Alfred M. Szmidt <ams@gnu.org>
16296 * build-aux/bootstrap (with_gettext): New variable. Run autopoint
16297 and copy gettext configuration files only if configure.ac contains
16298 a use of AM_GNU_GETTEXT_VERSION.
16300 2007-03-16 Alfred M. Szmidt <ams@gnu.org>
16302 * build-aux/bootstrap (gnulib_name): New variable.
16303 (gnulib_tool_options): Use it.
16305 2007-03-13 Simon Josefsson <simon@josefsson.org>
16307 * tests/test-des.c: Use new namespace.
16309 2007-03-15 Bruno Haible <bruno@clisp.org>
16311 * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
16312 Reported by James Youngman <jay@gnu.org>.
16314 2007-03-15 Bruno Haible <bruno@clisp.org>
16316 * lib/glob.c (glob): Add 'restrict' so that prototype matches the
16317 declared prototype. Needed with cc on OSF/1 5.1.
16319 2007-03-15 Bruno Haible <bruno@clisp.org>
16321 * lib/gl_list.h (gl_listelement_dispose_fn): New type.
16322 (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
16323 (struct gl_list_implementation): Add dispose_fn argument to the
16324 'create_empty', 'create' methods.
16325 (struct gl_list_impl_base): Add field 'dispose_fn'.
16326 * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
16328 * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
16329 dispose_fn argument.
16330 (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
16331 dispose_fn on the dropped values.
16332 * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
16333 dispose_fn argument.
16334 (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
16336 * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
16337 (gl_tree_remove_node): Call dispose_fn on the dropped value.
16338 * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
16339 (gl_tree_remove_node): Call dispose_fn on the dropped value.
16340 * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
16342 (gl_tree_list_free): Call dispose_fn on the dropped values.
16343 * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
16344 the dropped values.
16345 * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
16346 Add dispose_fn argument.
16347 (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
16348 Call dispose_fn on the dropped values.
16349 * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
16350 Add dispose_fn argument.
16351 (gl_sublist_create): Initialize the 'dispose_fn' field.
16352 * lib/clean-temp.c (create_temp_dir, register_fd): Update.
16353 * tests/test-array_list.c (main): Update.
16354 * tests/test-carray_list.c (main): Update.
16355 * tests/test-avltree_list.c (main): Update.
16356 * tests/test-rbtree_list.c (main): Update.
16357 * tests/test-avltreehash_list.c (main): Update.
16358 * tests/test-rbtreehash_list.c (main): Update.
16359 * tests/test-linked_list.c (main): Update.
16360 * tests/test-linkedhash_list.c (main): Update.
16361 * tests/test-array_oset.c (main): Update.
16363 2007-03-15 Bruno Haible <bruno@clisp.org>
16365 * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
16366 (gl_oset_create_empty): Add dispose_fn argument.
16367 (struct gl_oset_implementation): Add dispose_fn argument to
16368 'create_empty' method.
16369 (struct gl_oset_impl_base): Add dispose_fn field.
16370 * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
16371 * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
16372 (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
16374 * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
16375 (gl_tree_oset_free): Call dispose_fn on the dropped values.
16376 * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
16378 * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
16380 * tests/test-array_oset.c (main): Update.
16381 * tests/test-avltree_oset.c (main): Update.
16382 * tests/test-rbtree_oset.c (main): Update.
16383 * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
16385 2007-03-13 Bruno Haible <bruno@clisp.org>
16387 * tests/test-stdbool.c (i): Update after last patch.
16389 2007-03-12 Bruno Haible <bruno@clisp.org>
16391 * lib/quotearg.c: Include <wctype.h> early, before the definition of
16392 the iswprint macro. Needed on Solaris 2.5.1.
16394 2007-03-12 Bruno Haible <bruno@clisp.org>
16396 * tests/test-printf-frexp.c (main): Declare x as volatile.
16398 2007-03-12 Simon Josefsson <simon@josefsson.org>
16400 * doc/gnulib.texi (Build robot for gnulib): New section.
16402 2007-03-12 Jim Meyering <jim@meyering.net>
16404 * build-aux/bootstrap: New file.
16405 * build-aux/bootstrap.conf: New file, from coreutils.
16407 2007-03-11 Bruno Haible <bruno@clisp.org>
16409 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
16411 2007-03-12 Simon Josefsson <simon@josefsson.org>
16413 * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
16414 avoid collisions with 'des_setkey'. Reported by Bruno Haible
16415 <bruno@clisp.org>. Also change 'tripledes_' to '3des_'.
16417 2007-03-11 Bruno Haible <bruno@clisp.org>
16419 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
16420 compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
16422 2007-03-11 Bruno Haible <bruno@clisp.org>
16424 * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
16425 formula. Needed for SunPRO C 5.0.
16427 2007-03-11 Bruno Haible <bruno@clisp.org>
16429 * modules/long-options (Depends-on): Add getopt.
16431 2007-03-11 Bruno Haible <bruno@clisp.org>
16433 * modules/modechange (Depends-on): Add stdbool.
16435 2007-03-11 Bruno Haible <bruno@clisp.org>
16437 * modules/i-ring (Depends-on): Add stdbool.
16439 2007-03-11 Bruno Haible <bruno@clisp.org>
16441 * modules/gc-des (Depends-on): Add stdbool.
16443 2007-03-11 Bruno Haible <bruno@clisp.org>
16445 * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
16447 2007-03-11 Bruno Haible <bruno@clisp.org>
16449 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
16451 2007-03-11 Bruno Haible <bruno@clisp.org>
16453 * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
16455 2007-03-11 Bruno Haible <bruno@clisp.org>
16457 * lib/vasnprintf.c (sprintf): Undefine.
16459 2007-03-11 Bruno Haible <bruno@clisp.org>
16461 * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
16462 initializers in SunPRO C and Compaq C compilers.
16464 2007-03-11 Bruno Haible <bruno@clisp.org>
16466 * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
16467 decrementing code ANSI C compliant.
16469 2007-03-11 Bruno Haible <bruno@clisp.org>
16471 * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
16472 Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
16474 2007-03-11 Bruno Haible <bruno@clisp.org>
16476 * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
16477 <stdbool.h> substitute doesn't pass.
16479 2007-03-11 Bruno Haible <bruno@clisp.org>
16481 * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
16483 2007-03-11 Bruno Haible <bruno@clisp.org>
16485 * gnulib-tool (func_create_megatestdir): Create also an autobuild
16486 script, for submission to autobuild.josefsson.org.
16488 2007-03-10 Bruno Haible <bruno@clisp.org>
16490 * modules/canonicalize-lgpl-tests: New file.
16491 * tests/test-canonicalize-lgpl.sh: New file.
16492 * tests/test-canonicalize-lgpl.c: New file.
16494 * modules/c-strcase-tests: New file.
16495 * tests/test-c-strcase.sh: New file.
16496 * tests/test-c-strcasecmp.c: New file.
16497 * tests/test-c-strncasecmp.c: New file.
16499 * modules/atexit-tests: New file.
16500 * tests/test-atexit.sh: New file.
16501 * tests/test-atexit.c: New file.
16503 2007-03-10 Bruno Haible <bruno@clisp.org>
16505 * tests/test-binary-io.sh: Use temporary filenames that are not so
16506 likely to clash with those of other tests (in a parallel make).
16507 * tests/test-binary-io.c: Likewise.
16509 2007-03-10 Bruno Haible <bruno@clisp.org>
16511 * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
16512 fallback; use #error instead.
16513 Suggested by Simon Josefsson.
16515 2007-03-10 Bruno Haible <bruno@clisp.org>
16517 * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
16518 CLEANFILES. Put spaces in each line of $cleaned_files, not only the
16519 first and the last.
16521 2007-03-10 Bruno Haible <bruno@clisp.org>
16523 * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
16525 2007-03-10 Bruno Haible <bruno@clisp.org>
16527 * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
16529 * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
16530 * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
16531 * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
16533 2007-03-10 Bruno Haible <bruno@clisp.org>
16535 * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
16537 * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
16540 2007-03-09 Eric Blake <ebb9@byu.net>
16541 and Matthew Woehlke <mw_triad@users.sourceforge.net> (tiny change)
16543 * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
16544 types are not being provided by gnulib.
16545 (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
16546 types are supported.
16548 2007-03-10 Bruno Haible <bruno@clisp.org>
16550 * lib/stdio_.h (__attribute__): New macro.
16551 (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
16552 vsprintf): Specify __attribute__ __format__ for GCC.
16553 Suggested by Eric Blake.
16555 2007-03-09 Bruno Haible <bruno@clisp.org>
16557 * modules/printf-posix-tests: New file.
16558 * tests/test-printf-posix.sh: New file.
16559 * tests/test-printf-posix.c: New file.
16561 * modules/printf-posix: New file.
16562 * lib/printf.c: New file.
16563 * m4/printf-posix-rpl.m4: New file.
16564 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
16566 * lib/stdio_.h (printf): New declaration.
16567 (format, __format__, ____printf____, ____scanf____, ____strftime____,
16568 ____strfmon____): New macros.
16569 * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
16572 2007-03-09 Bruno Haible <bruno@clisp.org>
16574 * tests/test-vasnprintf-posix2.sh: New file.
16575 * tests/test-vasnprintf-posix2.c: New file.
16576 * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
16577 (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
16578 (Makefile.am): Activate test-vasnprintf-posix2.sh.
16580 * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
16581 a locale dependent decimal point, rather than always '.'.
16583 2007-03-09 Eric Blake <ebb9@byu.net>
16585 * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
16586 spite of platforms like Tandem/NSK that define it to -1.
16588 2007-03-08 Bruno Haible <bruno@clisp.org>
16590 * modules/vprintf-posix-tests: New file.
16591 * tests/test-vprintf-posix.sh: New file.
16592 * tests/test-vprintf-posix.c: New file.
16593 * tests/test-printf-posix.h: New file.
16595 * modules/vprintf-posix: New file.
16596 * lib/vprintf.c: New file.
16597 * m4/vprintf-posix.m4: New file.
16598 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
16600 * lib/stdio_.h (vprintf): New declaration.
16601 * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
16604 2007-03-08 Bruno Haible <bruno@clisp.org>
16606 * modules/fprintf-posix-tests: New file.
16607 * tests/test-fprintf-posix.sh: New file.
16608 * tests/test-fprintf-posix.c: New file.
16610 * modules/fprintf-posix: New file.
16611 * lib/fprintf.c: New file.
16612 * m4/fprintf-posix.m4: New file.
16613 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
16615 * lib/stdio_.h (fprintf): New declaration.
16616 * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
16619 2007-03-08 Bruno Haible <bruno@clisp.org>
16621 * modules/vfprintf-posix-tests: New file.
16622 * tests/test-vfprintf-posix.sh: New file.
16623 * tests/test-vfprintf-posix.c: New file.
16624 * tests/test-fprintf-posix.h: New file.
16625 * tests/test-fprintf-posix.out: New file.
16627 * modules/vfprintf-posix: New file.
16628 * lib/vfprintf.c: New file.
16629 * m4/vfprintf-posix.m4: New file.
16630 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
16632 * lib/stdio_.h (vfprintf): New declaration.
16633 * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
16636 2007-03-08 Bruno Haible <bruno@clisp.org>
16638 * lib/stdio_.h: Treat __need___FILE like __need_FILE.
16640 2007-03-08 Bruno Haible <bruno@clisp.org>
16642 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
16643 instead of 'expr' invocations.
16644 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
16645 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
16646 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
16647 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
16648 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
16649 Suggested by Paul Eggert.
16651 2007-03-08 Bruno Haible <bruno@clisp.org>
16653 * modules/fseterr-tests: New file.
16654 * tests/test-fseterr.c: New file.
16656 * modules/fseterr: New file.
16657 * lib/fseterr.h: New file.
16658 * lib/fseterr.c: New file.
16660 2007-03-08 Bruno Haible <bruno@clisp.org>
16662 * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
16663 * lib/getopt_.h: Likewise.
16664 * lib/mbswidth.h: Likewise.
16665 * lib/setenv.h: Likewise.
16666 * lib/vasnprintf.h: Likewise.
16667 * lib/vasprintf.h: Likewise.
16668 * lib/verror.h: Likewise.
16669 * lib/xsetenv.h: Likewise.
16670 * lib/xvasprintf.h: Likewise.
16672 2007-03-08 Jim Meyering <jim@meyering.net>
16674 * users.txt: Add parted.
16676 * ChangeLog: Restore 1500 lines mistakenly removed from the end.
16678 2007-03-07 Bruno Haible <bruno@clisp.org>
16680 * m4/printf.m4: Make the shell script snippets copy&pastable.
16682 2007-03-02 Bruno Haible <bruno@clisp.org>
16684 * lib/netinet_in_.h: New file.
16685 * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
16686 is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
16687 * modules/netinet_in (Files): Add lib/netinet_in_.h.
16688 (Depends-on): Add absolute-header.
16689 (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
16692 2007-03-03 Bruno Haible <bruno@clisp.org>
16694 * lib/sys_select_.h: New file.
16695 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
16696 is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
16697 * modules/sys_select (Files): Add lib/sys_select_.h.
16698 (Depends-on): Add absolute-header.
16699 (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
16702 2007-03-02 Bruno Haible <bruno@clisp.org>
16704 * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
16705 before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
16707 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
16708 <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
16709 HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
16710 * modules/sys_socket (Depends-on): Add absolute-header.
16711 (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
16712 HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
16713 (Include): Remove requirement of inclusion of <sys/types.h>.
16715 2007-03-02 Bruno Haible <bruno@clisp.org>
16717 * lib/byteswap_.h (bswap_32): Fix formula.
16719 2007-03-06 Bruno Haible <bruno@clisp.org>
16721 * modules/sprintf-posix-tests: New file.
16722 * tests/test-sprintf-posix.c: New file.
16724 * modules/sprintf-posix: New file.
16725 * lib/sprintf.c: New file.
16726 * m4/sprintf-posix.m4: New file.
16727 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
16729 * lib/stdio_.h (sprintf): New declaration.
16730 * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
16733 2007-03-06 Bruno Haible <bruno@clisp.org>
16735 * modules/vsprintf-posix-tests: New file.
16736 * tests/test-vsprintf-posix.c: New file.
16737 * tests/test-sprintf-posix.h: New file.
16739 * modules/vsprintf-posix: New file.
16740 * lib/vsprintf.c: New file.
16741 * m4/vsprintf-posix.m4: New file.
16742 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
16744 * lib/stdio_.h (vsprintf): New declaration.
16745 * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
16748 2007-03-06 Bruno Haible <bruno@clisp.org>
16750 * modules/vsnprintf (Depend-on): Remove minmax.
16752 2007-03-06 Bruno Haible <bruno@clisp.org>
16754 * modules/snprintf-posix-tests: New file.
16755 * tests/test-snprintf-posix.c: New file.
16757 * modules/snprintf-posix: New file.
16758 * m4/snprintf-posix.m4: New file.
16759 * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
16761 (gl_FUNC_SNPRINTF): Invoke it.
16762 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
16763 * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
16765 * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
16767 2007-03-06 Bruno Haible <bruno@clisp.org>
16769 * modules/vsnprintf-posix-tests: New file.
16770 * tests/test-vsnprintf-posix.c: New file.
16771 * tests/test-snprintf-posix.h: New file.
16773 * modules/vsnprintf-posix: New file.
16774 * m4/vsnprintf-posix.m4: New file.
16775 * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
16777 (gl_FUNC_VSNPRINTF): Invoke it.
16778 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
16779 * lib/stdio_.h (vsnprintf): Define as a replacement if
16780 REPLACE_VSNPRINTF is set.
16781 * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
16783 2007-03-06 Bruno Haible <bruno@clisp.org>
16785 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
16786 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
16788 2007-03-06 Bruno Haible <bruno@clisp.org>
16790 * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
16791 (asinl): Declare also if HAVE_DECL_ASINL is set.
16792 (atanl): Declare also if HAVE_DECL_ATANL is set.
16793 (ceill): Declare also if HAVE_DECL_CEILL is set.
16794 (cosl): Declare also if HAVE_DECL_COSL is set.
16795 (expl): Declare also if HAVE_DECL_EXPL is set.
16796 (floorl): Declare also if HAVE_DECL_FLOORL is set.
16797 (frexpl): Declare also if HAVE_DECL_FREXPL is set.
16798 (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
16799 (logl): Declare also if HAVE_DECL_LOGL is set.
16800 (sinl): Declare also if HAVE_DECL_SINL is set.
16801 (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
16802 (tanl): Declare also if HAVE_DECL_TANL is set.
16803 * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
16804 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
16805 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
16806 declaration of frexpl, ldexpl.
16807 * modules/printf-frexpl (Depends-on): Add math.
16808 * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
16810 2007-03-05 Bruno Haible <bruno@clisp.org>
16812 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
16813 frexpl and ldexpl are declared.
16814 * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
16816 2007-03-05 Bruno Haible <bruno@clisp.org>
16818 * gnulib-tool (func_get_automake_snippet): Don't synthesize an
16819 EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
16821 2007-03-05 Bruno Haible <bruno@clisp.org>
16823 * lib/stdio_.h: Include <stddef.h>.
16825 2007-03-05 Bruno Haible <bruno@clisp.org>
16827 * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
16829 2007-03-05 Bruno Haible <bruno@clisp.org>
16831 * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
16832 NetBSD 4, from Ralf Wildenhues.
16834 2007-03-04 Bruno Haible <bruno@clisp.org>
16836 * lib/vasprintf.h: Update #if logic for the case when the functions
16837 exist but are overridden.
16839 2007-03-04 Bruno Haible <bruno@clisp.org>
16841 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
16842 implementations: glibc-2.4 and MacOS X 10.3.
16843 * tests/test-vasnprintf-posix.c (test_function): Test also the case
16844 that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
16845 * tests/test-vasprintf-posix.c (test_function): Likewise.
16847 2007-03-04 Bruno Haible <bruno@clisp.org>
16849 * modules/vasprintf-posix-tests: New file.
16850 * tests/test-vasprintf-posix.c: New file.
16852 * modules/vasprintf-posix: New file.
16853 * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
16855 * m4/vasprintf-posix.m4: New file.
16856 * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
16858 (gl_FUNC_VASPRINTF): Invoke it.
16859 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
16861 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
16863 2007-03-04 Bruno Haible <bruno@clisp.org>
16865 * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
16866 REPLACE_GETTIMEOFDAY.
16867 * modules/sys_time (Makefile.am): Likewise.
16868 * m4/sys_time_h.m4: Likewise.
16869 * m4/gettimeofday.m4: Likewise.
16871 2007-03-04 Bruno Haible <bruno@clisp.org>
16873 * modules/vasnprintf-posix-tests: New file.
16874 * tests/test-vasnprintf-posix.c: New file.
16876 * modules/vasnprintf-posix: New file.
16877 * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
16879 (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
16880 * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
16881 REPLACE_VASNPRINTF is defined.
16882 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
16883 gl_FUNC_VASNPRINTF.
16884 (gl_FUNC_VASNPRINTF): Invoke it.
16885 * m4/vasnprintf-posix.m4: New file.
16886 * m4/printf.m4: New file.
16888 2007-03-04 Bruno Haible <bruno@clisp.org>
16890 Compile progreloc.c only if --enable-relocatable is specified.
16891 * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
16892 if --enable-relocatable was specified.
16893 * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
16896 2007-03-04 Jim Meyering <jim@meyering.net>
16898 * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
16899 Use it consistently, rather than enumerating errno constants.
16901 2007-03-04 Bruno Haible <bruno@clisp.org>
16903 * modules/xvasprintf-tests: New file.
16904 * tests/test-xvasprintf.c: New file.
16906 * modules/vasprintf-tests: New file.
16907 * tests/test-vasprintf.c: New file.
16909 * modules/vasnprintf-tests: New file.
16910 * tests/test-vasnprintf.c: New file.
16912 * modules/vsnprintf-tests: New file.
16913 * tests/test-vsnprintf.c: New file.
16915 * modules/snprintf-tests: New file.
16916 * tests/test-snprintf.c: New file.
16918 2007-03-04 Bruno Haible <bruno@clisp.org>
16920 Compile relocatable.c only if --enable-relocatable is specified.
16921 * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
16922 gl_RELOCATABLE_LIBRARY.
16923 (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
16924 * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
16925 (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
16926 gl_RELOCATABLE_LIBRARY.
16927 * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
16928 (Makefile.am): Remove lib_SOURCES.
16929 * modules/relocatable-lib-lgpl (configure.ac): Invoke
16930 gl_RELOCATABLE_LIBRARY.
16931 (Makefile.am): Remove lib_SOURCES.
16932 * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
16934 * modules/relocatable-prog-wrapper (configure.ac): Invoke
16935 gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
16937 2007-03-04 Bruno Haible <bruno@clisp.org>
16939 * modules/argmatch-tests: New file.
16940 * tests/test-argmatch.c: New file.
16942 * tests/test-allocsa.c (main): Halve the number of loop runs.
16944 * modules/alloca-opt-tests: New file.
16945 * tests/test-alloca-opt.c: New file.
16947 2007-03-04 Jim Meyering <jim@meyering.net>
16949 Work around difference between Linux ACLs and Solaris 10 ZFS.
16950 * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
16953 2007-03-03 Bruno Haible <bruno@clisp.org>
16955 * modules/relocatable-prog (Depends-on): Add back progreloc's
16956 dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
16958 2007-03-03 Bruno Haible <bruno@clisp.org>
16960 * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
16961 * modules/relocatable-lib: New file.
16963 2007-03-03 Bruno Haible <bruno@clisp.org>
16965 * modules/relocatable-prog: Renamed from modules/relocatable.
16966 * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
16968 2007-03-03 Bruno Haible <bruno@clisp.org>
16970 * modules/relocatable-script (Files): Add doc/relocatable.texi,
16971 m4/relocatable-lib.m4.
16972 (Depends-on): Remove 'relocatable'.
16973 (configure.ac): Add gl_RELOCATABLE_NOP.
16975 2007-03-03 Bruno Haible <bruno@clisp.org>
16977 * modules/relocatable-prog-wrapper: New file.
16978 * modules/relocatable (Depends-on): Add it. Remove all other
16979 dependencies except progname.
16980 (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
16982 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
16983 (gl_FUNC_STRERROR): Nop.
16984 * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
16986 * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
16987 * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
16989 * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
16990 (gl_FUNC_READLINK): Update.
16992 * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
16994 2007-03-03 Bruno Haible <bruno@clisp.org>
16996 * lib/xreadlink.c: Include <unistd.h> unconditionally.
16997 * modules/xreadlink (Depends-on): Add unistd.
16998 * modules/xreadlink-with-size (Depends-on): Likewise.
17000 2007-03-03 Bruno Haible <bruno@clisp.org>
17002 * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
17003 extracted from gt_FUNC_SETENV.
17004 (gt_FUNC_SETENV): Remove macro.
17005 * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
17006 remove gt_FUNC_SETENV.
17008 2007-03-03 Bruno Haible <bruno@clisp.org>
17010 * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
17011 ENABLE_RELOCATABLE here.
17012 * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
17014 2007-03-03 Bruno Haible <bruno@clisp.org>
17016 * modules/rbtreehash-list-tests (Depends-on): Add progname.
17017 * tests/test-rbtreehash_list.c: Include progname.h.
17018 (main): Call set_program_name.
17020 * modules/rbtree-oset-tests (Depends-on): Add progname.
17021 * tests/test-rbtree_oset.c: Include progname.h.
17022 (main): Call set_program_name.
17024 * modules/rbtree-list-tests (Depends-on): Add progname.
17025 * tests/test-rbtree_list.c: Include progname.h.
17026 (main): Call set_program_name.
17028 * modules/linked-list-tests (Depends-on): Add progname.
17029 * tests/test-linked_list.c: Include progname.h.
17030 (main): Call set_program_name.
17032 2007-03-03 Bruno Haible <bruno@clisp.org>
17034 * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
17035 All uses of __restrict changed to _Restrict_.
17036 * lib/glob_.h (__restrict): Remove macro.
17038 2007-03-02 Bruno Haible <bruno@clisp.org>
17040 * modules/gettext (configure.ac): Require gettext infrastructure
17041 from version 0.16.1.
17043 2007-03-02 Bruno Haible <bruno@clisp.org>
17045 * modules/linkedhash-list-tests (Depends-on): Add progname.
17046 * tests/test-linkedhash_list.c: Include progname.h.
17047 (main): Call set_program_name.
17049 * modules/carray-list-tests (Depends-on): Add progname.
17050 * tests/test-carray_list.c: Include progname.h.
17051 (main): Call set_program_name.
17053 * modules/avltreehash-list-tests (Depends-on): Add progname.
17054 * tests/test-avltreehash_list.c: Include progname.h.
17055 (main): Call set_program_name.
17057 * modules/avltree-oset-tests (Depends-on): Add progname.
17058 * tests/test-avltree_oset.c: Include progname.h.
17059 (main): Call set_program_name.
17061 * modules/avltree-list-tests (Depends-on): Add progname.
17062 * tests/test-avltree_list.c: Include progname.h.
17063 (main): Call set_program_name.
17065 * modules/array-oset-tests (Depends-on): Add progname.
17066 * tests/test-array_oset.c: Include progname.h.
17067 (main): Call set_program_name.
17069 * modules/array-list-tests (Depends-on): Add progname.
17070 * tests/test-array_list.c: Include progname.h.
17071 (main): Call set_program_name.
17073 * modules/argp-tests (Depends-on): Add progname.
17074 * tests/test-argp.c: Include argp.h first. Include progname.h.
17075 (main): Call set_program_name.
17077 2007-03-02 Paul Eggert <eggert@cs.ucla.edu>
17079 * doc/gnulib-tool.texi (Initial import): Reword description of
17080 _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
17081 limited effect even if defined after the first system include.
17083 2007-03-01 Bruno Haible <bruno@clisp.org>
17085 * build-aux/config.libpath: Update to libtool-1.5.22.
17086 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
17088 2007-03-01 Bruno Haible <bruno@clisp.org>
17090 * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
17092 Reported by Ralf Wildenhues.
17094 2007-03-01 Bruno Haible <bruno@clisp.org>
17096 * build-aux/install-reloc: Remove object files left over by some
17098 Reported by Ralf Wildenhues.
17100 2007-03-01 Bruno Haible <bruno@clisp.org>
17102 * build-aux/install-reloc: Break long lines.
17104 2007-03-01 Bruno Haible <bruno@clisp.org>
17106 * doc/relocatable.texi: Document that it may not work on OpenBSD.
17107 Reported by Ralf Wildenhues.
17109 2007-03-01 Bruno Haible <bruno@clisp.org>
17111 * doc/gnulib-tool.texi (Initial import): Remove paragraph about
17112 include ordering constraints.
17114 2007-03-01 Paul Eggert <eggert@cs.ucla.edu>
17116 Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
17117 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
17118 * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
17119 as another example.
17120 * lib/time_.h: Fix misspelling.
17121 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
17122 Require gl_HEADER_TIME_H_DEFAULTS.
17123 * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
17124 * m4/time_r.m4 (gl_TIME_R): Likewise.
17125 * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
17127 2007-03-01 Bruno Haible <bruno@clisp.org>
17129 * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
17130 * m4/utimens.m4 (gl_UTIMENS): Likewise.
17132 2007-03-01 Jim Meyering <jim@meyering.net>
17134 * modules/xreadlink (Maintainer): Add my name.
17135 * modules/xreadlink-with-size (Depends-on): Alphabetize.
17137 2007-02-26 Ben Pfaff <blp@cs.stanford.edu>
17138 Bruno Haible <bruno@clisp.org>
17140 * build-aux/install-reloc: Compile also c-ctype.c.
17141 * build-aux/relocatable.sh.in: New file.
17142 * doc/relocatable.texi: New file.
17143 * doc/relocatable-maint.texi: New file.
17144 * doc/gnulib.texi: Include relocatable-maint.texi.
17145 * lib/progreloc.c: Include unistd.h unconditionally.
17146 * lib/relocwrapper.c: Include unistd.h unconditionally.
17148 (add_dotbin): Use c_tolower.
17149 * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
17150 (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
17151 (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
17152 * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
17153 to m4/relocatable-lib.m4.
17154 (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
17155 RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
17156 (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
17157 require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
17158 SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
17159 * modules/relocatable: New file.
17160 * modules/relocatable-lib: New file.
17161 * modules/relocatable-script: New file.
17163 2007-02-28 Bruno Haible <bruno@clisp.org>
17165 Import --enable-relocatable infrastructure.
17166 * build-aux/config.libpath: New file, from GNU gettext.
17167 * build-aux/install-reloc: New file, from GNU gettext.
17168 * build-aux/reloc-ldflags: New file, from GNU gettext.
17169 * lib/relocatable.h: New file, from GNU gettext.
17170 * lib/relocatable.c: New file, from GNU gettext.
17171 * lib/relocwrapper.c: New file, from GNU gettext.
17172 * m4/relocatable.m4: New file, from GNU gettext.
17174 2007-02-28 Bruno Haible <bruno@clisp.org>
17176 * MODULES.html.sh (File system functions): Add xreadlink-with-size.
17178 * modules/xreadlink: New file, from GNU gettext with modifications.
17179 * lib/xreadlink.c: New file, from GNU gettext.
17180 * lib/xreadlink.h: Add comments.
17181 (xreadlink): New declaration.
17183 * modules/xreadlink-with-size: Renamed from modules/xreadlink.
17184 (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
17185 lib/xreadlink-with-size.c.
17186 (configure.ac): Remove gl_XREADLINK invocation.
17187 (Makefile.am): Augment lib_SOURCES.
17188 * m4/xreadlink.m4: Remove file.
17189 * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
17190 (xreadlink_with_size): Renamed from xreadink.
17191 * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
17192 * modules/canonicalize (Depends-on): Replace xreadlink with
17193 xreadlink-with-size.
17194 * lib/canonicalize.c (canonicalize_filename_mode): Update.
17196 2007-02-25 Jim Meyering <jim@meyering.net>
17198 * build-aux/announce-gen: When complaining about excess arguments,
17201 2007-02-25 Paul Eggert <eggert@cs.ucla.edu>
17203 * README: Document signed integer overflow situation more
17206 2007-02-25 Bruno Haible <bruno@clisp.org>
17208 * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
17209 'a' or 'A' conversion.
17211 2007-02-25 Bruno Haible <bruno@clisp.org>
17213 * modules/filename: Renamed from modules/pathname.
17214 (Files): Replace lib/pathname.h with lib/filename.h. Replace
17215 lib/concatpath.c with lib/concat-filename.c.
17216 (Makefile.am): Update.
17217 (Include): Replace pathname.h with filename.h.
17218 * lib/filename.h: Renamed from lib/pathname.h.
17219 (concatenated_filename): Renamed from concatenated_pathname.
17220 * lib/concat-filename.c: Renamed from lib/concatpath.c.
17221 (concatenated_filename): Renamed from concatenated_pathname.
17222 * lib/findprog.c: Include filename.h instead of pathname.h.
17223 (find_in_path): Update.
17224 * lib/javacomp.c: Include filename.h instead of pathname.h.
17225 (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
17226 is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
17227 is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
17228 is_oldgcj_14_13_usable, is_javac_usable): Update.
17229 * lib/javaexec.c: Include filename.h instead of pathname.h.
17230 (execute_java_class): Update.
17231 * modules/findprog: Update.
17232 * modules/javacomp: Update.
17233 * modules/javaexec: Update.
17234 * MODULES.html.sh (File system functions): Add 'filename', remove
17237 2007-02-25 Bruno Haible <bruno@clisp.org>
17239 * modules/printf-frexpl-tests: New file.
17240 * tests/test-printf-frexpl.c: New file.
17242 * modules/printf-frexpl: New file.
17243 * lib/printf-frexpl.h: New file.
17244 * lib/printf-frexpl.c: New file.
17245 * m4/printf-frexpl.m4: New file.
17247 2007-02-25 Bruno Haible <bruno@clisp.org>
17249 * modules/printf-frexp-tests: New file.
17250 * tests/test-printf-frexp.c: New file.
17252 * modules/printf-frexp: New file.
17253 * lib/printf-frexp.h: New file.
17254 * lib/printf-frexp.c: New file.
17255 * m4/printf-frexp.m4: New file.
17257 2007-02-25 Bruno Haible <bruno@clisp.org>
17259 Assume automake >= 1.10 for the tests.
17260 * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
17261 * modules/arctwo-tests: Likewise.
17262 * modules/argp-tests: Likewise.
17263 * modules/avltree-list-tests: Likewise.
17264 * modules/avltree-oset-tests: Likewise.
17265 * modules/avltreehash-list-tests: Likewise.
17266 * modules/carray-list-tests: Likewise.
17267 * modules/crc-tests: Likewise.
17268 * modules/des-tests: Likewise.
17269 * modules/gc-arcfour-tests: Likewise.
17270 * modules/gc-arctwo-tests: Likewise.
17271 * modules/gc-des-tests: Likewise.
17272 * modules/gc-hmac-md5-tests: Likewise.
17273 * modules/gc-hmac-sha1-tests: Likewise.
17274 * modules/gc-md2-tests: Likewise.
17275 * modules/gc-md4-tests: Likewise.
17276 * modules/gc-md5-tests: Likewise.
17277 * modules/gc-pbkdf2-sha1-tests: Likewise.
17278 * modules/gc-rijndael-tests: Likewise.
17279 * modules/gc-sha1-tests: Likewise.
17280 * modules/gc-tests: Likewise.
17281 * modules/getaddrinfo-tests: Likewise.
17282 * modules/hmac-md5-tests: Likewise.
17283 * modules/hmac-sha1-tests: Likewise.
17284 * modules/linked-list-tests: Likewise.
17285 * modules/linkedhash-list-tests: Likewise.
17286 * modules/lock-tests: Likewise.
17287 * modules/md2-tests: Likewise.
17288 * modules/md4-tests: Likewise.
17289 * modules/md5-tests: Likewise.
17290 * modules/rbtree-list-tests: Likewise.
17291 * modules/rbtree-oset-tests: Likewise.
17292 * modules/rbtreehash-list-tests: Likewise.
17293 * modules/read-file-tests: Likewise.
17294 * modules/rijndael-tests: Likewise.
17295 * modules/stdint-tests: Likewise.
17296 * modules/tls-tests: Likewise.
17298 2007-02-24 Bruno Haible <bruno@clisp.org>
17300 * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
17301 * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
17302 function; instead check whether isnan with a double argument links.
17303 * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
17304 function; instead check whether isnan with a 'long double' argument
17306 Reported by Eric Blake <ebb9@byu.net>.
17308 2007-02-24 Bruno Haible <bruno@clisp.org>
17310 * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
17312 * lib/isnanl.c: Remove all code. Just include isnan.c.
17313 * modules/isnanl-nolibm (Files): Add lib/isnan.c.
17315 2007-02-25 Jim Meyering <jim@meyering.net>
17317 Avoid conflicting types for 'unsetenv' on FreeBSD.
17318 * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
17319 conflicting with FreeBSD's (5.0 and 6.1) function declaration
17322 2007-02-24 Bruno Haible <bruno@clisp.org>
17324 * modules/isnanl-nolibm-tests: New file.
17325 * tests/test-isnanl.c: New file.
17327 * modules/isnanl-nolibm: New file.
17328 * lib/isnanl.h: New file.
17329 * lib/isnanl.c: New file.
17330 * m4/isnanl.m4: New file.
17332 2007-02-24 Bruno Haible <bruno@clisp.org>
17334 * modules/isnan-nolibm-tests: New file.
17335 * tests/test-isnan.c: New file.
17337 * modules/isnan-nolibm: New file.
17338 * lib/isnan.h: New file.
17339 * lib/isnan.c: New file.
17340 * m4/isnan.m4: New file.
17342 2007-02-24 Bruno Haible <bruno@clisp.org>
17344 * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
17345 assume that an exponent fits in 20 bits.
17347 2007-02-24 Jim Meyering <jim@meyering.net>
17349 * m4/regex.m4: Update the description of the configure-time option,
17350 --without-included-regex, to state accurately what the defaults are,
17351 and perhaps to give people an idea why using this option is risky.
17353 2007-02-24 Paul Eggert <eggert@cs.ucla.edu>
17355 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
17356 loops on small arguments. This attempts to avoid the problem
17357 Bruno Haible reported for AIX 4.3.2 in
17358 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
17360 2007-02-23 Bruno Haible <bruno@clisp.org>
17362 * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
17363 Needed for help2man.
17365 2007-02-23 Karl Berry <karl@gnu.org>
17367 * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
17368 exists, foo.h should be cvs-ignored, not committed.
17370 2007-02-23 Eric Blake <ebb9@byu.net>
17372 * lib/getdate.h (includes): Include <time.h>, not "timespec.h".
17373 * lib/stat-time.h (includes): Likewise.
17374 * lib/utimecmp.c (includes): Likewise.
17375 * lib/utimens.h (includes): Likewise.
17376 * lib/getdate.y (includes): Also include "timespec.h" for use
17377 internal to the module.
17378 * modules/utimens (Depends-on): Revert yesterday's patch.
17379 * modules/nanosleep (Depends-on): Add missing dependency.
17381 2007-02-22 Bruno Haible <bruno@clisp.org>
17383 * lib/glob.c: Don't include getlogin_r.h.
17385 2007-02-22 Jim Meyering <jim@meyering.net>
17387 * modules/utimens (Depends-on): Add timespec, required for
17388 utimens.h's inclusion of timespec.h.
17390 2007-02-21 Paul Eggert <eggert@cs.ucla.edu>
17392 * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
17393 long unreadable paths in GNU/Linux. Problem reported by Andreas
17395 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
17396 I'll try to think of a better way to fix the Solaris problem.
17398 * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
17399 like glibc; on Solaris 10, it fails with errno == EINVAL.
17400 POSIX says the behavior is unspecified if the first argument is NULL,
17401 so play it safe and never pass NULL to the system getcwd.
17403 2007-02-21 Jim Meyering <jim@meyering.net>
17405 * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
17406 of gettimeofday. It would conflict with the one now always
17407 provided via sys_time_.h. Reported by Matthew Woehlke, as
17408 an IRIX 6.5 build failure.
17410 2007-02-20 Paul Eggert <eggert@cs.ucla.edu>
17412 Minor fixups to port to Solaris 10 with Sun C 5.8.
17413 * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
17414 * modules/getcwd (Depends-on): Add dirfd.
17415 * lib/putenv.c (putenv): #undef it.
17416 (rpl_putenv): New decl.
17417 (malloc, free): Include <stdlib.h> rather than prototyping separately.
17419 2007-02-20 Bruno Haible <bruno@clisp.org>
17421 * modules/stdio-tests: New file.
17422 * tests/test-stdio.c: New file.
17424 * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
17425 (Depends-on): Add stdio.
17426 (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
17427 (Include): Use <stdio.h> instead of vsnprintf.h.
17428 * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
17429 HAVE_DECL_VSNPRINTF.
17430 * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
17432 * modules/snprintf (Files): Remove lib/snprintf.h.
17433 (Depends-on): Add stdio.
17434 (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
17435 (Include): Use <stdio.h> instead of snprintf.h.
17436 * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
17437 HAVE_DECL_SNPRINTF.
17438 * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
17439 * lib/getaddrinfo.c: Likewise.
17441 * modules/stdio: New file.
17442 * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
17443 * lib/snprintf.h: Remove file.
17444 * lib/vsnprintf.h: Remove file.
17445 * lib/.cppi-disable: Remove snprintf.h.
17446 * m4/stdio_h.m4: New file.
17447 * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
17449 2007-02-20 Jim Meyering <jim@meyering.net>
17451 * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
17452 used by e.g., mingw. From Bruno Haible.
17454 2007-02-19 Bruno Haible <bruno@clisp.org>
17456 * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
17458 Reported by Ben Pfaff <blp@cs.stanford.edu>.
17460 2007-02-19 Bruno Haible <bruno@clisp.org>
17462 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
17465 2007-02-19 Bruno Haible <bruno@clisp.org>
17467 * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
17469 Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
17471 2007-02-19 Jim Meyering <jim@meyering.net>
17473 Don't use FD after a successful "fdopendir (fd)".
17474 * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
17475 Reset it by calling dirfd on the just-obtained DIR*.
17477 * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
17478 Prompted by a report from Bruno Haible that mingw lacks ftruncate.
17480 2007-02-18 Bruno Haible <bruno@clisp.org>
17482 * lib/readlink.c: Include <unistd.h>.
17483 * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
17485 * modules/readlink (Depends-on): Add unistd.
17486 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
17487 (Include): Add <unistd.h>.
17489 * lib/getlogin_r.h: Remove file.
17490 * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
17491 * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
17492 (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
17493 HAVE_DECL_GETLOGIN_R.
17494 * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
17495 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
17496 (Include): Use <unistd.h> instead of getlogin_r.h.
17498 * lib/getcwd.h: Remove file.
17499 * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
17500 * lib/xgetcwd.c: Likewise.
17501 * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
17502 REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
17503 * modules/getcwd (Files): Remove lib/getcwd.h.
17504 (Depends-on): Add unistd.
17505 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
17506 (Include): Use <unistd.h> instad of getcwd.h.
17508 * lib/ftruncate.c: Include <unistd.h> first.
17509 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
17510 Set HAVE_FTRUNCATE.
17511 * modules/ftruncate (Depends-on): Add unistd.
17512 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
17514 * lib/fchdir.c: Include <unistd.h> first.
17515 * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
17516 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
17517 of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
17518 * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
17519 (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
17521 * lib/dup2.c: Include <unistd.h> first.
17522 * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
17524 * modules/dup2 (Depends-on): Add unistd.
17525 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
17527 * lib/chown.c: Include <unistd.h> first. Undefine chown later.
17528 * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
17529 REPLACE_CHOWN. Don't define chown as a macro here.
17530 * modules/chown (Depends-on): Add unistd.
17531 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
17533 * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
17534 Add definition for GL_LINK_WARNING.
17535 (chown, dup2): New declarations.
17536 (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
17538 (ftruncate): New declaration.
17539 (getcwd): New declaration, taken from old getcwd.h.
17540 (getlogin_r): New declaration, taken from old getlogin_r.h.
17541 (readlink): New declaration.
17542 * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
17543 set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
17544 (gl_PREREQ_UNISTD): Remove macro.
17545 (gl_UNISTD_MODULE_INDICATOR): New macro.
17546 (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
17547 many new variables. Don't set UNISTD_H.
17548 * modules/unistd (Description): Change.
17549 (Depends-on): Add link-warning.
17550 (configure.ac): Update.
17551 (Makefile.am): Create unistd.h always. Substitute many new variables
17554 2007-02-18 Bruno Haible <bruno@clisp.org>
17556 * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
17557 * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
17559 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
17560 GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
17561 * lib/getsubopt.h: Remove file.
17562 * modules/getsubopt (Files): Remove lib/getsubopt.h.
17563 (Depends-on): Add stdlib.
17564 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
17565 (Includes): Use <stdlib.h> instead of getsubopt.h.
17566 * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
17567 Set HAVE_GETSUBOPT.
17568 * lib/getsubopt.c: Don't include getsubopt.h.
17570 2007-02-18 Bruno Haible <bruno@clisp.org>
17572 * modules/fchdir (Depends-on): Add dup2.
17574 2007-02-18 Bruno Haible <bruno@clisp.org>
17576 * lib/stdlib_.h: Handle glibc's special invocation convention
17579 2007-02-18 Bruno Haible <bruno@clisp.org>
17581 * modules/stdlib-tests: New file.
17582 * tests/test-stdlib.c: New file.
17584 * modules/mkstemp (Files): Remove lib/mkstemp.h.
17585 (Depends-on): Add stdlib.
17586 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
17587 (Includes): Use <stdlib.h> instead of mkstemp.h.
17588 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
17589 REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
17590 * lib/mkstemp.c: Don't include mkstemp.h.
17591 * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
17592 * lib/stdlib--.h: Don't include mkstemp.h.
17594 * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
17595 (Depends-on): Add stdlib.
17596 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
17597 (Includes): Use <stdlib.h> instead of mkdtemp.h.
17598 * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
17600 * lib/mkdtemp.c: Don't include mkdtemp.h.
17601 * lib/clean-temp.c: Don't include mkdtemp.h.
17603 * modules/exit (Files): Remove lib/exit.h.
17604 (Depends-on): Add stdlib.
17605 (Makefile.am): Remove lib_SOURCES.
17606 (Include): Use <stdlib.h> instead of exit.h.
17607 * lib/argmatch.c: Don't include exit.h.
17608 * lib/execute.c: Likewise.
17609 * lib/pagealign_alloc.c: Likewise.
17610 * lib/pipe.c: Likewise.
17611 * lib/wait-process.c: Likewise.
17612 * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
17613 * lib/exitfail.c: Likewise.
17614 * lib/savewd.c: Likewise.
17615 * lib/xsetenv.c: Likewise.
17617 * modules/stdlib: New file.
17618 * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
17619 and extra comments about mkstemp().
17620 * lib/exit.h: Remove file.
17621 * lib/mkdtemp.h: Remove file.
17622 * lib/mkstemp.h: Remove file.
17623 * m4/stdlib_h.m4: New file.
17624 * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
17626 2007-02-18 Bruno Haible <bruno@clisp.org>
17628 * modules/math-tests: New file.
17629 * tests/test-math.c: New file.
17631 * modules/math: New file.
17632 * modules/mathl (Files): Remove lib/mathl.h.
17633 (Depends-on): Add math.
17634 (Makefile.am): Don't mention mathl.h.
17635 (Include): Use <math.h> instead of mathl.h.
17636 * lib/math_.h: New file.
17637 * lib/mathl.h: Remove file.
17638 * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
17640 * lib/asinl.c: Likewise.
17641 * lib/atanl.c: Likewise.
17642 * lib/ceill.c: Likewise.
17643 * lib/cosl.c: Likewise.
17644 * lib/expl.c: Likewise.
17645 * lib/floorl.c: Likewise.
17646 * lib/frexpl.c: Likewise.
17647 * lib/ldexpl.c: Likewise.
17648 * lib/logl.c: Likewise.
17649 * lib/sincosl.c: Likewise.
17650 * lib/sinl.c: Likewise.
17651 * lib/sqrtl.c: Likewise.
17652 * lib/tanl.c: Likewise.
17653 * lib/trigl.c: Likewise.
17654 * m4/math_h.m4: New file.
17655 * MODULES.html.sh (Mathematics): Add math.
17657 2007-02-17 Bruno Haible <bruno@clisp.org>
17659 * modules/wctype-tests: New file.
17660 * tests/test-wctype.c: New file.
17662 * modules/wchar-tests: New file.
17663 * tests/test-wchar.c: New file.
17665 * modules/unistd-tests: New file.
17666 * tests/test-unistd.c: New file.
17668 * modules/time-tests: New file.
17669 * tests/test-time.c: New file.
17671 * modules/sysexits-tests: New file.
17672 * tests/test-sysexits.c: New file.
17674 * modules/sys_time-tests: New file.
17675 * tests/test-sys_time.c: New file.
17677 * modules/sys_stat-tests: New file.
17678 * tests/test-sys_stat.c: New file.
17680 * modules/sys_socket-tests: New file.
17681 * tests/test-sys_socket.c: New file.
17683 * modules/sys_select-tests: New file.
17684 * tests/test-sys_select.c: New file.
17686 * modules/string-tests: New file.
17687 * tests/test-string.c: New file.
17689 * modules/stdbool-tests: New file.
17690 * tests/test-stdbool.c: New file.
17692 * modules/netinet_in-tests: New file.
17693 * tests/test-netinet_in.c: New file.
17695 * modules/inttypes-tests: New file.
17696 * tests/test-inttypes.c: New file.
17698 * modules/fcntl-tests: New file.
17699 * tests/test-fcntl.c: New file.
17701 * modules/byteswap-tests: New file.
17702 * tests/test-byteswap.c: New file.
17704 * modules/arpa_inet-tests: New file.
17705 * tests/test-arpa_inet.c: New file.
17707 2007-02-17 Bruno Haible <bruno@clisp.org>
17709 * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
17710 (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
17711 if the corresponding module is not enabled. Emit link warnings if
17712 the function is used nevertheless.
17713 * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
17714 Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
17715 HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
17716 (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
17717 * modules/inttypes (Depends-on): Add link-warning.
17718 (Makefile.am): Copy the contents of build-aux/link-warning.h into
17719 inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
17720 GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
17721 * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
17722 * modules/imaxdiv (configure.ac): Likewise.
17723 * modules/strtoimax (configure.ac): Likewise.
17724 * modules/strtoumax (configure.ac): Likewise.
17726 2007-02-17 Bruno Haible <bruno@clisp.org>
17728 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
17729 gl_STRING_MODULE_INDICATOR_DEFAULTS.
17730 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
17731 (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
17733 2007-02-17 Bruno Haible <bruno@clisp.org>
17735 * modules/link-warning: New file.
17736 * build-aux/link-warning.h: New file, extracted from lib/string_.h.
17737 * lib/string_.h (GL_LINK_WARNING): Remove definition.
17738 * modules/string (Depends-on): Add link-warning.
17739 (Makefile.am): Copy the contents of build-aux/link-warning.h into
17741 * MODULES.html.sh (Support for building libraries and executables): Add
17744 2007-02-17 Bruno Haible <bruno@clisp.org>
17746 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
17747 strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
17748 strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
17751 2007-02-17 Ben Pfaff <blp@cs.stanford.edu>
17752 Bruno Haible <bruno@clisp.org>
17754 * modules/tmpfile: New file.
17755 * lib/tmpfile.c: New file.
17756 * m4/tmpfile.m4: New file.
17757 * MODULES.html.sh (func_all_modules): New section "Input/output".
17759 2007-02-15 Bruno Haible <bruno@clisp.org>
17761 * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
17762 (supports_delete_on_close): New function.
17763 (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
17765 2007-02-14 Bruno Haible <bruno@clisp.org>
17767 * modules/mbspcasecmp-tests: New file.
17768 * tests/test-mbspcasecmp.sh: New file.
17769 * tests/test-mbspcasecmp.c: New file.
17771 New module mbspcasecmp.
17772 * modules/mbspcasecmp: New file.
17773 * lib/mbspcasecmp.c: New file.
17774 * lib/string_.h (strncasecmp): Change warning message.
17775 (mbspcasecmp): New declaration.
17776 * m4/mbspcasecmp.m4: New file.
17777 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
17778 GNULIB_MBSPCASECMP.
17779 * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
17780 * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
17782 2007-02-14 Bruno Haible <bruno@clisp.org>
17784 * modules/mbsncasecmp-tests: New file.
17785 * tests/test-mbsncasecmp.sh: New file.
17786 * tests/test-mbsncasecmp.c: New file.
17788 New module mbsncasecmp.
17789 * modules/mbsncasecmp: New file.
17790 * lib/mbsncasecmp.c: New file.
17791 * lib/string_.h (mbsncasecmp): New declaration.
17792 * m4/mbsncasecmp.m4: New file.
17793 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
17794 GNULIB_MBSNCASECMP.
17795 * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
17796 * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
17798 2007-02-14 Paul Eggert <eggert@cs.ucla.edu>
17800 * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
17801 Verify that it doesn't overlap with our flags.
17802 (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
17803 do not have the desired effect in multibyte locales; instead, use
17805 * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
17806 Add dependency on xalloc. Depend on fnmatch, not fnmatch-gnu, since
17807 we don't require GNU fnmatch ourselves (if our users require it, they
17808 should do so explicitly).
17810 Fix regex code so it doesn't rely on strcasecmp.
17811 * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
17812 Otherwise, include gnulib's langinfo.h.
17813 * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
17814 undesirable behavior in non-C locales. Instead, rely on localecharset.
17815 * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
17816 * modules/regex (FILES): Remove m4/codeset.m4.
17817 (Depends-on): Add localcharset. Remove strcase.
17819 2007-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17821 * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
17822 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
17824 2007-02-13 Bruno Haible <bruno@clisp.org>
17826 * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
17827 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17829 2007-02-12 Bruno Haible <bruno@clisp.org>
17831 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
17832 strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
17833 GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
17834 time warning rather than a link error.
17836 2007-02-12 Bruno Haible <bruno@clisp.org>
17838 * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
17839 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
17840 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17842 2007-02-12 Paul Eggert <eggert@cs.ucla.edu>
17844 * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
17847 2007-02-12 Paul Eggert <eggert@cs.ucla.edu>
17849 New module 'time', so that apps can include <time.h> as per
17850 POSIX and GNU instead of separate include files like time_r.h
17851 and timegm.h. This implementation tries out a simpler approach
17852 for replacing decls in standard include files (as compared to
17853 the string module), somewhat as an experiment.
17855 * config/srclist.txt: Comment out mktime.c for now.
17856 * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
17857 since it doesn't apply any more. Use generic wording instead.
17858 * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
17860 * lib/time_.h, m4/time_h.m4, modules/time: New files.
17861 * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
17862 * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
17863 Don't include <sys/types.h>; no longer needed since we assume C89.
17864 * lib/mktime.c: Don't include "time_r.h"; no longer needed.
17865 * lib/strftime.c: Likewise.
17866 * lib/time_r.c: Likewise.
17867 * lib/nanosleep.c (nanosleep): #undef after include files, not before.
17868 * lib/nanosleep.c: Include <time.h> first, to check interface.
17869 * lib/strptime.c: Likewise.
17870 * lib/time_r.c: Likewise.
17871 * lib/timegm.c: Likewise.
17872 * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
17874 * lib/timegm.c: Don't include timegm.h; no longer needed.
17875 * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
17876 time.h now handles any problems in that area.
17877 (struct timespec, nanosleep): Remove; time.h now arranges for these.
17878 * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
17879 that time.h defines struct timespec.
17880 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
17881 Set REPLACE_NANOSLEEP. Don't AC_DEFINE nanosleep; the time module now
17883 * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
17884 * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
17885 needed. Set REPLACE_LOCALTIME.
17886 * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
17887 * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
17888 (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
17889 nanosleep; time_h.m4 now does that. Don't require
17890 gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
17891 module handles this now.
17892 * modules/getdate (Depends-on): Remove timespec. Add time.
17893 * modules/nanosleep (Depends-on): Likewise.
17894 * modules/stat-time (Depends-on): Likewise.
17895 * modules/nanosleep (Include): Include time.h, not timespec.h.
17896 * modules/strptime (Files): Remove lib/strptime.h.
17897 (Depends-on): Add extensions, time.
17898 (Include): Include time.h, not strptime.h.
17899 * modules/time_r (Files): Remove lib/time_r.h.
17900 (Depends-on): Add time.
17901 (Include): Include time.h, not time_r.h.
17902 * modules/timegm: Likewise.
17903 * modules/timespec (Description): Now does timespec-related decls
17904 of our own, instead of struct timespec itself.
17905 (Depends-on): Add time; remove extensions.
17906 (Maintainer): Add self.
17907 * modules/utimecmp (Depends-on): Add time; remove timespec.
17908 * modules/utimens (Depends-on): Likewise.
17909 * modules/xnanosleep (Depends-on): Likewise.
17911 2007-02-11 Bruno Haible <bruno@clisp.org>
17913 * lib/c-strstr.c: Include allocsa.h.
17914 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
17915 * lib/c-strcasestr.c: Include allocsa.h.
17916 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
17917 * lib/strcasestr.c: Include allocsa.h.
17918 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
17919 * lib/mbsstr.c: Include allocsa.h.
17920 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
17921 allocsa/freesa instead of malloc/free.
17922 * lib/mbscasestr.c: Include allocsa.h.
17923 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
17924 allocsa/freesa instead of malloc/free.
17925 * modules/c-strstr (Depends-on): Add allocsa.
17926 * modules/c-strcasestr (Depends-on): Likewise.
17927 * modules/strcasestr (Depends-on): Likewise.
17928 * modules/mbsstr (Depends-on): Likewise.
17929 * modules/mbscasestr (Depends-on): Likewise.
17931 2007-02-11 Bruno Haible <bruno@clisp.org>
17933 * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
17935 * modules/mbsspn-tests: New file.
17936 * tests/test-mbsspn.sh: New file.
17937 * tests/test-mbsspn.c: New file.
17939 2007-02-11 Bruno Haible <bruno@clisp.org>
17941 * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
17943 * modules/mbspbrk-tests: New file.
17944 * tests/test-mbspbrk.sh: New file.
17945 * tests/test-mbspbrk.c: New file.
17947 2007-02-11 Bruno Haible <bruno@clisp.org>
17949 * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
17952 * modules/mbscspn-tests: New file.
17953 * tests/test-mbscspn.sh: New file.
17954 * tests/test-mbscspn.c: New file.
17956 2007-02-11 Bruno Haible <bruno@clisp.org>
17958 * modules/mbscasecmp-tests: New file.
17959 * tests/test-mbscasecmp.sh: New file.
17960 * tests/test-mbscasecmp.c: New file.
17962 2007-02-11 Bruno Haible <bruno@clisp.org>
17964 Ensure O(n) worst-case complexity of mbscasestr.
17965 * lib/mbscasestr.c: Include stdbool.h.
17966 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
17968 (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
17969 the bookkeeping indicates that it's worth it.
17970 * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
17972 * modules/mbscasestr-tests: New file.
17973 * tests/test-mbscasestr1.c: New file.
17974 * tests/test-mbscasestr2.sh: New file.
17975 * tests/test-mbscasestr2.c: New file.
17976 * tests/test-mbscasestr3.sh: New file.
17977 * tests/test-mbscasestr3.c: New file.
17978 * tests/test-mbscasestr4.sh: New file.
17979 * tests/test-mbscasestr4.c: New file.
17980 * m4/locale-tr.m4: New file.
17982 2007-02-11 Bruno Haible <bruno@clisp.org>
17984 Ensure O(n) worst-case complexity of mbsstr.
17985 * lib/mbsstr.c: Include stdbool.h.
17986 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
17988 (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
17989 bookkeeping indicates that it's worth it.
17990 * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
17992 * modules/mbsstr-tests: New file.
17993 * tests/test-mbsstr1.c: New file.
17994 * tests/test-mbsstr2.sh: New file.
17995 * tests/test-mbsstr2.c: New file.
17996 * tests/test-mbsstr3.sh: New file.
17997 * tests/test-mbsstr3.c: New file.
17998 * m4/locale-fr.m4: New file.
18000 2007-02-11 Bruno Haible <bruno@clisp.org>
18002 * lib/mbsrchr.c (mbsrchr): Fix bug.
18004 * modules/mbsrchr-tests: New file.
18005 * tests/test-mbsrchr.sh: New file.
18006 * tests/test-mbsrchr.c: New file.
18008 2007-02-11 Bruno Haible <bruno@clisp.org>
18010 * lib/mbschr.c (mbschr): Fix bug.
18012 * modules/mbschr-tests: New file.
18013 * tests/test-mbschr.sh: New file.
18014 * tests/test-mbschr.c: New file.
18015 * m4/locale-zh.m4: New file.
18017 2007-02-11 Bruno Haible <bruno@clisp.org>
18019 Support for copying multibyte string iterators.
18020 * lib/mbiter.h: Include <string.h>.
18021 (mbiter_multi_copy): New function.
18022 (mbi_copy): New macro.
18023 * lib/mbuiter.h: Include <string.h>.
18024 (mbuiter_multi_copy): New function.
18025 (mbui_copy): New macro.
18027 2007-02-11 Bruno Haible <bruno@clisp.org>
18030 * modules/mbslen: New file.
18031 * lib/mbslen.c: New file.
18032 * lib/string_.h (mbslen): New declaration.
18033 * m4/mbslen.m4: New file.
18034 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
18036 * modules/string (string.h): Also substitute GNULIB_MBSLEN.
18037 * MODULES.html.sh (Internationalization functions): Add mbslen.
18039 2007-02-11 Bruno Haible <bruno@clisp.org>
18041 Ensure O(n) worst-case complexity of strcasestr substitute.
18042 * lib/strcasestr.c: Include stdbool.h.
18043 (knuth_morris_pratt): New function.
18044 (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
18045 bookkeeping indicates that it's worth it.
18046 * modules/strcasestr (Depends-on): Add stdbool, strnlen.
18048 * modules/strcasestr-tests: New file.
18049 * tests/test-strcasestr.c: New file.
18051 2007-02-11 Bruno Haible <bruno@clisp.org>
18053 Ensure O(n) worst-case complexity of c_strcasestr.
18054 * lib/c-strcasestr.c: Include stdbool.h, string.h.
18055 (knuth_morris_pratt): New function.
18056 (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
18057 the bookkeeping indicates that it's worth it.
18058 * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
18060 * modules/c-strcasestr-tests: New file.
18061 * tests/test-c-strcasestr.c: New file.
18063 2007-02-11 Bruno Haible <bruno@clisp.org>
18065 Ensure O(n) worst-case complexity of c_strstr.
18066 * lib/c-strstr.c: Include stdbool.h, string.h.
18067 (knuth_morris_pratt): New function.
18068 (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
18069 bookkeeping indicates that it's worth it.
18070 * modules/c-strstr (Depends-on): Add stdbool, strnlen.
18072 * lib/c-strstr.c: Complete rewrite for maintainability.
18074 * modules/c-strstr-tests: New file.
18075 * tests/test-c-strstr.c: New file.
18077 2007-02-11 Bruno Haible <bruno@clisp.org>
18079 * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
18080 5.2.1 and earlier, whereby \055 was treated just like the range
18082 Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
18084 2007-02-08 Bruno Haible <bruno@clisp.org>
18086 * modules/regex (Depends-on): Add stdbool.
18087 Reported by Dalibor Topic <robilad@kaffe.org>.
18089 2007-02-05 Paul Eggert <eggert@cs.ucla.edu>
18091 * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
18092 Prefer returning from main to exiting from it.
18093 Remove unnecessary parens after sizeof.
18095 2007-02-05 Bruno Haible <bruno@clisp.org>
18098 * modules/mbssep: New file.
18099 * lib/mbssep.c: New file.
18100 * lib/string_.h (strsep): Add a conditional link warning.
18101 (mbssep): New declaration.
18102 * m4/mbssep.m4: New file.
18103 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
18105 * modules/string (string.h): Also substitute GNULIB_MBSSEP.
18106 * MODULES.html.sh (Internationalization functions): Add mbssep.
18108 2007-02-05 Bruno Haible <bruno@clisp.org>
18110 * lib/strsep.c (strsep): Fix actions in case of no delimiters.
18111 Optimize search in case of 1 delimiter.
18113 2007-02-05 Paolo Bonzini <bonzini@gnu.org>
18115 * lib/acl.h: Include sys/types.h before sys/acl.h.
18117 2007-02-05 Paolo Bonzini <bonzini@gnu.org>
18119 Merge upstream fix for glibc bugzilla #3957:
18121 2007-02-05 Jakub Jelinek <jakub@redhat.com>
18123 * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
18124 bit for RE_HAT_LISTS_NOT_NEWLINE.
18125 (build_charclass_op): Remove bogus comment.
18127 2007-02-05 Simon Josefsson <simon@josefsson.org>
18129 * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
18131 2007-02-04 Paul Eggert <eggert@cs.ucla.edu>
18133 * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
18134 * lib/memmem.c [!defined _LIBC]: Include config.h.
18136 2007-02-04 Bruno Haible <bruno@clisp.org>
18138 * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
18141 2007-02-04 Bruno Haible <bruno@clisp.org>
18143 New module mbstok_r.
18144 * modules/mbstok_r: New file.
18145 * lib/mbstok_r.c: New file.
18146 * lib/string_.h (strtok_r): Change argument names to match the
18147 comments. Add a conditional link warning.
18148 (mbstok_r): New declaration.
18149 * m4/mbstok_r.m4: New file.
18150 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
18152 * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
18153 * MODULES.html.sh (Internationalization functions): Add mbstok_r.
18155 2007-02-04 Bruno Haible <bruno@clisp.org>
18158 * modules/mbsspn: New file.
18159 * lib/mbsspn.c: New file.
18160 * lib/string_.h (strspn): Add a conditional link warning.
18161 (mbsspn): New declaration.
18162 * m4/mbsspn.m4: New file.
18163 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
18165 * modules/string (string.h): Also substitute GNULIB_MBSSPN.
18166 * MODULES.html.sh (Internationalization functions): Add mbsspn.
18168 2007-02-04 Bruno Haible <bruno@clisp.org>
18170 New module mbspbrk.
18171 * modules/mbspbrk: New file.
18172 * lib/mbspbrk.c: New file.
18173 * lib/string_.h (strpbrk): Add a conditional link warning.
18174 (mbspbrk): New declaration.
18175 * m4/mbspbrk.m4: New file.
18176 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
18178 * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
18179 * MODULES.html.sh (Internationalization functions): Add mbspbrk.
18181 2007-02-04 Bruno Haible <bruno@clisp.org>
18183 New module mbscspn.
18184 * modules/mbscspn: New file.
18185 * lib/mbscspn.c: New file.
18186 * lib/string_.h (strcspn): Add a conditional link warning.
18187 (mbscspn): New declaration.
18188 * m4/mbscspn.m4: New file.
18189 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
18191 * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
18192 * MODULES.html.sh (Internationalization functions): Add mbscspn.
18194 2007-02-04 Bruno Haible <bruno@clisp.org>
18196 New module mbscasestr, reduced goal of strcasestr.
18197 * modules/mbscasestr: New file.
18198 * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
18199 (mbscasestr): Renamed from strcasestr.
18200 * lib/strcasestr.c: Don't include mbuiter.h.
18201 (strcasestr): Remove support for multibyte locales.
18202 * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
18203 Change the conditional link warning.
18204 (mbscasestr): New declaration.
18205 * m4/mbscasestr.m4: New file.
18206 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
18207 the system does not have strcasestr. Set HAVE_STRCASESTR instead of
18208 REPLACE_STRCASESTR.
18209 (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
18210 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
18211 HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
18212 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
18213 * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
18214 Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
18215 * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
18216 (Depends-on): Remove mbuiter.
18217 * MODULES.html.sh (Internationalization functions): Add mbscasestr.
18219 2007-02-04 Bruno Haible <bruno@clisp.org>
18221 Simplify handling of strncasecmp.
18222 * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
18223 the conditional link warning.
18224 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
18225 HAVE_STRCASECMP, not REPLACE_STRCASECMP.
18226 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
18227 * modules/strcase (configure.ac): Don't invoke
18228 gl_STRING_MODULE_INDICATOR.
18229 * modules/string (string.h): Don't substitute GNULIB_STRCASE.
18231 2007-02-04 Bruno Haible <bruno@clisp.org>
18233 New module mbscasecmp, reduced goal of strcasecmp.
18234 * modules/mbscasecmp: New file.
18235 * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
18236 (mbscasecmp): Renamed from strcasecmp.
18237 * lib/strcasecmp.c: Don't include mbuiter.h.
18238 (strcasecmp): Remove support for multibyte locales.
18239 * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
18240 Change the conditional link warning.
18241 (mbscasecmp): New declaration.
18242 * m4/mbscasecmp.m4: New file.
18243 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
18244 the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
18245 REPLACE_STRCASECMP.
18246 (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
18247 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
18249 * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
18250 Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
18251 * modules/strcase (Files): Remove m4/mbrtowc.m4.
18252 (Depends-on): Remove mbuiter.
18253 * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
18255 2007-02-04 Bruno Haible <bruno@clisp.org>
18257 New module mbsstr. Remove module strstr.
18258 * modules/mbsstr: New file.
18259 * modules/strstr: Remove file.
18260 * lib/mbsstr.c: Renamed from lib/strstr.c.
18261 (mbsstr): Renamed from strstr.
18262 * lib/string_.h (strstr): Remove declaration. Change the conditional
18264 (mbsstr): New declaration.
18265 * m4/mbsstr.m4: New file.
18266 * m4/strstr.m4: Remove file.
18267 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
18269 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
18270 Don't initialize GNULIB_STRSTR.
18271 * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
18272 substitute GNULIB_STRSTR and REPLACE_STRSTR.
18273 * MODULES.html.sh (Internationalization functions): Add mbsstr.
18274 (Support for systems lacking ANSI C 89): Remove strstr.
18276 2007-02-04 Bruno Haible <bruno@clisp.org>
18278 New module mbsrchr.
18279 * modules/mbsrchr: New file.
18280 * lib/mbsrchr.c: New file.
18281 * lib/string_.h (strrchr): Add a conditional link warning.
18282 (mbsrchr): New declaration.
18283 * m4/mbsrchr.m4: New file.
18284 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
18286 * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
18287 * MODULES.html.sh (Internationalization functions): Add mbsrchr.
18289 2007-02-04 Bruno Haible <bruno@clisp.org>
18292 * modules/mbschr: New file.
18293 * lib/mbschr.c: New file.
18294 * lib/string_.h (strchr): Add a conditional link warning.
18295 (mbschr): New declaration.
18296 * m4/mbschr.m4: New file.
18297 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
18299 * modules/string (string.h): Also substitute GNULIB_MBSCHR.
18300 * MODULES.html.sh (Internationalization functions): Add mbschr.
18302 2007-02-04 Paul Eggert <eggert@cs.ucla.edu>
18304 * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
18306 * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
18308 2007-02-04 Bruno Haible <bruno@clisp.org>
18310 New module description section 'configure.ac-early'.
18311 * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
18312 (func_get_autoconf_early_snippet): New function.
18313 (func_import, func_create_testdir): Use it. Remove special cases for
18314 modules 'extensions' and 'lock'.
18315 * modules/extensions (configure.ac-early): Require
18316 gl_USE_SYSTEM_EXTENSIONS.
18317 * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
18319 2007-02-04 Bruno Haible <bruno@clisp.org>
18321 Make use of gcj-4.3's -fsource and -ftarget option.
18322 * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
18323 and if so try the options -fsource and -ftarget.
18324 * lib/javacomp.c (compile_using_gcj): Add fsource_option,
18325 source_version, ftarget_option, target_version arguments.
18326 (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
18327 (is_envjavac_oldgcj_14_14_usable): Renamed from
18328 is_envjavac_gcj_14_14_usable.
18329 (is_envjavac_oldgcj_14_13_usable): Renamed from
18330 is_envjavac_gcj_14_13_usable.
18331 (is_gcj_present): Update.
18332 (is_gcj_43, is_gcj43_usable): New functions.
18333 (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
18334 (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
18335 (compile_java_class): Test whether gcj is in version >= 4.3, and if so
18336 try the options -fsource and -ftarget.
18338 2007-02-03 Paul Eggert <eggert@cs.ucla.edu>
18340 * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
18341 checking code. Set N = ceil (1.5 * N) rather than to a slightly
18344 2007-02-03 Jim Meyering <jim@meyering.net>
18346 Give tools a better chance to allocate space for very large buffers.
18347 * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
18349 Make pwd and readlink work also when run with an unreadable parent dir
18350 on systems with openat support.
18351 * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
18352 provided getcwd function, even when we have openat support.
18353 Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
18355 2007-02-02 Bruno Haible <bruno@clisp.org>
18357 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
18358 strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
18359 error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
18360 portability problems if one of these functions is only used on specific
18362 Reported by Paul Eggert.
18364 2007-02-02 Paul Eggert <eggert@cs.ucla.edu>
18366 Avoid mempcpy in the regex code, as the string.h mempcpy stuff
18367 is causing more trouble than it's curing.
18368 * lib/regex_internal.h (__mempcpy): Remove.
18369 * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
18370 (and make the code a tad smaller to boot).
18371 * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
18373 2007-02-02 Jim Meyering <jim@meyering.net>
18375 * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
18376 section, not in the Makefile.am: one.
18378 2007-02-02 Eric Blake <ebb9@byu.net>
18380 * lib/strchrnul.c: Always include config.h first.
18382 * modules/mountlist (Depends-on): Revert 2007-01-31 change,
18383 gnulib strstr is not necessary here.
18385 2007-02-02 Simon Josefsson <simon@josefsson.org>
18387 * m4/socklen.m4: Fix typo.
18389 2007-02-02 Eric Blake <ebb9@byu.net>
18391 * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
18392 * modules/netinet_in (Makefile.am): Likewise.
18394 2007-02-01 Bruno Haible <bruno@clisp.org>
18396 * lib/string_.h (GL_LINK_WARNING): New macro.
18397 (strcasecmp, strstr, strcasestr): If provided by the system,
18398 conditionally define as a macro that leads to a warning instead of to
18400 (strncasecmp): Conditionally define as a macro that leads to a warning.
18402 2007-02-01 Karl Berry <karl@gnu.org>
18404 * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
18406 2007-02-01 Bruno Haible <bruno@clisp.org>
18408 * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
18411 2007-02-01 Eric Blake <ebb9@byu.net>
18413 * modules/regex (Depends-on): Revert dependence on mempcpy.
18414 * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
18415 module's definition of mempcpy.
18416 Reported by Paul Eggert.
18418 2007-02-01 Paul Eggert <eggert@cs.ucla.edu>
18420 * lib/string_.h: If the gnulib module XYZ is not present, undefine
18421 the symbol XYZ before redefining it. This fixes a problem with
18422 programs that don't use XYZ, when compiled on systems that define
18423 XYZ to something else.
18425 2007-01-31 Paul Eggert <eggert@cs.ucla.edu>
18427 * lib/mkdir-p.c (make_dir_parents): Close a race condition that
18428 occurs when "mkdir -m foo" creates a setgid directory that is (1)
18429 writeable to group or other and (2) is intended to have a special
18430 mode bit that is set or cleared. In such a case, the directory
18431 should be neither group- nor other-writeable until the special
18432 mode bits are right.
18434 2007-01-31 Eric Blake <ebb9@byu.net>
18436 * modules/mountlist (Depends-on): Add strstr.
18438 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
18440 * modules/string (Makefile.am): Remove redundant replacement.
18441 * modules/regex (Depends-on): Add mempcpy.
18443 2007-01-31 Bruno Haible <bruno@clisp.org>
18445 New module description field 'Link'.
18446 * gnulib-tool (func_usage): Document --extract-link-directive.
18447 (sed_extract_prog): Recognize 'Link' directive.
18448 (func_get_link_directive): New function.
18449 (func_import): Show summary of link directives.
18450 Handle --extract-link-directive option.
18451 * modules/acl (Link): New section.
18452 * modules/clock-time (Link): New section.
18453 * modules/euidaccess (Link): New section.
18454 * modules/gettext (Link): New section.
18455 * modules/iconv (Link): New section.
18456 * modules/lock (Link): New section.
18457 * modules/nanosleep (Link): New section.
18458 * modules/readline (Link): New section.
18460 2007-01-27 Bruno Haible <bruno@clisp.org>
18462 Enforce the use of gnulib modules for unportable <string.h> functions.
18463 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
18464 (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
18465 (gl_HEADER_STRING_H_BODY): Require it.
18466 * lib/string_.h: If the gnulib module XYZ is not present, redefine
18467 the symbol XYZ to one that gives a link error.
18468 * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
18469 * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
18470 * modules/mempcpy (configure.ac): Likewise.
18471 * modules/memrchr (configure.ac): Likewise.
18472 * modules/stpcpy (configure.ac): Likewise.
18473 * modules/stpncpy (configure.ac): Likewise.
18474 * modules/strcase (configure.ac): Likewise.
18475 * modules/strcasestr (configure.ac): Likewise.
18476 * modules/strchrnul (configure.ac): Likewise.
18477 * modules/strdup (configure.ac): Likewise.
18478 * modules/strndup (configure.ac): Likewise.
18479 * modules/strnlen (configure.ac): Likewise.
18480 * modules/strpbrk (configure.ac): Likewise.
18481 * modules/strsep (configure.ac): Likewise.
18482 * modules/strstr (configure.ac): Likewise.
18483 * modules/strtok_r (configure.ac): Likewise.
18485 2007-01-31 Jean-Louis Martineau <martineau@zmanda.com> (tiny change)
18487 * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
18489 2007-01-30 Jim Meyering <jim@meyering.net>
18491 * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
18493 2007-01-29 Bruno Haible <bruno@clisp.org>
18495 * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
18496 * lib/execute.c: Likewise.
18497 * lib/pipe.c: Likewise.
18498 * lib/printf-args.h: Likewise.
18499 * lib/printf-args.c: Likewise.
18500 * lib/printf-parse.c: Likewise.
18501 * lib/vasnprintf.c: Likewise.
18503 2007-01-29 Eric Blake <ebb9@byu.net>
18505 * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
18508 2007-01-29 Paul Eggert <eggert@cs.ucla.edu>
18510 * lib/strptime.h (strptime): Use 'restrict' for args where
18511 POSIX requires this.
18512 * lib/strptime.c (strptime): Likewise.
18513 Change license notice from LGPL to GPL, since gnulib-tool will
18514 change this as needed.
18515 Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
18517 Include "strptime.h" first, to check interface.
18518 Do not #undef _LIBC and _NL_CURRENT.
18519 Do not include <stdlib.h>; no longer needed.
18520 Include "time_r.h" and declare ptime_locale_status
18521 only if _LIBC is not defined.
18522 (__P): Remove unused macro.
18523 (match_string): Bring back glibc version, but use it only if _LIBC
18525 (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
18526 Remove unnecessary assertion and abort() call.
18527 Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
18528 * m4/strptime.m4: Fix serial number comment.
18529 (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
18530 * modules/strptime (Files): Add m4/tm_gmtoff.m4.
18531 (Depends-on): Add time_r.
18533 2007-01-29 Bruno Haible <bruno@clisp.org>
18535 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
18537 * modules/strptime (Depends-on): Add stdbool.
18538 * lib/strptime.h: Include <time.h> always. Add comments.
18540 2007-01-29 Yoann Vandoorselaere <yoann@prelude-ids.org>
18542 * modules/strptime: New file.
18543 * lib/strptime.h: New file.
18544 * lib/strptime.c: New file.
18545 * m4/strptime.m4: New file.
18547 2007-01-28 Paul Eggert <eggert@cs.ucla.edu>
18549 * MODULES.html.sh: New module mpsort.
18550 * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
18552 * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
18553 a circularity problem with HP-UX ia64 reported by Bob Proulx in
18554 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
18556 (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
18558 * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
18560 * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
18561 the parameter matches the prototype.
18563 2007-01-28 Jim Meyering <jim@meyering.net>
18565 * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
18566 sys/time.h here, reverting that part of the previous patch:
18567 <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
18569 2007-01-28 Bruno Haible <bruno@clisp.org>
18571 * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
18572 value of $(SYS_TIME_H).
18573 [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
18574 remove it conditionally, too. [added by Jim Meyering]
18575 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
18576 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
18577 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
18578 GETTIMEOFDAY_REPLACEMENT to 1.
18580 2007-01-28 Bruno Haible <bruno@clisp.org>
18582 * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
18583 (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
18584 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
18585 Set UNISTD_H instead of UNISTD_H2.
18586 * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
18588 2007-01-28 Bruno Haible <bruno@clisp.org>
18590 * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
18591 * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
18593 2007-01-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18595 * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
18596 (func_create_testdir): Ensure C locale for `grep' and `tr'
18598 (func_create_megatestdir): Avoid one `grep'. Fix bug in
18599 ACLOCAL_AMFLAGS parsing state machine.
18601 2007-01-27 Bruno Haible <bruno@clisp.org>
18603 * modules/unistr/base: Update.
18605 2007-01-27 Bruno Haible <bruno@clisp.org>
18607 Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
18608 u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
18609 * modules/unistr/u32-mbtouc-unsafe: Renamed from
18610 modules/unistr/u32-mbtouc.
18611 * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
18612 * lib/unistr.h: Update.
18613 * lib/linebreak.c: Update.
18614 * modules/unistr/u32-mbtouc: Renamed from
18615 modules/unistr/u32-mbtouc-safe.
18616 * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
18617 * lib/unistr.h: Update.
18618 * lib/unistr/u32-to-u8.c: Update.
18619 * lib/unistr/u32-to-u16.c: Update.
18621 2007-01-27 Bruno Haible <bruno@clisp.org>
18623 Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
18624 u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
18625 * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
18626 * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
18627 * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
18628 * modules/unistr/u16-mbtouc-unsafe: Renamed from
18629 modules/unistr/u16-mbtouc.
18630 * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
18631 * lib/unistr.h: Update.
18632 * lib/linebreak.c: Update.
18633 * modules/linebreak: Update.
18634 * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
18635 * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
18636 * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
18637 * modules/unistr/u16-mbtouc: Renamed from
18638 modules/unistr/u16-mbtouc-safe.
18639 * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
18640 * lib/unistr.h: Update.
18641 * lib/unistr/u16-to-u8.c: Update.
18642 * modules/unistr/u16-to-u8: Update.
18643 * lib/unistr/u16-to-u32.c: Update.
18644 * modules/unistr/u16-to-u32: Update.
18646 2007-01-27 Bruno Haible <bruno@clisp.org>
18648 Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
18649 u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
18650 * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
18651 * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
18652 * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
18653 * modules/unistr/u8-mbtouc-unsafe: Renamed from
18654 modules/unistr/u8-mbtouc.
18655 * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
18656 * lib/unistr.h: Update.
18657 * lib/striconveh.c: Update.
18658 * modules/striconveh: Update.
18659 * lib/linebreak.c: Update.
18660 * modules/linebreak: Update.
18661 * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
18662 * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
18663 * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
18664 * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
18665 * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
18666 * lib/unistr.h: Update.
18667 * lib/striconveh.c: Update.
18668 * modules/striconveh: Update.
18669 * lib/unistr/u8-to-u16.c: Update.
18670 * modules/unistr/u8-to-u16: Update.
18671 * lib/unistr/u8-to-u32.c: Update.
18672 * modules/unistr/u8-to-u32: Update.
18674 2007-01-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18677 * lib/argz.c: Do not include strings.h nor memory.h, include
18678 string.h unconditionally. Patch by Simon Josefsson.
18680 2007-01-27 Bruno Haible <bruno@clisp.org>
18682 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
18683 from gl_HEADER_STRING_H_BODY.
18684 (gl_HEADER_STRING_H_BODY): Require it.
18685 * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
18686 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
18687 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
18688 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
18689 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
18690 * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
18691 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
18692 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
18693 * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
18694 * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
18695 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
18696 * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
18697 * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
18698 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
18699 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
18701 2007-01-27 Bruno Haible <bruno@clisp.org>
18703 * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
18704 check_PROGRAMS into noinst_PROGRAMS.
18705 (func_emit_tests_Makefile_am): Likewise. Also don't initialize
18706 check_PROGRAMS in this case.
18707 (func_import): Set for_test to false.
18708 (func_create_testdir): Set for_test to true.
18710 2007-01-27 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
18711 Bruno Haible <bruno@clisp.org>
18713 * modules/strcasestr (Files): Remove lib/strcasestr.h.
18714 (Depends-on): Add string.
18715 (Includes): Use <string.h> instead of strcasestr.h.
18716 * modules/string (Makefile.am): Also substitute the value of
18717 REPLACE_STRCASESTR.
18718 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
18719 assume strcasestr is declared in <string.h> not <strings.h>. Also
18720 set REPLACE_STRCASESTR.
18721 * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
18722 REPLACE_STRCASESTR.
18723 * lib/strcasestr.h: Remove file.
18724 * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
18725 * lib/string_.h (strcasestr): New declaration.
18727 2007-01-27 Bruno Haible <bruno@clisp.org>
18729 * lib/string_.h: Use 'extern'.
18731 2007-01-27 Jim Meyering <jim@meyering.net>
18733 * lib/regex_internal.c (re_string_reconstruct): Remove declaration
18734 of set-but-not-used local, "q".
18736 * lib/mempcpy.c: Include <config.h> before <string.h>.
18737 This fixes a compilation error on HP-UX, due to the system's
18738 "restrict"-using mempcpy prototype.
18740 2007-01-26 Bruno Haible <bruno@clisp.org>
18742 Small optimization.
18743 * lib/javacomp.c: Include c-strstr.h.
18744 (is_envjavac_gcj): Use c_strstr instead of strstr.
18745 * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
18747 2007-01-26 Bruno Haible <bruno@clisp.org>
18749 * MODULES.html.sh (Unicode string functions): Add the new modules.
18751 * modules/uniconv/u32-strconv-to-locale: New file.
18752 * lib/uniconv/u32-strconv-to-locale.c: New file.
18754 * modules/uniconv/u16-strconv-to-locale: New file.
18755 * lib/uniconv/u16-strconv-to-locale.c: New file.
18757 * modules/uniconv/u8-strconv-to-locale: New file.
18758 * lib/uniconv/u8-strconv-to-locale.c: New file.
18760 * modules/uniconv/u32-strconv-from-locale: New file.
18761 * lib/uniconv/u32-strconv-from-locale.c: New file.
18763 * modules/uniconv/u16-strconv-from-locale: New file.
18764 * lib/uniconv/u16-strconv-from-locale.c: New file.
18766 * modules/uniconv/u8-strconv-from-locale: New file.
18767 * lib/uniconv/u8-strconv-from-locale.c: New file.
18769 * modules/uniconv/u32-strconv-to-enc: New file.
18770 * lib/uniconv/u32-strconv-to-enc.c: New file.
18771 * modules/uniconv/u32-strconv-to-enc-tests: New file.
18772 * tests/uniconv/test-u32-strconv-to-enc.c: New file.
18774 * modules/uniconv/u16-strconv-to-enc: New file.
18775 * lib/uniconv/u16-strconv-to-enc.c: New file.
18776 * lib/uniconv/u-strconv-to-enc.h: New file.
18777 * modules/uniconv/u16-strconv-to-enc-tests: New file.
18778 * tests/uniconv/test-u16-strconv-to-enc.c: New file.
18780 * modules/uniconv/u8-strconv-to-enc: New file.
18781 * lib/uniconv/u8-strconv-to-enc.c: New file.
18782 * modules/uniconv/u8-strconv-to-enc-tests: New file.
18783 * tests/uniconv/test-u8-strconv-to-enc.c: New file.
18785 * modules/uniconv/u32-strconv-from-enc: New file.
18786 * lib/uniconv/u32-strconv-from-enc.c: New file.
18787 * modules/uniconv/u32-strconv-from-enc-tests: New file.
18788 * tests/uniconv/test-u32-strconv-from-enc.c: New file.
18790 * modules/uniconv/u16-strconv-from-enc: New file.
18791 * lib/uniconv/u16-strconv-from-enc.c: New file.
18792 * modules/uniconv/u16-strconv-from-enc-tests: New file.
18793 * tests/uniconv/test-u16-strconv-from-enc.c: New file.
18795 * modules/uniconv/u8-strconv-from-enc: New file.
18796 * lib/uniconv/u8-strconv-from-enc.c: New file.
18797 * lib/uniconv/u-strconv-from-enc.h: New file.
18798 * modules/uniconv/u8-strconv-from-enc-tests: New file.
18799 * tests/uniconv/test-u8-strconv-from-enc.c: New file.
18801 * modules/uniconv/u32-conv-from-enc: New file.
18802 * lib/uniconv/u32-conv-from-enc.c: New file.
18803 * modules/uniconv/u32-conv-from-enc-tests: New file.
18804 * tests/uniconv/test-u32-conv-from-enc.c: New file.
18806 * modules/uniconv/u16-conv-from-enc: New file.
18807 * lib/uniconv/u16-conv-from-enc.c: New file.
18808 * lib/uniconv/u-conv-from-enc.h: New file.
18809 * modules/uniconv/u16-conv-from-enc-tests: New file.
18810 * tests/uniconv/test-u16-conv-from-enc.c: New file.
18812 * modules/uniconv/u8-conv-from-enc: New file.
18813 * lib/uniconv/u8-conv-from-enc.c: New file.
18814 * modules/uniconv/u8-conv-from-enc-tests: New file.
18815 * tests/uniconv/test-u8-conv-from-enc.c: New file.
18817 * modules/uniconv/base: New file.
18818 * lib/uniconv.h: New file.
18820 2007-01-26 Paul Eggert <eggert@cs.ucla.edu>
18822 * doc/gnulib-tool.texi (Initial import): Update to match current
18823 behavior with strdup module.
18824 * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
18825 * lib/memmem.h: Remove; all uses removed. This is now done
18827 * lib/mempcpy.h: Likewise.
18828 * lib/memrchr.h: Likewise.
18829 * lib/stpcpy.h: Likewise.
18830 * lib/stpncpy.h: Likewise.
18831 * lib/strcase.h: Likewise.
18832 * lib/strchrnul.h: Likewise.
18833 * lib/strdup.h: Likewise.
18834 * lib/strndup.h: Likewise.
18835 * lib/strnlen.h: Likewise.
18836 * lib/strpbrk.h: Likewise.
18837 * lib/strsep.h: Likewise.
18838 * lib/strstr.h: Likewise.
18839 * lib/strtok_r.h: Likewise.
18840 * lib/string_.h: New file.
18841 * lib/argp-namefrob.h: Don't include no-longer-existent include files.
18842 Rely on <string.h> instead.
18843 * lib/canon-host.c: Likewise.
18844 * lib/chdir-long.c: Likewise.
18845 * lib/concatpath.c: Likewise.
18846 * lib/exclude.c: Likewise.
18847 * lib/fchdir.c: Likewise.
18848 * lib/getaddrinfo.c: Likewise.
18849 * lib/getcwd.c: Likewise.
18850 * lib/getsubopt.c: Likewise.
18851 * lib/glob.c: Likewise.
18852 * lib/hard-locale.c: Likewise.
18853 * lib/iconvme.c: Likewise.
18854 * lib/javacomp.c: Likewise.
18855 * lib/mempcpy.c: Likewise.
18856 * lib/memrchr.c: Likewise.
18857 * lib/regex_internal.h: Likewise.
18858 * lib/stpncpy.c: Likewise.
18859 * lib/strcasecmp.c: Likewise.
18860 * lib/strchrnul.c: Likewise.
18861 * lib/strdup.c: Likewise.
18862 * lib/striconv.c: Likewise.
18863 * lib/striconveh.c: Likewise.
18864 * lib/striconveha.c: Likewise.
18865 * lib/strncasecmp.c: Likewise.
18866 * lib/strndup.c: Likewise.
18867 * lib/strnlen.c: Likewise.
18868 * lib/strsep.c: Likewise.
18869 * lib/strstr.c: Likewise.
18870 * lib/strtok_r.c: Likewise.
18871 * lib/userspec.c: Likewise.
18872 * lib/w32spawn.h: Likewise.
18873 * lib/xstrndup.c: Likewise.
18874 * lib/mountlist.c (strstr): Remove decl.
18875 * m4/string_h.m4: New file.
18876 * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
18877 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
18878 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
18879 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
18880 * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
18881 * m4/strcase.m4 (gl_FUNC_STRCASECMP):
18882 Set REPLACE_STRCASECMP if necessary.
18883 (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
18884 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
18885 * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
18886 * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
18887 HAVE_DECL_STRDUP if necessary.
18888 (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
18889 since gl_FUNC_STRNDUP does that now.
18890 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
18891 Check for decl here...
18892 (gl_PREREQ_STRNLEN): ... not here.
18893 * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
18894 * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
18895 * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
18896 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
18898 * modules/string: New file.
18899 * modules/memmem (Files): Remove special-purpose include file.
18900 (Depends-on): Add string.
18901 (Include): Include <string.h>, not the removed file.
18902 * modules/mempcpy: Likewise.
18903 * modules/memrchr: Likewise.
18904 * modules/stpcpy: Likewise.
18905 * modules/stpncpy: Likewise.
18906 * modules/strcase: Likewise.
18907 * modules/strchrnul: Likewise.
18908 * modules/strdup: Likewise.
18909 * modules/strndup: Likewise.
18910 * modules/strnlen: Likewise.
18911 * modules/strpbrk: Likewise.
18912 * modules/strsep: Likewise.
18913 * modules/strstr: Likewise.
18914 * modules/strtok_r: Likewise.
18915 * tests/test-dirname.c: Don't include "strdup.h", since
18916 <string.h> now suffices.
18917 * tests/test-memmem.c: Don't include "memmem.h", since
18918 <string.h> now suffices.
18920 2007-01-25 Bruno Haible <bruno@clisp.org>
18922 * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
18925 * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
18926 * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
18927 * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
18928 * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
18930 * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
18931 * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
18932 * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
18933 * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
18934 * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
18935 * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
18937 2007-01-24 Bruno Haible <bruno@clisp.org>
18939 Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
18940 <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
18941 * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
18942 * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
18944 (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
18945 * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
18946 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
18947 * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
18948 * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
18949 * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
18951 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
18953 * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
18954 Reported by Ralf Wildenhues.
18956 2007-01-24 Bruno Haible <bruno@clisp.org>
18958 Drop AC_REQUIRE calls that are redundant with the module dependencies.
18959 * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
18961 * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
18962 gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
18963 * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
18965 2007-01-24 Paul Eggert <eggert@cs.ucla.edu>
18967 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
18968 Don't use 'exit'; just return from 'main'.
18969 (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
18971 * lib/fnmatch_.h: Readjust white space and comments to match
18972 glibc, to avoid spurious diffs.
18974 2007-01-23 Paul Eggert <eggert@cs.ucla.edu>
18976 * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
18977 2004-12-01 change by Jakub Jelinek, since this code won't compile
18978 if !LIBC. Problem reported by Bob Proulx.
18980 2007-01-23 Bruno Haible <bruno@clisp.org>
18982 * lib/striconveh.c: Include c-strcaseeq.h.
18983 (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
18984 * modules/striconveh (Depends-on): Add c-strcaseeq.
18986 2007-01-23 Bruno Haible <bruno@clisp.org>
18988 * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
18990 * modules/c-strcaseeq: New file.
18991 * lib/c-strcaseeq.h: New file.
18993 * modules/streq: New file.
18994 * lib/streq.h: New file.
18996 2007-01-23 Bruno Haible <bruno@clisp.org>
18998 * modules/striconveha-tests: New file.
18999 * tests/test-striconveha.c: New file.
19001 * lib/striconveha.h: Include <stdbool.h>.
19002 (mem_iconveha, str_iconveha): Add 'transliterate' argument.
19003 * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
19004 (mem_iconveha_notranslit): Renamed from mem_iconveha.
19005 (mem_iconveha): New function.
19006 (str_iconveha_notranslit): Renamed from str_iconveha.
19007 (str_iconveha): New function.
19008 * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
19011 2007-01-23 Bruno Haible <bruno@clisp.org>
19013 * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
19014 encodings without forgiving before trying any encoding with handler.
19015 (str_iconveha): Try all encodings without forgiving before trying any
19016 encoding with handler.
19018 2007-01-23 Paul Eggert <eggert@cs.ucla.edu>
19020 Import the following changes from libc.
19022 2005-10-14 Ulrich Drepper <drepper@redhat.com>
19024 * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
19026 2004-12-01 Jakub Jelinek <jakub@redhat.com>
19028 * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
19029 normal_bracket label.
19031 2004-09-01 Jakub Jelinek <jakub@redhat.com>
19034 * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
19035 to normal_bracket after fetching the next character.
19037 2007-01-22 Bruno Haible <bruno@clisp.org>
19039 * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
19041 * lib/striconveh.c (iconv_carefully_1): New function.
19042 (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
19044 (str_cd_iconveh): Update.
19045 * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
19046 * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
19047 * tests/test-striconveh.c (MAGIC): New macro.
19048 (new_offsets): New function.
19049 (main): Test call with and without offsets.
19051 2007-01-22 Bruno Haible <bruno@clisp.org>
19053 * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
19054 * modules/sys_select (Makefile.am): Likewise.
19055 * modules/sys_socket (Makefile.am): Likewise.
19056 * modules/sys_time (Makefile.am): Likewise.
19058 2007-01-22 Paul Eggert <eggert@cs.ucla.edu>
19060 * modules/gettimeofday (License): Change from GPL to LGPL, since
19061 gettimeofday is a library function.
19063 2007-01-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
19065 * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
19067 2007-01-21 Bruno Haible <bruno@clisp.org>
19069 * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
19071 2007-01-21 Bruno Haible <bruno@clisp.org>
19073 * modules/striconveha: New file.
19074 * lib/striconveha.h: New file.
19075 * lib/striconveha.c: New file.
19076 * MODULES.html.sh (Internationalization functions): Add striconveha.
19077 * lib/striconv.c (str_iconv): Optimize the case of an empty input
19079 * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
19081 2007-01-21 Bruno Haible <bruno@clisp.org>
19083 * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
19084 * lib/striconveh.c (str_iconveh): Likewise.
19086 2007-01-21 Bruno Haible <bruno@clisp.org>
19088 * lib/striconveh.h (mem_iconveh): New declaration.
19089 * lib/striconveh.c (mem_iconveh): New function.
19090 * tests/test-striconveh.c (main): Add tests for mem_iconveh.
19092 2007-01-21 Bruno Haible <bruno@clisp.org>
19094 * lib/xstriconv.h (xmem_cd_iconv): Change specification.
19096 * lib/striconveh.h (mem_cd_iconveh): Change specification.
19097 * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
19098 original result buffer.
19099 (str_cd_iconveh): Update.
19100 * tests/test-striconveh.c (main): Update.
19102 * lib/striconv.h (mem_cd_iconv): Change specification.
19103 * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
19105 (str_cd_iconv): Update.
19106 * tests/test-striconv.c (main): Update.
19108 2007-01-21 Bruno Haible <bruno@clisp.org>
19110 * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
19112 2007-01-20 Jim Meyering <jim@meyering.net>
19114 * lib/userspec.c (parse_with_separator): If a user or group string
19115 starts with "+", skip the corresponding name-to-ID look-up, since
19116 such a look-up must fail: user and group names may not include "+".
19118 2007-01-19 Paul Eggert <eggert@cs.ucla.edu>
19120 * lib/poll.c: Include sys/time.h and time.h unconditionally,
19121 since we now assume the sys_time module.
19122 * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
19123 check for sys/time.h; no longer needed.
19124 * modules/poll (Depends-on): Depend on sys_time.
19126 2007-01-18 Bruno Haible <bruno@clisp.org>
19128 * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
19129 * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
19131 * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
19134 * tests/test-gettimeofday.c: Include <time.h>.
19135 (dummy): Remove variable.
19137 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
19138 gl_HEADER_SYS_TIME_H.
19139 (gl_HEADER_SYS_TIME_H): New macro.
19141 * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
19142 HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
19143 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
19144 gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
19145 HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
19146 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
19147 GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
19148 and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
19149 * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
19150 instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
19151 GETTIMEOFDAY_CLOBBERS_LOCALTIME.
19153 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
19154 last change; it caused a compilation error when cross-compiling to
19157 2007-01-18 Jim Meyering <jim@meyering.net>
19159 Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
19160 * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
19161 than the race-prone "test -d sys || mkdir sys".
19162 (configure.ac): Use AC_PROG_MKDIR_P.
19163 * modules/sys_select: Likewise.
19164 * modules/sys_socket: Likewise.
19165 * modules/sys_time: Likewise.
19167 2007-01-18 Eric Blake <ebb9@byu.net>
19169 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
19170 replace gettimeofday.
19171 * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
19172 name, to avoid infinite recursion.
19174 2007-01-17 Paul Eggert <eggert@cs.ucla.edu>
19176 * MODULES.html.sh (Support for systems lacking POSIX:2001): New
19178 * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
19179 assume timespec.h defines struct timeval.
19180 * lib/settime.c: Likewise.
19181 * lib/utimens.c: Likewise.
19182 * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
19183 since we now assume the gettimeofday module.
19184 * lib/tempname.c (__gen_tempname): Likewise.
19185 * lib/gettimeofday.h: Remove.
19186 * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
19187 Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
19188 Include <time.h>, for 'time()'.
19189 (localtime_buffer_addr): Also use this workaround if
19190 TZSET_CLOBBERS_LOCALTIME. Set to a dummy static variable by default,
19191 to simplify the uses. All uses changed.
19192 (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
19193 that #undef is inside {}, and 'const' follows type name consistently.
19194 (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
19195 (gettimeofday): Do not use the maximum possible value for
19196 tv->tv_usec, since that might break usages other than ls.c.
19197 Instead, we'll leave ls.c alone. This undoes today's patch
19198 by Bruno. Add a compile-time warning for 1s-clock resolution;
19199 we've never observed the problem but might as well keep the
19201 * lib/nanosleep.c: Include timespec.h first, for interface check.
19202 * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
19203 now assume the sys_time module.
19204 * lib/tempname.c: Likewise.
19205 * lib/timespec.h: Likewise.
19206 * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
19208 * lib/strftime.c: Likewise.
19209 * lib/timespec.h: Likewise.
19210 * lib/posixtm.c: Include posixtm.h first, for interface check.
19211 Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
19212 * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
19213 * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
19214 * lib/sys_time_.h: New file.
19215 * lib/timespec.h (struct timespec): Use long int, not long.
19216 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
19217 (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
19218 Remove obsolescent call to AC_HEADER_TIME.
19219 * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
19220 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
19221 * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
19222 * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
19224 * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
19225 * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
19226 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
19227 into the sys_time module. Check for gettimeofday just once.
19228 Prefix our variables with gl_, not with ac_ or jm_. Tighten test
19229 for gettimeofday signature to just check the signature. Merely
19230 compile it, since linking doesn't test signature. Improve test for
19231 whether gettimeofday.o is actually needed.
19232 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
19233 AC_FUNC_GETTIMEOFDAY_CLOBBER. All uses changed. Use
19234 AC_RUN_IFELSE rather than AC_TRY_RUN. If clobbering, set
19235 and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
19236 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
19237 GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
19238 job. Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
19239 * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
19240 than worrying about sys/time.h.
19241 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
19242 Don't bother worrying about TIME_WITH_SYS_TIME.
19243 * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
19244 * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
19245 * m4/sys_time_h.m4: New file.
19246 * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
19247 Don't include sys/time.h. Return from main rather than exiting.
19248 Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
19250 * modules/gethrxtime (Depends-on): Add sys_time.
19251 * modules/gettime (Depends-on): Likewise.
19252 * modules/gettimeofday (Depends-on): Likewise.
19253 * modules/nanosleep (Depends-on): Likewise.
19254 * modules/settime (Depends-on): Likewise.
19255 * modules/tempname (Depends-on): Likewise.
19256 * modules/utimens (Depends-on): Likewise.
19257 * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
19258 (Include:) Change back to <sys/time.h>.
19259 (Maintainer:) Add self.
19260 * modules/sys_time: New file.
19261 * modules/tempname (Depends-on): Add gettimeofday.
19262 * tests/test-gettimeofday.c: Include <sys/time.h>
19263 rather than gettimeofday.h.
19265 2007-01-17 Bruno Haible <bruno@clisp.org>
19267 * gnulib-tool (func_get_license): Revert last patch. Instead, let
19268 the license default to GPL.
19269 (func_create_testdir): Don't complain if a module is LGPL and its
19270 tests module depends on GPLed modules.
19272 2007-01-17 Bruno Haible <bruno@clisp.org>
19274 * lib/gettimeofday.c (gettimeofday): Add code for the case
19275 HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
19276 maximum possible value for tv->tv_usec, rather than the minimum one.
19278 2005-10-08 Martin Lambers <marlam@marlam.de>
19279 2005-10-08 Paul Eggert <eggert@cs.ucla.edu>
19280 2007-01-16 Bruno Haible <bruno@clisp.org>
19282 * modules/gettimeofday (Files): Add lib/gettimeofday.h.
19283 (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
19284 gl_FUNC_GETTIMEOFDAY.
19285 (Include): Add gettimeofday.h.
19286 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
19287 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
19288 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
19289 GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
19290 (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
19291 * lib/gettimeofday.h: New file.
19292 * lib/gettimeofday.c: Include <sys/timeb.h>.
19293 (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
19294 only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
19295 (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
19296 fall back on time().
19298 * tests/test-gettimeofday.c: New file.
19299 * modules/gettimeofday-tests: New file.
19301 2007-01-16 Eric Blake <ebb9@byu.net>
19303 * modules/fnmatch (Depends-on): Depend on wchar.
19304 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
19305 * m4/fnmatch.m4: Likewise.
19306 * modules/mbchar (Makefile.am): Assume <wchar.h>.
19307 * m4/mbchar.m4: Likewise.
19308 * modules/mbswidth (Depends-on): Depend on wchar.
19309 * lib/mbswidth.c: Assume <wchar.h>.
19310 * m4/mbswidth.m4: Likewise.
19311 * modules/quotearg (Depends-on): Depend on wchar.
19312 * lib/quotearg.c: Assume <wchar.h>.
19313 * m4/quotearg.m4: Likewise.
19314 * modules/regex (Depends-on): Depend on wchar.
19315 * lib/regex_internal.h: Assume <wchar.h>.
19316 * m4/regex.m4: Likewise.
19317 * modules/stdint (Depends-on): Depend on wchar.
19318 * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
19319 * m4/stdint.m4: Likewise.
19320 * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
19321 * modules/strftime (Depends-on): Depend on wchar.
19322 * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
19323 * modules/strtol (Depends-on): Depend on wchar.
19324 * lib/strtol.c: Assume <wchar.h>.
19325 * modules/wcwidth (Depends-on): Depend on wchar.
19326 * lib/wcwidth.h: Assume <wchar.h>.
19327 * m4/wcwidth.m4: Likewise.
19329 2007-01-16 Bruno Haible <bruno@clisp.org>
19331 * modules/csharpexec-script: New, created from...
19332 * modules/csharpexec: ... this.
19334 2007-01-16 Paolo Bonzini <bonzini@gnu.org>
19336 * modules/javaexec-script: New, created from...
19337 * modules/javaexec: ... this.
19339 2007-01-16 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
19341 * modules/poll (Dependencies): Add sys_select.
19343 2007-01-15 Jim Meyering <jim@meyering.net>
19345 * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
19346 redefinition bug when using both <utmp.h> and <utmpx.h> headers.
19347 * lib/readutmp.h: Likewise. Reported by Daniel Richard G. in
19348 <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
19350 2007-01-15 Bruno Haible <bruno@clisp.org>
19352 * modules/striconveh: New file.
19353 * lib/striconveh.h: New file.
19354 * lib/striconveh.c: New file.
19355 * MODULES.html.sh (Internationalization functions): Add striconveh.
19357 * modules/striconveh-tests: New file.
19358 * tests/test-striconveh.c: New file.
19360 2007-01-15 Bruno Haible <bruno@clisp.org>
19362 * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
19363 not from GNU libiconv or GNU libc.
19365 2007-01-15 Bruno Haible <bruno@clisp.org>
19367 * doc/gnulib-intro.texi (Copyright): Explain the different license
19368 terms for module descriptions, autoconf macros, tests, documentation.
19370 2007-01-14 Bruno Haible <bruno@clisp.org>
19372 * modules/striconv-tests: New file.
19373 * tests/test-striconv.c: New file.
19375 2007-01-14 Bruno Haible <bruno@clisp.org>
19377 * modules/iconv-tests: New file.
19378 * tests/test-iconv.c: New file.
19380 2007-01-14 Bruno Haible <bruno@clisp.org>
19382 * gnulib-tool (func_get_license): For test modules, use the license of
19385 2007-01-14 Bruno Haible <bruno@clisp.org>
19387 * modules/iconv (Include): Clarify that <iconv.h> can only be included
19388 if iconv is found to exist.
19390 2007-01-14 Bruno Haible <bruno@clisp.org>
19392 * modules/c-ctype-tests: New file.
19393 * tests/test-c-ctype.c: New file.
19395 2007-01-14 Bruno Haible <bruno@clisp.org>
19397 * modules/binary-io-tests: New file.
19398 * tests/test-binary-io.sh: New file.
19399 * tests/test-binary-io.c: New file.
19401 2007-01-14 Bruno Haible <bruno@clisp.org>
19403 * modules/array-oset-tests: New file.
19404 * tests/test-array_oset.c: New file.
19406 2007-01-14 Bruno Haible <bruno@clisp.org>
19408 * modules/array-list-tests: New file.
19409 * tests/test-array_list.c: New file.
19411 2007-01-14 Bruno Haible <bruno@clisp.org>
19413 * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
19415 Reported by Simon Josefsson in
19416 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
19418 2007-01-14 Bruno Haible <bruno@clisp.org>
19420 * modules/allocsa-tests: New file.
19421 * tests/test-allocsa.c: New file.
19423 2007-01-14 Bruno Haible <bruno@clisp.org>
19425 * modules/fchdir (Depends-on): Add absolute-header.
19426 * modules/unistd (Depends-on): Likewise.
19428 2006-12-30 Bruno Haible <bruno@clisp.org>
19430 * modules/fchdir: New file.
19431 * modules/unistd (Files): Add lib/unistd_.h.
19432 (Makefile.am): Generate unistd.h from unistd_.h.
19433 * lib/fchdir.c: New file.
19434 * lib/dirent_.h: New file.
19435 * lib/unistd_.h: New file.
19436 * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
19437 * m4/fchdir.m4: New file.
19438 * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
19439 (gl_HEADER_UNISTD): Invoke it.
19440 * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
19442 * lib/backupfile.c (opendir, closedir): Undefine.
19443 * lib/chown.c (open, close): Undefine.
19444 * lib/clean-temp.c (open, close): Undefine.
19445 * lib/copy-file.c (open, close): Undefine.
19446 * lib/execute.c (open, close): Undefine.
19447 * lib/fsusage.c (open, close): Undefine.
19448 * lib/gc-gnulib.c (open, close): Undefine.
19449 * lib/getcwd.c (opendir, closedir): Undefine.
19450 * lib/glob.c (opendir, closedir): Undefine.
19451 * lib/javacomp.c (open, close): Undefine.
19452 * lib/mountlist.c (open, close, opendir, closedir): Undefine.
19453 * lib/openat-proc.c (open, close): Undefine.
19454 * lib/pagealign_alloc.c (open, close): Undefine.
19455 * lib/pipe.c (open, close): Undefine.
19456 * lib/progreloc.c (open, close): Undefine.
19457 * lib/savedir.c (opendir, closedir): Undefine.
19458 * lib/utime.c (open, close): Undefine.
19459 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
19461 2007-01-10 Bruno Haible <bruno@clisp.org>
19463 * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
19465 2007-01-12 Eric Blake <ebb9@byu.net>
19467 Provide a robust <wchar.h>. Further simplifications are now
19468 possible in other modules, but not included here.
19469 * modules/wchar: New module.
19470 * m4/wchar.m4: New file.
19471 * lib/wchar_.h: Likewise.
19472 * modules/mbchar (Depends-on): Depend on wchar, as the first use
19474 * MODULES.html.sh (Extended multibyte and wide character utilities):
19477 2007-01-12 Paul Eggert <eggert@cs.ucla.edu>
19479 * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
19480 to a reasonable default for memory allocation.
19481 (xreadlink): Don't allocate a huge buffer, to work around a buggy
19482 file system that reports garbage st_size values for symlinks.
19483 Problem reported by Liyang Hu.
19485 2007-01-11 Simon Josefsson <simon@josefsson.org>
19487 * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
19488 Emacs .#* auto-save files).
19490 2007-01-11 Bruno Haible <bruno@clisp.org>
19492 * gnulib-tool (func_all_modules): Exclude all files inside the CVS
19495 2007-01-10 Paul Eggert <eggert@cs.ucla.edu>
19497 Use @...@ consistently in lib/wctype_.h.
19498 * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
19499 on it being set to 1 or 0.
19500 * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
19501 go back to AC_SUBSTing it.
19502 * modules/wctype (Makefile.am): Undo previous change.
19504 2007-01-10 Eric Blake <ebb9@byu.net>
19506 * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
19507 * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
19508 * modules/wctype (Makefile.am): Likewise.
19509 Reported by Chris McGuire.
19511 2007-01-10 Jim Meyering <jim@meyering.net>
19513 fts.c: a small readability/maintainability improvement
19514 * lib/fts.c (fts_read): Make this code slightly more readable and
19515 maintainable by hoisting the "sp->fts_cur = p" assignments to
19516 immediately follow the statements that set P. Derived from
19517 the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
19519 2007-01-10 Eric Blake <ebb9@byu.net>
19521 * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
19522 <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
19523 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
19524 * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
19525 Reported by Chris McGuire.
19527 2007-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19529 * gnulib-tool (func_all_modules): Use POSIX conforming escaping
19532 2007-01-09 Bruno Haible <bruno@clisp.org>
19534 * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
19535 (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
19537 (func_module): Use them.
19539 2007-01-09 Bruno Haible <bruno@clisp.org>
19541 * modules/unistr/base: New file.
19542 * lib/unistr.h: New file.
19544 * modules/unistr/u8-to-u16: New file.
19545 * lib/unistr/u8-to-u16.c: New file.
19547 * modules/unistr/u8-to-u32: New file.
19548 * lib/unistr/u8-to-u32.c: New file.
19550 * modules/unistr/u16-to-u8: New file.
19551 * lib/unistr/u16-to-u8.c: New file.
19553 * modules/unistr/u16-to-u32: New file.
19554 * lib/unistr/u16-to-u32.c: New file.
19556 * modules/unistr/u32-to-u8: New file.
19557 * lib/unistr/u32-to-u8.c: New file.
19559 * modules/unistr/u32-to-u16: New file.
19560 * lib/unistr/u32-to-u16.c: New file.
19562 * modules/unistr/u8-check: New file.
19563 * modules/unistr/u16-check: New file.
19564 * modules/unistr/u32-check: New file.
19565 * lib/unistr/u8-check.c: New file.
19566 * lib/unistr/u16-check.c: New file.
19567 * lib/unistr/u32-check.c: New file.
19569 * modules/unistr/u8-chr: New file.
19570 * modules/unistr/u16-chr: New file.
19571 * modules/unistr/u32-chr: New file.
19572 * lib/unistr/u8-chr.c: New file.
19573 * lib/unistr/u16-chr.c: New file.
19574 * lib/unistr/u32-chr.c: New file.
19576 * modules/unistr/u8-cmp: New file.
19577 * modules/unistr/u16-cmp: New file.
19578 * modules/unistr/u32-cmp: New file.
19579 * lib/unistr/u8-cmp.c: New file.
19580 * lib/unistr/u16-cmp.c: New file.
19581 * lib/unistr/u32-cmp.c: New file.
19583 * modules/unistr/u8-cpy: New file.
19584 * modules/unistr/u16-cpy: New file.
19585 * modules/unistr/u32-cpy: New file.
19586 * lib/unistr/u8-cpy.c: New file.
19587 * lib/unistr/u16-cpy.c: New file.
19588 * lib/unistr/u32-cpy.c: New file.
19589 * lib/unistr/u-cpy.h: New file.
19591 * modules/unistr/u8-cpy-alloc: New file.
19592 * modules/unistr/u16-cpy-alloc: New file.
19593 * modules/unistr/u32-cpy-alloc: New file.
19594 * lib/unistr/u8-cpy-alloc.c: New file.
19595 * lib/unistr/u16-cpy-alloc.c: New file.
19596 * lib/unistr/u32-cpy-alloc.c: New file.
19597 * lib/unistr/u-cpy-alloc.h: New file.
19599 * modules/unistr/u8-endswith: New file.
19600 * modules/unistr/u16-endswith: New file.
19601 * modules/unistr/u32-endswith: New file.
19602 * lib/unistr/u8-endswith.c: New file.
19603 * lib/unistr/u16-endswith.c: New file.
19604 * lib/unistr/u32-endswith.c: New file.
19605 * lib/unistr/u-endswith.h: New file.
19607 * modules/unistr/u8-mblen: New file.
19608 * modules/unistr/u16-mblen: New file.
19609 * modules/unistr/u32-mblen: New file.
19610 * lib/unistr/u8-mblen.c: New file.
19611 * lib/unistr/u16-mblen.c: New file.
19612 * lib/unistr/u32-mblen.c: New file.
19614 * modules/unistr/u8-mbtouc: New file.
19615 * modules/unistr/u16-mbtouc: New file.
19616 * modules/unistr/u32-mbtouc: New file.
19617 * lib/unistr/u8-mbtouc.c: New file.
19618 * lib/unistr/u16-mbtouc.c: New file.
19619 * lib/unistr/u32-mbtouc.c: New file.
19621 * modules/unistr/u8-mbtouc-safe: New file.
19622 * modules/unistr/u16-mbtouc-safe: New file.
19623 * modules/unistr/u32-mbtouc-safe: New file.
19624 * lib/unistr/u8-mbtouc-safe.c: New file.
19625 * lib/unistr/u16-mbtouc-safe.c: New file.
19626 * lib/unistr/u32-mbtouc-safe.c: New file.
19628 * modules/unistr/u8-move: New file.
19629 * modules/unistr/u16-move: New file.
19630 * modules/unistr/u32-move: New file.
19631 * lib/unistr/u8-move.c: New file.
19632 * lib/unistr/u16-move.c: New file.
19633 * lib/unistr/u32-move.c: New file.
19634 * lib/unistr/u-move.h: New file.
19636 * modules/unistr/u8-next: New file.
19637 * modules/unistr/u16-next: New file.
19638 * modules/unistr/u32-next: New file.
19639 * lib/unistr/u8-next.c: New file.
19640 * lib/unistr/u16-next.c: New file.
19641 * lib/unistr/u32-next.c: New file.
19643 * modules/unistr/u8-prev: New file.
19644 * modules/unistr/u16-prev: New file.
19645 * modules/unistr/u32-prev: New file.
19646 * lib/unistr/u8-prev.c: New file.
19647 * lib/unistr/u16-prev.c: New file.
19648 * lib/unistr/u32-prev.c: New file.
19650 * modules/unistr/u8-set: New file.
19651 * modules/unistr/u16-set: New file.
19652 * modules/unistr/u32-set: New file.
19653 * lib/unistr/u8-set.c: New file.
19654 * lib/unistr/u16-set.c: New file.
19655 * lib/unistr/u32-set.c: New file.
19656 * lib/unistr/u-set.h: New file.
19658 * modules/unistr/u8-startswith: New file.
19659 * modules/unistr/u16-startswith: New file.
19660 * modules/unistr/u32-startswith: New file.
19661 * lib/unistr/u8-startswith.c: New file.
19662 * lib/unistr/u16-startswith.c: New file.
19663 * lib/unistr/u32-startswith.c: New file.
19664 * lib/unistr/u-startswith.h: New file.
19666 * modules/unistr/u8-stpcpy: New file.
19667 * modules/unistr/u16-stpcpy: New file.
19668 * modules/unistr/u32-stpcpy: New file.
19669 * lib/unistr/u8-stpcpy.c: New file.
19670 * lib/unistr/u16-stpcpy.c: New file.
19671 * lib/unistr/u32-stpcpy.c: New file.
19672 * lib/unistr/u-stpcpy.h: New file.
19674 * modules/unistr/u8-stpncpy: New file.
19675 * modules/unistr/u16-stpncpy: New file.
19676 * modules/unistr/u32-stpncpy: New file.
19677 * lib/unistr/u8-stpncpy.c: New file.
19678 * lib/unistr/u16-stpncpy.c: New file.
19679 * lib/unistr/u32-stpncpy.c: New file.
19680 * lib/unistr/u-stpncpy.h: New file.
19682 * modules/unistr/u8-strcat: New file.
19683 * modules/unistr/u16-strcat: New file.
19684 * modules/unistr/u32-strcat: New file.
19685 * lib/unistr/u8-strcat.c: New file.
19686 * lib/unistr/u16-strcat.c: New file.
19687 * lib/unistr/u32-strcat.c: New file.
19688 * lib/unistr/u-strcat.h: New file.
19690 * modules/unistr/u8-strchr: New file.
19691 * modules/unistr/u16-strchr: New file.
19692 * modules/unistr/u32-strchr: New file.
19693 * lib/unistr/u8-strchr.c: New file.
19694 * lib/unistr/u16-strchr.c: New file.
19695 * lib/unistr/u32-strchr.c: New file.
19697 * modules/unistr/u8-strcmp: New file.
19698 * modules/unistr/u16-strcmp: New file.
19699 * modules/unistr/u32-strcmp: New file.
19700 * lib/unistr/u8-strcmp.c: New file.
19701 * lib/unistr/u16-strcmp.c: New file.
19702 * lib/unistr/u32-strcmp.c: New file.
19704 * modules/unistr/u8-strcpy: New file.
19705 * modules/unistr/u16-strcpy: New file.
19706 * modules/unistr/u32-strcpy: New file.
19707 * lib/unistr/u8-strcpy.c: New file.
19708 * lib/unistr/u16-strcpy.c: New file.
19709 * lib/unistr/u32-strcpy.c: New file.
19710 * lib/unistr/u-strcpy.h: New file.
19712 * modules/unistr/u8-strcspn: New file.
19713 * modules/unistr/u16-strcspn: New file.
19714 * modules/unistr/u32-strcspn: New file.
19715 * lib/unistr/u8-strcspn.c: New file.
19716 * lib/unistr/u16-strcspn.c: New file.
19717 * lib/unistr/u32-strcspn.c: New file.
19718 * lib/unistr/u-strcspn.h: New file.
19720 * modules/unistr/u8-strdup: New file.
19721 * modules/unistr/u16-strdup: New file.
19722 * modules/unistr/u32-strdup: New file.
19723 * lib/unistr/u8-strdup.c: New file.
19724 * lib/unistr/u16-strdup.c: New file.
19725 * lib/unistr/u32-strdup.c: New file.
19726 * lib/unistr/u-strdup.h: New file.
19728 * modules/unistr/u8-strlen: New file.
19729 * modules/unistr/u16-strlen: New file.
19730 * modules/unistr/u32-strlen: New file.
19731 * lib/unistr/u8-strlen.c: New file.
19732 * lib/unistr/u16-strlen.c: New file.
19733 * lib/unistr/u32-strlen.c: New file.
19734 * lib/unistr/u-strlen.h: New file.
19736 * modules/unistr/u8-strmblen: New file.
19737 * modules/unistr/u16-strmblen: New file.
19738 * modules/unistr/u32-strmblen: New file.
19739 * lib/unistr/u8-strmblen.c: New file.
19740 * lib/unistr/u16-strmblen.c: New file.
19741 * lib/unistr/u32-strmblen.c: New file.
19743 * modules/unistr/u8-strmbtouc: New file.
19744 * modules/unistr/u16-strmbtouc: New file.
19745 * modules/unistr/u32-strmbtouc: New file.
19746 * lib/unistr/u8-strmbtouc.c: New file.
19747 * lib/unistr/u16-strmbtouc.c: New file.
19748 * lib/unistr/u32-strmbtouc.c: New file.
19750 * modules/unistr/u8-strncat: New file.
19751 * modules/unistr/u16-strncat: New file.
19752 * modules/unistr/u32-strncat: New file.
19753 * lib/unistr/u8-strncat.c: New file.
19754 * lib/unistr/u16-strncat.c: New file.
19755 * lib/unistr/u32-strncat.c: New file.
19756 * lib/unistr/u-strncat.h: New file.
19758 * modules/unistr/u8-strncmp: New file.
19759 * modules/unistr/u16-strncmp: New file.
19760 * modules/unistr/u32-strncmp: New file.
19761 * lib/unistr/u8-strncmp.c: New file.
19762 * lib/unistr/u16-strncmp.c: New file.
19763 * lib/unistr/u32-strncmp.c: New file.
19765 * modules/unistr/u8-strncpy: New file.
19766 * modules/unistr/u16-strncpy: New file.
19767 * modules/unistr/u32-strncpy: New file.
19768 * lib/unistr/u8-strncpy.c: New file.
19769 * lib/unistr/u16-strncpy.c: New file.
19770 * lib/unistr/u32-strncpy.c: New file.
19771 * lib/unistr/u-strncpy.h: New file.
19773 * modules/unistr/u8-strnlen: New file.
19774 * modules/unistr/u16-strnlen: New file.
19775 * modules/unistr/u32-strnlen: New file.
19776 * lib/unistr/u8-strnlen.c: New file.
19777 * lib/unistr/u16-strnlen.c: New file.
19778 * lib/unistr/u32-strnlen.c: New file.
19779 * lib/unistr/u-strnlen.h: New file.
19781 * modules/unistr/u8-strpbrk: New file.
19782 * modules/unistr/u16-strpbrk: New file.
19783 * modules/unistr/u32-strpbrk: New file.
19784 * lib/unistr/u8-strpbrk.c: New file.
19785 * lib/unistr/u16-strpbrk.c: New file.
19786 * lib/unistr/u32-strpbrk.c: New file.
19787 * lib/unistr/u-strpbrk.h: New file.
19789 * modules/unistr/u8-strrchr: New file.
19790 * modules/unistr/u16-strrchr: New file.
19791 * modules/unistr/u32-strrchr: New file.
19792 * lib/unistr/u8-strrchr.c: New file.
19793 * lib/unistr/u16-strrchr.c: New file.
19794 * lib/unistr/u32-strrchr.c: New file.
19796 * modules/unistr/u8-strspn: New file.
19797 * modules/unistr/u16-strspn: New file.
19798 * modules/unistr/u32-strspn: New file.
19799 * lib/unistr/u8-strspn.c: New file.
19800 * lib/unistr/u16-strspn.c: New file.
19801 * lib/unistr/u32-strspn.c: New file.
19802 * lib/unistr/u-strspn.h: New file.
19804 * modules/unistr/u8-strstr: New file.
19805 * modules/unistr/u16-strstr: New file.
19806 * modules/unistr/u32-strstr: New file.
19807 * lib/unistr/u8-strstr.c: New file.
19808 * lib/unistr/u16-strstr.c: New file.
19809 * lib/unistr/u32-strstr.c: New file.
19810 * lib/unistr/u-strstr.h: New file.
19812 * modules/unistr/u8-strtok: New file.
19813 * modules/unistr/u16-strtok: New file.
19814 * modules/unistr/u32-strtok: New file.
19815 * lib/unistr/u8-strtok.c: New file.
19816 * lib/unistr/u16-strtok.c: New file.
19817 * lib/unistr/u32-strtok.c: New file.
19818 * lib/unistr/u-strtok.h: New file.
19820 * modules/unistr/u8-uctomb: New file.
19821 * modules/unistr/u16-uctomb: New file.
19822 * modules/unistr/u32-uctomb: New file.
19823 * lib/unistr/u8-uctomb.c: New file.
19824 * lib/unistr/u16-uctomb.c: New file.
19825 * lib/unistr/u32-uctomb.c: New file.
19827 * MODULES.html.sh (Unicode string functions): Add the new modules.
19829 2007-01-08 Bruno Haible <bruno@clisp.org>
19831 * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
19832 modules directory. Filter out CVS, ChangeLog, COPYING, README also from
19835 2007-01-08 Karl Berry <karl@gnu.org>
19837 * doc/error.texi: mention that main() fns must set program_name
19838 when progname is used.
19840 2007-01-08 Paul Eggert <eggert@cs.ucla.edu>
19842 * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
19843 WCTYPE_H is empty, for the benefit of builds from non-distclean
19844 directories. Problem reported by Eric Blake in
19845 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
19847 2007-01-08 Bruno Haible <bruno@clisp.org>
19849 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
19850 PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
19851 * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
19852 PROVIDE_CANONICALIZE_FILENAME_MODE.
19853 * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
19855 2007-01-08 Bruno Haible <bruno@clisp.org>
19857 * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
19858 * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
19859 Use !GNULIB_FTS instead of _LGPL_PACKAGE.
19860 * lib/fts.c: Likewise.
19861 * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
19863 2006-12-25 Bruno Haible <bruno@clisp.org>
19865 * modules/utf8-ucs4-safe: New file.
19866 * lib/utf8-ucs4-safe.h: New file.
19867 * lib/unistr/utf8-ucs4-safe.c: New file.
19869 * modules/utf16-ucs4-safe: New file.
19870 * lib/utf16-ucs4-safe.h: New file.
19871 * lib/unistr/utf16-ucs4-safe.c: New file.
19873 * MODULES.html.sh (Unicode string functions): Add the new modules.
19875 2007-01-08 Bruno Haible <bruno@clisp.org>
19877 * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
19878 (Depends-on): Add unitypes.
19879 * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
19880 (u8_mbtouc_aux): Move out to separate file.
19881 (u8_mbtouc): Use ucs4_t, uint8_t types.
19882 * lib/unistr/utf8-ucs4.c: New file.
19884 * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
19885 (Depends-on): Add unitypes.
19886 * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
19887 (u16_mbtouc_aux): Move out to separate file.
19888 (u16_mbtouc): Use ucs4_t, uint16_t types.
19889 * lib/unistr/utf16-ucs4.c: New file.
19891 * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
19892 (Depends-on): Add unitypes.
19893 * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
19894 (u8_uctomb_aux): Move out to separate file.
19895 (u8_uctomb): Use ucs4_t, uint8_t types.
19896 * lib/unistr/ucs4-utf8.c: New file.
19898 * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
19899 (Depends-on): Add unitypes.
19900 * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
19901 (u16_uctomb_aux): Move out to separate file.
19902 (u16_uctomb): Use ucs4_t, uint16_t types.
19903 * lib/unistr/ucs4-utf16.c: New file.
19905 2006-12-25 Bruno Haible <bruno@clisp.org>
19907 * modules/unitypes: New file.
19908 * lib/unitypes.h: New file.
19909 * MODULES.html.sh (func_all_modules): New section "Unicode string
19910 functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
19911 this section. Add unitypes.
19913 2007-01-08 Bruno Haible <bruno@clisp.org>
19915 Avoid variable names that conflict with those from libtool.
19916 * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
19917 AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
19918 shlibext to acl_shlibext, libname_spec to acl_libname_spec,
19919 library_names_spec to acl_library_names_spec, hardcode_* to
19921 Reported by Ralf Wildenhues.
19923 2007-01-08 Bruno Haible <bruno@clisp.org>
19925 * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
19927 * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
19929 * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
19930 * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
19932 * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
19934 * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
19935 * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
19936 * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
19937 * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
19939 * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
19941 * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
19942 * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
19943 GC_USE_<algorithm>.
19944 * lib/gc-libgcrypt.c: Likewise.
19945 * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
19946 * modules/gc-arctwo (configure.ac): Likewise.
19947 * modules/gc-des (configure.ac): Likewise.
19948 * modules/gc-hmac-md5 (configure.ac): Likewise.
19949 * modules/gc-hmac-sha1 (configure.ac): Likewise.
19950 * modules/gc-md2 (configure.ac): Likewise.
19951 * modules/gc-md4 (configure.ac): Likewise.
19952 * modules/gc-md5 (configure.ac): Likewise.
19953 * modules/gc-random (configure.ac): Likewise.
19954 * modules/gc-rijndael (configure.ac): Likewise.
19955 * modules/gc-sha1 (configure.ac): Likewise.
19957 2007-01-08 Bruno Haible <bruno@clisp.org>
19959 * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
19961 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
19963 * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
19965 * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
19966 * modules/fcntl-safer (configure.ac): Likewise.
19967 * modules/fopen-safer (configure.ac): Likewise.
19968 * modules/fwriteerror (configure.ac): Likewise. Remove explicit
19969 GNULIB_FWRITEERROR macro definition.
19971 2007-01-08 Bruno Haible <bruno@clisp.org>
19973 * m4/gnulib-common.m4: New file.
19974 * gnulib-tool (func_get_autoconf_snippet): Undo last change.
19975 (func_get_filelist): Add m4/gnulib-common.m4.
19977 2007-01-08 Bruno Haible <bruno@clisp.org>
19979 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
19982 2007-01-08 Jim Meyering <jim@meyering.net>
19984 Use a more robust test for a "can't happen" condition.
19985 * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
19986 narrowed the st_size value. Presuming the "can't happen" condition
19987 is true, that narrowing could conceivably convert an invalid st_size
19988 value into a valid one. Instead, use a change based on Matthew
19989 Woehlke's original patch.
19991 Slight readability improvement: use an assert-like macro
19992 in place of literal "abort ()" uses.
19993 * lib/fts.c (fts_assert): Define.
19994 (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
19995 Use this macro instead of a bare 'abort'.
19997 2007-01-05 Paul Eggert <eggert@cs.ucla.edu>
19999 Don't worry about using IRIX 5.3's wctype.h broken definitions;
20000 simply work around them.
20001 * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
20002 (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
20003 (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
20005 Don't bother to define as macros, since the standard doesn't require it.
20006 * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
20007 longer worry about IRIX 5.3.
20008 (HAVE_WCTYPE_CTMP_BUG): Remove.
20010 2007-01-04 Paul Eggert <eggert@cs.ucla.edu>
20012 * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
20013 not wint_t. Also, include <ctype.h>, to fix another IRIX bug.
20014 * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
20015 Problems reported by Georg Schwarz for IRIX 5.3.
20017 * gnulib-tool (autoconf_minversion): Take the maximum version number
20018 found, not the minimum. Problem reported by James Youngman.
20020 2007-01-03 Karl Berry <karl@gnu.org>
20022 * doc/error.texi: new file, explaining interaction with progname.
20023 * doc/gnulib.texi: include it. Update copyright.
20025 2007-01-03 Simon Josefsson <simon@josefsson.org>
20027 * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
20028 AC_CANONICAL_HOST, to improve autobuild outputs.
20030 2007-01-03 Paolo Bonzini <bonzini@gnu.org>
20031 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
20033 * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
20034 sockets, server sockets, and other file descriptors. Count errors
20035 to compute the return value. Reorder the code a bit to be easier
20036 to follow. Don't set event bits that were not requested (except
20037 POLLERR and POLLHUP).
20039 2007-01-01 Bruno Haible <bruno@clisp.org>
20041 * modules/lchmod (Include): Require lchmod.h, not lchown.h.
20043 2007-01-03 Jim Meyering <jim@meyering.net>
20045 * modules/fts-lgpl (Depends-on): Add i-ring. Reported by Bruno Haible.
20047 2007-01-02 Bruno Haible <bruno@clisp.org>
20049 * modules/settime (Include): Require timespec.h.
20050 * modules/nanosleep (Include): Likewise.
20052 2007-01-01 Bruno Haible <bruno@clisp.org>
20054 * gnulib-tool (func_emit_copyright_notice): Bump year.
20055 (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
20057 2007-01-01 Bruno Haible <bruno@clisp.org>
20059 Improve support for OpenBSD.
20060 * build-aux/config.rpath (libname_spec): Export.
20061 (library_names_spec): New variable. Export.
20062 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
20063 library_names_spec from the config.rpath output. Locate shared library
20064 through the name pattern in library_names_spec.
20066 2007-01-01 Eric Blake <ebb9@byu.net>
20068 * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
20070 2006-12-30 Paul Eggert <eggert@cs.ucla.edu>
20072 * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
20073 Rewrite so as not to assume GNU sort or "tail -1". Also, don't
20074 assume the C locale, and avoid an "eval" that could cause trouble.
20075 Problem with SORT reported by Bob Proulx.
20077 * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
20078 Define. Trivial patch from Henning Nielsen Lund, originally
20079 sent to bug-grep@gnu.org today.
20081 2006-12-29 Paul Eggert <eggert@cs.ucla.edu>
20083 * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
20084 struct stat. Problem reported by Henning Nielsen Lund.
20085 * lib/acl.c: Include acl.h first, to check interface. Don't
20086 bother to include sys/types.h and sys/stat.h again.
20088 2006-12-28 Paul Eggert <eggert@cs.ucla.edu>
20090 Import the following change from libc; problem reported by
20093 2005-10-13 Ulrich Drepper <drepper@redhat.com>
20096 * lib/argp.h: Remove __NTH for __argp_usage inline function.
20098 2006-12-28 Jim Meyering <jim@meyering.net>
20100 * build-aux/announce-gen: Do not assume that the package
20101 builds any of tar.gz, tar.bz2, and .xdelta files.
20102 Suggestion from Simon Josefsson.
20104 2006-12-28 Simon Josefsson <simon@josefsson.org>
20106 * modules/announce-gen: New file.
20108 2006-12-27 Paul Eggert <eggert@cs.ucla.edu>
20110 * lib/mbchar.h: Just include <wctype.h>; the wctype module
20111 handles its gotchas now.
20112 * lib/mbswidth.c: Likewise.
20113 * lib/wcwidth.h: Likewise.
20114 * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
20115 and iswcntrl; the wctype module does this stuff now.
20116 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
20117 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
20118 * modules/mbchar (Depends-on): Add wctype.
20119 * modules/mbswidth (Depends-on): Likewise.
20120 * modules/wcwidth (Depends-on): Likewise.
20122 2006-12-27 Eric Blake <ebb9@byu.net>
20124 * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
20125 module uses more than what <wctype.h> is required to provide.
20127 2006-12-26 Eric Blake <ebb9@byu.net>
20129 * gnulib-tool (sed_extract_prog): Avoid space-tab.
20131 2006-12-26 Eric Blake <ebb9@byu.net>
20133 * modules/absolute-header: New module.
20134 * modules/fcntl (Depends-on): Depend on it.
20135 * modules/inttypes (Depends-on): Likewise.
20136 * modules/stdint (Depends-on): Likewise.
20137 * modules/sys_stat (Depends-on): Likewise.
20138 * modules/wctype (Depends-on): Likewise.
20139 * MODULES.html.sh (Support for building libraries and
20140 executables): Document it.
20142 2006-12-25 Paul Eggert <eggert@cs.ucla.edu>
20144 * gnulib-tool (SED): Remove, undoing previous change.
20145 The problem was that it broke coreutils on Solaris, because
20146 "sed --posix" leaked into a makefile.
20147 (sed): New alias, if 'alias' and GNU sed.
20149 2006-12-24 Jim Meyering <jim@meyering.net>
20151 Work around an fchownat bug in glibc-2.4:
20152 http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
20153 This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
20154 in spite of the -P option.
20155 * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
20157 (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
20158 * modules/openat (Files): Add lib/fchownat.c.
20159 * lib/openat.c (fchownat): Don't define here. Move to...
20160 * lib/fchownat.c: ...this new file.
20162 2006-12-23 Paul Eggert <eggert@cs.ucla.edu>
20164 Fix bug reported by Bruno Haible in
20165 <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
20166 where quotearg.c didn't compile on Mac OS X 10.2 because it
20167 lacks <wchar.h> and wint_t.
20168 * lib/wctype_.h (__wctype_wint_t): New type.
20169 Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
20170 (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
20171 (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
20172 Arg is now of type __wctype_wint_t, not wint_t.
20173 * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
20174 substitute HAVE_WINT_T.
20175 * modules/wctype (Files): Add m4/wint_t.m4.
20176 (wctype.h): Substitute HAVE_WINT_T.
20178 2006-12-23 Bruno Haible <bruno@clisp.org>
20180 * lib/safe-read.h [C++]: Wrap declarations in extern "C".
20182 2006-12-23 Bruno Haible <bruno@clisp.org>
20184 * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
20186 Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
20189 2006-12-22 Bruno Haible <bruno@clisp.org>
20191 * lib/copy-file.c: Include acl.h.
20192 (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
20193 Close the file descriptors only after being done with copy_acl.
20194 * modules/copy-file (Depends-on): Add acl.
20196 2006-12-22 Bruno Haible <bruno@clisp.org>
20198 * gnulib-tool (SED): New variable.
20199 Use $SED instead of sed everywhere.
20201 2006-12-22 Bruno Haible <bruno@clisp.org>
20203 * modules/no-c++: New file.
20204 * m4/no-c++.m4: New file.
20205 * MODULES.html.sh (Support for building libraries and executables):
20208 2006-12-22 Paul Eggert <eggert@cs.ucla.edu>
20210 * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
20211 Include <limits.h>, and use its INT_MAX to rewrite the
20212 j loop so that it does not overflow 'int'. Problem reported by
20214 <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
20215 Play it safe by shifting left by 1 rather than multiplying by 2,
20216 as GCC is less likely to optimize this away when the value
20217 is signed (when it assumes overflow leads to undefined behavior).
20218 Also, don't assume time_t uses two's complement.
20220 2006-12-21 Paul Eggert <eggert@cs.ucla.edu>
20222 * MODULES.html.sh: New module wctype.
20223 * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
20224 * lib/fnmatch.c: Don't bother to include <wchar.h> before
20225 <wctype.h>, since the new wctype module should fix this.
20226 * lib/quotearg.c: Include <wctype.h> unconditionally, since
20227 the wctype module should arrange for it.
20228 * lib/regex_internal.h: Likewise.
20229 * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
20230 since the wctype module should handle this now.
20231 * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
20232 * modules/fnmatch (Depends-on): Add wctype.
20233 * modules/quotearg (Depends-on): Likewise.
20234 * modules/regex (Depends-on): Likewise.
20236 2006-12-19 Bruno Haible <bruno@clisp.org>
20238 * lib/strdup.h [C++]: Wrap definitions in extern "C".
20239 Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
20241 2006-12-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20243 * modules/savewd (Depends-on): Fix dependency on fcntl.
20245 2006-12-18 Paul Eggert <eggert@cs.ucla.edu>
20247 * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
20248 conforms to C99, rather than relying on the user's environment
20249 setting of STDINT_H.
20251 2006-12-18 Paul Eggert <eggert@cs.ucla.edu>
20252 and Eric Blake <ebb9@byu.net>
20254 * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
20255 This is more consistent with the other defines here.
20256 * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
20257 Port to z/OS. Problem reported by Paul Gilmartin.
20258 Change local vars to use gl_ prefix rather than ac_.
20259 Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
20260 with other defines.
20261 * modules/double-slash-root: New module.
20262 * modules/dirname (Files): Remove m4/double-slash-root.m4.
20263 (Depends-on): Add double-slash-root.
20264 * MODULES.html.sh (File system functions): Mention new module.
20266 2006-12-14 Paul Eggert <eggert@cs.ucla.edu>
20268 * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
20269 (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
20270 This is for the benefit of gzip, which doesn't do i18n.
20272 2006-12-12 Jim Meyering <jim@meyering.net>
20274 * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
20275 Reported by Andreas Schwab <schwab@suse.de>.
20277 2006-12-12 Bruno Haible <bruno@clisp.org>
20279 Merge these changes.
20280 2006-09-05 Bruno Haible <bruno@clisp.org>
20281 * lib/iconvme.c (iconv_string): No need to save and restore errno when
20282 iconv_alloc succeeded.
20283 (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
20284 sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
20285 test for " && dest " at the end - dest is always != NULL there. Call
20286 iconv with 4xNULL arguments initially, to reset the state. Call iconv
20287 with 2xNULL arguments, also to flush the state storage. Handle the
20288 IRIX iconv behaviour. Realloc the final result, to throw away unused
20291 2006-12-11 Paul Eggert <eggert@cs.ucla.edu>
20293 * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
20294 and fchmodat unconditionally, since glibc 2.4 has them.
20295 Problem reported by Arkadiusz Miskiewicz.
20297 2006-12-10 Bruno Haible <bruno@clisp.org>
20299 * gnulib-tool (func_import): Show the include files only for those
20300 modules that are copied and specified.
20301 Reported by Karl Berry.
20303 2006-12-08 Jim Meyering <jim@meyering.net>
20305 * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
20306 Instead, use Emacs' time-stamp write hook. Note that the time is UTC.
20308 * build-aux/announce-gen: Add two new options, both optional:
20309 --bootstrap-tools=TOOL_LIST
20310 a comma-separated list of tools, e.g.,
20311 autoconf,automake,bison,gnulib
20312 --gnulib-snapshot-date=DATE
20313 if gnulib is in the bootstrap tool list,
20314 then report this as the snapshot date.
20315 If not specified, use the current date/time.
20316 If you specify a date here, be sure it's UTC.
20318 2006-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20320 * tests/test-argp-2.sh: Fix test to match actual output.
20321 (func_compare): Fix sed script to be portable.
20323 2006-12-05 Paul Eggert <eggert@cs.ucla.edu>
20325 * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
20326 workaround for this case. It is not autoconfigured now; offhand
20327 it's hard to see how to autoconfigure it.
20329 2006-12-03 Paul Eggert <eggert@cs.ucla.edu>
20331 * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
20332 a directory that is about to be chowned. Such a directory's
20333 initial file permissions should permit the owner only and this
20334 should not be changed until after the chown, since the group and
20335 other bits would be incorrect if they granted permission before
20338 Fix porting problem for iswctype reported by Georg Schwarz in:
20339 http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
20340 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
20341 * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
20342 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
20343 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
20345 2006-12-03 Jim Meyering <jim@meyering.net>
20347 * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
20348 p->fts_statp may not yet be defined.
20349 (fts_read): Instead, set it in the caller, once p->fts_statp is
20350 sure to be defined, and corresponds to a top-level directory.
20351 This bug made du -x fail. Here's the coreutils test case:
20352 http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
20353 Reported by Mike Frysinger.
20355 2006-12-01 Jim Meyering <jim@meyering.net>
20357 * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
20358 build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
20359 Reported by Simon Josefsson.
20361 2006-11-30 Jim Meyering <jim@meyering.net>
20363 * m4/warning.m4: Use the all-permissive copyright notice
20364 recommended by RMS (rather than LGPL).
20365 * m4/vararrays.m4: Likewise.
20366 * m4/flexmember.m4: Likewise.
20368 2006-11-29 Bruno Haible <bruno@clisp.org>
20370 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
20371 noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
20373 Reported by Simon Josefsson <simon@josefsson.org>.
20375 2006-11-28 James Youngman <jay@gnu.org>
20377 * README: Advise users that they might find the bug-gnulib@gnu.org
20378 and autotools-announce@gnu.org mailing lists useful.
20380 2006-11-28 Bruno Haible <bruno@clisp.org>
20382 * m4/ptrdiff_max.m4: Remove file.
20384 2006-11-21 Bruno Haible <bruno@clisp.org>
20386 * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
20388 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
20389 * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
20391 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
20392 * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
20394 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
20396 2006-11-28 Jim Meyering <jim@meyering.net>
20398 * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
20399 warning from "gcc -Wshadow" about shadowing the builtin.
20401 2006-11-27 Bruno Haible <bruno@clisp.org>
20403 * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
20405 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
20407 2006-11-27 Bruno Haible <bruno@clisp.org>
20408 Paul Eggert <eggert@cs.ucla.edu>
20410 * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
20412 2006-11-26 Bruno Haible <bruno@clisp.org>
20414 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
20415 noinst_LTLIBRARIES.
20417 2006-11-27 Paul Eggert <eggert@cs.ucla.edu>
20418 Bruno Haible <bruno@clisp.org>
20420 * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
20421 if compiling with "gcc -ansi".
20423 2006-11-26 Paul Eggert <eggert@cs.ucla.edu>
20425 Fix some incompatibilities with gcc -ansi -pedantic.
20426 * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
20427 if compiling pedantically with GCC, unless it's C99 or later.
20428 Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
20429 it mishandles gcc -ansi -pedantic as well.
20430 * lib/regex_internal.h (re_token_t): Don't use enum bitfields
20432 * lib/regexec.c (check_node_accept_bytes): Don't use auto
20433 initializers for struct if -pedantic, unless it's C99 or later.
20435 2006-11-25 Nix <nix@esperi.org.uk> (tiny change)
20437 * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
20438 Don't close an fd more than once. Identical atimes indicate
20439 success, not failure.
20441 2006-11-22 Robinson Mittmann <bob@hoplon.com> (tiny change)
20443 * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
20445 2006-11-23 Jim Meyering <jim@meyering.net>
20447 * build-aux/announce-gen: New file. From coreutils.
20449 2006-11-22 Jim Meyering <jim@meyering.net>
20451 Work around a compile-time error from the HP-UX 11.00 /bin/cc.
20452 * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
20453 (fts_read): Use a temporary to narrow the overused st_size member
20454 before using it in a switch statement. Reported by Matthew Woehlke.
20456 * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
20457 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
20459 2006-11-20 Bruno Haible <bruno@clisp.org>
20461 * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
20462 changequote instead of pairs of brackets.
20463 Reported by Andreas Schwab <schwab@suse.de>.
20465 2006-11-21 Jim Meyering <jim@meyering.net>
20467 * lib/fts.c (fts_safe_changedir): Move a declaration "up",
20468 so as to remain compatible with older compilers.
20469 Patch from Michael Deutschmann.
20471 2006-11-20 Paul Eggert <eggert@cs.ucla.edu>
20473 * MODULES.html.sh (File system functions): Add openat.
20475 * lib/openat.h (rpl_fstatat): New macro, if
20476 [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
20477 (fstatat): Define to rpl_fstatat under the same conditions,
20478 unless COMPILING_FSTATAT.
20479 * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
20480 seems to have the bug.
20481 * lib/fstatat.c: New file.
20482 * modules/openat (Files): Add it.
20484 2006-11-20 Bruno Haible <bruno@clisp.org>
20486 * Makefile: New file.
20488 2006-11-20 Jim Meyering <jim@meyering.net>
20490 The beginnings of syntax-related checks for gnulib.
20491 * lib/Makefile: New file.
20492 * lib/t-idcache: New script. Ensure that the two halves of
20493 idcache.c stay in sync.
20495 * lib/idcache.c: Adjust comments in user- and group- portions to
20496 be more accurate, and to be consistent with one another.
20498 2006-11-20 Jim Meyering <jim@meyering.net>
20500 * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
20501 continue using the flexible array member (thus, this module performs
20502 half as many malloc calls), with the addition that...
20503 (getgroup, getuser): Consistently record a non-match via an empty
20504 "name" string, and map an empty string match to a NULL return value.
20505 * modules/idcache (Depends-on): Re-add flexmember.
20507 * lib/idcache.c (getuser): Remove all uses of the register keyword.
20508 (getuidbyname, getgroup, getgidbyname): Likewise.
20510 Use cleaner syntax: NULL rather than 0.
20511 * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
20513 2006-11-20 Paul Eggert <eggert@cs.ucla.edu>
20515 * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
20516 It mishandled the case where the group was missing.
20517 Problem reported by Greg Schafer.
20518 * modules/idcache: Likewise.
20520 2006-11-18 Jim Meyering <jim@meyering.net>
20522 * check-module (%exempt_header): Add exception for some
20523 conditionally-included headers.
20525 * modules/i-ring (Depends-on): Add verify.
20526 (License): Change to LGPL.
20528 2006-11-16 Paul Eggert <eggert@cs.ucla.edu>
20530 * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
20531 * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
20532 and inttostr.h. Use snprintf rather than uinttostr, so that
20533 LGPLed code doesn't depend on GPLed.
20535 2006-11-17 Paul Eggert <eggert@cs.ucla.edu>
20537 * modules/inline (License): Change from GPL to LGPL.
20539 2006-11-17 Jim Meyering <jim@meyering.net>
20541 * modules/d-type (License): Switch to LGPL.
20543 2006-11-15 Bruno Haible <bruno@clisp.org>
20545 * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
20547 2006-11-15 Eric Blake <ebb9@byu.net>
20549 * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
20550 the module dependency.
20552 2006-11-15 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
20553 Bruno Haible <bruno@clisp.org>
20555 * gnulib-tool (func_create_testdir): Add license consistency check.
20557 2006-11-15 Eric Blake <ebb9@byu.net>
20559 * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
20560 random "(cached)" in configure output.
20562 2006-11-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20564 * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
20565 test for conforming inttypes.h is both announced and cached.
20567 * MODULES.html.sh (seen_modules, seen_files): New variables.
20568 (func_module): Rewrite to use a few less gnulib-tool and sed
20569 invocations. Avoid a couple of quadratic algorithms for ...
20570 (missed_modules, missed_files): ... these, with ...
20571 (func_append, func_tmpdir): ... these new functions, from
20572 gnulib-tool. Analogously, install traps for cleanup.
20574 * tests/test-gc.c (main): Remove unused variables.
20575 * tests/test-read-file.c: Include stdlib.h, for 'free'.
20577 2006-11-14 Paul Eggert <eggert@cs.ucla.edu>
20579 * modules/inttostr (License): Change to LGPL.
20581 2006-11-14 Eric Blake <ebb9@byu.net>
20583 * modules/tempname (License): Change to LGPL.
20585 2006-11-14 Eric Blake <ebb9@byu.net>
20587 * doc/functions.texi (Function Portability): *printf functions on
20588 Cygwin now understand all POSIX size specifiers.
20590 2006-11-14 Bruno Haible <bruno@clisp.org>
20592 * modules/c-ctype (License): Change to LGPL.
20594 2006-11-12 Bruno Haible <bruno@clisp.org>
20596 * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
20597 AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
20598 for GNOME libraries, for which the include files are installed in
20599 subdirectories of $prefix/include.
20601 2006-11-12 Bruno Haible <bruno@clisp.org>
20603 * m4/lib-link.m4: Require at least autoconf-2.54.
20604 (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
20605 name to underscores for the --with option.
20607 2006-11-13 Bruno Haible <bruno@clisp.org>
20609 * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
20610 the tests directory.
20611 Reported by Ralf Wildenhues.
20613 2006-11-13 Bruno Haible <bruno@clisp.org>
20615 * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
20616 (func_emit_initmacro_end): Undo the override here.
20617 (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
20618 Works around the famous automake error in coreutils.
20620 2006-11-13 Eric Blake <ebb9@byu.net>
20622 * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
20623 element, not its node.
20625 2006-11-12 Bruno Haible <bruno@clisp.org>
20627 * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
20628 '$(top_srcdir)/build-aux/', taking into account the real auxdir.
20630 2006-11-12 Bruno Haible <bruno@clisp.org>
20632 * gnulib-tool: New option --local-symlink.
20633 (func_usage): Document it.
20634 (lsymbolic): New variable.
20635 (func_import, func_create_testdir): If --symlink was not specified,
20636 test whether --local-symlink was specified and the file comes from
20637 the local_gnulib_dir.
20639 2006-11-12 Bruno Haible <bruno@clisp.org>
20641 * gnulib-tool (func_ln): New function.
20642 (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
20644 2006-11-12 Bruno Haible <bruno@clisp.org>
20646 Finish support for source files in subdirectories.
20647 * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
20648 are in subdirectories, set uses_subdirs and add 'subdir-objects' to
20650 (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
20652 2006-11-12 Bruno Haible <bruno@clisp.org>
20654 * gnulib-tool (func_get_automake_snippet): Synthesize also an
20655 EXTRA_lib_SOURCES augmentation.
20656 (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
20658 2006-11-12 Jim Meyering <jim@meyering.net>
20660 Make fts (in FTS_CWDFD mode) more efficient by caching a few open
20661 file descriptors. This also averts a failure on systems with
20662 native openat support when a traversed directory lacks "x" access.
20663 * lib/fts_.h: Include "i-ring.h"
20664 (struct FTS) [fts_fd_ring]: New member.
20665 * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
20666 (FCHDIR): Add parentheses.
20667 (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
20668 (cwd_advance_fd): Add a 3rd parameter. Adjust all callers.
20669 When descending, rather than simply closing the previous
20670 fts_cwd_fd value, push that file descriptor onto the ring.
20671 (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
20672 (fts_open): Initialize the new fd_ring member.
20673 (fts_close): Clear the ring.
20674 (fts_safe_changedir): When possible, use our new fd_ring to skip
20675 the diropen and fstat and dev/ino comparison that would normally
20676 accompany a virtual `chdir ("..")'.
20678 * modules/fts (Depends-on): Add i-ring.
20679 * modules/i-ring: New module.
20680 * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
20681 * m4/i-ring.m4: New file.
20683 2006-11-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20685 * gnulib-tool (func_create_testdir): Fix replacement of
20686 `build-aux' in configure.ac. Run autotools in gltests
20688 (func_create_testdir, func_create_megatestdir, test): There is
20689 no need for '--force' in most autotool invocations in a new
20690 tree. Actually fail the whole test if any of the tools, or the
20691 configure or make stages fail.
20693 Sync from Automake.
20694 * build-aux/gnupload: Revert last change. Add pointer to upload
20695 instructions of the GNU Maintenance Instructions.
20696 Suggestion by Karl Berry.
20698 2006-11-10 Jim Meyering <jim@meyering.net>
20700 * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
20702 2006-11-09 Paul Eggert <eggert@cs.ucla.edu>
20704 * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
20705 (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
20706 (bind_textdomain_codeset) [! ENABLE_NLS]:
20707 Evaluate all the arguments. That way, callers get compatible behavior
20708 if the arguments have side effects. Also, it avoids some GCC
20709 diagnostics in some cases; Joel E. Denny reported problems when Bison
20710 was configured with --enable-gcc-warnigs.
20712 2006-11-10 Jim Meyering <jim@meyering.net>
20714 * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
20715 relevant options in CFLAGS (like -O, -fno-inline) are taken into
20718 2006-11-10 Jim Meyering <jim@meyering.net>
20720 * modules/inline: New file/module.
20721 * modules/xalloc (Files): Remove m4/inline.m4.
20722 (Depends-on): Add inline, instead.
20723 * modules/oset: Likewise.
20724 * modules/list: Likewise.
20726 2006-11-09 Paul Eggert <eggert@cs.ucla.edu>
20728 * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
20729 Problem reported by Matthew Woehlke.
20731 2006-11-09 Bruno Haible <bruno@clisp.org>
20733 * lib/tempname.c (gen_tempname): Remove variant that invokes
20735 * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
20738 2006-11-08 Bruno Haible <bruno@clisp.org>
20740 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
20741 to 'yes' instead of 'cross-compiling'.
20743 2006-11-08 Paul Eggert <eggert@cs.ucla.edu>
20745 * lib/quotearg.h (quotearg_free): New decl.
20746 * lib/quotearg.c (quotearg_free): New function.
20747 (slot0, nslots, slotvec0, slotvec):
20748 Now file-scope so that quotearg_free can get at them.
20750 2006-11-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20752 Sync from Automake.
20753 * build-aux/gnupload: Add missing 'gnu' to example URL.
20754 Report by Karl Berry.
20756 2006-11-08 Bruno Haible <bruno@clisp.org>
20758 * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
20759 Suggested by Paul Eggert.
20761 2006-11-08 Jim Meyering <jim@meyering.net>
20763 * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
20764 It's already included if !_LIBC.
20765 (fts_safe_changedir): Add a comment.
20767 2006-11-07 Paul Eggert <eggert@cs.ucla.edu>
20769 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
20770 Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
20773 * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
20774 definitions up, to avoid colliding with change below.
20775 (static_inline) [HAVE_INLINE]: New macro.
20776 (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
20777 Provide extern decls when !HAVE_INLINE. Do not define unless
20778 static_inline is defined, either by us or by xmalloc.c. Use
20779 static_inline rather than static inline.
20780 (XCALLOC): Optimize sizeof(T) = 1 case.
20781 * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
20783 2006-11-07 Bruno Haible <bruno@clisp.org>
20785 * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
20786 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
20788 * modules/xalloc (Files): Add m4/inline.m4.
20790 2006-11-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20792 * README: Fix typo.
20793 * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
20794 (Miscellanous Notes): ...from this.
20796 2006-11-07 Paul Eggert <eggert@cs.ucla.edu>
20798 * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
20799 Mention that offsetof should be used instead of sizeof.
20802 2006-11-07 Bruno Haible <bruno@clisp.org>
20804 * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
20806 2006-11-06 Paul Eggert <eggert@cs.ucla.edu>
20808 Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
20809 * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
20810 (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
20811 (gl_tree_add_before, gl_tree_add_after):
20812 Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
20813 * lib/gl_anyhash_list2.h (hash_resize): Likewise.
20814 * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
20815 (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
20816 (gl_linked_add_after, gl_linked_add_at): Likewise.
20817 * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
20818 (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
20819 (gl_tree_add_before, gl_tree_add_after): Likewise.
20820 * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
20821 * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
20822 * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
20824 2006-11-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20826 * lib/gl_oset.h: Use C comment style, not C++ comment style.
20828 2006-11-06 Bruno Haible <bruno@clisp.org>
20830 * m4/inline.m4: New file.
20831 * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
20832 * modules/list (Files): Add m4/inline.m4.
20833 * modules/oset (Files): Likewise.
20835 2006-11-06 Paul Eggert <eggert@cs.ucla.edu>
20837 * lib/idcache.c: Include <stddef.h>, for offsetof.
20838 (struct userid.name): Change from char * to a flexible array member.
20840 * modules/idcache (Depends-on): Add flexmember.
20842 * MODULES.html.sh (Core language properties): New module flexmember.
20843 * modules/flexmember, m4/flexmember.m4: New files.
20845 * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
20846 inline functions that are identical with the old xnmalloc_inline,
20847 xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c. This is so
20848 that we can avoid some unnecessary integer multiplications and
20849 divisions in the common case where the element size is known at
20851 (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
20853 (xnboundedmalloc): Remove.
20854 (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
20855 arguments, for consistency with rest of this header.
20856 (xcharalloc): Rewrite using XNMALLOC.
20857 * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
20858 (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove. The *_inline
20859 versions have been moved to lib/xalloc.h and renamed to be the
20860 non-*_inline versions.
20861 (xmalloc, xrealloc): Implement without reference to the xnmalloc
20862 and xnrealloc functions, since those functions are now inline and
20864 (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
20865 renaming described above.
20866 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
20867 xmalloc.c no longer uses inline directly. gl_PREREQ_XALLOC now
20868 captures the dependency in AC_C_INLINE.
20870 New module canonicalize-lgpl, proposed by Charles Wilson in
20871 <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
20872 with a few small changes afterwards.
20873 * MODULES.html.sh (File system functions): New module
20875 * lib/canonicalize.h: Add comments for canonicalize_filename_mode
20876 and canonicalize_file_name.
20877 * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
20878 * modules/canonicalize-lgpl: New files.
20880 2006-11-05 Bruno Haible <bruno@clisp.org>
20882 * gnulib-tool (func_import, func_create_testdir): Create directories
20883 also for files in subdirectories of lib/.
20885 2006-11-05 Bruno Haible <bruno@clisp.org>
20887 * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
20890 2006-11-03 Bruno Haible <bruno@clisp.org>
20892 Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
20893 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
20894 * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
20895 (xnboundedmalloc): New inline function.
20896 * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
20897 * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
20899 * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
20901 * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
20902 * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
20903 * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
20905 (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
20906 * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
20908 * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
20909 gl_tree_add_after): Use XMALLOC instead of xmalloc.
20910 * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
20912 (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
20913 * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
20914 gl_tree_add_after): Use XMALLOC instead of xmalloc.
20915 * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
20916 * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
20917 * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
20918 * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
20920 2006-11-03 Bruno Haible <bruno@clisp.org>
20922 * lib/c-ctype.h [C++]: Define functions without name mangling.
20923 * lib/fwriteerror.h [C++]: Likewise.
20924 * lib/gcd.h [C++]: Likewise.
20925 * lib/linebreak.h [C++]: Likewise.
20927 2006-11-03 Paul Eggert <eggert@cs.ucla.edu>
20929 * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
20930 (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
20931 Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
20932 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
20933 Check for functions and headers just once.
20934 Check for declaration of canonicalize_file_name.
20935 Define PROVIDE_CANONICALIZE_FILENAME_MODE.
20937 2006-11-02 Charles Wilson <cygwin@cwilson.fastmail.fm>
20939 * gnulib-tool (func_import): Fix typo in actioncmd.
20941 2006-11-02 Bruno Haible <bruno@clisp.org>
20943 * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
20944 newline sequence in the Makefile.am snippet as a space, like "make"
20946 Reported by Roger Persson <perrog@gmail.com>.
20948 2006-11-01 Bruno Haible <bruno@clisp.org>
20950 * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
20951 already declared in <string.h>.
20952 * lib/strcase.h (strncasecmp): Don't declare it if yes.
20954 2006-11-01 Bruno Haible <bruno@clisp.org>
20956 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
20957 * lib/strcase.h: Include <string.h>.
20958 (strcasecmp): Define to rpl_strcasecmp here.
20960 2006-11-01 Bruno Haible <bruno@clisp.org>
20962 * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
20964 2006-11-01 Eric Blake <ebb9@byu.net>
20966 * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
20968 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
20970 2006-10-29 Bruno Haible <bruno@clisp.org>
20972 Make it compile in C++ mode.
20973 * lib/full-write.c (full_rw): Add a cast.
20975 2006-11-01 Bruno Haible <bruno@clisp.org>
20977 * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
20978 be POSIX compliant.
20979 Reported by Roger Persson <perrog@gmail.com>.
20981 2006-11-01 Eric Blake <ebb9@byu.net>
20983 * lib/getopt_.h: Fix comments.
20985 2006-10-31 Eric Blake <ebb9@byu.net>
20987 * modules/tmpdir (Depends-on): Add sys_stat.
20988 * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
20989 * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
20990 * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
20991 * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
20994 2006-10-31 Paul Eggert <eggert@cs.ucla.edu>
20996 Avoid some C++ diagnostics reported by Bruno Haible.
20997 * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
20999 (quotearg_alloc): Use xcharalloc rather than xmalloc.
21000 (struct slotvec): Move to top level.
21001 (quotearg_n_options): Rewrite to avoid xmalloc.
21002 * lib/xalloc.h (xcharalloc): New function.
21003 * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
21004 [defined __cplusplus]: Add function template that provides result
21005 type propagation. This part of the change is from Bruno Haible.
21007 2006-10-29 Bruno Haible <bruno@clisp.org>
21009 Make it compile in C++ mode.
21010 * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
21011 * lib/strnlen1.c (strnlen1): Cast memchr result.
21012 * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
21013 * lib/clean-temp.c (string_equals, string_hash): Add casts.
21014 (create_temp_dir): Rename local variable 'template'.
21015 (compile_csharp_using_sscli): Add cast.
21016 * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
21017 * lib/findprog.c (find_in_path): Likewise.
21018 * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
21019 * lib/wait-process.c (register_slave_subprocess): Likewise.
21021 2006-10-22 Bruno Haible <bruno@clisp.org>
21023 * modules/tsearch: New file.
21024 * lib/tsearch.h: New file.
21025 * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
21026 * m4/tsearch.m4: New file.
21027 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
21029 2006-10-29 Eric Blake <ebb9@byu.net>
21031 * lib/arcfour.c: Assume config.h.
21032 * lib/arctwo.c: Likewise.
21033 * lib/base64.c: Likewise.
21034 * lib/check-version.c: Likewise.
21035 * lib/crc.c: Likewise.
21036 * lib/des.c: Likewise.
21037 * lib/gc-gnulib.c: Likewise.
21038 * lib/gc-libgcrypt.c: Likewise.
21039 * lib/gc-pbkdf2-sha1.c: Likewise.
21040 * lib/getaddrinfo.c: Likewise.
21041 * lib/getdelim.c: Likewise.
21042 * lib/getline.c: Likewise.
21043 * lib/hmac-md5.c: Likewise.
21044 * lib/hmac-sha1.c: Likewise.
21045 * lib/iconvme.c: Likewise.
21046 * lib/md2.c: Likewise.
21047 * lib/md4.c: Likewise.
21048 * lib/memxor.c: Likewise.
21049 * lib/read-file.c: Likewise.
21050 * lib/readline.c: Likewise.
21051 * lib/rijndael-alg-fst.c: Likewise.
21052 * lib/rijndael-api-fst.c: Likewise.
21053 * lib/xgetdomainname.c: Likewise.
21055 2006-10-28 Eric Blake <ebb9@byu.net>
21057 * lib/xstrndup.c: Assume config.h.
21059 2006-10-27 Paul Eggert <eggert@cs.ucla.edu>
21061 Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
21062 stat-macros.h is now for our own macros, whereas stat_h is for
21063 macros in the <sys/stat.h> name space.
21064 * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
21065 (STAT_MACROS_H): Remove.
21066 (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
21067 (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
21068 (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
21069 (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
21070 (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
21071 (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
21072 Move these macros to ...
21073 * lib/stat_.h: here. Don't include stat-macros.h.
21074 * lib/canonicalize.c: Don't include stat-macros.h.
21075 * lib/chown.c: Likewise.
21076 * lib/euidaccess.c: Likewise.
21077 * lib/file-type.c: Likewise.
21078 * lib/filemode.c: Likewise.
21079 * lib/glob.c: Likewise.
21080 * lib/isapipe.c: Likewise.
21081 * lib/lchown.c: Likewise.
21082 * lib/lstat.c: Likewise.
21083 * lib/mkdir-p.c: Likewise.
21084 * lib/rmdir.c: Likewise.
21085 * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
21086 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
21087 unless mkdir isn't declared, to speed up 'configure'.
21088 Always create sys/stat.h, since it's unlikely any real sys/stat.h
21089 would define all the S_* symbols.
21090 * modules/canonicalize (Depends-on):
21091 Depend on sys_stat, not stat-macros.
21092 * modules/chown: Likewise.
21093 * modules/euidaccess: Likewise.
21094 * modules/filemode: Likewise.
21095 * modules/file-type: Likewise.
21096 * modules/glob: Likewise.
21097 * modules/isapipe: Likewise.
21098 * modules/lchown: Likewise.
21099 * modules/lstat: Likewise.
21100 * modules/mkancesdirs: Likewise.
21101 * modules/rmdir: Likewise.
21102 * modules/mkdir-p (Depends-on): Also depend on sys_stat.
21103 * modules/modechange: Likewise.
21104 * modules/stat-macros (Files): Remove m4/stat-macros.m4.
21105 (configure.ac): Remove gl_STAT_MACROS.
21106 * modules/sys_stat (Depends-on): Remove stat-macros.
21108 2006-10-27 Bruno Haible <bruno@clisp.org>
21110 * m4/signed.m4: Remove file.
21111 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
21113 * modules/vasnprintf (Files): Remove m4/signed.m4.
21115 2006-10-27 Bruno Haible <bruno@clisp.org>
21117 Update to GNU gettext 0.16.
21118 * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
21119 m4/inttypes-h.m4, m4/signed.m4.
21120 * m4/gettext.m4: Update to GNU gettext 0.16.
21121 * m4/intl.m4: New file, from GNU gettext.
21122 * m4/intldir.m4: New file, from GNU gettext.
21123 * config/srclist.txt: Update
21125 2006-10-27 Eric Blake <ebb9@byu.net>
21127 * MODULES.html.sh: Document tempname.
21128 * modules/mkstemp (Depends-on): Add tempname, and drop transitive
21130 (Files): Move lib/tempname.c...
21131 * modules/tempname: ...to this new module.
21132 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
21133 (gl_PREREQ_TEMPNAME): Move...
21134 * m4/tempname.m4: ...to this new file.
21135 * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
21136 * modules/sys_stat (Depends-on): Add stat-macros.
21137 * lib/stat_.h (includes): Pick up stat macros.
21138 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
21139 if stat macros are broken.
21140 * lib/tempname.c (includes): No need to include "stat-macros.h".
21141 (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
21142 (direxists, __path_search) [!_LIBC]: Don't compile these in
21143 gnulib; the tmpdir module covers that.
21144 * lib/tempname.h: New file.
21146 2006-10-26 Paul Eggert <eggert@cs.ucla.edu>
21148 * COPYING: Explain how gnulib-tool converts licence headers.
21149 Almost all wording by Eric Blake.
21151 2006-10-25 Paul Eggert <eggert@cs.ucla.edu>
21153 * lib/mbchar.h (is_basic_table): Make read-only.
21154 * lib/mbchar.c (is_basic_table): Likewise.
21155 Reported by John Darrington.
21157 2006-10-25 Bruno Haible <bruno@clisp.org>
21159 * lib/progname.h (set_program_name): Undefine before defining.
21161 2006-10-25 Bruno Haible <bruno@clisp.org>
21163 * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
21164 false for non-gcc C++ compilers.
21165 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
21167 2006-10-24 Bruno Haible <bruno@clisp.org>
21169 * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
21170 iconv implementations like Irix iconv.
21172 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
21174 * modules/vararrays: New file.
21175 * m4/vararrays.m4: New file, taken from diffutils.
21176 * MODULES.html.sh: New module vararrays.
21178 2006-10-24 Karl Berry <karl@gnu.org>
21180 * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
21181 Don't call GNU Unix.
21183 2006-10-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21185 * users.txt: Add Libtool.
21189 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
21191 * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
21192 to gnulib's policy of including config.h unconditionally.
21194 2006-10-24 Bruno Haible <bruno@clisp.org>
21196 * modules/wcwidth (Files): Add m4/wint_t.m4.
21197 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
21198 * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
21200 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
21202 * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
21203 to pacify GCC with some -W flags enabled. Problem reported by
21206 2006-10-24 Jim Meyering <jim@meyering.net>
21208 * MODULES.html.sh: Remove uinttostr. It's not a module.
21209 Reported by Karl Berry.
21211 2006-10-23 Bruno Haible <bruno@clisp.org>
21213 * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
21215 2006-10-24 Bruno Haible <bruno@clisp.org>
21217 * lib/gl_list.h: Use C comment style, not C++ comment style.
21219 2006-10-23 Eric Blake <ebb9@byu.net>
21221 * lib/getaddrinfo.c (includes): Add missing include.
21223 2006-10-23 Bruno Haible <bruno@clisp.org>
21224 Paul Eggert <eggert@cs.ucla.edu>
21226 Ability to rename obstack_free.
21227 * lib/obstack.h (__obstack_free): New macro. Declare instead of
21229 (obstack_free): Invoke the __obstack_free macro.
21230 * lib/obstack.c (obstack_free): Use __obstack_free macro.
21232 2006-10-23 Bruno Haible <bruno@clisp.org>
21233 Paul Eggert <eggert@cs.ucla.edu>
21235 * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
21236 __argc, __argv from the declaration. (They are defined as macros on
21239 2006-10-22 Bruno Haible <bruno@clisp.org>
21241 * doc/gnulib-intro.texi: New file.
21242 * doc/gnulib.texi: Include it.
21244 2006-10-21 Bruno Haible <bruno@clisp.org>
21246 * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
21247 "Introduction", "Miscellanous Notes", "Particular Modules".
21249 2006-10-21 Bruno Haible <bruno@clisp.org>
21251 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
21252 Change mostlyclean-local rule to avoid sh syntax error from bash
21253 versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
21255 2006-10-23 Jim Meyering <jim@meyering.net>
21257 * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
21258 in place of snprintf.
21260 * modules/inttostr (Files): Add lib/uinttostr.c.
21261 * lib/uinttostr.c (inttostr): New file/function.
21262 * lib/inttostr.h (uinttostr): Declare.
21263 * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
21264 * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
21266 * modules/getaddrinfo (Depends-on): Remove snprintf. Add inttostr.
21268 2006-10-21 Paul Eggert <eggert@cs.ucla.edu>
21270 * lib/canonicalize.c (ELOOP): Define if not already defined.
21271 Problem reported by Bruno Haible in
21272 <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
21274 2006-10-21 Paul Eggert <eggert@cs.ucla.edu>
21276 * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
21277 Problem reported by Perry Smith and Ville Laurikari.
21279 * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
21282 2006-10-19 Bruno Haible <bruno@clisp.org>
21284 * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
21287 2006-10-19 Bruno Haible <bruno@clisp.org>
21289 * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
21292 2006-10-19 Bruno Haible <bruno@clisp.org>
21294 * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
21296 2006-10-19 Bruno Haible <bruno@clisp.org>
21298 * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
21301 2006-10-19 Bruno Haible <bruno@clisp.org>
21303 * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
21306 2006-10-19 Bruno Haible <bruno@clisp.org>
21308 * gnulib-tool (func_create_testdir): Don't include ftruncate and
21309 mountlist by default.
21311 2006-10-16 Bruno Haible <bruno@clisp.org>
21313 * lib/c-strstr.c: Include c-strstr.h.
21315 2006-10-18 Charles Wilson <cygwin@cwilson.fastmail.fm>
21317 * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
21320 2006-10-18 Bruno Haible <bruno@clisp.org>
21322 * lib/lock.h [C++]: Wrap definitions in extern "C".
21324 2006-10-18 Bruno Haible <bruno@clisp.org>
21326 * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
21329 2006-10-18 Bruno Haible <bruno@clisp.org>
21331 * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
21333 2006-10-19 Paul Eggert <eggert@cs.ucla.edu>
21335 * lib/xstrtol.h: Include gettext.h.
21336 (_STRTOL_ERROR): Wrap English-language formats inside gettext.
21337 Problem reported by Eric Blake.
21338 * modules/xstrtol (Depends-on): Add gettext-h.
21340 2006-10-19 Paul Eggert <eggert@cs.ucla.edu> (tiny change)
21342 * lib/strftime.c (advance): New macro.
21343 (add): Use it to avoid adding 0 to a FILE *. FILE can be an
21344 incomplete type, so you can't add 0 to it. Problem and patch
21345 reported by Eelco Dolstra for dietlibc.
21347 2006-10-18 Jim Meyering <jim@meyering.net>
21349 * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
21350 type for a local, and rename it: s/up/user_proc/.
21352 2006-10-18 Sergey Poznyakoff <gray@gnu.org.ua>
21354 * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
21355 READ_UTMP_USER_PROCESS.
21356 * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
21358 2006-10-17 Paul Eggert <eggert@cs.ucla.edu>
21360 * lib/localcharset.c: Do not check HAVE_SETLOCALE.
21361 * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
21363 2006-10-17 Eric Blake <ebb9@byu.net>
21365 * lib/sigprocmask.c (sigprocmask): Fix typo.
21367 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
21369 * modules/clean-temp (Makefile.am): Don't add to make output...
21370 (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
21373 2006-10-17 Bruno Haible <bruno@clisp.org>
21375 * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
21376 differently if DEFAULT_TEXT_DOMAIN is set.
21378 2006-10-16 Bruno Haible <bruno@clisp.org>
21380 * lib/clean-temp.c: Include fwriteerror.h.
21382 2006-10-16 Bruno Haible <bruno@clisp.org>
21384 * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
21386 2006-10-16 Bruno Haible <bruno@clisp.org>
21388 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
21389 * lib/sigprocmask.h: Include <sys/types.h>.
21390 (sigset_t): Use the system's definition if present.
21392 2006-10-17 Eric Blake <ebb9@byu.net>
21394 * lib/xvasprintf.c (includes): Assume config.h.
21395 * lib/xasprintf.c (includes): Likewise.
21397 2006-10-16 Paul Eggert <eggert@cs.ucla.edu>
21399 * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
21400 at least as wide as intmax_t.
21402 2006-10-16 Alexandre Duret-Lutz <adl@gnu.org>
21404 (Imported from Automake.)
21405 * build-aux/gnupload: Update to version 1.1 of directive file.
21407 2006-10-16 Eric Blake <ebb9@byu.net>
21409 * modules/configmake (Makefile.am): Add pkglibexecdir support, to
21410 match Automake 1.10a.
21412 2006-10-14 Bruno Haible <bruno@clisp.org>
21414 * modules/sigprocmask: New file.
21415 * lib/sigprocmask.h: New file.
21416 * lib/sigprocmask.c: New file.
21417 * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
21418 gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
21419 request sigprocmask.o.
21420 (gl_PREREQ_SIGPROCMASK): New macro.
21421 * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
21422 (Depends-on): Add sigprocmask.
21423 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
21424 gt_SIGNALBLOCKING. Test for 'raise' only once.
21425 * lib/fatal-signal.c: Include sigprocmask.h.
21426 (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
21427 unblock_fatal_signals): Define always.
21428 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
21431 2006-10-14 Paul Eggert <eggert@cs.ucla.edu>
21433 Sync from Automake.
21434 * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
21435 which incorrectly sets the mode of an existing destination
21436 directory. In some cases the unpatched install-sh could do the
21437 equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
21438 system. We hope this is rare in practice, but it's clearly worth
21439 fixing. Problem reported by Alex Unleashed in
21440 <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
21441 Also, don't bother to check for -m bugs unless we're using -m;
21442 suggested by Stepan Kasal.
21444 2006-10-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21446 Sync from Automake.
21447 * build-aux/depcomp (gcc3): Put dependency extraction flags before the
21448 `-c' flag, so they appear at the same position as in %FASTDEP%
21449 mode in depend2.am. Fixes build failure for FreeBSD's c89,
21450 which ignores unknown options only after the first non-option.
21451 Bug report against M4 by Nelson H. F. Beebe.
21453 2006-10-13 Jim Meyering <jim@meyering.net>
21455 Fix a bug in yesterday's change.
21456 * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
21457 p->fts_statp->st_dev would be used uninitialized.
21458 Ensures that we always call fts_stat on the very first entry.
21459 Miklos Szeredi reported that find -xdev stopped working.
21461 2006-10-12 Bruno Haible <bruno@clisp.org>
21463 * gnulib-tool (func_get_automake_snippet): Append an automatically
21464 computed EXTRA_DIST augmentation.
21465 * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
21466 * modules/alloca-opt (Makefile.am): Likewise.
21467 * modules/allocsa (Makefile.am): Likewise.
21468 * modules/arcfour (Makefile.am): Likewise.
21469 * modules/arctwo (Makefile.am): Likewise.
21470 * modules/argmatch (Makefile.am): Likewise.
21471 * modules/argz (Makefile.am): Likewise.
21472 * modules/atexit (Makefile.am): Likewise.
21473 * modules/backupfile (Makefile.am): Likewise.
21474 * modules/byteswap (Makefile.am): Likewise.
21475 * modules/c-strtod (Makefile.am): Likewise.
21476 * modules/c-strtold (Makefile.am): Likewise.
21477 * modules/calloc (Makefile.am): Likewise.
21478 * modules/canon-host (Makefile.am): Likewise.
21479 * modules/canonicalize (Makefile.am): Likewise.
21480 * modules/chdir-long (Makefile.am): Likewise.
21481 * modules/chdir-safer (Makefile.am): Likewise.
21482 * modules/check-version (Makefile.am): Likewise.
21483 * modules/chown (Makefile.am): Likewise.
21484 * modules/cloexec (Makefile.am): Likewise.
21485 * modules/close-stream (Makefile.am): Likewise.
21486 * modules/closeout (Makefile.am): Likewise.
21487 * modules/crc (Makefile.am): Likewise.
21488 * modules/csharpexec (Makefile.am): Likewise.
21489 * modules/cycle-check (Makefile.am): Likewise.
21490 * modules/des (Makefile.am): Likewise.
21491 * modules/dev-ino (Makefile.am): Likewise.
21492 * modules/dirfd (Makefile.am): Likewise.
21493 * modules/dirname (Makefile.am): Likewise.
21494 * modules/dup2 (Makefile.am): Likewise.
21495 * modules/eealloc (Makefile.am): Likewise.
21496 * modules/error (Makefile.am): Likewise.
21497 * modules/euidaccess (Makefile.am): Likewise.
21498 * modules/exclude (Makefile.am): Likewise.
21499 * modules/exitfail (Makefile.am): Likewise.
21500 * modules/fcntl-safer (Makefile.am): Likewise.
21501 * modules/fcntl (Makefile.am): Likewise.
21502 * modules/file-type (Makefile.am): Likewise.
21503 * modules/fileblocks (Makefile.am): Likewise.
21504 * modules/filemode (Makefile.am): Likewise.
21505 * modules/filenamecat (Makefile.am): Likewise.
21506 * modules/fnmatch (Makefile.am): Likewise.
21507 * modules/fopen-safer (Makefile.am): Likewise.
21508 * modules/fpending (Makefile.am): Likewise.
21509 * modules/fprintftime (Makefile.am): Likewise.
21510 * modules/free (Makefile.am): Likewise.
21511 * modules/fsusage (Makefile.am): Likewise.
21512 * modules/ftruncate (Makefile.am): Likewise.
21513 * modules/fts (Makefile.am): Likewise.
21514 * modules/gc-arcfour (Makefile.am): Likewise.
21515 * modules/gc-des (Makefile.am): Likewise.
21516 * modules/gc-hmac-md5 (Makefile.am): Likewise.
21517 * modules/gc-hmac-sha1 (Makefile.am): Likewise.
21518 * modules/gc-md4 (Makefile.am): Likewise.
21519 * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
21520 * modules/gc-sha1 (Makefile.am): Likewise.
21521 * modules/gc (Makefile.am): Likewise.
21522 * modules/getaddrinfo (Makefile.am): Likewise.
21523 * modules/getcwd (Makefile.am): Likewise.
21524 * modules/getdelim (Makefile.am): Likewise.
21525 * modules/getdomainname (Makefile.am): Likewise.
21526 * modules/getgroups (Makefile.am): Likewise.
21527 * modules/gethostname (Makefile.am): Likewise.
21528 * modules/gethrxtime (Makefile.am): Likewise.
21529 * modules/getline (Makefile.am): Likewise.
21530 * modules/getloadavg (Makefile.am): Likewise.
21531 * modules/getlogin_r (Makefile.am): Likewise.
21532 * modules/getndelim2 (Makefile.am): Likewise.
21533 * modules/getopt (Makefile.am): Likewise.
21534 * modules/getpagesize (Makefile.am): Likewise.
21535 * modules/getpass-gnu (Makefile.am): Likewise.
21536 * modules/getpass (Makefile.am): Likewise.
21537 * modules/getsubopt (Makefile.am): Likewise.
21538 * modules/gettime (Makefile.am): Likewise.
21539 * modules/gettimeofday (Makefile.am): Likewise.
21540 * modules/getugroups (Makefile.am): Likewise.
21541 * modules/getusershell (Makefile.am): Likewise.
21542 * modules/glob (Makefile.am): Likewise.
21543 * modules/group-member (Makefile.am): Likewise.
21544 * modules/hard-locale (Makefile.am): Likewise.
21545 * modules/hash (Makefile.am): Likewise.
21546 * modules/hmac-md5 (Makefile.am): Likewise.
21547 * modules/hmac-sha1 (Makefile.am): Likewise.
21548 * modules/human (Makefile.am): Likewise.
21549 * modules/idcache (Makefile.am): Likewise.
21550 * modules/imaxabs (Makefile.am): Likewise.
21551 * modules/imaxdiv (Makefile.am): Likewise.
21552 * modules/inet_ntop (Makefile.am): Likewise.
21553 * modules/inet_pton (Makefile.am): Likewise.
21554 * modules/intprops (Makefile.am): Likewise.
21555 * modules/inttostr (Makefile.am): Likewise.
21556 * modules/inttypes (Makefile.am): Likewise.
21557 * modules/isapipe (Makefile.am): Likewise.
21558 * modules/javaversion (Makefile.am): Likewise.
21559 * modules/lchmod (Makefile.am): Likewise.
21560 * modules/lchown (Makefile.am): Likewise.
21561 * modules/localcharset (Makefile.am): Likewise.
21562 * modules/long-options (Makefile.am): Likewise.
21563 * modules/lstat (Makefile.am): Likewise.
21564 * modules/malloc (Makefile.am): Likewise.
21565 * modules/mathl (Makefile.am): Likewise.
21566 * modules/mbchar (Makefile.am): Likewise.
21567 * modules/md2 (Makefile.am): Likewise.
21568 * modules/md4 (Makefile.am): Likewise.
21569 * modules/md5 (Makefile.am): Likewise.
21570 * modules/memcasecmp (Makefile.am): Likewise.
21571 * modules/memchr (Makefile.am): Likewise.
21572 * modules/memcmp (Makefile.am): Likewise.
21573 * modules/memcoll (Makefile.am): Likewise.
21574 * modules/memcpy (Makefile.am): Likewise.
21575 * modules/memmem (Makefile.am): Likewise.
21576 * modules/memmove (Makefile.am): Likewise.
21577 * modules/mempcpy (Makefile.am): Likewise.
21578 * modules/memrchr (Makefile.am): Likewise.
21579 * modules/memset (Makefile.am): Likewise.
21580 * modules/memxor (Makefile.am): Likewise.
21581 * modules/mkancesdirs (Makefile.am): Likewise.
21582 * modules/mkdir-p (Makefile.am): Likewise.
21583 * modules/mkdir (Makefile.am): Likewise.
21584 * modules/mkdtemp (Makefile.am): Likewise.
21585 * modules/mkstemp (Makefile.am): Likewise.
21586 * modules/mktime (Makefile.am): Likewise.
21587 * modules/modechange (Makefile.am): Likewise.
21588 * modules/mountlist (Makefile.am): Likewise.
21589 * modules/nanosleep (Makefile.am): Likewise.
21590 * modules/obstack (Makefile.am): Likewise.
21591 * modules/openat (Makefile.am): Likewise.
21592 * modules/pagealign_alloc (Makefile.am): Likewise.
21593 * modules/pathmax (Makefile.am): Likewise.
21594 * modules/physmem (Makefile.am): Likewise.
21595 * modules/poll (Makefile.am): Likewise.
21596 * modules/posixtm (Makefile.am): Likewise.
21597 * modules/posixver (Makefile.am): Likewise.
21598 * modules/putenv (Makefile.am): Likewise.
21599 * modules/quote (Makefile.am): Likewise.
21600 * modules/quotearg (Makefile.am): Likewise.
21601 * modules/raise (Makefile.am): Likewise.
21602 * modules/read-file (Makefile.am): Likewise.
21603 * modules/readline (Makefile.am): Likewise.
21604 * modules/readlink (Makefile.am): Likewise.
21605 * modules/readtokens (Makefile.am): Likewise.
21606 * modules/readutmp (Makefile.am): Likewise.
21607 * modules/realloc (Makefile.am): Likewise.
21608 * modules/regex (Makefile.am): Likewise.
21609 * modules/rename-dest-slash (Makefile.am): Likewise.
21610 * modules/rename (Makefile.am): Likewise.
21611 * modules/rijndael (Makefile.am): Likewise.
21612 * modules/rmdir (Makefile.am): Likewise.
21613 * modules/rpmatch (Makefile.am): Likewise.
21614 * modules/safe-read (Makefile.am): Likewise.
21615 * modules/safe-write (Makefile.am): Likewise.
21616 * modules/same-inode (Makefile.am): Likewise.
21617 * modules/same (Makefile.am): Likewise.
21618 * modules/save-cwd (Makefile.am): Likewise.
21619 * modules/savedir (Makefile.am): Likewise.
21620 * modules/setenv (Makefile.am): Likewise.
21621 * modules/settime (Makefile.am): Likewise.
21622 * modules/sha1 (Makefile.am): Likewise.
21623 * modules/sig2str (Makefile.am): Likewise.
21624 * modules/snprintf (Makefile.am): Likewise.
21625 * modules/stat-macros (Makefile.am): Likewise.
21626 * modules/stat-time (Makefile.am): Likewise.
21627 * modules/stdbool (Makefile.am): Likewise.
21628 * modules/stdint (Makefile.am): Likewise.
21629 * modules/stdlib-safer (Makefile.am): Likewise.
21630 * modules/stpcpy (Makefile.am): Likewise.
21631 * modules/stpncpy (Makefile.am): Likewise.
21632 * modules/strcase (Makefile.am): Likewise.
21633 * modules/strcasestr (Makefile.am): Likewise.
21634 * modules/strchrnul (Makefile.am): Likewise.
21635 * modules/strcspn (Makefile.am): Likewise.
21636 * modules/strdup (Makefile.am): Likewise.
21637 * modules/strerror (Makefile.am): Likewise.
21638 * modules/strftime (Makefile.am): Likewise.
21639 * modules/strndup (Makefile.am): Likewise.
21640 * modules/strnlen (Makefile.am): Likewise.
21641 * modules/strpbrk (Makefile.am): Likewise.
21642 * modules/strsep (Makefile.am): Likewise.
21643 * modules/strstr (Makefile.am): Likewise.
21644 * modules/strtod (Makefile.am): Likewise.
21645 * modules/strtoimax (Makefile.am): Likewise.
21646 * modules/strtok_r (Makefile.am): Likewise.
21647 * modules/strtol (Makefile.am): Likewise.
21648 * modules/strtoll (Makefile.am): Likewise.
21649 * modules/strtoul (Makefile.am): Likewise.
21650 * modules/strtoull (Makefile.am): Likewise.
21651 * modules/strtoumax (Makefile.am): Likewise.
21652 * modules/strverscmp (Makefile.am): Likewise.
21653 * modules/sys_socket (Makefile.am): Likewise.
21654 * modules/sys_stat (Makefile.am): Likewise.
21655 * modules/sysexits (Makefile.am): Likewise.
21656 * modules/time_r (Makefile.am): Likewise.
21657 * modules/timegm (Makefile.am): Likewise.
21658 * modules/timespec (Makefile.am): Likewise.
21659 * modules/tmpfile-safer (Makefile.am): Likewise.
21660 * modules/trim (Makefile.am): Likewise.
21661 * modules/unistd-safer (Makefile.am): Likewise.
21662 * modules/unlinkdir (Makefile.am): Likewise.
21663 * modules/unlocked-io (Makefile.am): Likewise.
21664 * modules/userspec (Makefile.am): Likewise.
21665 * modules/utime (Makefile.am): Likewise.
21666 * modules/utimecmp (Makefile.am): Likewise.
21667 * modules/utimens (Makefile.am): Likewise.
21668 * modules/vasnprintf (Makefile.am): Likewise.
21669 * modules/vasprintf (Makefile.am): Likewise.
21670 * modules/vsnprintf (Makefile.am): Likewise.
21671 * modules/xalloc (Makefile.am): Likewise.
21672 * modules/xgetcwd (Makefile.am): Likewise.
21673 * modules/xnanosleep (Makefile.am): Likewise.
21674 * modules/xreadlink (Makefile.am): Likewise.
21675 * modules/xstrtod (Makefile.am): Likewise.
21676 * modules/xstrtol (Makefile.am): Likewise.
21677 * modules/xstrtold (Makefile.am): Likewise.
21678 * modules/yesno (Makefile.am): Likewise.
21679 * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
21681 2006-10-12 Paul Eggert <eggert@cs.ucla.edu>
21683 * modules/error (Makefile.am): Distribute files through
21684 EXTRA_DIST, not lib_SOURCES.
21686 2006-10-12 Eric Blake <ebb9@byu.net>
21688 * modules/error (Makefile.am): Distribute files in /lib.
21689 * modules/obstack (Makefile.am): Likewise.
21691 2006-10-12 Bruno Haible <bruno@clisp.org>
21693 * modules/acl (Makefile.am): Distribute all files in lib/ through
21695 * modules/arcfour (Makefile.am): Likewise.
21696 * modules/arctwo (Makefile.am): Likewise.
21697 * modules/argmatch (Makefile.am): Likewise.
21698 * modules/argz (Makefile.am): Likewise.
21699 * modules/atexit (Makefile.am): Likewise.
21700 * modules/backupfile (Makefile.am): Likewise.
21701 * modules/c-strtod (Makefile.am): Likewise.
21702 * modules/c-strtold (Makefile.am): Likewise.
21703 * modules/calloc (Makefile.am): Likewise.
21704 * modules/canon-host (Makefile.am): Likewise.
21705 * modules/canonicalize (Makefile.am): Likewise.
21706 * modules/chdir-long (Makefile.am): Likewise.
21707 * modules/chdir-safer (Makefile.am): Likewise.
21708 * modules/check-version (Makefile.am): Likewise.
21709 * modules/chown (Makefile.am): Likewise.
21710 * modules/cloexec (Makefile.am): Likewise.
21711 * modules/close-stream (Makefile.am): Likewise.
21712 * modules/closeout (Makefile.am): Likewise.
21713 * modules/crc (Makefile.am): Likewise.
21714 * modules/cycle-check (Makefile.am): Likewise.
21715 * modules/des (Makefile.am): Likewise.
21716 * modules/dirfd (Makefile.am): Likewise.
21717 * modules/dirname (Makefile.am): Likewise.
21718 * modules/dup2 (Makefile.am): Likewise.
21719 * modules/euidaccess (Makefile.am): Likewise.
21720 * modules/exclude (Makefile.am): Likewise.
21721 * modules/exitfail (Makefile.am): Likewise.
21722 * modules/fcntl-safer (Makefile.am): Likewise.
21723 * modules/file-type (Makefile.am): Likewise.
21724 * modules/fileblocks (Makefile.am): Likewise.
21725 * modules/filemode (Makefile.am): Likewise.
21726 * modules/filenamecat (Makefile.am): Likewise.
21727 * modules/fnmatch (Makefile.am): Likewise.
21728 * modules/fopen-safer (Makefile.am): Likewise.
21729 * modules/fpending (Makefile.am): Likewise.
21730 * modules/fprintftime (Makefile.am): Likewise.
21731 * modules/free (Makefile.am): Likewise.
21732 * modules/fsusage (Makefile.am): Likewise.
21733 * modules/ftruncate (Makefile.am): Likewise.
21734 * modules/fts (Makefile.am): Likewise.
21735 * modules/gc (Makefile.am): Likewise.
21736 * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
21737 * modules/getaddrinfo (Makefile.am): Likewise.
21738 * modules/getcwd (Makefile.am): Likewise.
21739 * modules/getdelim (Makefile.am): Likewise.
21740 * modules/getdomainname (Makefile.am): Likewise.
21741 * modules/getgroups (Makefile.am): Likewise.
21742 * modules/gethostname (Makefile.am): Likewise.
21743 * modules/gethrxtime (Makefile.am): Likewise.
21744 * modules/getline (Makefile.am): Likewise.
21745 * modules/getloadavg (Makefile.am): Likewise.
21746 * modules/getlogin_r (Makefile.am): Likewise.
21747 * modules/getopt (Makefile.am): Likewise.
21748 * modules/getpass (Makefile.am): Likewise.
21749 * modules/getpass-gnu (Makefile.am): Likewise.
21750 * modules/getsubopt (Makefile.am): Likewise.
21751 * modules/gettime (Makefile.am): Likewise.
21752 * modules/gettimeofday (Makefile.am): Likewise.
21753 * modules/getugroups (Makefile.am): Likewise.
21754 * modules/getusershell (Makefile.am): Likewise.
21755 * modules/glob (Makefile.am): Likewise.
21756 * modules/group-member (Makefile.am): Likewise.
21757 * modules/hard-locale (Makefile.am): Likewise.
21758 * modules/hash (Makefile.am): Likewise.
21759 * modules/hmac-md5 (Makefile.am): Likewise.
21760 * modules/hmac-sha1 (Makefile.am): Likewise.
21761 * modules/human (Makefile.am): Likewise.
21762 * modules/idcache (Makefile.am): Likewise.
21763 * modules/imaxabs (Makefile.am): Likewise.
21764 * modules/imaxdiv (Makefile.am): Likewise.
21765 * modules/inet_ntop (Makefile.am): Likewise.
21766 * modules/inet_pton (Makefile.am): Likewise.
21767 * modules/inttostr (Makefile.am): Likewise.
21768 * modules/isapipe (Makefile.am): Likewise.
21769 * modules/lchown (Makefile.am): Likewise.
21770 * modules/long-options (Makefile.am): Likewise.
21771 * modules/lstat (Makefile.am): Likewise.
21772 * modules/malloc (Makefile.am): Likewise.
21773 * modules/mathl (Makefile.am): Likewise.
21774 * modules/mbchar (Makefile.am): Likewise.
21775 * modules/md2 (Makefile.am): Likewise.
21776 * modules/md4 (Makefile.am): Likewise.
21777 * modules/md5 (Makefile.am): Likewise.
21778 * modules/memcasecmp (Makefile.am): Likewise.
21779 * modules/memchr (Makefile.am): Likewise.
21780 * modules/memcmp (Makefile.am): Likewise.
21781 * modules/memcoll (Makefile.am): Likewise.
21782 * modules/memcpy (Makefile.am): Likewise.
21783 * modules/memmem (Makefile.am): Likewise.
21784 * modules/memmove (Makefile.am): Likewise.
21785 * modules/mempcpy (Makefile.am): Likewise.
21786 * modules/memrchr (Makefile.am): Likewise.
21787 * modules/memset (Makefile.am): Likewise.
21788 * modules/memxor (Makefile.am): Likewise.
21789 * modules/mkancesdirs (Makefile.am): Likewise.
21790 * modules/mkdir (Makefile.am): Likewise.
21791 * modules/mkdir-p (Makefile.am): Likewise.
21792 * modules/mkdtemp (Makefile.am): Likewise.
21793 * modules/mkstemp (Makefile.am): Likewise.
21794 * modules/mktime (Makefile.am): Likewise.
21795 * modules/modechange (Makefile.am): Likewise.
21796 * modules/mountlist (Makefile.am): Likewise.
21797 * modules/nanosleep (Makefile.am): Likewise.
21798 * modules/openat (Makefile.am): Likewise.
21799 * modules/pagealign_alloc (Makefile.am): Likewise.
21800 * modules/physmem (Makefile.am): Likewise.
21801 * modules/poll (Makefile.am): Likewise.
21802 * modules/posixtm (Makefile.am): Likewise.
21803 * modules/posixver (Makefile.am): Likewise.
21804 * modules/putenv (Makefile.am): Likewise.
21805 * modules/quote (Makefile.am): Likewise.
21806 * modules/quotearg (Makefile.am): Likewise.
21807 * modules/raise (Makefile.am): Likewise.
21808 * modules/read-file (Makefile.am): Likewise.
21809 * modules/readline (Makefile.am): Likewise.
21810 * modules/readlink (Makefile.am): Likewise.
21811 * modules/readtokens (Makefile.am): Likewise.
21812 * modules/readutmp (Makefile.am): Likewise.
21813 * modules/realloc (Makefile.am): Likewise.
21814 * modules/regex (Makefile.am): Likewise.
21815 * modules/rename (Makefile.am): Likewise.
21816 * modules/rename-dest-slash (Makefile.am): Likewise.
21817 * modules/rijndael (Makefile.am): Likewise.
21818 * modules/rmdir (Makefile.am): Likewise.
21819 * modules/rpmatch (Makefile.am): Likewise.
21820 * modules/safe-read (Makefile.am): Likewise.
21821 * modules/safe-write (Makefile.am): Likewise.
21822 * modules/same (Makefile.am): Likewise.
21823 * modules/save-cwd (Makefile.am): Likewise.
21824 * modules/savedir (Makefile.am): Likewise.
21825 * modules/setenv (Makefile.am): Likewise.
21826 * modules/settime (Makefile.am): Likewise.
21827 * modules/sha1 (Makefile.am): Likewise.
21828 * modules/sig2str (Makefile.am): Likewise.
21829 * modules/snprintf (Makefile.am): Likewise.
21830 * modules/stdlib-safer (Makefile.am): Likewise.
21831 * modules/stpcpy (Makefile.am): Likewise.
21832 * modules/stpncpy (Makefile.am): Likewise.
21833 * modules/strcase (Makefile.am): Likewise.
21834 * modules/strcasestr (Makefile.am): Likewise.
21835 * modules/strchrnul (Makefile.am): Likewise.
21836 * modules/strcspn (Makefile.am): Likewise.
21837 * modules/strdup (Makefile.am): Likewise.
21838 * modules/strerror (Makefile.am): Likewise.
21839 * modules/strftime (Makefile.am): Likewise.
21840 * modules/strndup (Makefile.am): Likewise.
21841 * modules/strnlen (Makefile.am): Likewise.
21842 * modules/strpbrk (Makefile.am): Likewise.
21843 * modules/strsep (Makefile.am): Likewise.
21844 * modules/strstr (Makefile.am): Likewise.
21845 * modules/strtod (Makefile.am): Likewise.
21846 * modules/strtoimax (Makefile.am): Likewise.
21847 * modules/strtok_r (Makefile.am): Likewise.
21848 * modules/strtol (Makefile.am): Likewise.
21849 * modules/strtoll (Makefile.am): Likewise.
21850 * modules/strtoul (Makefile.am): Likewise.
21851 * modules/strtoull (Makefile.am): Likewise.
21852 * modules/strtoumax (Makefile.am): Likewise.
21853 * modules/strverscmp (Makefile.am): Likewise.
21854 * modules/time_r (Makefile.am): Likewise.
21855 * modules/timegm (Makefile.am): Likewise.
21856 * modules/tmpfile-safer (Makefile.am): Likewise.
21857 * modules/unistd-safer (Makefile.am): Likewise.
21858 * modules/unlinkdir (Makefile.am): Likewise.
21859 * modules/userspec (Makefile.am): Likewise.
21860 * modules/utime (Makefile.am): Likewise.
21861 * modules/utimecmp (Makefile.am): Likewise.
21862 * modules/utimens (Makefile.am): Likewise.
21863 * modules/vasnprintf (Makefile.am): Likewise.
21864 * modules/vasprintf (Makefile.am): Likewise.
21865 * modules/vsnprintf (Makefile.am): Likewise.
21866 * modules/xalloc (Makefile.am): Likewise.
21867 * modules/xgetcwd (Makefile.am): Likewise.
21868 * modules/xnanosleep (Makefile.am): Likewise.
21869 * modules/xreadlink (Makefile.am): Likewise.
21870 * modules/xstrtod (Makefile.am): Likewise.
21871 * modules/xstrtol (Makefile.am): Likewise.
21872 * modules/xstrtold (Makefile.am): Likewise.
21873 * modules/yesno (Makefile.am): Likewise.
21875 2006-10-12 Jim Meyering <jim@meyering.net>
21877 * m4/getloadavg.m4: Revert the change below.
21879 * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
21880 lib/getloadavg.c using "ls -L", not "test -f". The latter would
21881 fail with a symlink, which is what coreutils' ./bootstrap now
21882 creates by default.
21884 2006-10-12 Bruno Haible <bruno@clisp.org>
21886 * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
21888 (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
21889 MSVC and mingw explicitly.
21891 2006-10-11 Simon Josefsson <jas@extundo.com>
21892 Bruno Haible <bruno@clisp.org>
21894 Add support for multiple gnulib-tool invocations in the scope of a
21895 single configure.ac file.
21896 * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
21897 use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
21898 with the same contents as the _LIBADD variable.
21899 (func_emit_initmacro_start, func_emit_initmacro_end,
21900 func_emit_initmacro_done): New functions.
21901 (func_import, func_create_testdir): Invoke them. Allow the identifiers
21902 gl_LIBOBJS and gl_LTLIBOBJS.
21904 2006-10-11 Bruno Haible <bruno@clisp.org>
21906 * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
21907 (func_create_testdir): Don't create po/Makefile.am, don't invoke
21908 autoreconf. Instead, invoke autopoint explicitly but move back the
21909 *.m4 files from gnulib.
21911 2006-10-11 Bruno Haible <bruno@clisp.org>
21913 * gnulib-tool (func_usage): Make module names after --create-testdir
21915 (func_create_testdir): If no module was specified, use nearly all
21918 2006-10-12 Jim Meyering <jim@meyering.net>
21920 Big performance improvement for fts-based tools that use FTS_NOSTAT.
21921 Avoid spurious inode-mismatch problems on non-POSIX file systems.
21922 Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
21923 * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
21924 (FTS_OPTIONMASK): Extend the mask to reflect this addition.
21925 * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
21926 (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
21927 (fts_set_stat_required): New function.
21928 (fts_open): Defer the calls to fts_stat, if possible or requested.
21929 Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
21930 into fts_stat itself.
21931 (fts_read): Perform any required (deferred) fts_stat call.
21932 (fts_build): Likewise, for the directory we're about to open and read.
21933 In the readdir loop, carefully decide whether each entry will require
21934 an eventual call to fts_stat, using dirent.d_type info if available.
21935 (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
21936 a command line argument into this function. Update all callers.
21937 Map a return value of FTS_DOT to FTS_D for a command line argument.
21938 * modules/fts (Depends-on): Add d-type. Alphabetize.
21939 Thanks to Miklos Szeredi for his tenacity and for the initial
21940 bug report about "find" failing on a FUSE-based file system.
21942 * lib/fts.c (fts_open): Use consistent indentation.
21944 2006-10-12 Paul Eggert <eggert@cs.ucla.edu>
21946 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
21947 gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
21948 reported by Jim Meyering. All uses of cache variables renamed
21949 to match Autoconf's.
21950 (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
21953 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
21954 Fix misspelling in diagnostic.
21956 2006-10-11 Paul Eggert <eggert@cs.ucla.edu>
21958 * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
21959 defined. Problem reported by Matthew Woehlke.
21961 * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
21962 Add support for Tandem NonStop R series.
21963 (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
21966 * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
21967 (has_trailing_slash): Omit size arg; all callers changed.
21968 Omit 'inline', since it doesn't help performance and we'd
21969 need to configure it.
21970 Don't count //, ///, etc. as having a trailing slash.
21971 As a side effect, this removes a C99ism reported by Matthew Woehlke.
21972 (rpl_rename_dest_slash): On failure, use rename's errno rather
21973 than (in some cases) an incorrect or junk errno.
21974 Simplify code by removing need to compute length; this does
21975 cause it to make two passes instead of one over the file name,
21978 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
21979 change, since Autoconf's version may no longer be appropriate now
21980 that we are using CVS Autoconf's version. Add support for Tandem.
21982 2006-10-11 Paul Eggert <eggert@cs.ucla.edu>
21983 Bruno Haible <bruno@clisp.org>
21985 * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
21986 HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
21987 * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
21988 gl_AC_TYPE_LONG_LONG.
21990 * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
21991 instead of HAVE_LONG_LONG.
21992 * lib/printf-args.c (printf_fetchargs): Likewise.
21993 * lib/printf-parse.c (PRINTF_PARSE): Likewise.
21994 * lib/vasnprintf.c (VASNPRINTF): Likewise.
21995 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
21996 gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
21997 gl_AC_TYPE_LONG_LONG.
21999 2006-10-11 Bruno Haible <bruno@clisp.org>
22001 * m4/longlong.m4: Add comments.
22002 * m4/ulonglong.m4: Likewise.
22004 2006-10-10 Bruno Haible <bruno@clisp.org>
22006 Make it possible to #define stpcpy, strdup to aliases.
22007 * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
22008 * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
22010 2006-10-10 Bruno Haible <bruno@clisp.org>
22012 Make it possible to #define gcd to an alias.
22013 * lib/gcd.c: Include config.h.
22015 2006-10-10 Bruno Haible <bruno@clisp.org>
22017 Make it possible to #define c_isascii to an alias.
22018 * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
22019 defined. Undefine the macros before defining them, to avoid gcc
22021 * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
22022 define NO_C_CTYPE_MACROS early.
22024 2006-10-10 Bruno Haible <bruno@clisp.org>
22026 Make it possible to #define set_program_name to an alias.
22027 * lib/progname.c: Don't undefine set_program_name; instead, undefine
22028 ENABLE_RELOCATABLE early.
22030 2006-10-10 Paul Eggert <eggert@cs.ucla.edu>
22032 Port to Tandem NSK OSS, which has 64-bit signed int but at most
22033 32-bit unsigned int. Problem reported by Matthew Woehlke in:
22034 http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
22035 More generally, don't assume that 64-bit signed int is available
22036 if unsigned int is, and vice versa.
22037 * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
22038 unsigned symbols, not on their signed counterparts.
22039 * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
22040 (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
22041 (UINT64_C, UINTMAX_C):
22043 * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
22044 unsigned counterparts.
22045 (Have_long_long, Unsigned): New macros.
22046 (Int): Renamed from INT.
22047 (strtoimax): Use the new macros.
22048 * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
22049 and substitute HAVE_UNSIGNED_LONG_LONG_INT.
22050 * modules/inttypes (inttypes.h): Substitute
22051 HAVE_UNSIGNED_LONG_LONG_INT.
22052 * modules/stdint (stdint.h): Likewise.
22053 (Files): Add m4/ulonglong.m4.
22055 2006-10-10 Bruno Haible <bruno@clisp.org>
22057 Fix a gcc -Wshadow warning.
22058 * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
22060 * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
22061 gl_linked_indexof_from_to): Likewise.
22062 * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
22064 * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
22066 * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
22067 Reported by Eric Blake.
22069 2006-10-09 Paul Eggert <eggert@cs.ucla.edu>
22071 * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
22072 for NetBSD. Problem reported by Bruno Haible.
22074 2006-10-09 Jim Meyering <jim@meyering.net>
22076 * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
22077 Patch from Bruno Haible.
22079 2006-10-09 Jim Meyering <jim@meyering.net>
22081 * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
22082 to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
22083 Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
22085 2006-10-08 Paul Eggert <eggert@cs.ucla.edu>
22087 Don't include <config.h> twice; this doesn't work in some cases,
22088 e.g., when config.h has "#define intmax_t long long int" and
22089 we include <config.h>, <inttypes.h>, <config.h> in that order.
22090 Problem reported by Matthew Woehlke in:
22091 http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
22092 * lib/fprintftime.c: Don't include config.h or fprintftime.h.
22093 * lib/fts-cycle.c: Don't include config.h.
22094 * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
22095 * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
22096 Don't include config.h or xstrtol.h. Define STRTOL_T_MINIMUM
22097 and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
22099 * lib/xstrtoumax.c: Likewise.
22100 * lib/xstrtol.c: Include config.h and xstrtol.h after defining
22101 __strtol and the like, so that this module is more like its siblings.
22102 (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
22103 Remove; no longer needed now that we assume gnulib inttypes.h.
22105 2006-10-08 Bruno Haible <bruno@clisp.org>
22107 * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
22110 2006-10-07 Jim Meyering <jim@meyering.net>
22112 * modules/inttypes (inttypes.h): Revert what seems to have been
22113 an inadvertent part of today's change: use "|", not "/" in the
22114 substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
22116 2006-10-07 Bruno Haible <bruno@clisp.org>
22118 * modules/sublist: New file.
22120 2006-10-07 Bruno Haible <bruno@clisp.org>
22122 * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
22123 * modules/argz (argz.h): Likewise.
22124 * modules/arpa_inet (arpa/inet.h): Likewise.
22125 * modules/byteswap (byteswap.h): Likewise.
22126 * modules/configmake (configmake.h): Likewise.
22127 * modules/fcntl (fcntl.h): Likewise.
22128 * modules/fnmatch (fnmatch.h): Likewise.
22129 * modules/getopt (getopt.h): Likewise.
22130 * modules/glob (glob.h): Likewise.
22131 * modules/inttypes (inttypes.h): Likewise.
22132 * modules/netinet_in (netinet/in.h): Likewise.
22133 * modules/poll (poll.h): Likewise.
22134 * modules/stdbool (stdbool.h): Likewise.
22135 * modules/stdint (stdint.h): Likewise.
22136 * modules/sys_select (sys/select.h): Likewise.
22137 * modules/sys_socket (sys/socket.h): Likewise.
22138 * modules/sys_stat (sys/stat.h): Likewise.
22139 * modules/sysexits (sysexits.h): Likewise.
22140 * modules/unistd (unistd.h): Likewise.
22141 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
22142 Add a "DO NOT EDIT" comment to the generated file.
22143 (func_import): Likewise for gnulib-comp.m4.
22145 2006-10-07 Bruno Haible <bruno@clisp.org>
22147 * lib/gl_sublist.h: New file.
22148 * lib/gl_sublist.c: New file.
22150 2006-10-06 Paul Eggert <eggert@cs.ucla.edu>
22152 * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
22153 name (relative to the original working directory) and the file
22154 name component (relative to the temporary working directory). All
22156 * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
22157 * lib/mkdir-p.c (make_dir_parents): Likewise.
22158 * lib/mkdir-p.h (make_dir_parents): Likewise.
22160 2006-10-06 Eric Blake <ebb9@byu.net>
22162 Define several macros for use by the clean-temp module.
22163 * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
22164 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
22165 * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
22167 * lib/clean-temp.h (close_stream_temp): New declaration.
22168 * lib/clean-temp.c (includes): Pull in headers according to what
22169 other modules are in use.
22170 (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
22172 2006-10-06 Bruno Haible <bruno@clisp.org>
22174 * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
22175 instead of fopen, fwriteerror.
22177 2006-10-06 Bruno Haible <bruno@clisp.org>
22179 * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
22180 cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
22182 * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
22183 cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
22184 Return an error indicator.
22185 Suggested by Eric Blake.
22187 2006-10-06 Bruno Haible <bruno@clisp.org>
22189 * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
22190 Reported by Eric Blake.
22192 2006-10-06 Bruno Haible <bruno@clisp.org>
22194 * modules/closeout (Description): Mention stderr too.
22196 2006-10-06 Bruno Haible <bruno@clisp.org>
22197 and Paul Eggert <eggert@cs.ucla.edu>
22199 * lib/closeout.c (close_stdout): Also close stderr.
22200 * lib/closeout.h: Update comment.
22202 2006-10-05 Paul Eggert <eggert@cs.ucla.edu>
22204 Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
22205 <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
22206 * lib/dirchownmod.c: Include lchown.h.
22207 * lib/lchown.c: Don't include files that lchown.h now includes.
22208 Don't declare chown, since lchown.h now does that.
22209 * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
22210 (lchown): Define to rpl_chown if lchown is declared but
22211 does not exist. Declare using a prototype if lchown is not
22212 declared. Add a copyright notice.
22213 * lib/mkstemp.h: Include <unistd.h>.
22214 * lib/openat.c: Include lchown.h.
22216 * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
22217 we now test for that separately.
22218 * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
22219 rather than O_NOFOLLOW, when testing whether it's possible to
22220 avoid a race condition reliably.
22221 * lib/savewd.c (savewd_chdir): Likewise.
22223 Remove macros that are no longer needed now that stdint.h is
22225 * lib/fsusage.c (UINTMAX_MAX): Remove.
22226 * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
22227 * lib/utimecmp.c (SIZE_MAX): Remove.
22229 * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
22231 * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
22232 of O_NOFOLLOW_IS_INEFFECTIVE. Define HAVE_WORKING_O_NOATIME if
22235 2006-10-05 Bruno Haible <bruno@clisp.org>
22237 * lib/gl_list.h (gl_sortedlist_search_from_to,
22238 gl_sortedlist_indexof_from_to): New declarations.
22239 (gl_list_implementation): New fields sortedlist_search_from_to,
22240 sortedlist_indexof_from_to.
22241 (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
22243 * lib/gl_list.c (gl_sortedlist_search_from_to,
22244 gl_sortedlist_indexof_from_to): New functions.
22245 * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
22247 (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
22248 (gl_array_sortedlist_search_from_to): New function.
22249 (gl_array_list_implementation): Update.
22250 * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
22252 (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
22253 (gl_carray_sortedlist_search_from_to): New function.
22254 (gl_carray_list_implementation): Update.
22255 * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
22256 gl_linked_sortedlist_indexof_from_to): New functions.
22257 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
22258 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
22259 * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
22260 gl_tree_sortedlist_indexof_from_to): New functions.
22261 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
22262 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
22264 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
22265 * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
22268 2006-10-05 Bruno Haible <bruno@clisp.org>
22270 * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
22271 gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
22272 (struct gl_list_implementation): Add fields search_from_to,
22273 indexof_from_to. Remove fields search, indexof.
22274 (gl_list_search): Use the search_from_to method.
22275 (gl_list_search_from, gl_list_search_from_to): New functions.
22276 (gl_list_indexof): Use the indexof_from_to method.
22277 (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
22278 * lib/gl_list.c (gl_list_search): Use the search_from_to method.
22279 (gl_list_search_from, gl_list_search_from_to): New functions.
22280 (gl_list_indexof): Use the indexof_from_to method.
22281 (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
22282 * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
22283 gl_array_indexof. Add start_index, end_index arguments.
22284 (gl_array_search_from_to): Renamed from gl_array_search. Add
22285 start_index, end_index arguments.
22286 (gl_array_remove, gl_array_list_implementation): Update.
22287 * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
22288 gl_carray_indexof. Add start_index, end_index arguments.
22289 (gl_carray_search_from_to): Renamed from gl_carray_search. Add
22290 start_index, end_index arguments.
22291 (gl_carray_remove, gl_carray_list_implementation): Update.
22292 * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
22293 gl_linked_search. Add start_index, end_index arguments.
22294 (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
22295 start_index, end_index arguments.
22296 (gl_linked_remove): Update.
22297 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
22298 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
22299 * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
22301 * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
22302 gl_tree_search. Add start_index, end_index arguments.
22303 (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
22304 start_index, end_index arguments.
22305 (gl_tree_remove): Update.
22306 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
22307 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
22308 * lib/gl_anytreehash_list1.h (compare_position_threshold): New
22310 * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
22311 gl_tree_search. Add start_index, end_index arguments.
22312 (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
22313 start_index, end_index arguments.
22314 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
22316 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
22318 2006-10-05 Bruno Haible <bruno@clisp.org>
22320 * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
22322 * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
22323 fwriteerror_temp): New declarations.
22324 * lib/clean-temp.c (uintptr_t): Provide fallback definition.
22325 (descriptors): New variable.
22326 (cleanup): First, close the descriptors.
22327 (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
22328 fclose_temp, fwriteerror_temp): New functions.
22330 2006-10-04 Jim Meyering <jim@meyering.net>
22332 * lib/fts.c (fts_open): Tiny comment change.
22334 2006-10-04 Bruno Haible <bruno@clisp.org>
22336 Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
22337 * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
22339 (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
22340 (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
22341 gl_LOCK_EARLY_BODY.
22342 (gl_LOCK): Require gl_LOCK_BODY.
22344 2006-10-04 Bruno Haible <bruno@clisp.org>
22346 * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
22347 (gl_oset_search_atleast): New declaration.
22348 (struct gl_oset_implementation): Add field 'search_atleast'.
22349 (gl_oset_search_atleast): New inline function.
22350 * lib/gl_oset.c (gl_oset_search_atleast): New function.
22351 * lib/gl_array_oset.c (gl_array_search_atleast): New function.
22352 (gl_array_oset_implementation): Update.
22353 * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
22354 * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
22355 * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
22357 2006-10-04 Bruno Haible <bruno@clisp.org>
22359 * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
22361 2006-10-03 Bruno Haible <bruno@clisp.org>
22363 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
22364 from gl_avltreehash_list_implementation.
22366 2006-10-03 Bruno Haible <bruno@clisp.org>
22368 * lib/gl_oset.c (gl_oset_add): Fix return type.
22370 2006-10-02 Paolo Bonzini <bonzini@gnu.org> (tiny change)
22372 * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
22374 2006-10-02 Eric Blake <ebb9@byu.net>
22376 * modules/strnlen (Depends-on): Add extensions.
22378 2006-10-02 Eric Blake <ebb9@byu.net>
22380 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
22381 definition in 2.60+.
22383 2006-10-02 Dmitry V. Levin <ldv@altlinux.org>
22385 * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
22388 2006-10-02 Bruno Haible <bruno@clisp.org>
22390 * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
22391 to the AUTOMAKE_OPTIONS.
22392 Reported by Jim Meyering.
22394 2006-09-29 Paul Eggert <eggert@cs.ucla.edu>
22396 Work around bug in Solaris 10 /proc file system:
22397 /proc/self/fd/NNN/.. isn't the parent directory of
22398 the directory whose file descriptor is NNN. This needs to
22399 be worked around at run time, not compile time, since a
22400 program might be built on Solaris 8, where things work, and
22402 * lib/openat-priv.h (BUILD_PROC_NAME): Remove. All callers changed
22403 to use the following interface instead:
22404 (OPENAT_BUFFER_SIZE): New macro.
22405 (openat_proc_name): New function.
22406 * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
22407 * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
22409 * lib/openat-proc.c: New file.
22410 * modules/openat (Files): Add lib/openat-proc.c.
22411 (Depends-on): Add same-inode, stdbool.
22412 * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
22414 2006-09-29 Bruno Haible <bruno@clisp.org>
22416 * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
22417 * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
22418 argument. Set stdout_closed before testing for ferror, not after.
22419 (fwriteerror, fwriteerror_no_ebadf): New functions.
22421 2006-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22423 * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
22425 2006-09-28 Paolo Bonzini <bonzini@gnu.org>
22427 * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
22428 * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
22430 2006-09-28 Jim Meyering <jim@meyering.net>
22432 * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
22433 Include <unistd.h>.
22435 2006-09-28 Bruno Haible <bruno@clisp.org>
22437 * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
22438 * modules/linkedhash-list (Depends-on): Likewise.
22439 * modules/rbtreehash-list (Depends-on): Likewise.
22441 2006-09-28 Bruno Haible <bruno@clisp.org>
22443 * lib/strndup.h: Simplify the redefinition of strndup.
22444 (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
22445 * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
22447 2006-09-28 Bruno Haible <bruno@clisp.org>
22449 * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
22450 * lib/gl_linkedhash_list.c: Likewise.
22451 * lib/gl_rbtreehash_list.c: Likewise.
22453 2006-09-27 Paul Eggert <eggert@cs.ucla.edu>
22455 * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
22458 * lib/__fpending.h: Don't include <stdio_ext.h> unless
22459 HAVE_DECL___FPENDING. This avoids a bug with lsbcc, where
22460 it causes <stdio_ext.h> to cause a compile-time error.
22461 Problem reported by Nelson H. F. Beebe.
22462 * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
22463 of HAVE_DECL___PENDING.
22465 * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
22466 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
22469 2006-09-27 Jim Meyering <jim@meyering.net>
22471 This file could end up with a definition for a function
22472 named __strndup, rather than rpl_strndup on a system with
22473 incomplete weak_alias support.
22474 * lib/strndup.c (strndup): Rename from __strndup.
22475 Remove #defines that used to map __strndup to strndup.
22476 Don't use K&R prototypes.
22477 Remove LIBC-related code, since this file is not sync'd with glibc.
22478 * lib/strndup.h: Revamp, accordingly.
22479 * m4/strndup.m4: Modernize.
22481 2006-09-26 Paul Eggert <eggert@cs.ucla.edu>
22483 * modules/savewd (Depends-on): Add 'raise'.
22484 * lib/savewd.c: Include <signal.h>, for 'raise'.
22486 2006-09-26 Jim Meyering <jim@meyering.net>
22488 * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
22489 when we detect Darwin 8.7.0's acl_get_file bug.
22490 Rearrange to perform the new (below) run-test while $LIBS
22491 contains any acl-related library. Set USE_ACL at the end.
22492 (gl_ACL_GET_FILE): New function.
22494 2006-09-26 Eric Blake <ebb9@byu.net>
22496 * lib/verror.c: Include <config.h> unconditionally.
22498 2006-09-25 Paul Eggert <eggert@cs.ucla.edu>
22500 * modules/clock-time (Maintainer): Add self.
22501 * modules/getlogin_r (Depends-on): Add extensions.
22503 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22505 * modules/clock-time: New module.
22506 * modules/nanosleep (Depends-on): Add clock-time.
22507 * modules/gethrxtime (Depends-on): Likewise.
22508 * modules/gettime (Depends-on): Likewise.
22509 * modules/settime (Depends-on): Likewise.
22511 * modules/fts-lgpl: Depend on openat.
22512 * modules/mkancesdirs: Depend on savewd.
22513 * modules/mkdir-p: Likewise.
22515 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22517 * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
22519 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
22520 `gl_have_arbitrary_file_name_length_limit' to
22521 `gl_cv_have_arbitrary_file_name_length_limit', so that caching
22522 actually works between configure runs.
22524 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22525 Bruno Haible <bruno@clisp.org>
22527 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
22529 2006-09-25 Jim Meyering <jim@meyering.net>
22531 * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
22532 This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
22534 2006-09-25 Eric Blake <ebb9@byu.net>
22536 * gnulib-tool (func_import, func_create_testdir): Fix typos in
22537 exec's in 2006-09-18 patch when shuffling fds.
22539 2006-09-25 Bruno Haible <bruno@clisp.org>
22541 * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
22542 Reported by Jim Meyering.
22544 2006-09-24 Jim Meyering <jim@meyering.net>
22546 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
22547 compare a pointer against a literal "0". That caused failures with
22548 at least HP-UX's hpcc.
22550 2006-09-22 Simon Josefsson <jas@extundo.com>
22554 * modules/gc-hmac-sha1:
22555 * modules/gc-hmac-md5:
22557 * modules/gc-arcfour: Distribute more files.
22559 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22561 * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
22562 (gl_linked_iterator_from_to): Initialize struct completely.
22563 * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
22564 (gl_tree_iterator_from_to): Likewise
22565 * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
22566 * lib/gl_array_list.c [lint] (gl_array_iterator)
22567 (gl_array_iterator_from_to): Likewise.
22568 * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
22569 * lib/gl_carray_list.c [lint] (gl_carray_iterator)
22570 (gl_carray_iterator_from_to): Likewise.
22572 * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
22573 * lib/md4.c (md4_process_block): Remove unused variable.
22574 * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
22575 parentheses for clarity.
22577 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22579 * modules/bison-i18n (Depends-on): Add gettext.
22581 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22583 * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
22584 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
22585 * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
22586 also add missing comma that caused broken test.
22587 * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
22588 stdlib.h, for `abort'.
22589 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
22591 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
22592 include unistd.h if present, for `rmdir'.
22593 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
22595 * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
22596 in the process include standard headers for prototypes.
22597 * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
22598 gets declared on GNU/Linux.
22599 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
22600 unistd.h, for `rmdir'.
22601 * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
22603 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
22605 * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
22607 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
22609 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22611 * gnulib-tool (func_version): Create output all at once. This
22612 may help avoid triggering unnecessary SIGPIPEs, and at any
22613 rate it doesn't hurt.
22615 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22616 Bruno Haible <bruno@clisp.org>
22618 * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
22619 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
22620 * m4/signed.m4 (bh_C_SIGNED): Likewise.
22622 * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
22623 (gl_FUNC_VASPRINTF): Invoke it.
22625 2006-09-22 Bruno Haible <bruno@clisp.org>
22627 * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
22628 getloadavg.c as first argument.
22630 2006-09-22 Bruno Haible <bruno@clisp.org>
22632 * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
22633 at the beginning of the gl_INIT macro.
22634 * modules/getloadavg (configure.ac): Pass $gl_source_base to
22637 2006-09-22 Bruno Haible <bruno@clisp.org>
22639 * gnulib-tool (func_create_megatestdir): Don't include the config-h
22641 Suggested by Ralf Wildenhues.
22643 2006-09-20 Paul Eggert <eggert@cs.ucla.edu>
22645 Import this patch from libc:
22647 2006-09-06 Jakub Jelinek <jakub@redhat.com>
22649 * lib/regex_internal.c (re_string_reconstruct): Handle
22650 offset < pstr->valid_raw_len && pstr->offsets_needed case.
22651 Ensure no bytes read before raw_mbs array. Pass a saved copy of
22652 pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
22653 re_string_context_at.
22655 * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
22657 (gl_PREREQ_REGEX): Don't check for locale.h any more, since
22658 gl_REGEX now does it for us.
22659 (gl_REGEX): Add test taken from
22660 http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
22662 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
22663 Check that large offsets work. Modernize Autoconf usages.
22664 Prefer "yes" to mean a good thing rather than a bad.
22665 Don't put "#define mkstemp" in config.h, as this might interfere
22666 with standard system headers that "#define mkstemp mkstemp64".
22668 * modules/mkstemp (Depends-on): Add extensions, so that
22669 mkstemp is visible on some platforms.
22670 (Makefile.am): Add mkstemp.h to EXTRA_DIST.
22671 (Include): Change to "mkstemp.h" from <stdlib.h>.
22672 (Files): Add mkstemp.h.
22674 * lib/mkstemp.h: New file, since some standard headers
22676 * lib/mkstemp.c: Revamp to put the !_LIBC code together.
22677 Include "mkstemp.h".
22678 Make the _LIBC code resemble glibc original more,
22679 e.g., use K&R style.
22680 * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
22681 (mkstemp): Remove, since mkstemp.h does this for us.
22682 * lib/stdlib--.h: Include mkstemp.h.
22684 Import this patch from libc:
22686 2006-04-07 Ulrich Drepper <drepper@redhat.com>
22688 * lib/tempname.c (__gen_tempname): Change attempts_min
22689 into a macro. Use preprocessor to decide how to initialize
22690 attempts [Coverity CID 67].
22692 2006-09-20 Bruno Haible <bruno@clisp.org>
22694 * lib/mkdtemp.c: Import from libc.
22695 2006-04-07 Ulrich Drepper <drepper@redhat.com>
22696 * sysdeps/posix/tempname.c (__gen_tempname): Change
22697 attempts_min into a macro. Use preprocessor to decide how to
22698 initialize attempts [Coverity CID 67].
22699 2001-11-27 Paul Eggert <eggert@twinsun.com>
22700 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
22701 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
22703 2006-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22705 * gnulib-tool (func_exit): New function, to allow to pass the
22706 exit status portably through the trap. Use everywhere.
22707 (--help, --version): Signal a write error.
22708 (trap): catch SIGPIPE, for write errors.
22709 Exit at the end of the trap, with the correct exit status.
22711 2006-09-19 Karl Berry <karl@gnu.org>
22713 * doc/gnulib.texi: note about the license texinfo files.
22715 2006-09-19 Eric Blake <ebb9@byu.net>
22717 * gnulib-tool: Avoid space-tab.
22719 2006-09-18 Paul Eggert <eggert@cs.ucla.edu>
22721 * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
22722 that prevented coreutils 6.1 from building. Problem reported
22723 by Petter Reinholdtsen.
22725 2006-09-18 Paul Eggert <eggert@cs.ucla.edu>
22727 * gnulib-tool (avoidlist): Fix typo that broke options like
22728 --avoid=lock that are used by coreutils bootstrap.
22730 2006-09-18 Mark D. Baushke <mdb@gnu.org>
22732 * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
22733 more systematically.
22735 2006-09-18 Jim Meyering <jim@meyering.net>
22737 * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
22739 2006-09-18 Bruno Haible <bruno@clisp.org>
22741 * modules/inttypes (Files): Remove m4/inttypes-h.m4.
22743 2006-09-18 Bruno Haible <bruno@clisp.org>
22745 * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
22746 * m4/inttypes-pri.m4: Require autoconf >= 2.52.
22747 (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
22748 ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
22749 * m4/gettext.m4: Require autoconf >= 2.52.
22750 (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
22751 * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
22752 of gl_cv_header_inttypes_h.
22754 2006-09-18 Bruno Haible <bruno@clisp.org>
22756 * lib/javaversion.c: Include configmake.h.
22758 2006-09-18 Bruno Haible <bruno@clisp.org>
22760 * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
22761 avoid that the while loops be executed in a subshell.
22763 2006-09-18 Bruno Haible <bruno@clisp.org>
22765 * MODULES.html.sh (func_module): Break long lines.
22766 Suggested by Bruce Korb <bkorb@gnu.org>.
22768 2006-09-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22770 Speed up by a factor of 1.12.
22771 * gnulib-tool (nl): New variable.
22772 (func_import): Rewrite include directive extraction to only read each
22775 2006-09-17 Bruno Haible <bruno@clisp.org>
22777 * modules/javaversion (Makefile.am): Remove DEFS setting.
22778 (Depends-on): Add configmake, for PKGDATADIR definition.
22780 2006-09-17 Bruno Haible <bruno@clisp.org>
22782 * gnulib-tool (func_create_testdir): Rewrite all files at once.
22784 2006-09-17 Bruno Haible <bruno@clisp.org>
22786 * gnulib-tool (func_append): New function, stolen from libtool.m4.
22787 (func_modules_transitive_closure, func_modules_add_dummy,
22788 func_modules_to_filelist, func_import, func_create_testdir,
22789 func_create_megatestdir, ...): Use it wherever possible.
22790 Suggested by Ralf Wildenhues.
22792 2006-09-16 Karl Berry <karl@gnu.org>
22794 * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
22795 to avoid sectioning errors.
22796 * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
22797 [ifinfo]: blank line after @center-ed titles.
22798 * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
22799 Spell FSF address consistently with others.
22800 (These changes approved by rms.)
22802 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22804 Speed up by a factor of 1.61.
22805 * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
22806 already checked module names again.
22808 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22810 Speed up by a factor of 1.13.
22811 * gnulib-tool (func_import): Rewrite all old_files at once; likewise
22812 for new_files, and the input to func_add_or_update.
22814 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22816 * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
22817 func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
22819 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
22821 * modules/mkancesdirs (Depends-on): Add fcntl.
22822 * modules/savewd: New file.
22823 * MODULES.html.sh (File system functions): Add savewd.
22825 * modules/configmake (Makefile.am): Add support for the
22826 Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
22828 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
22830 * m4/savewd.m4: New file.
22832 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
22834 * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
22835 (dirchownmod): New arg FD. All callers changed.
22836 Use FD rather than opening the directory ourself, as opening is
22837 now the caller's responsibility.
22838 * lib/dirchownmod.h: Likewise.
22839 * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
22840 hosts that require <sys/types.h> before <sys/stat.h>. Include
22841 fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
22842 (test_dir): Remove.
22843 (mkancesdirs): Return length of prefix of FILE that has already
22844 been made, or -2 if there is a child doing the work. Redo
22845 algorithm so that it is O(N) rather than O(N**2). Optimize away
22846 ".", and treat ".." specially since it might stray back into
22847 already-created areas. Use a subprocess if necessary. New arg
22848 WD; all users changed. MAKE_DIR function should now return 1
22849 if it creates a directory that is not readable. Return -2 if
22850 a child process is spun off.
22851 * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
22852 Adjust signature to match code.
22853 * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
22854 (make_dir_parents): Use a subprocess if necessary. New arg WD;
22856 * lib/savewd.c, lib/savewd.h: New files.
22858 2006-09-15 Jim Meyering <jim@meyering.net>
22860 * modules/rename-dest-slash: New module.
22861 * MODULES.html.sh (posix_compat): Add it here.
22863 * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
22865 2006-09-15 Jim Meyering <jim@meyering.net>
22867 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
22870 * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
22872 2006-09-15 Jim Meyering <jim@meyering.net>
22874 * lib/rename-dest-slash.c (has_trailing_slash): Use
22875 FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
22876 (rpl_rename_dest_slash): Perform the cheaper trailing slash
22877 test before testing whether SRC is a directory.
22878 Suggestions from Bruno Haible.
22880 Avoid a warning about an unused variable.
22881 * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
22882 into the #ifdef block where it's used.
22884 * lib/rename-dest-slash.c: New file.
22886 2006-09-14 Bruno Haible <bruno@clisp.org>
22888 * lib/allocsa.c: Include <config.h> unconditionally.
22889 * lib/asnprintf.c: Likewise.
22890 * lib/asprintf.c: Likewise.
22891 * lib/c-strcasecmp.c: Likewise.
22892 * lib/c-strcasestr.c: Likewise.
22893 * lib/c-strncasecmp.c: Likewise.
22894 * lib/c-strstr.c: Likewise.
22895 * lib/classpath.c: Likewise.
22896 * lib/clean-temp.c: Likewise.
22897 * lib/concatpath.c: Likewise.
22898 * lib/copy-file.c: Likewise.
22899 * lib/csharpcomp.c: Likewise.
22900 * lib/csharpexec.c: Likewise.
22901 * lib/execute.c: Likewise.
22902 * lib/fatal-signal.c: Likewise.
22903 * lib/findprog.c: Likewise.
22904 * lib/fwriteerror.c: Likewise.
22905 * lib/gl_array_list.c: Likewise.
22906 * lib/gl_array_oset.c: Likewise.
22907 * lib/gl_avltree_list.c: Likewise.
22908 * lib/gl_avltree_oset.c: Likewise.
22909 * lib/gl_avltreehash_list.c: Likewise.
22910 * lib/gl_carray_list.c: Likewise.
22911 * lib/gl_linked_list.c: Likewise.
22912 * lib/gl_linkedhash_list.c: Likewise.
22913 * lib/gl_list.c: Likewise.
22914 * lib/gl_oset.c: Likewise.
22915 * lib/gl_rbtree_list.c: Likewise.
22916 * lib/gl_rbtree_oset.c: Likewise.
22917 * lib/gl_rbtreehash_list.c: Likewise.
22918 * lib/imaxabs.c: Likewise.
22919 * lib/imaxdiv.c: Likewise.
22920 * lib/javacomp.c: Likewise.
22921 * lib/javaexec.c: Likewise.
22922 * lib/javaversion.c: Likewise.
22923 * lib/linebreak.c: Likewise.
22924 * lib/localcharset.c: Likewise.
22925 * lib/lock.c: Likewise.
22926 * lib/mbchar.c: Likewise.
22927 * lib/mbswidth.c: Likewise.
22928 * lib/mkdtemp.c: Likewise.
22929 * lib/pipe.c: Likewise.
22930 * lib/printf-args.c: Likewise.
22931 * lib/printf-parse.c: Likewise.
22932 * lib/progname.c: Likewise.
22933 * lib/progreloc.c: Likewise.
22934 * lib/readlink.c: Likewise.
22935 * lib/sh-quote.c: Likewise.
22936 * lib/stpcpy.c: Likewise.
22937 * lib/stpncpy.c: Likewise.
22938 * lib/strcasecmp.c: Likewise.
22939 * lib/strcasestr.c: Likewise.
22940 * lib/strcspn.c: Likewise.
22941 * lib/striconv.c: Likewise.
22942 * lib/strncasecmp.c: Likewise.
22943 * lib/strnlen1.c: Likewise.
22944 * lib/strstr.c: Likewise.
22945 * lib/strtok_r.c: Likewise.
22946 * lib/tls.c: Likewise.
22947 * lib/tmpdir.c: Likewise.
22948 * lib/unicodeio.c: Likewise.
22949 * lib/unsetenv.c: Likewise.
22950 * lib/vasnprintf.c: Likewise.
22951 * lib/vasprintf.c: Likewise.
22952 * lib/wait-process.c: Likewise.
22953 * lib/xallocsa.c: Likewise.
22954 * lib/xsetenv.c: Likewise.
22955 * lib/xstriconv.c: Likewise.
22957 2006-09-13 Simon Josefsson <jas@extundo.com>
22959 * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
22960 that internally, suggested by Ralf Wildenhues
22961 <Ralf.Wildenhues@gmx.de>.
22963 2006-09-13 Simon Josefsson <jas@extundo.com>
22965 * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
22967 Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
22969 2006-09-13 Paul Eggert <eggert@cs.ucla.edu>
22971 * lib/_fpending.c: Include <config.h> unconditionally, since we no
22972 longer worry about uses that don't define HAVE_CONFIG_H.
22973 * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
22974 * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
22975 * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
22976 * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
22977 * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
22978 * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
22979 * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
22980 * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
22981 * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
22982 * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
22983 * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
22984 * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
22985 * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
22986 * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
22987 * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
22988 * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
22989 * lib/getusershell.c, lib/glob.c, lib/group-member.c:
22990 * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
22991 * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
22992 * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
22993 * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
22994 * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
22995 * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
22996 * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
22997 * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
22998 * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
22999 * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
23000 * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
23001 * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
23002 * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
23003 * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
23004 * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
23005 * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
23006 * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
23007 * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
23008 * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
23009 * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
23010 * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
23011 * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
23012 * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
23013 * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
23016 2006-09-13 Eric Blake <ebb9@byu.net>
23018 * lib/getopt.c: Fix typo in last commit.
23020 2006-09-12 Sergey Poznyakoff <gray@gnu.org.ua>
23022 * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
23025 2006-09-12 Jim Meyering <jim@meyering.net>
23027 * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
23028 compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
23029 Reported by Nelson H. F. Beebe.
23031 2006-09-10 Sergey Poznyakoff <gray@gnu.org.ua>
23033 * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
23034 program_invocation_name and program_invocation_short_name are
23036 * lib/argp-namefrob.h: Move declarations of program_invocation_name
23037 and program_invocation_short_name to argp.h, so they are visible
23039 * lib/argp.h: Likewise
23041 2006-09-10 Bruno Haible <bruno@clisp.org>
23043 * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
23044 m4/inttypes_h.m4, m4/uintmax_t.m4.
23046 2006-09-10 Bruno Haible <bruno@clisp.org>
23048 * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
23049 gl_AC_TYPE_UINTMAX_T.
23051 2006-09-10 Bruno Haible <bruno@clisp.org>
23053 * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
23055 2006-09-09 Sergey Poznyakoff <gray@gnu.org.ua>
23057 * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
23058 convention. Text proposed by Bruno Haible.
23059 (struct argp_option): Document the use of N_() wrappers.
23061 * lib/argp-help.c (argp_doc): Split the untranslated doc string on
23062 '\v', and translate the two parts separately, instead of feeding
23063 the whole string to gettext. This allows to exclude
23064 '\v' from the strings visible to the translator by writing doc
23065 strings as N_("..") "\v" N_("..").
23067 2006-09-09 Paul Eggert <eggert@cs.ucla.edu>
23069 * config/srclist.txt: Undo latest change; the bug was fixed.
23071 2006-09-09 Bruno Haible <bruno@clisp.org>
23073 * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
23074 assignments if building a library without libtool.
23075 (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
23076 in func_emit_lib_Makefile_am.
23077 (func_import): When building a static library libfoo.a, arrange to
23078 define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
23079 (func_create_testdir): Likewise.
23080 * modules/gc (configure.ac, Makefile.am): If building statically,
23081 augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
23082 * modules/iconvme (configure.ac, Makefile.am): Likewise.
23083 * modules/striconv (configure.ac, Makefile.am): Likewise.
23084 Based on a suggestion by Ralf Wildenhues.
23086 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
23088 * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
23089 Check for unistd.h too, since Autoconf doesn't assume POSIX.
23092 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
23093 Add year_2050_test to catch glibc bug 2821
23094 <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
23096 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
23097 Prefer #ifdef to #if.
23099 2006-04-02 Paul Eggert <eggert@cs.ucla.edu>
23100 Return from 'main' instead of calling 'exit'.
23102 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
23104 * lib/mktime.c (guess_time_tm): Fix bug where mktime
23105 returned the maximum time_t value rather than (time_t) -1.
23106 Problem originally reported by William Bardwell
23107 <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
23109 * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
23111 * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
23114 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
23116 * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
23119 2006-09-08 Jim Meyering <jim@meyering.net>
23121 Don't make generated files read-only. That would bother too many
23122 people. However, do retain the ability to work when targets are
23123 read-only: remove the destination and temporary files before writing
23124 them (when generated via sed or echo), or by using the -f option for
23125 both cp and mv commands. Suggestion to use -f from Paul Eggert.
23126 * modules/alloca-opt, modules/argz, modules/arpa_inet:
23127 * modules/byteswap, modules/configmake, modules/fcntl:
23128 * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
23129 * modules/localcharset, modules/netinet_in, modules/poll:
23130 * modules/stdbool, modules/stdint, modules/sys_select:
23131 * modules/sys_socket, modules/sys_stat, modules/sysexits:
23133 2006-09-08 Jim Meyering <jim@meyering.net>
23135 Avoid new build failure on FreeBSD 6.0.
23136 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
23137 <sys/param.h> when testing whether getmntinfo uses statvfs. Patch by
23138 Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
23140 2006-09-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23142 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
23144 2006-09-07 Jim Meyering <jim@meyering.net>
23146 Fix global typo in last change: use chmod u-w, not chmod u-x.
23147 Spotted by Paul Eggert and Bruce Korb.
23148 * modules/alloca-opt, modules/argz, modules/arpa_inet:
23149 * modules/byteswap, modules/configmake, modules/fcntl:
23150 * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
23151 * modules/localcharset, modules/netinet_in, modules/poll:
23152 * modules/stdbool, modules/stdint, modules/sys_select:
23153 * modules/sys_socket, modules/sys_stat, modules/sysexits:
23155 2006-09-06 Jim Meyering <jim@meyering.net>
23157 Make generated files be read-only.
23158 * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
23159 Ensure that each generated file is now read-only.
23160 * modules/argz: Likewise.
23161 * modules/arpa_inet: Likewise.
23162 * modules/byteswap: Likewise.
23163 * modules/configmake: Likewise.
23164 * modules/fcntl: Likewise.
23165 * modules/fnmatch: Likewise.
23166 * modules/getopt: Likewise.
23167 * modules/glob: Likewise.
23168 * modules/inttypes: Likewise.
23169 * modules/netinet_in: Likewise.
23170 * modules/poll: Likewise.
23171 * modules/stdbool: Likewise.
23172 * modules/stdint: Likewise.
23173 * modules/sys_select: Likewise.
23174 * modules/sys_socket: Likewise.
23175 * modules/sys_stat: Likewise.
23176 * modules/sysexits: Likewise.
23177 * modules/localcharset: Same as above, but continue using temporary
23178 file named "t-$@" (why different?) rather than the "$@-t" used
23181 * modules/sysexits (Makefile.am): Replace literal occurrences
23182 of "sysexit.h" more readable, and more consistent, "$@".
23184 2006-09-06 Bruno Haible <bruno@clisp.org>
23186 * modules/striconv: New file.
23187 * modules/xstriconv: New file.
23188 * MODULES.html.sh (Internationalization functions): Add striconv,
23191 2006-09-06 Bruno Haible <bruno@clisp.org>
23193 * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
23194 * modules/iconvme (Makefile.am): Likewise. Also handle the case of
23195 not using libtool correctly.
23197 2006-09-06 Bruno Haible <bruno@clisp.org>
23199 * lib/striconv.h: New file.
23200 * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
23202 * lib/xstriconv.h: New file.
23203 * lib/xstriconv.c: New file.
23205 2006-09-06 Bruno Haible <bruno@clisp.org>
23207 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
23210 2006-09-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23212 * lib/argz_.h: Sync from Libtool.
23214 2006-09-04 George Bosilca <bosilca@cs.utk.edu>
23215 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23217 * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
23219 2006-09-05 Davide Angelocola <davide.angelocola@tiscali.it>
23221 * modules/trim: New file.
23223 2006-09-05 Davide Angelocola <davide.angelocola@tiscali.it>
23225 * lib/trim.h: New file.
23226 * lib/trim.c: New file.
23228 2006-09-05 Bruno Haible <bruno@clisp.org>
23230 * MODULES.html.sh (String handling): Add trim.
23232 2006-09-04 Karl Berry <karl@gnu.org>
23234 * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
23235 until next release.
23237 2006-09-03 Bruno Haible <bruno@clisp.org>
23239 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
23242 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
23244 * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
23245 not gl_GETLOADAVG. Omit unneeded semicolons.
23246 Problems reported by Ralf Wildenhues in
23247 <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
23248 (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define. Put
23249 at the end, which is the usual gnulib style.
23251 * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
23252 of doing all the work ourselves.
23253 * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
23254 sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
23256 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
23258 * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
23259 Problem reported by Ralf Wildenhues in
23260 <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
23262 * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
23263 HAVE_STRUCT_STATFS_F_FSTYPENAME.
23265 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
23267 * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
23268 yesterday's patch by changing test -n to test -z.
23270 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
23272 * modules/getloadavg (Files): Add m4/getloadavg.m4.
23273 (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
23274 the former is now obsolescent.
23276 * modules/chdir-long (Depends-on): Add fcntl.
23278 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
23280 * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
23281 obsolescent, and programs should use gnulib instead.
23282 * m4/getloadavg.m4: New file, with contents taken from Autoconf
23283 but with prefixes changed.
23285 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
23287 * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
23288 or stdbool.h, because they might not exist while configuring.
23290 * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
23291 Don't include unistd.h or limits.h; not needed, since chdir-long.h
23293 (O_DIRECTORY): Remove.
23295 2006-08-31 Eric Blake <ebb9@byu.net>
23297 * gnulib-tool: Don't let emacs change spaces to TAB.
23299 2006-08-31 Bruno Haible <bruno@clisp.org>
23301 * gnulib-tool: When calling func_import more than once, do it in a
23303 Reported by Eric Blake <ebb9@byu.net>.
23305 2006-08-31 Bruno Haible <bruno@clisp.org>
23307 * gnulib-tool (nl): Remove variable.
23308 (sed_transform_lib_file): Use more robust test for config-h module.
23309 (func_import): Fix typo in 2006-08-25 patch.
23311 2006-08-31 Bruno Haible <bruno@clisp.org>
23313 * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
23314 specified, augment Makefile.am variables instead of assigning them.
23316 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
23318 Work around a bug in both the Linux and SunOS 64-bit kernels:
23319 nanosleep mishandles sleeps for longer than 2**31 seconds.
23320 Problem reported by Frank v Waveren in
23321 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
23322 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
23323 Check for nanosleep bug.
23324 (LIB_NANOSLEEP): Append clock_gettime library if needed.
23326 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
23328 Work around a bug in both the Linux and SunOS 64-bit kernels:
23329 nanosleep mishandles sleeps for longer than 2**31 seconds.
23330 Problem reported by Frank v Waveren in
23331 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
23332 * lib/nanosleep.c (BILLION): New constant.
23333 (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
23334 (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
23337 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
23339 * modules/nanosleep (Depends-on): Add gettime.
23341 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
23342 and Simon Josefsson <jas@extundo.com>
23343 and Oskar Liljeblad <oskar@osk.mine.nu>
23345 * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
23346 * gnulib-tool (func_import): New license type 'unmodifiable license
23348 * modules/fdl: Use it. Longer description.
23349 * module/gpl, module/lgpl: New files.
23351 2006-08-30 Jim Meyering <jim@meyering.net>
23353 * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
23354 shadowing the parameter.
23356 2006-08-29 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23360 2006-08-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23362 * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
23363 sharing with gnulib. Report by Eric Blake.
23365 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
23367 * modules/isapipe: New file.
23368 * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
23370 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
23372 * modules/configmake (Makefile.am): Add a comment, and omit
23373 the CONFIGMAKE_ prefix from generated macro names. Suggested
23376 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
23378 * m4/isapipe.m4: New file.
23380 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
23382 * lib/isapipe.c, lib/isapipe.h: New files.
23384 2006-08-29 Jim Meyering <jim@meyering.net>
23386 * modules/configmake (Makefile.am): Make configmake.h depend on
23387 Makefile. Otherwise, a stale configmake.h could hang around.
23389 2006-08-29 Eric Blake <ebb9@byu.net>
23391 * lib/error.c (error_at_line, print_errno_message): Match libc, after
23392 resolution of upstream bug 3044.
23394 2006-08-29 Bruno Haible <bruno@clisp.org>
23396 * modules/localcharset (Depends-on): Add configmake.
23397 (Makefile.am): Remove setting of LIBDIR through DEFS.
23399 2006-08-29 Bruno Haible <bruno@clisp.org>
23401 * lib/localcharset.c: Include configmake.h in order to get LIBDIR
23404 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
23406 * modules/fcntl: New file.
23407 * modules/chdir-safer (Depends-on): Add fcntl.
23408 * modules/fts: Likewise.
23409 * modules/mkdir-p: Likewise.
23411 * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
23412 This undoes the most recent change, since we're now addressing the
23413 problem in a different way.
23415 * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
23416 into output, since the output might be called Makefile.am even
23417 if $makefile_name is something different.
23418 (func_import): Use $makefile_am rather than
23419 ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
23422 * modules/inttypes (Files): Add m4/inttypes-h.m4.
23424 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
23426 * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
23427 * m4/stdint.m4 (gl_STDINT_H): ... from here. This undoes the most
23428 recent change to stdint.m4, since we're now addressing the problem in a
23431 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
23433 * m4/fcntl_h.m4: New file.
23435 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
23437 * lib/fcntl_.h: New file.
23438 * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
23440 * lib/dirchownmod.c: Likewise.
23441 * lib/fts.c: Likewise.
23443 * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
23444 Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
23445 * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
23446 just before including <inttypes.h>, to avoid circular inclusion.
23448 2006-08-28 Jim Meyering <jim@meyering.net>
23450 * doc/visibility.texi: Actually read and correct the grammar of the
23451 sentence affected by yesterday's change.
23453 2006-08-28 Eric Blake <ebb9@byu.net>
23455 * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
23458 2006-08-28 Eric Blake <ebb9@byu.net>
23460 * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
23462 2006-08-28 Eric Blake <ebb9@byu.net>
23464 * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
23466 2006-08-28 Bruno Haible <bruno@clisp.org>
23468 * modules/c-strstr: New file, from GNU gettext.
23469 * MODULES.html.sh (String handling): Add c-strstr.
23471 2006-08-28 Bruno Haible <bruno@clisp.org>
23473 * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
23475 Reported by Eric Blake.
23477 2006-08-28 Bruno Haible <bruno@clisp.org>
23479 * lib/vasnprintf.c (EOVERFLOW): Remove definition.
23480 (VASNPRINTF): Return a string of length > INT_MAX without failing.
23481 * lib/vasprintf.c: Include errno.h, limits.h.
23482 (EOVERFLOW): New fallback definition.
23483 (vasprintf): Test here whether the string length is > INT_MAX.
23484 * lib/vsnprintf.c: Include errno.h, limits.h.
23485 (EOVERFLOW): New fallback definition.
23486 (vsnprintf): Fix bug when generated string was too long for the buffer.
23487 Test here whether the string length is > INT_MAX.
23489 2006-08-28 Bruno Haible <bruno@clisp.org>
23491 * lib/inttypes_.h (SCNX*): Remove definitions.
23492 Reported by Eric Blake.
23494 2006-08-28 Bruno Haible <bruno@clisp.org>
23496 * lib/c-strstr.h: New file, from GNU gettext.
23497 * lib/c-strstr.c: New file, from GNU gettext.
23499 2006-08-28 Bruno Haible <bruno@clisp.org>
23501 * gnulib-tool: Reorder some statements.
23503 2006-08-28 Bruno Haible <bruno@clisp.org>
23505 * gnulib-tool: New option --makefile-name.
23506 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
23508 (func_import): Write $makefile_name to the cache file, and read it from
23509 there unless explicitly specified. Use $makefile_name as file name
23510 instead of Makefile.am. Adjust the recommendations accordingly.
23512 2006-08-28 Bruno Haible <bruno@clisp.org>
23514 * gnulib-tool (func_verify_module): Check against misapplying patch.
23516 2006-08-28 Bruno Haible <bruno@clisp.org>
23518 * gnulib-tool (func_relativize, func_relconcat): New functions.
23519 Give an error if --local-dir is given with --update.
23520 Remove trailing slashes from $local_gnulib_dir.
23521 (func_import): Store the relativized $local_gnulib_dir in
23522 gnulib-cache.m4, and read it from there if not specified explicitly.
23524 2006-08-28 Bruno Haible <bruno@clisp.org>
23526 * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
23527 is the current directory. Respect also $local_gnulib_dir.
23529 2006-08-28 Bruno Haible <bruno@clisp.org>
23530 Simon Josefsson <jas@extundo.com>
23533 * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
23535 2006-08-27 Jim Meyering <jim@meyering.net>
23537 * doc/visibility.texi: Remove duplicate word: "pointer".
23539 2006-08-26 Bruno Haible <bruno@clisp.org>
23541 * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
23542 Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
23543 (Makefile.am): Create inttypes.h from inttypes_.h.
23544 * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
23546 * modules/imaxabs: New file.
23548 * modules/imaxdiv: New file.
23550 2006-08-26 Bruno Haible <bruno@clisp.org>
23552 * m4/inttypes.m4: New file.
23553 * m4/_inttypes_h.m4: Remove file.
23554 * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
23556 * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
23558 * m4/imaxabs.m4: New file.
23560 * m4/imaxdiv.m4: New file.
23562 2006-08-26 Bruno Haible <bruno@clisp.org>
23564 * lib/inttypes_.h: New file.
23565 * lib/inttypes.h: Remove file.
23566 * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
23568 * lib/imaxabs.c: New file.
23570 * lib/imaxdiv.c: New file.
23572 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
23574 New config-h module, so that "make" output needn't be cluttered
23575 by -DHAVE_CONFIG_H.
23576 * MODULES.html.sh (Support for building libraries and executables):
23578 * modules/config-h: New file.
23579 * gnulib-tool (nl, sed_transform_lib_file): New vars.
23580 (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
23581 the config-h module is used.
23583 New configmake module, so that "make" output needn't be cluttered
23584 by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
23585 * MODULES.html.sh (Support for building libraries and executables):
23587 * modules/configmake: New file.
23589 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
23591 * m4/config-h.m4: New file.
23593 2006-08-24 Paul Eggert <eggert@cs.ucla.edu>
23595 * config/srclist.txt: Add elisp-comp.
23597 2006-08-24 Paul Eggert <eggert@cs.ucla.edu>
23599 * MODULES.html.sh (Support for building libraries and executables):
23601 * build-aux/elisp-comp: New file.
23602 * modules/elisp-comp: New file.
23604 2006-08-24 Bruno Haible <bruno@clisp.org>
23606 * gnulib-tool (func_create_testdir): Use non-default values of
23607 sourcebase and m4base.
23609 2006-08-24 Bruno Haible <bruno@clisp.org>
23611 * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
23614 2006-08-23 Paul Eggert <eggert@cs.ucla.edu>
23616 * modules/openat (Depends-on): Add lchown.
23618 2006-08-23 Bruno Haible <bruno@clisp.org>
23620 * gnulib-tool (func_import, func_create_testdir): Emit an invocation
23621 of gl_LOCK_EARLY instead of gl_LOCK.
23623 2006-08-23 Bruno Haible <bruno@clisp.org>
23625 * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
23627 Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
23629 2006-08-23 Bruno Haible <bruno@clisp.org>
23631 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
23634 * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
23635 (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
23636 (gl_LOCK): New macro.
23638 2006-08-22 Simon Josefsson <jas@extundo.com>
23640 * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
23643 2006-08-22 Simon Josefsson <jas@extundo.com>
23645 * MODULES.html.sh: Add "Support for maintaining and release
23648 * build-aux/gnupload: New file, from coreutils.
23650 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
23652 Avoid the need for AC_LIBSOURCES in m4 macros.
23653 * modules/arcfour (EXTRA_DIST): Add arcfour.h.
23654 * modules/arctwo (EXTRA_DIST): Add arctwo.h.
23655 * modules/check-version (EXTRA_DIST): Add check-version.h.
23656 * modules/crc (EXTRA_DIST): Add crc.h.
23657 * modules/des (EXTRA_DIST): Add des.h.
23658 * modules/gc (EXTRA_DIST): Add gc.h.
23659 * modules/getdelim (EXTRA_DIST): Add getdelim.h.
23660 * modules/getline (EXTRA_DIST): Add getline.h.
23661 * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
23662 * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
23663 * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
23664 * modules/md2 (EXTRA_DIST): Add md2.h.
23665 * modules/md4 (EXTRA_DIST): Add md4.h.
23666 * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
23667 * modules/read-file (EXTRA_DIST): Add read-file.h.
23668 * modules/readline (EXTRA_DIST): Add readline.h.
23669 * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
23670 rijndael-api-fst.h.
23672 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
23674 * m4/rijndael.m4 (gl_ARCFOUR):
23675 * m4/arctwo.m4 (gl_ARCTWO):
23676 * m4/check-version.m4 (gl_CHECK_VERSION):
23677 * m4/crc.m4 (gl_CRC):
23678 * m4/des.m4 (gl_DES):
23679 * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
23680 * m4/gc.m4 (gl_GC):
23681 * m4/getdelim.m4 (gl_FUNC_GETDELIM):
23682 * m4/getline.m4 (gl_FUNC_GETLINE):
23683 * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
23684 * m4/hmac-md5.m4 (gl_HMAC_MD5):
23685 * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
23686 * m4/md2.m4 (gl_MD2):
23687 * m4/md4.m4 (gl_MD4):
23688 * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
23689 * m4/read-file.m4 (gl_FUNC_READ_FILE):
23690 * m4/readline.m4 (gl_FUNC_READLINE):
23691 * m4/rijndael.m4 (gl_RIJNDAEL):
23692 Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
23693 to get the necessary .h files and whatnot.
23695 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
23697 * config/srclist.txt: Remove gnupload, since coreutils now syncs from
23698 gnulib rather than the other way around.
23699 * config/srclistvars.sh (COREUTILS): Remove.
23701 2006-08-22 Jim Meyering <jim@meyering.net>
23703 * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
23705 * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
23707 2006-08-22 Eric Blake <ebb9@byu.net>
23709 * modules/regexprops-generic: New file.
23710 * MODULES.html.sh (Support for building documentation): List it.
23712 2006-08-22 Eric Blake <ebb9@byu.net>
23714 * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
23715 * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
23716 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
23717 * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
23719 2006-08-22 Bruno Haible <bruno@clisp.org>
23721 * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
23722 and lib_LTLIBRARIES like the other lib_* variables.
23724 2006-08-22 Bruno Haible <bruno@clisp.org>
23726 * build-aux/x-to-1.in: New file, from GNU gettext.
23728 2006-08-22 Bruno Haible <bruno@clisp.org>
23730 * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
23733 2006-08-22 Bruno Haible <bruno@clisp.org>
23735 * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
23738 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
23741 * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
23743 Problem reported by Bruno Haible.
23745 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
23747 Avoid the need for AC_LIBSOURCES in m4 macros.
23748 * modules/acl (EXTRA_DIST): Add acl.h.
23749 * modules/argmatch (Files): Add m4/argmatch.m4.
23750 (configure.ac): Add gl_ARGMATCH.
23751 (EXTRA_DIST): Renamed from lib_SOURCES, for
23752 consistency with the other modules. Remove argmatch.c.
23753 * modules/backupfile (EXTRA_DIST): Add backupfile.h.
23754 * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
23755 * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
23756 * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
23757 * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
23758 * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
23759 * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
23760 * modules/cloexec (EXTRA_DIST): Add cloexec.h.
23761 * modules/close-stream (EXTRA_DIST): Add close-stream.h.
23762 * modules/closeout (EXTRA_DIST): Add closeout.h.
23763 * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
23764 * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
23765 * modules/dirfd (EXTRA_DIST): Add dirfd.h.
23766 * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES. Add
23767 dirname.h; remove basename.c and stripslash.c.
23768 * modules/exclude (EXTRA_DIST): Add exclude.h.
23769 * modules/exitfail (EXTRA_DIST): Add exitfail.h.
23770 * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
23771 * modules/file-type (EXTRA_DIST): Add file-type.h.
23772 * modules/filemode (EXTRA_DIST): Add filemode.h.
23773 * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
23774 * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
23775 * modules/fpending (EXTRA_DIST): Add __fpending.h.
23776 * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
23777 * modules/fsusage (EXTRA_DIST): Add fsusage.h.
23778 * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
23779 * modules/getcwd (EXTRA_DIST): Add getcwd.h.
23780 * modules/getdate (EXTRA_DIST): Add getdate.c.
23781 * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
23782 * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
23783 * modules/getpass (EXTRA_DIST): Add getpass.h.
23784 * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
23785 * modules/group-member (EXTRA_DIST): Add group-member.h.
23786 * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
23787 * modules/hash (EXTRA_DIST): Add hash.h.
23788 * modules/human (EXTRA_DIST): Add human.h.
23789 * modules/inttypes (EXTRA_DIST): Add inttypes.h.
23790 * modules/lchmod (EXTRA_DIST): Add lchmod.h.
23791 * modules/lchown (EXTRA_DIST): Add lchown.h.
23792 * modules/long-options (EXTRA_DIST): Add long-options.h.
23793 * modules/lstat (EXTRA_DIST): Add lstat.h.
23794 * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
23795 * modules/memcoll (EXTRA_DIST): Add memcoll.h.
23796 * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
23797 * modules/memrchr (EXTRA_DIST): Add memrchr.h.
23798 * modules/memxor (EXTRA_DIST): Add memxor.h.
23799 * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
23800 * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
23801 * modules/mountlist (EXTRA_DIST): Add mountlist.h.
23802 * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
23803 * modules/pathmax (EXTRA_DIST): Add pathmax.h.
23804 * modules/physmem (EXTRA_DIST): Add physmem.h.
23805 * modules/posixtm (EXTRA_DIST): Add posixtm.h.
23806 * modules/posixver (EXTRA_DIST): Add posixver.h.
23807 * modules/quote (EXTRA_DIST): Add quote.h.
23808 * modules/quotearg (EXTRA_DIST): Add quotearg.h.
23809 * modules/readtokens (EXTRA_DIST): Add readtokens.h.
23810 * modules/readutmp (EXTRA_DIST): Add readutmp.h.
23811 * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
23812 regex_internal.h regexec.c.
23813 * modules/safe-read (EXTRA_DIST): Add safe-read.h.
23814 * modules/safe-write (EXTRA_DIST): Add safe-write.h.
23815 * modules/same (EXTRA_DIST): Add same.h.
23816 * modules/same-inode (EXTRA_DIST): Add same-inode.h.
23817 * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
23818 * modules/savedir (EXTRA_DIST): Add savedir.h.
23819 * modules/sha1 (EXTRA_DIST): Add sha1.h.
23820 * modules/sig2str (EXTRA_DIST): Add sig2str.h.
23821 * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
23822 * modules/stat-time (EXTRA_DIST): Add stat-time.h.
23823 * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
23824 * modules/strdup (EXTRA_DIST): Add strdup.h.
23825 * modules/strftime (EXTRA_DIST): Add strftime.h.
23826 * modules/strndup (EXTRA_DIST): Add strndup.h.
23827 * modules/strnlen (EXTRA_DIST): Add strnlen.h.
23828 * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
23829 * modules/time_r (EXTRA_DIST): Add time_r.h.
23830 * modules/timespec (EXTRA_DIST): Add timespec.h.
23831 * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
23832 * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
23833 * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
23834 * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
23835 * modules/userspec (EXTRA_DIST): Add userspec.h.
23836 * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
23837 * modules/utimens (EXTRA_DIST): Add utimens.h.
23838 * modules/xalloc (EXTRA_DIST): Add xalloc.h.
23839 * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
23840 * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
23841 * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
23842 * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
23843 * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
23844 * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
23845 * modules/yesno (EXTRA_DIST): Add yesno.h.
23847 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
23849 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
23851 * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
23852 * m4/dev-ino.m4, same-inode.m4: Remove.
23854 * m4/_inttypes_h.m4 (gl_INTTYPES_H):
23855 * m4/acl.m4 (AC_FUNC_ACL):
23856 * m4/backupfile.m4 (gl_BACKUPFILE):
23857 * m4/c-strtod.m4 (gl_C99_STRTOLD):
23858 * m4/canon-host.m4 (gl_CANON_HOST):
23859 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
23860 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
23861 * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
23862 * m4/cloexec.m4 (gl_CLOEXEC):
23863 * m4/close-stream.m4 (gl_CLOSE_STREAM):
23864 * m4/closeout.m4 (gl_CLOSEOUT):
23865 * m4/dirfd.m4 (gl_FUNC_DIRFD):
23866 * m4/dirname.m4 (gl_DIRNAME):
23867 * m4/exclude.m4 (gl_EXCLUDE):
23868 * m4/exitfail.m4 (gl_EXITFAIL):
23869 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
23870 * m4/file-type.m4 (gl_FILE_TYPE):
23871 * m4/filemode.m4 (gl_FILEMODE):
23872 * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
23873 * m4/fpending.m4 (gl_FUNC_FPENDING):
23874 * m4/fprintftime.m4 (gl_FPRINTFTIME):
23875 * m4/fts.m4 (gl_FUNC_FTS):
23876 * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
23877 * m4/getdate.m4 (gl_GETDATE):
23878 * m4/gethrxtime.m4 (gl_GETHRXTIME):
23879 * m4/getpagesize.m4 (gl_GETPAGESIZE):
23880 * m4/getpass.m4 (gl_FUNC_GETPASS):
23881 * m4/gettime.m4 (gl_GETTIME):
23882 * m4/getugroups.m4 (gl_GETUGROUPS):
23883 * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
23884 * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
23885 * m4/hard-locale.m4 (gl_HARD_LOCALE):
23886 * m4/hash.m4 (gl_HASH):
23887 * m4/idcache.m4 (gl_IDCACHE):
23888 * m4/lchmod.m4 (gl_FUNC_LCHMOD):
23889 * m4/lchown.m4 (gl_FUNC_LCHOWN):
23890 * m4/long-options.m4 (gl_LONG_OPTIONS):
23891 * m4/lstat.m4 (gl_FUNC_LSTAT):
23892 * m4/md5.m4 (gl_MD5):
23893 * m4/memcasecmp.m4 (gl_MEMCASECMP):
23894 * m4/memcoll.m4 (gl_MEMCOLL):
23895 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
23896 * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
23897 * m4/memxor.m4 (gl_MEMXOR):
23898 * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
23899 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
23900 * m4/modechange.m4 (gl_MODECHANGE):
23901 * m4/mountlist.m4 (gl_MOUNTLIST):
23902 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
23903 * m4/openat.m4 (gl_FUNC_OPENAT):
23904 * m4/pathmax.m4 (gl_PATHMAX):
23905 * m4/physmem.m4 (gl_PHYSMEM):
23906 * m4/posixtm.m4 (gl_POSIXTM):
23907 * m4/posixver.m4 (gl_POSIXVER):
23908 * m4/quote.m4 (gl_QUOTE):
23909 * m4/quotearg.m4 (gl_QUOTEARG):
23910 * m4/readtokens.m4 (gl_READTOKENS):
23911 * m4/readutmp.m4 (gl_READUTMP):
23912 * m4/regex.m4 (gl_REGEX):
23913 * m4/safe-read.m4 (gl_SAFE_READ):
23914 * m4/safe-write.m4 (gl_SAFE_WRITE):
23915 * m4/same.m4 (gl_SAME):
23916 * m4/save-cwd.m4 (gl_SAVE_CWD):
23917 * m4/savedir.m4 (gl_SAVEDIR):
23918 * m4/settime.m4 (gl_SETTIME):
23919 * m4/sha1.m4 (gl_SHA1):
23920 * m4/sig2str.m4 (gl_FUNC_SIG2STR):
23921 * m4/stat-macros.m4 (gl_STAT_MACROS):
23922 * m4/stat-time.m4 (gl_STAT_TIME):
23923 * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
23924 * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
23925 * m4/strdup.m4 (gl_FUNC_STRDUP):
23926 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
23927 * m4/strndup.m4 (gl_FUNC_STRNDUP):
23928 * m4/strnlen.m4 (gl_FUNC_STRNLEN):
23929 * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
23930 * m4/time_r.m4 (gl_TIME_R):
23931 * m4/timespec.m4 (gl_TIMESPEC):
23932 * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
23933 * m4/unlinkdir.m4 (gl_UNLINKDIR):
23934 * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
23935 * m4/userspec.m4 (gl_USERSPEC):
23936 * m4/utimecmp.m4 (gl_UTIMECMP):
23937 * m4/utimens.m4 (gl_UTIMENS):
23938 * m4/xalloc.m4 (gl_XALLOC):
23939 * m4/xgetcwd.m4 (gl_XGETCWD):
23940 * m4/xnanosleep.m4 (gl_XNANOSLEEP):
23941 * m4/xreadlink.m4 (gl_XREADLINK):
23942 * m4/xstrtod.m4 (gl_XSTRTOD):
23943 * m4/yesno.m4 (gl_YESNO):
23944 Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
23945 to get the necessary .h files and whatnot.
23947 2006-08-21 Mark D. Baushke <mdb@gnu.org>
23948 Bruno Haible <bruno@clisp.org>
23950 * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
23951 /bin/sh understanding of '!' conditional negation.
23953 2006-08-21 Jim Meyering <jim@meyering.net>
23955 * modules/openat (Depends-on): Really alphabetize.
23957 * modules/acl (Depends-on): Add error and quote.
23959 * check-module (find_included_lib_files): Add at-func.c to the
23960 ok-to-include-more-than-once white list.
23962 * modules/openat (Depends-on): Add lstat. Alphabetize.
23964 2006-08-21 Bruno Haible <bruno@clisp.org>
23966 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
23967 Emit a pkgdata_DATA variable only if some snippets add contents to it.
23968 Reported by Martin Lambers <marlam@marlam.de>.
23970 2006-08-21 Bruno Haible <bruno@clisp.org>
23972 * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
23973 specify an installation location, don't emit a noinst_LIBRARIES or
23974 noinst_LTLIBRARIES assignment.
23976 2006-08-21 Bruno Haible <bruno@clisp.org>
23979 * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
23980 BeOS has mbrtowc() but no <wctype.h>.
23982 2006-08-21 Bruno Haible <bruno@clisp.org>
23985 * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
23988 2006-08-21 Bruno Haible <bruno@clisp.org>
23991 * lib/mbchar.h: Include <wctype.h> only if it exists.
23993 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
23995 Remove files that are no longer needed by their respective modules.
23996 * m4/obstack.m4: Remove.
23997 * m4/strerror_r.m4: Remove.
23998 * m4/uint32_t.m4: Remove.
23999 * m4/uintptr_t.m4: Remove.
24000 * m4/ullong_max.m4: Remove.
24001 * m4/xstrtoimax.m4: Remove.
24002 * m4/xstrtoumax.m4: Remove.
24004 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
24005 gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
24006 dependencies now capture this.
24008 * m4/cycle-check.m4 (gl_CYCLE_CHECK):
24009 Do not use AC_LIBSOURCES, since gnulib modules now do this.
24010 * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
24011 * m4/human.m4 (gl_HUMAN): Likewise.
24012 * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
24013 * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
24015 * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
24017 * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
24018 gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
24020 * m4/human.m4 (gl_HUMAN): Likewise.
24021 * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
24022 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
24023 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
24024 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
24025 * m4/xstrtol (gl_XSTRTOL): Likewise.
24027 * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
24028 AC_TYPE_LONG_LONG_INT.
24029 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
24030 * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
24031 * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
24032 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
24034 * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
24037 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
24038 (gl_PREREQ_XSTRTOUL): Remove.
24040 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
24042 * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
24045 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
24047 Add and change modules to make it easier for coreutils to use
24049 * modules/backupfile (Files): Remove m4/d-ino.m4.
24050 (Depends-on): Add d-ino.
24051 * modules/cycle-check (Depends-on): Add stdint.
24052 (lib_SOURCES): Add cycle-check.h.
24053 * modules/d-ino: New module.
24054 * modules/d-type: New module.
24055 * modules/error (Files): Remove m4/strerror_r.m4.
24056 * modules/filemode (Files): Add m4/st_dm_mode.m4.
24057 * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
24058 m4/inttypes_h.m4, m4/uintmax_t.m4.
24059 (Depends-on): Add stdint.
24060 (lib_SOURCES): Add fsusage.h.
24061 * modules/getcwd (Files): Remove d-ino.m4.
24062 (Depends-on): Add d-ino.
24063 * modules/getndelim2 (Depends-on): Add stdint.
24064 * modules/glob (Files): Remove m4/d-type.m4.
24065 (Depends-on): Add d-type.
24066 * modules/host-os: New module.
24067 * modules/human (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
24068 m4/inttypes_h.m4, m4/uintmax_t.m4.
24069 * Depends-on: Add stdint.
24070 (lib_SOURCES): Add human.h.
24071 * modules/inttostr (Files): Remove m4/intmax_t.m4,
24072 m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
24073 m4/uintmax_t.m4, m4/ulonglong.m4.
24074 (Depends-on): Add stdint.
24075 (EXTRA_DIST): Add inttostr.h.
24076 * modules/lchmod: New module.
24077 * modules/link-follow: New module.
24078 * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
24079 (Depends-on): Add lchmod.
24080 * modules/mkstemp (Files): Remove m4/ulonglong.m4,
24081 m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
24082 (Depends-on): Add stdint.
24083 * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
24084 m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
24085 (Depends-on): Add stdint.
24086 (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
24087 * modules/perl: New module.
24088 * modules/regex (Depends-on): Add stdint.
24089 * modules/rmdir-errno: New module.
24090 * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
24092 (Depends-on): Add stdint.
24093 * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
24095 (Depends-on): Add stdint.
24096 * modules/unlink-busy: New module.
24097 * modules/utimecmp (Depends-on): Add stdint.
24098 * modules/uptime: New module.
24099 * modules/winsz-ioctl: New module.
24100 * modules/winsz-termios: New module.
24101 * modules/xnanosleep (Depends-on): Add nanosleep.
24102 * modules/ullong_max: Remove.
24103 * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
24104 (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
24105 * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
24106 m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
24107 (Depends-on): Add inttypes.
24108 (lib_SOURCES): Add xstrtol.h.
24109 * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
24110 (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
24111 * MODULES.html.sh: Move 'assert' into the assert section.
24112 Move 'dummy' into the linking section.
24114 Add section for compatibility checks for POSIX:2001 functions,
24115 and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
24116 winsz-ioctl, and winsz-termios into it.
24118 Add top-level Misc section and put host-os, perl, and uptime
24121 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
24123 * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
24124 now assume the stdint module. Do not include inttypes.h.
24125 * lib/fsusage.h: Likewise.
24126 * lib/getndelim2.c: Likewise.
24127 * lib/human.h: Likewise.
24128 * lib/inttostr.h: Likewise.
24129 * lib/obstack.c: Likewise.
24130 * lib/regex_internal.h: Likewise.
24131 * lib/tempname.c: Likewise.
24132 * lib/utimecmp.c: Likewise.
24133 * lib/xstrtol.h: Likewise.
24135 * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
24137 * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
24138 e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
24139 * lib/xtime.h: Likewise.
24141 2006-08-19 Paul Eggert <eggert@cs.ucla.edu>
24143 * modules/openat (Files): Add lib/fchmodat.c.
24144 Fixes problem reported by Jay Youngman.
24146 2006-08-19 Paul Eggert <eggert@cs.ucla.edu>
24148 * lib/fchmodat.c: New file, from coreutils. This was inadvertently
24149 omitted in the 2006-08-17 update. Problem reported by Jay Youngman.
24151 2006-08-18 Paul Eggert <eggert@cs.ucla.edu>
24152 Bruno Haible <bruno@clisp.org>
24154 * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
24155 and is a script that invokes bison. Tighten the code. Add comments.
24157 2006-08-18 Jim Meyering <jim@meyering.net>
24159 * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
24160 CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
24161 gettime.c. Gabor Z. Papp reported that gethrxtime-using programs
24162 failed to link due to unresolved clock_gettime on a linux-2.4.x system.
24164 2006-08-18 Bruno Haible <bruno@clisp.org>
24166 * modules/bison-i18n: New file.
24167 * MODULES.html.sh (Internationalization functions): Add it.
24169 2006-08-18 Bruno Haible <bruno@clisp.org>
24171 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
24172 sys/statvfs.h. When getmntinfo was found, check its declaration and
24173 set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
24175 2006-08-18 Bruno Haible <bruno@clisp.org>
24177 * m4/bison-i18n.m4: New file, from bison.
24179 2006-08-18 Bruno Haible <bruno@clisp.org>
24181 * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
24182 (ME_DUMMY): Treat "kernfs" as a dummy.
24183 (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
24185 2006-08-17 Paul Eggert <eggert@cs.ucla.edu>
24187 Update from coreutils.
24189 2006-08-15 Jim Meyering <jim@meyering.net>
24191 * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
24193 2006-01-17 Jim Meyering <jim@meyering.net>
24195 * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
24197 2006-01-11 Jim Meyering <jim@meyering.net>
24199 * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
24200 Check for the lchmod function.
24202 2006-08-17 Paul Eggert <eggert@cs.ucla.edu>
24204 Update from coreutils.
24206 * lib/__fpending.h: Add copyright notice.
24207 * lib/fprintftime.h: Likewise.
24208 * lib/savedir.c: Use (C) in copyright notice.
24209 * lib/savedir.h: Likewise.
24211 2006-08-15 Jim Meyering <jim@meyering.net>
24213 * lib/at-func.c: New file, with the logic of all emulated at-functions.
24214 * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
24215 in support of the EXPECTED_ERRNO macro.
24216 * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
24217 definitions. Instead, define the appropriate symbols and include
24219 * lib/mkdirat.c (mkdirat): Likewise.
24220 * lib/fchmodat.c (fchmodat): Likewise.
24221 (ENOSYS): Remove definition.
24222 * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
24223 it. Don't include "unistd--.h" -- it wasn't ever used.
24225 2006-01-17 Jim Meyering <jim@meyering.net>
24227 Rewrite fts.c not to change the current working directory,
24228 by using openat, fstatat, fdopendir, etc..
24230 * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
24231 (HAVE_OPENAT_SUPPORT): Define.
24232 [_LIBC] (fchdir): Don't undef or define; no longer used.
24233 (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
24234 Now, this `function' always succeeds, and consumes its file descriptor
24235 parameter -- so callers must not close such FDs. Update callers.
24236 (diropen_fd, opendirat, cwd_advance_fd): New functions.
24237 (diropen): Add parameter, SP. Adjust all callers.
24238 Implement using diropen_fd, rather than open.
24239 (fts_open): Initialize new member, fts_cwd_fd.
24240 Remove fts_rft-setting code.
24241 (fts_close): Close fts_cwd_fd, if necessary.
24242 (__opendir2): Define in terms of opendir or opendirat,
24243 depending on whether the FST_NOCHDIR flag is set.
24244 (fts_build): Since fts_safe_changedir consumes its FD, and since
24245 this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
24246 and close the dup'd file descriptor upon failure.
24247 (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
24248 (fts_safe_changedir): Tweak semantics to reflect that this function
24249 now calls cwd_advance_fd and hence consumes its FD argument.
24250 * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
24251 [struct FTS] (fts_rft): Remove now-unused member.
24252 [struct FTS] (fts_cycle.state): Improve comment.
24254 * lib/openat.c (openat_needs_fchdir): New function.
24255 * lib/openat.h (openat_needs_fchdir): Declare it.
24257 2006-08-16 Paul Eggert <eggert@cs.ucla.edu>
24259 * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
24260 Problem and fix reported by Pádraig Brady in
24261 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
24263 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
24265 * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
24267 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
24269 * lib/memcoll.c (memcoll): Optimize for the common case where the
24270 arguments are bytewise equal.
24272 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
24274 * doc/regexprops-generic.texi: Add a copyright notice.
24276 2006-08-15 Bruno Haible <bruno@clisp.org>
24278 * modules/tmpdir (License): Change to LGPL.
24280 2006-08-15 Bruno Haible <bruno@clisp.org>
24282 * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
24285 2006-08-14 Simon Josefsson <jas@extundo.com>
24287 * config/srclist.txt: Add gnupload.
24289 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
24291 Change copyright notice from LGPL 2 to GPL 2, since that's the
24292 standard form used in the gnulib repository.
24293 * tests/test-lock.c: Likewise.
24294 * tests/test-stdint.c: Likewise.
24295 * tests/test-tls.c: Likewise.
24297 * users.txt: Add bison, diffutils, libprelude, prelude-lml,
24298 prelude-manager. User shorter URLs for GNU projects, without '?'.
24299 Add copyright notice.
24301 * check-module: Add copyright notice. Output a copyright
24302 notice if "--version" is specified.
24303 * modules/COPYING: New file.
24304 * tests/test-getaddrinfo.c: Add copyright notice.
24305 * tests/test-verify.c: Likewise.
24307 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
24309 Change copyright notice from LGPL 2 to GPL 2, since that's the
24310 standard form used in the gnulib repository.
24311 * lib/lock.c: LGPL -> GPL.
24312 * lib/lock.h: Likewise.
24313 * lib/strnlen1.c: Likewise.
24314 * lib/strnlen1.h: Likewise.
24315 * lib/tls.c: Likewise.
24316 * lib/tls.h: Likewise.
24317 * lib/tmpdir.c: Likewise.
24319 * lib/TODO: Remove; this belongs only in coreutils.
24321 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
24323 Add copyright notices to long-enough files that lack them, since
24324 otherwise the files aren't clearly free. Use the same notice that
24325 getdate.texi already uses.
24326 * doc/alloca-opt.texi: Add copyright notice.
24327 * doc/alloca.texi: Likewise.
24328 * doc/ctime.texi: Likewise.
24329 * doc/functions.texi: Likewise.
24330 * doc/gcd.texi: Likewise.
24331 * doc/gnulib-tool.texi: Likewise.
24332 * doc/inet_ntoa.texi: Likewise.
24333 * doc/visibility.texi: Likewise.
24335 * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
24336 * doc/quote.texi: Add copyright notice.
24338 * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
24339 4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B. SunOS 4.1.3
24340 was Solaris 1.1A. Remove space before B in Solaris 1.1.1B.
24341 Mention SunOS 5.11. Mention that everything before SunOS 5.7
24342 is now obsolete, and give a pointer to the Sun list.
24343 Add copyright notice.
24345 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
24347 * config/srclistvars.sh: Add copyright notice.
24349 2006-08-14 Eric Blake <ebb9@byu.net>
24351 Import the following change from libc:
24353 2006-08-12 Ulrich Drepper <drepper@redhat.com>
24356 * lib/misc/error.c: Add space between program name and message if file
24359 2006-08-12 Karl Berry <karl@gnu.org>
24361 * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
24362 remove, these originate in gnulib now.
24364 2006-08-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24366 * doc/Makefile (standards.info standards.html standards.dvi):
24367 Also depend on make-stds.texi.
24369 2006-08-11 Paul Eggert <eggert@cs.ucla.edu>
24371 * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
24372 HAVE_PIPE. Fix a file descriptor leak when fd_safer fails.
24374 * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
24375 in wchar_t. Problem reported by Eric Blake.
24377 * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
24378 LEN is smaller than SIZE. Suggested by Bruno Haible.
24379 Also, help the compiler to keep LEN in a register.
24381 2006-08-11 Eric Blake <ebb9@byu.net>
24383 * users.txt: Sort. Add tar.
24385 2006-08-11 Bruno Haible <bruno@clisp.org>
24387 * users.txt: New file.
24389 2006-08-11 Bruno Haible <bruno@clisp.org>
24391 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
24392 before <wchar.h>. Needed for OSF/1 and BSD/OS.
24394 2006-08-10 Paul Eggert <eggert@cs.ucla.edu>
24396 * modules/snprintf (Depends-on): Remove minmax.
24397 (Maintainer): Add self and Bruno.
24399 2006-08-10 Paul Eggert <eggert@cs.ucla.edu>
24401 * lib/.cppi-disable: Add snprintf.h, socket_.h.
24402 * lib/snprintf.c: Include <errno.h> and <limits.h>.
24403 (EOVERFLOW): Define if the system does not.
24404 Do not include "minmax.h"; it wasn't used.
24405 (snprintf): Don't assume size_t promotes to an unsigned type.
24406 Fix bug when generated string was too long for the buffer: the
24407 buffer's contents are supposed to be the initial prefix of the
24408 output. Don't assume vasnprintf returns EOVERFLOW if the size
24409 exceeds INT_MAX; do the check ourselves.
24411 Import the following changes from libc:
24413 2006-06-02 Jakub Jelinek <jakub@redhat.com>
24415 * lib/posix/regex_internal.c (re_string_skip_chars): If no character
24416 has been converted at all, set *last_wc to WEOF. If mbrtowc failed,
24417 set wc to the byte which couldn't be converted.
24418 (re_string_reconstruct): Don't clear valid_raw_len before calling
24419 re_string_skip_chars. If wc is WEOF after re_string_skip_chars, set
24420 tip_context using re_string_context_at.
24422 2006-05-02 Ulrich Drepper <drepper@redhat.com>
24424 * lib/posix/regex.h: g++ still cannot handled [restrict].
24426 2006-04-21 Ulrich Drepper <drepper@redhat.com>
24428 * lib/posix/regex.h: Remove special handling for VMS.
24430 2006-08-10 Jim Meyering <jim@meyering.net>
24432 * modules/same-inode: New module.
24433 * modules/dev-ino: New module.
24434 * modules/cycle-check: Depend on these modules, rather than simply
24435 including their .h files.
24436 (Makefile.am): Don't list cycle-check.[ch] here, now that they're
24437 required via m4/cycle-check.m4.
24438 * modules/same: Depend on new same-inode module, rather than
24439 including same-inode.h.
24440 * modules/chdir-safer: New file.
24442 * modules/chown (Depends-on): Add stat-macros.
24444 2006-08-10 Jim Meyering <jim@meyering.net>
24446 * m4/cycle-check.m4: New file.
24447 Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
24448 * m4/dev-ino.m4, m4/same-inode.m4: New files.
24450 2006-08-10 Eric Blake <ebb9@byu.net>
24452 * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
24453 in from original proposal.
24455 2006-08-10 Eric Blake <ebb9@byu.net>
24456 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24458 * gnulib-tool (func_import): Detect unexpanded macros in gnulib
24461 2006-08-10 Bruno Haible <bruno@clisp.org>
24463 * gnulib-tool (func_create_testdir): Detect unexpanded macros here
24466 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
24468 Sync from coreutils.
24470 2006-07-19 Mike Frysinger <vapier@gentoo.org>
24472 * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
24473 Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
24475 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
24477 * modules/restrict: Remove; no longer needed now that we assume
24478 Autoconf 2.59 or later.
24479 * MODULES.html.sh: Remove 'restrict'.
24480 * modules/argp (Depends-on): Remove 'restrict'.
24481 * modules/base64 (Depends-on): Likewise.
24482 * modules/gc (Depends-on): Likewise.
24483 * modules/getaddrinfo (Depends-on): Likewise.
24484 * modules/glob (Depends-on): Likewise.
24485 * modules/inet_ntop (Depends-on): Likewise.
24486 * modules/inet_pton (Depends-on): Likewise.
24487 * modules/memxor (Depends-on): Likewise.
24488 * modules/regex (Depends-on): Likewise.
24489 * modules/strtok_r (Depends-on): Likewise.
24490 * modules/time_r (Depends-on): Likewise.
24492 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
24494 * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
24495 * m4/gc.m4 (gl_PREREQ_GC): Likewise.
24496 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
24497 * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
24498 * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
24499 * m4/memxor.m4 (gl_MEMXOR): Likewise.
24500 * m4/restrict.m4: Remove; no longer needed. All remaining uses of
24501 gl_C_RESTRICT replaced by AC_C_RESTRICT.
24503 Merge from coreutils.
24504 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
24505 gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
24506 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
24507 * m4/time_r.m4 (gl_TIME_R): Likewise.
24509 2006-08-09 Karl Berry <karl@gnu.org>
24511 * config/srclist.txt: no more gettext-tools, per Bruno.
24513 2006-08-08 Eric Blake <ebb9@byu.net>
24515 * modules/verror: New module.
24516 * MODULES.html.sh: Document it.
24518 2006-08-08 Eric Blake <ebb9@byu.net>
24520 * lib/verror.h, lib/verror.c: New files.
24522 2006-08-08 Eric Blake <ebb9@byu.net>
24524 * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
24525 verror_at_line output complies with GNU Coding Standards even when
24528 2006-08-07 Bruno Haible <bruno@clisp.org>
24530 * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
24532 Reported by Ralf Wildenhues.
24534 2006-08-07 Bruno Haible <bruno@clisp.org>
24536 * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
24537 in an AC_DEFUN. Needed so that the autoconf snippets can use
24540 2006-08-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24542 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
24543 Initialize pkgdata_DATA.
24544 * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
24547 2006-08-06 Eric Blake <ebb9@byu.net>
24549 * lib/error.h: Fold in some upstream changes from glibc.
24550 * lib/error.c: Likewise.
24552 2006-08-04 Bruno Haible <bruno@clisp.org>
24554 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
24555 Make the mostlyclean-local rule depend on mostlyclean-generic.
24556 Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
24558 2006-07-31 Bruno Haible <bruno@clisp.org>
24560 * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
24561 <stdlib.h>, <string.h>.
24563 2006-07-30 Bruno Haible <bruno@clisp.org>
24565 * modules/readlink (License): Change to LGPL.
24567 2006-07-30 Bruno Haible <bruno@clisp.org>
24569 * modules/javaversion (Makefile.am): Distribute javaversion.java and
24570 javaversion.class. Also install javaversion.class in $(pkgdatadir) and
24571 set PKGDATADIR to point to it.
24573 2006-07-30 Bruno Haible <bruno@clisp.org>
24575 * modules/csharpexec (configure.ac): Comment out macro invocation.
24576 * modules/javaexec (configure.ac): Likewise.
24577 * modules/javacomp-script (configure.ac): Likewise.
24579 * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
24581 2006-07-30 Bruno Haible <bruno@clisp.org>
24583 * modules/clean-temp (Depends-on): Add linkedhash-list, remove
24586 2006-07-30 Bruno Haible <bruno@clisp.org>
24588 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
24590 2006-07-30 Bruno Haible <bruno@clisp.org>
24592 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
24593 Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
24596 2006-07-29 Bruno Haible <bruno@clisp.org>
24598 Make it possible for gnulib-tool to work with locally modified or
24599 augmented gnulib repositories.
24600 * gnulib-tool (func_usage): Document --local-dir option.
24601 (local_gnulib_dir): New variable.
24602 Handle --local-dir option.
24603 (func_lookup_file): New function.
24604 (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
24605 (func_get_description, func_get_filelist, func_get_description,
24606 func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
24607 func_get_automake_snippet, func_get_include_directive,
24608 func_get_license, func_get_maintainer): Use func_lookup_file.
24609 (func_import, func_create_testdir): Use func_lookup_file.
24611 2006-07-29 Bruno Haible <bruno@clisp.org>
24613 * modules/setenv (Depends-on): Add unistd.
24615 2006-07-29 Bruno Haible <bruno@clisp.org>
24617 * lib/setenv.c: Undo unintended modification done on 2006-02-27.
24619 2006-07-29 Bruno Haible <bruno@clisp.org>
24621 * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
24623 2006-07-29 Bruno Haible <bruno@clisp.org>
24625 * gnulib-tool (import, update): If there is no Makefile.am, look at
24626 aclocal.m4, instead of bailing out.
24628 2006-07-29 Bruno Haible <bruno@clisp.org>
24630 * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
24631 Categorize the options by when they are useful.
24633 2006-07-29 Bruno Haible <bruno@clisp.org>
24635 * gnulib-tool (func_usage): Document option --no-libtool.
24636 Handle option --no-libtool.
24637 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
24638 for changed semantics of $libtool variable.
24639 (func_import): Likewise. If libtool is not used, show this through
24640 an option --no-libtool.
24641 (func_create_testdir): Update.
24643 2006-07-29 Bruno Haible <bruno@clisp.org>
24645 * gnulib-tool (func_import): Extend error message about missing
24648 2006-07-29 Bruno Haible <bruno@clisp.org>
24650 * gnulib-tool (func_import): Don't create the $docbase directory if
24651 there is no file to store there.
24653 2006-07-29 Bruno Haible <bruno@clisp.org>
24655 * gnulib-tool (autoconf_minversion): If a --dir option is given and
24656 relevant, look for configure.ac there, not in the current directory.
24657 Also use a simple search for AC_PREREQ, not "autoconf --trace".
24659 2006-07-29 Bruno Haible <bruno@clisp.org>
24661 * gnulib-tool (SORT): New variable.
24662 (func_usage): Undocument --assume-autoconf option.
24663 Remove --assume-autoconf option handling.
24664 (autoconf_minversion): Determine from the contents of configure.ac.
24665 (func_import): Remove autoconf_minversion handling.
24666 Suggested by Eric Blake.
24668 2006-07-29 Bruno Haible <bruno@clisp.org>
24670 * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
24672 2006-07-29 Bruno Haible <bruno@clisp.org>
24674 * config/srclist.txt (*setenv.[ch]): Remove rules.
24676 2006-07-28 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
24678 * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
24680 2006-07-28 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
24682 * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
24685 2006-07-28 Simon Josefsson <jas@extundo.com>
24687 * modules/inet_ntop (Depends-on): Depend on arpa_inet.
24688 * modules/inet_pton (Depends-on): Likewise.
24690 2006-07-28 Simon Josefsson <jas@extundo.com>
24692 * m4/netinet_in_h.m4: New file.
24694 2006-07-28 Simon Josefsson <jas@extundo.com>
24696 * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
24699 2006-07-28 Simon Josefsson <jas@extundo.com>
24701 * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
24704 2006-07-28 Paul Eggert <eggert@cs.ucla.edu>
24706 * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
24707 setgid on directories only if they set these bits.
24708 * lib/modechange.h: Remove obsolete comment about masks.
24710 2006-07-28 Eric Blake <ebb9@byu.net>
24712 * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
24715 2006-07-28 Bruno Haible <bruno@clisp.org>
24717 * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
24719 2006-07-28 Bruno Haible <bruno@clisp.org>
24721 * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
24723 2006-07-28 Bruno Haible <bruno@clisp.org>
24725 * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
24726 iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
24728 Avoids link error on FreeBSD 4.x.
24729 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
24731 * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
24733 * lib/mbswidth.c (iswcntrl): Likewise.
24735 2006-07-27 Bruno Haible <bruno@clisp.org>
24737 * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
24740 2006-07-27 Bruno Haible <bruno@clisp.org>
24742 * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
24743 __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
24746 2006-07-26 Eric Blake <ebb9@byu.net>
24748 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
24750 2006-07-26 Eric Blake <ebb9@byu.net>
24752 * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
24753 like mingw that lack mkstemp.
24754 * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
24755 avoid compilation warning on mingw.
24757 2006-07-26 Bruno Haible <bruno@clisp.org>
24759 * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
24760 INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
24761 INT_FAST*_MIN, INTPTR_MIN.
24763 2006-07-25 Bruno Haible <bruno@clisp.org>
24765 * modules/version-etc (Depends-on): Add stdarg.
24767 2006-07-25 Bruno Haible <bruno@clisp.org>
24769 * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
24772 2006-07-25 Bruno Haible <bruno@clisp.org>
24774 * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
24775 defined in <stdarg.h> or config.h.
24777 2006-07-24 Paul Eggert <eggert@cs.ucla.edu>
24779 * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
24780 (gl_STDIO_SAFER): Remove.
24782 2006-07-24 Paul Eggert <eggert@cs.ucla.edu>
24784 * MODULES.html.sh (File stream based Input/Output):
24785 Add fopen-safer, tmpfile-safer; remove stdio-safer.
24786 * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
24787 * modules/fopen-safer, modules/tmpfile-safer: New files.
24788 * modules/stdio-safer: Remove.
24790 2006-07-24 Bruno Haible <bruno@clisp.org>
24792 * modules/tmpdir: New file.
24793 * MODULES.html.sh (File system functions): Add it.
24795 2006-07-24 Bruno Haible <bruno@clisp.org>
24797 * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
24798 getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
24800 2006-07-24 Bruno Haible <bruno@clisp.org>
24802 * modules/clean-temp: New file.
24804 2006-07-24 Bruno Haible <bruno@clisp.org>
24806 * m4/tmpdir.m4: New file, from GNU gettext.
24808 2006-07-24 Bruno Haible <bruno@clisp.org>
24810 * lib/tmpdir.h: New file, from GNU gettext.
24811 * lib/tmpdir.c: New file, from GNU gettext.
24813 2006-07-24 Bruno Haible <bruno@clisp.org>
24815 * lib/clean-temp.h: New file, from GNU gettext.
24816 * lib/clean-temp.c: New file, from GNU gettext.
24818 2006-07-23 Eric Blake <ebb9@byu.net>
24820 * modules/stdio-safer (Files): Add tmpfile-safer.c.
24821 (Depends-on): Add binary-io.
24823 2006-07-23 Eric Blake <ebb9@byu.net>
24825 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
24827 2006-07-23 Eric Blake <ebb9@byu.net>
24829 * lib/tmpfile-safer.c: New file.
24830 * lib/stdio-safer.h (fopen_safer): Add prototype.
24831 * lib/stdio--.h (tmpfile): Make safer.
24833 2006-07-23 Bruno Haible <bruno@clisp.org>
24835 * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
24836 (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
24837 gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
24838 gl_linked_remove_at): Use it.
24840 2006-07-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
24841 and Simon Josefsson <jas@extundo.com>
24843 * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
24845 * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
24847 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
24849 * modules/close-stream: New file.
24850 * modules/closeout (Description): Make it clear that it exits
24851 with a diagnostic on error.
24852 (Depends-on): Add close-stream. Remove fpending, stdbool.
24853 * MODULES.html.sh (File stream based Input/Output): Add close-stream.
24855 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
24857 * m4/close-stream.m4: New file.
24859 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
24861 * lib/close-stream.c, lib/close-stream.h: New files.
24863 2006-07-22 Bruno Haible <bruno@clisp.org>
24865 Merge from GNU gettext 0.15.
24867 2006-05-01 Bruno Haible <bruno@clisp.org>
24869 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
24871 2006-07-22 Bruno Haible <bruno@clisp.org>
24873 * modules/javaversion: New file.
24874 * MODULES.html.sh (Java): Add javaversion.
24876 2006-03-12 Bruno Haible <bruno@clisp.org>
24878 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
24880 2005-12-04 Bruno Haible <bruno@clisp.org>
24882 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
24885 2006-06-21 Bruno Haible <bruno@clisp.org>
24887 Avoid warnings from recent versions of mcs.
24888 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
24889 -o, -L, -r any more. Use options documented since mcs-1.0
24890 instead. Similarly for -g.
24892 2005-12-04 Bruno Haible <bruno@clisp.org>
24894 * build-aux/csharpcomp.sh.in: Suffix for resources is
24895 .resources, not .resource.
24897 2005-07-09 Bruno Haible <bruno@clisp.org>
24899 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
24901 Reported by Mark Junker <mjscod@gmx.de>.
24903 2006-07-22 Bruno Haible <bruno@clisp.org>
24905 * modules/gettext: Upgrade to gettext-0.15.
24906 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
24908 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
24910 2006-07-22 Bruno Haible <bruno@clisp.org>
24912 Merge from GNU gettext 0.15.
24914 2006-03-25 Bruno Haible <bruno@clisp.org>
24916 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
24918 2006-07-21 Bruno Haible <bruno@clisp.org>
24920 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
24923 2006-05-09 Bruno Haible <bruno@clisp.org>
24925 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
24926 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
24927 for the conftestver execution.
24929 2006-05-01 Bruno Haible <bruno@clisp.org>
24931 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
24932 optional target-version argument. Verify that the compiler
24933 groks source of the specified source-version, or add -source
24934 option as necessary. Verify that the compiler produces
24935 bytecode in the specified target-version, or add -target and
24936 -source options as necessary. Make the result of the test
24937 available as variable CONF_JAVAC. Also log error output in
24940 2006-03-11 Bruno Haible <bruno@clisp.org>
24942 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
24944 2006-05-09 Bruno Haible <bruno@clisp.org>
24946 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
24947 CLASSPATH_SEPARATOR to a semicolon.
24949 2006-03-12 Bruno Haible <bruno@clisp.org>
24951 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
24952 available as variable CONF_JAVA, for subsequent autoconf
24953 tests. Also log error output in config.log.
24955 2006-07-19 Bruno Haible <bruno@clisp.org>
24957 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
24958 that getline works on glibc2 systems. Needed to avoid trouble
24960 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
24962 2005-12-04 Bruno Haible <bruno@clisp.org>
24964 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
24965 launcher (untested).
24967 2005-12-04 Bruno Haible <bruno@clisp.org>
24969 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
24971 2006-07-22 Bruno Haible <bruno@clisp.org>
24973 * gettext.m4: Update from GNU gettext-0.15.
24974 * nls.m4: Likewise.
24976 * inttypes-pri.m4: Likewise.
24977 * inttypes-h.m4: Renamed from inttypes.m4.
24978 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
24980 2006-07-22 Bruno Haible <bruno@clisp.org>
24982 Merge from GNU gettext 0.15.
24984 2005-07-05 Bruno Haible <bruno@clisp.org>
24986 * printf-args.c (printf_fetchargs): Work around broken
24987 definition of wint_t on mingw.
24989 2005-02-12 Bruno Haible <bruno@clisp.org>
24991 * xallocsa.h: Add extern "C" for C++.
24993 2006-05-17 Bruno Haible <bruno@clisp.org>
24995 Cygwin portability.
24996 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
24998 2006-04-30 Bruno Haible <bruno@clisp.org>
25000 * progreloc.c: Include <mach-o/dyld.h> if available.
25001 (find_executable): Use _NSGetExecutablePath when possible.
25003 2006-05-06 Charles Wilson <cygwin@cwilson.fastmail.fm>
25005 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
25008 2005-12-29 Bruno Haible <bruno@clisp.org>
25010 * progreloc.c (set_program_name_and_installdir): Fix
25013 2005-12-04 Bruno Haible <bruno@clisp.org>
25015 Cygwin portability.
25016 * progreloc.c: Include <windows.h> also on Cygwin.
25017 (find_executable): Add support for Cygwin.
25018 (set_program_name_and_installdir): Handle also platforms with
25021 2006-07-11 Bruno Haible <bruno@clisp.org>
25023 * javacomp.c: Fix a comment.
25024 Reported by Jim Meyering.
25026 2006-04-30 Bruno Haible <bruno@clisp.org>
25028 * javacomp.h (compile_java_class): Add source_version,
25029 target_version arguments.
25030 * javacomp.c: Rewritten to choose only a compiler that
25031 respects the specified source_version and target_version.
25033 2006-06-27 Bruno Haible <bruno@clisp.org>
25035 Assume correct S_ISDIR macro.
25036 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
25038 2006-07-22 Bruno Haible <bruno@clisp.org>
25040 * javaversion.h: New file, from GNU gettext.
25041 * javaversion.c: New file, from GNU gettext.
25042 * javaversion.java: New file, from GNU gettext.
25043 * javaversion.class: New file, from GNU gettext.
25045 2006-05-17 Bruno Haible <bruno@clisp.org>
25047 Cygwin portability.
25048 * javaexec.c (execute_java_class): Test for jview program
25051 2006-04-09 Bruno Haible <bruno@clisp.org>
25053 * fatal-signal.c: Don't include string.h.
25054 (at_fatal_signal): Use a copying loop instead of memcpy.
25056 2005-12-04 Bruno Haible <bruno@clisp.org>
25058 * csharpexec.c: Add support for 'clix' launcher (untested).
25059 (execute_csharp_using_sscli): New function.
25060 (execute_csharp_program): Call it.
25062 2006-06-21 Bruno Haible <bruno@clisp.org>
25064 Avoid warnings from recent versions of mcs.
25065 * csharpcomp.c (compile_csharp_using_mono): Don't use options
25066 -o, -L, -r any more. Use options documented since mcs-1.0
25067 instead. Similarly for -g.
25069 2005-07-09 Bruno Haible <bruno@clisp.org>
25071 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
25073 Reported by Mark Junker <mjscod@gmx.de>.
25075 2006-06-17 Bruno Haible <bruno@clisp.org>
25077 * config.charset: Update for NetBSD 3.0.
25079 2006-05-17 Bruno Haible <bruno@clisp.org>
25081 Cygwin portability.
25082 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
25084 2006-05-16 Bruno Haible <bruno@clisp.org>
25086 * localcharset.c [CYGWIN]: Include <windows.h>.
25087 (get_charset_aliases): For Cygwin, return the same CPxxx
25088 aliases list as under WIN32.
25089 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
25090 the environment variables. Fall back to GetACP().
25092 2006-04-05 Bruno Haible <bruno@clisp.org>
25094 * config.charset: Update Juan Manuel Guerrero's address.
25096 2005-02-12 Bruno Haible <bruno@clisp.org>
25098 * allocsa.h: Add extern "C" for C++.
25100 2005-02-10 Bruno Haible <bruno@clisp.org>
25102 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
25103 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
25105 2006-07-22 Bruno Haible <bruno@clisp.org>
25107 * gettext.h: Update to GNU gettext-0.15.
25109 2006-07-22 Bruno Haible <bruno@clisp.org>
25111 * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
25112 localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
25113 lib-prefix.m4, longdouble.m4, ssize_t.m4.
25115 2006-07-21 Eric Blake <ebb9@byu.net>
25117 * modules/stdlib-safer: New file.
25118 * MODULES.html.sh (File stream based Input/Output): Add
25121 2006-07-21 Eric Blake <ebb9@byu.net>
25123 * lib/stdlib-safer.h: New file from coreutils, required by
25126 2006-07-20 Paul Eggert <eggert@cs.ucla.edu>
25128 * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
25130 2006-07-20 Bruno Haible <bruno@clisp.org>
25132 * gnulib-tool: Recognize new option --assume-autoconf.
25133 (autoconf_minversion): New variable.
25134 (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
25136 2006-07-20 Bruno Haible <bruno@clisp.org>
25138 * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
25140 2006-07-19 Derek R. Price <derek@ximbiot.com>
25142 * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
25143 Reindent and repaginate.
25145 2006-07-19 Derek Price <derek@ximbiot.com>
25147 * doc/gnulib.texi (Libtool and Windows): Eliminate passive voice.
25150 2006-07-17 Bruno Haible <bruno@clisp.org>
25152 * modules/list: New file.
25153 * modules/array-list: New file.
25154 * modules/carray-list, modules/carray-list-tests: New files.
25155 * modules/linked-list, modules/linked-list-tests: New files.
25156 * modules/avltree-list, modules/avltree-list-tests: New files.
25157 * modules/rbtree-list, modules/rbtree-list-tests: New files.
25158 * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
25159 * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
25160 * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
25161 * modules/oset: New file.
25162 * modules/array-oset: New file.
25163 * modules/avltree-oset, modules/avltree-oset-tests: New files.
25164 * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
25165 * tests/test-carray_list.c: New file.
25166 * tests/test-linked_list.c: New file.
25167 * tests/test-avltree_list.c: New file.
25168 * tests/test-rbtree_list.c: New file.
25169 * tests/test-linkedhash_list.c: New file.
25170 * tests/test-avltreehash_list.c: New file.
25171 * tests/test-rbtreehash_list.c: New file.
25172 * tests/test-avltree_oset.c: New file.
25173 * tests/test-rbtree_oset.c: New file.
25174 * MODULES.html.sh (Container data structures): New section.
25176 2006-07-17 Bruno Haible <bruno@clisp.org>
25178 * m4/gl_list.m4: New file.
25180 2006-07-17 Bruno Haible <bruno@clisp.org>
25182 * lib/gl_list.h: New file.
25183 * lib/gl_list.c: New file.
25184 * lib/gl_array_list.h: New file.
25185 * lib/gl_array_list.c: New file.
25186 * lib/gl_carray_list.h: New file.
25187 * lib/gl_carray_list.c: New file.
25188 * lib/gl_linked_list.h: New file.
25189 * lib/gl_linked_list.c: New file.
25190 * lib/gl_anylinked_list1.h: New file.
25191 * lib/gl_anylinked_list2.h: New file.
25192 * lib/gl_avltree_list.h: New file.
25193 * lib/gl_avltree_list.c: New file.
25194 * lib/gl_anyavltree_list1.h: New file.
25195 * lib/gl_anyavltree_list2.h: New file.
25196 * lib/gl_rbtree_list.h: New file.
25197 * lib/gl_rbtree_list.c: New file.
25198 * lib/gl_anyrbtree_list1.h: New file.
25199 * lib/gl_anyrbtree_list2.h: New file.
25200 * lib/gl_anytree_list1.h: New file.
25201 * lib/gl_anytree_list2.h: New file.
25202 * lib/gl_linkedhash_list.h: New file.
25203 * lib/gl_linkedhash_list.c: New file.
25204 * lib/gl_anyhash_list1.h: New file.
25205 * lib/gl_anyhash_list2.h: New file.
25206 * lib/gl_avltreehash_list.h: New file.
25207 * lib/gl_avltreehash_list.c: New file.
25208 * lib/gl_rbtreehash_list.h: New file.
25209 * lib/gl_rbtreehash_list.c: New file.
25210 * lib/gl_anytreehash_list1.h: New file.
25211 * lib/gl_anytreehash_list2.h: New file.
25213 * lib/gl_oset.h: New file.
25214 * lib/gl_oset.c: New file.
25215 * lib/gl_array_oset.h: New file.
25216 * lib/gl_array_oset.c: New file.
25217 * lib/gl_avltree_oset.h: New file.
25218 * lib/gl_avltree_oset.c: New file.
25219 * lib/gl_rbtree_oset.h: New file.
25220 * lib/gl_rbtree_oset.c: New file.
25221 * lib/gl_anytree_oset.h: New file.
25223 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
25225 * m4/mkancesdirs.m4: New file.
25226 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
25227 dirchownmod.h. Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
25228 no longer needed. Require gl_FUNC_LCHOWN, since dirchownmod.c needs
25231 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
25233 * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
25234 * lib/mkancesdirs.h: New files.
25235 * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
25236 unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
25237 save-cwd.h. Instead, include dirchownmod.h and mkancesdirs.h.
25238 (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
25239 MODE_BITS. Remove options VERBOSE_FMT_STRING, CWD_ERRNO. All
25240 callers changed. Revamp internals significantly, by not
25241 attempting to create directories that are temporarily more
25242 permissive than the final results. Do not attempt to use
25243 save_cwd/restore_cwd; it isn't worth it for mkdir and install.
25244 This removes some race conditions, fixes some bugs, and simplifies
25245 things. Use new dirchownmod function to do owner and mode changes.
25246 * lib/mkdir-p.h: Likewise.
25247 * lib/modechange.c (octal_to_mode): New function.
25248 (struct mode_change): New member mentioned.
25249 (make_node_op_equals): New arg mentioned. All callers changed.
25250 (mode_compile): Keep track of which mode bits the user has explicitly
25252 (mode_adjust): New arg DIR, so that we implement the X op correctly.
25253 New arg PMODE_BITS, to keep track of which mode bits the user
25254 mentioned; it treats S_ISUID and S_ISGID speciall.
25255 All callers changed.
25256 * lib/modechange.h: Likewise.
25258 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
25260 * MODULES.html.sh: Add mkancestors.
25261 * modules/mkancesdirs: New module.
25262 * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
25263 lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
25264 The chdir-safer and afs files are now orphans; I'll remove them
25265 unless someone speaks up.
25266 Add lib/dirchownmod.c, lib/dirchownmod.h.
25267 (Depends-on): Remove alloca, chown, save-cwd, dirname.
25268 Add lchown, mkancesdirs.
25269 (Maintainer): Add self.
25271 2006-07-15 Karl Berry <karl@gnu.org>
25273 * gnulib-tool: help message wording/arrangement.
25275 2006-07-14 Simon Josefsson <jas@extundo.com>
25277 * doc/gnulib.texi (Libtool and Windows): New section.
25279 2006-07-12 Simon Josefsson <jas@extundo.com>
25281 * modules/gendocs (License): Fix license, approved by Karl.
25283 2006-07-12 Eric Blake <ebb9@byu.net>
25285 * MODULES.html.sh: Add gendocs.
25287 2006-07-11 Eric Blake <ebb9@byu.net>
25289 * modules/fdl: New module, to install doc/fdl.texi.
25290 * MODULES.html.sh: Add new section for documentation modules.
25291 * gnulib-tool: Avoid space-tab.
25292 (--doc-base): New option, to manage files from doc.
25294 2006-07-11 Eric Blake <ebb9@byu.net>
25296 * m4/absolute-header.m4: Fix comments to match recent change.
25298 2006-07-11 Eric Blake <ebb9@byu.net>
25300 * gnulib-tool: List --doc-base before --tests-base.
25302 2006-07-11 Derek R. Price <derek@ximbiot.com>
25304 * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
25306 2006-07-11 Bruno Haible <bruno@clisp.org>
25308 * README: Mention where to put documentation.
25310 2006-07-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25312 * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
25314 2006-07-10 Paul Eggert <eggert@cs.ucla.edu>
25316 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
25319 2006-07-10 Paul Eggert <eggert@cs.ucla.edu>
25321 * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
25322 absolute-header.m4. Also, set ABSOLUTE_STDINT_H to a string
25323 "no/such/file/stdint.h" when there is no such file, so that
25324 the resulting C code can be parsed by dodgy compilers.
25325 Problems reported by Bob Proulx.
25327 2006-07-10 Derek R. Price <derek@ximbiot.com>
25329 * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
25330 Ignore the obsolescent !HAVE_DIRENT_H case. Consolidate NAMLEN
25331 macros into the GNU _D_EXACT_NAMLEN.
25332 * lib/savedir.c: Likewise.
25333 (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
25335 2006-07-10 Derek R. Price <derek@ximbiot.com>
25336 and Paul Eggert <eggert@cs.ucla.edu>
25338 * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
25340 Ignore the obsolescent !HAVE_DIRENT_H case. Consolidate NAMLEN
25341 macros into the GNU _D_EXACT_NAMLEN.
25343 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
25345 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
25346 around the absolute name, to work around a problem with the HP-UX
25347 11.23 native C compiler, reported by Bob Proulx.
25349 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
25351 * doc/maintain.texi, make-stds.texi: Sync from
25352 <http://savannah.gnu.org/projects/gnustandards>.
25354 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
25356 * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
25358 2006-07-09 Jim Meyering <jim@meyering.net>
25360 * m4/glob.m4: Remove a doubled word in a comment.
25362 2006-07-09 Jim Meyering <jim@meyering.net>
25364 * lib/argp-pv.c: Remove a doubled word in a comment.
25365 * lib/check-version.c (check_version): Likewise.
25366 * lib/javacomp.c (compile_java_class): Likewise.
25368 2006-07-08 Paul Eggert <eggert@cs.ucla.edu>
25370 * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
25371 for the benefit of people using Autoconf 2.60. If you want to
25372 support older Autoconf versions you can copy m4/onceonly_2_57.m4
25373 (or m4/onceonly.m4, if pre-2.57) manually.
25375 2006-07-08 Jim Meyering <jim@meyering.net>
25377 * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
25379 * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
25380 * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
25383 2006-07-08 Jim Meyering <jim@meyering.net>
25385 * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
25387 2006-07-07 Simon Josefsson <jas@extundo.com>
25389 * tests/test-crc.c: Change expected crc value, the test vector
25390 were probably computed using the old broken crc.c?
25392 2006-07-06 Simon Josefsson <jas@extundo.com>
25394 * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
25395 now the canonical place for the M4 file).
25397 * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
25398 from the sys_socket dependency now.
25400 * modules/inet_pton (Files): Ditto.
25402 * modules/inet_ntop (Files): Ditto.
25404 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
25406 * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
25407 not gl_PREREQ_GETUSERSHELL.
25409 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25411 * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
25412 with only one argument, for Autoconf 2.60.
25413 * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
25414 expand to nothing, so add a shell command to avoid syntax error.
25415 * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
25417 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25419 * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
25421 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
25423 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
25424 no longer needed. Check for isblank decl.
25425 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
25426 * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
25429 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
25431 * lib/getloadavg.c: Use __VMS, not VMS.
25432 * lib/getopt.c: Likewise.
25433 * lib/getpagesize.h: Likewise.
25434 * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
25435 and probably does not work.
25437 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
25439 * lib/.cppi-disable: Add wcwidth.
25440 * lib/fnmatch.c (ISBLANK): Remove. All uses changed to isblank.
25441 (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
25442 (ISGRAPH): Remove. All uses changed to isgraph.
25443 (FOLD) [!defined _LIBC]: Remove special case.
25444 * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
25445 * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
25447 * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
25450 2006-07-06 Jim Hyslop <jhyslop@dreampossible.ca> (tiny change)
25452 * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
25453 '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
25454 brackets. Other minor changes to suppress some compiler
25457 2006-07-06 Derek R. Price <derek@ximbiot.com>
25458 and Paul Eggert <eggert@cs.ucla.edu>
25460 * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
25461 of invoking obsolescent AC_HEADER_DIRENT macro.
25462 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
25463 * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
25464 * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
25465 * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
25466 * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
25467 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
25468 * m4/savedir.m4 (gl_SAVEDIR): Likewise.
25469 * m4/readdir.m4: Remove; no longer needed.
25471 2006-07-06 Derek R. Price <derek@ximbiot.com>
25472 and Paul Eggert <eggert@cs.ucla.edu>
25474 * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
25475 Don't worry about this obsolete case any more.
25476 (HAVE_DIR): Remove. All uses removed; we now assume you can read
25478 * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
25479 worry about this obsolete case any more.
25480 * lib/fts.c: Likewise.
25481 * lib/getcwd.c: Likewise.
25482 * lib/glob.h: Likewise.
25483 * lib/savedir.c: Likewise.
25485 2006-07-05 Paul Eggert <eggert@cs.ucla.edu>
25487 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
25488 rather than AC_CHECK_DECLS for strtoimax and strtoumax.
25489 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
25492 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
25493 * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
25494 * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
25496 * m4/getdate.m4 (gl_GETDATE): Likewise.
25497 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
25498 * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
25499 * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
25500 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
25501 * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
25502 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
25503 * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
25506 2006-07-05 Paul Eggert <eggert@cs.ucla.edu>
25508 * lib/memcasecmp.c: Include <limits.h>.
25509 (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
25510 * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
25511 Don't assume isdigit succeeds only on '0' through '9'.
25513 2006-07-05 Eric Blake <ebb9@byu.net>
25515 * modules/getaddrinfo (Depends-on): Add snprintf.
25517 2006-07-05 Eric Blake <ebb9@byu.net>
25519 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
25520 to avoid 'header present but could not be compiled' on cygwin.
25522 2006-07-05 Eric Blake <ebb9@byu.net>
25524 * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
25525 missing from netdb.h.
25526 * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
25528 2006-07-05 Derek R. Price <derek@ximbiot.com>
25530 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
25532 * m4/exclude.m4 (gl_EXCLUDE): Likewise.
25533 * m4/getdate.m4 (gl_GETDATE): Likewise.
25534 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
25535 * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
25536 * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
25537 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
25538 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
25540 2006-07-05 Derek R. Price <derek@ximbiot.com>
25542 * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
25543 All uses of is_space replaced by isspace.
25544 * lib/exit.h: Don't talk about STDC_HEADERS.
25545 * lib/fnmatch.c (ISASCII): Remove; no longer needed. All uses removed.
25546 (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
25547 (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed. All uses
25548 replaced by isprint etc.
25549 * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
25550 * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
25551 * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
25552 * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
25553 * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
25554 * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
25556 2006-07-05 Bruno Haible <bruno@clisp.org>
25558 * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
25559 the function exists, before testing against AIX.
25560 Reported by Martin Lambers <marlam@marlam.de>.
25562 2006-07-04 Paul Eggert <eggert@cs.ucla.edu>
25564 * modules/cycle-check (lib_SOURCES): Add same-inode.h.
25565 From Mark D. Baushke.
25567 2006-07-04 Paul Eggert <eggert@cs.ucla.edu>
25569 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
25570 to the absolute name, not just one, to bypass Sun C 5.8's
25571 "warning: #include of /usr/include/... may be non-portable".
25573 2006-07-04 Eric Blake <ebb9@byu.net>
25575 * modules/dirname-tests: New test module.
25576 * tests/test-dirname.c: New file, replacing dirname.c
25577 TEST_DIRNAME section that was recently deleted.
25579 2006-07-04 Bruno Haible <bruno@clisp.org>
25581 Assume ANSI C header files and <ctype.h> functions.
25582 * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
25583 (mbsnwidth): Use isprint, iscntrl instead.
25585 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
25587 Merge from coreutils.
25588 * MODULES.html.sh: Add xstrtold.
25589 * modules/xstrtold: New file.
25590 * modules/cycle-check (Files): Add lib/same-inode.h.
25591 * modules/dirname (Files): Add m4/double-slash-root.m4.
25592 * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
25593 * modules/mkdir-p (Files): Add lib/same-inode.h.
25594 * modules/same (Files): Add lib/same-inode.h.
25596 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
25598 * m4/absolute-header.m4: Renamed from full-header-path.m4.
25599 This is to keep the terminology clean; POSIX talks about
25600 "absolute pathnames", not "full pathnames", but the GNU
25601 Coding Standards say to use "path" for something else;
25602 so use "absolute" to keep both sides happy.
25603 (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
25604 Set gl_absolute_header, not gl_full_header_path.
25605 Set gl_cv_absolute_<header>, not gl_full_path_<header>.
25606 Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
25609 Merge from coreutils.
25611 2006-06-30 Paul Eggert <eggert@cs.ucla.edu>
25613 * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
25614 Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
25615 want to require the building of c-strtod.o.
25616 * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
25617 needs -lm directly.
25618 * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
25620 2006-06-19 Paul Eggert <eggert@cs.ucla.edu>
25622 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
25623 --as-needed option if available. Problem reported by Albert Chin in
25624 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
25625 However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
25626 cc merely issues a bunch of annoying warnings for --as-needed
25627 (this problem was reported by Bob Proulx). Also, try linking with
25628 -lm to detect a bug in binutils 2.16 (this problem was reported
25629 by Ralf Wildenhues).
25631 2006-06-18 Jim Meyering <jim@meyering.net>
25633 Test for a bug that causes glibc's getcwd to suffer a failed assertion.
25634 * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
25636 * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
25637 also check for glibc-2.4's abort-inducing bug.
25639 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
25640 Low-probability clean-up should be to use rmdir to get rid of
25641 the just-created directory, not unlink.
25643 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
25644 configure fail, and request a bug report to inform us about it.
25645 Add a comment that, barring reports to the contrary, in 2007 we'll
25646 assume ftruncate is universally available.
25648 2006-04-17 Paul Eggert <eggert@cs.ucla.edu>
25650 * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
25652 2006-03-12 Jim Meyering <jim@meyering.net>
25654 * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
25655 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
25656 * m4/same.m4 (gl_SAME): Likewise.
25657 * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
25659 2006-03-11 Eric Blake <ebb9@byu.net>
25661 * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
25662 * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
25663 * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
25664 (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
25666 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
25668 * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
25669 MacOS X 10.4.6. Don't mention <sys/int_types.h>. Problems
25670 reported by Mark D. Baushke, one in
25671 <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
25673 Merge from coreutils.
25675 * lib/.cppi-disable: Add stdint_.h.
25676 * lib/.cvsignore: Add stdint.h.
25678 2006-06-30 Paul Eggert <eggert@cs.ucla.edu>
25680 * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
25681 both double and long double versions.
25682 (XSTRTOD): Renamed from xstrtod. Use DOUBLE internally.
25683 * lib/xstrtold.c: New file.
25684 * lib/xstrtod.h (xstrtold): New decl.
25686 2006-05-22 Paul Eggert <eggert@cs.ucla.edu>
25688 * lib/filemode.c (setst): Remove.
25689 (strmode): Rewrite to avoid setst. This makes the code shorter,
25690 (arguably) clearer, and the generated code is a bit smaller on my
25691 Debian GNU/Linux stable x86 host.
25693 2006-04-17 Paul Eggert <eggert@cs.ucla.edu>
25695 * lib/filemode.c: Include "filemode.h" first, to test the interface.
25696 Assume that filemode.h includes sys/types.h and sys/stat.h.
25697 (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
25698 (ftypelet): Reorder to put common cases first, for efficiency.
25699 Add 'P', 'w'. Remove 'M', since it's now the caller's responsibility
25701 (strmode): Renamed from mode_string, and now stores 12 bytes instead
25702 of 10, for compatibility with FreeBSD. All callers changed.
25703 (filemodestring): Now stores 12 bytes instead of 10, and sets file
25704 types that can't be deduced solely from st_mode. First arg is now a
25706 * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
25707 (strmode): Renamed from mode_string.
25708 (filemodestring): New decl.
25709 * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
25710 (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
25712 (S_ISPORT, S_ISWHT): New macros, if not already defined.
25714 2006-04-12 Paul Eggert <eggert@cs.ucla.edu>
25716 * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
25717 fsusage.h now does that. Include fsusage.h first, to test interface.
25718 Prefer statvfs if it works, since it's blessed by POSIX. Attempt
25719 at most one method (the old code could have generated decls that
25720 didn't conform to C89, not that this was ever exercised).
25721 * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
25723 2006-03-19 Jim Meyering <jim@meyering.net>
25725 Work even in a chroot where d_ino values for entries in "/"
25726 don't match the stat.st_ino values for the same names.
25727 * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
25728 number, iterate through all entries again, using lstat instead.
25729 Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
25730 Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
25732 * lib/getcwd.c (__getcwd): Clarify a comment.
25733 Use memcpy in place of a call to strcpy.
25735 2006-03-12 Jim Meyering <jim@meyering.net>
25737 * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
25738 matches that of the current directory (which we're about to chdir ".."
25739 out of), then save the dev-ino of the parent, instead.
25741 * lib/same-inode.h (SAME_INODE): New file/macro.
25742 * lib/chdir-safer.c (SAME_INODE): Remove definition.
25743 Include "same-inode.h", instead.
25744 * lib/same.c: Likewise.
25745 * lib/cycle-check.h: Include "same-inode.h".
25746 (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
25747 * lib/cycle-check.c (SAME_INODE): Remove definition.
25748 * lib/root-dev-ino.h: Include "same-inode.h".
25750 2006-03-11 Eric Blake <ebb9@byu.net>
25752 * lib/same.c (same_name): s/base_name/last_component/
25753 * lib/backupfile.c (check_extension, numbered_backup): Likewise.
25754 * lib/filenamecat.c (file_name_concat): Likewise.
25756 2006-03-11 Eric Blake <ebb9@byu.net>,
25757 Paul Eggert <eggert@cs.ucla.edu>
25759 * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
25760 [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
25762 (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
25763 platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
25764 (last_component): New method.
25765 * lib/dirname.c (dir_len): Determine when drive letters need a
25766 subsequent slash. Preserve // when it is special.
25767 (dir_name): Don't append dot when drive letter is absolute.
25768 [TEST_DIRNAME]: Move into a full-blown gnulib test.
25769 * lib/basename.c (base_name): New semantics - malloc the result.
25770 Preserve // when it is special. Preserve relative files that look
25771 like drive letters.
25772 (base_len): Preserve // when it is special.
25773 (last_component): New method, similar to old base_name semantics.
25774 * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
25775 base_name. Strip redundant slashes from ///.
25777 2006-07-03 Jim Meyering <jim@meyering.net>
25779 * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
25780 macro is used before the first cycle_check call.
25782 2006-07-03 Eric Blake <ebb9@byu.net>
25784 * modules/dirname (Depends-on): Add xstrndup.
25786 2006-07-02 Paul Eggert <eggert@cs.ucla.edu>
25788 * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
25789 test cases, so that config.log is a bit easier to follow.
25791 2006-07-02 Paul Eggert <eggert@cs.ucla.edu>
25793 * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
25794 both are 64 bits, since this seems to be the tradition, and this
25795 prevents gcc -Wformat from warning about usages with PRIuMAX. If
25796 we ever run into a host that prefers long long to long in this
25797 case, we'll need another configure-time test. Problem reported by
25800 2006-07-02 Eric Blake <ebb9@byu.net>
25802 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
25804 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
25806 * modules/inttypes (Depends-on): No longer depends on stdint.
25807 * modules/stdint (Description): Say more about assumptions.
25808 Say that the fast types might differ. Say macros are used.
25809 (Files): Remove m4/size_max.m4, m4/wchar_t.m4. Add m4/longlong.m4.
25810 (Makefile.am): Revise list of substituted symbols to match
25812 * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
25813 (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
25814 * tests/test-stdint.c (verify_same_types)
25815 [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
25816 the code conforms to C99/C89.
25817 Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
25818 Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
25820 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
25822 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
25823 but fix a bug, by requiring at least 64 bits.
25824 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
25825 * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
25826 AC_TYPE_LONG_LONG_INT. This macro is obsolete and will go soon.
25827 * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
25829 * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
25830 changes. Make 2.59 a prerequisite. Check and substitute for
25831 HAVE_LONG_LONG_INT. Rely on Autoconf to check for stdint.h and
25832 inttypes.h. Do not use special include files; just use the
25833 defaults. Check for sys/inttypes.h and sys/bitypes.h in the usual
25834 way now. Remove no-longer-needed tests for HAVE_LONG_64BIT,
25835 HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
25836 uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
25837 int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
25838 uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
25839 int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
25840 uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
25841 uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
25842 UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
25843 INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
25844 UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
25845 UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
25846 UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
25847 UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
25848 INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
25849 INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
25850 UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
25851 INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
25852 SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
25853 WINT_MAX. Check for C99 conformance more strictly, by detecting
25854 bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9. On the other hand do
25855 not check for things that C99 does not require, e.g., int8_t. If
25856 a test isn't needed unless <stdint.h> isn't working, and is
25857 unlikely to be needed for any other reason, then don't do it
25858 unless <stdint.h> isn't working. Do not check for ptrdiff_t or
25859 size_t, since we assume C89 freestanding at least. Do not check
25860 for sig_atomic_t, wchar_t, or wint_t, since the code now does
25861 the right thing even if the types are not defined. Instead use:
25862 (gl_STDINT_TYPE_PROPERTIES): New macro.
25863 (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove. Don't bother
25864 testing whether <sys/types.h> clashes, as Autoconf does this for
25865 us now. All uses removed.
25866 (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
25867 (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
25868 (gl_CHECK_TYPE_SAME):
25869 Remove; no longer needed.
25870 (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
25871 exists, since we'll return 0 anyway in that case.
25872 (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
25874 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
25876 * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
25877 possible collision with system files.
25878 (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
25879 __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
25880 WCHAR_MIN and WCHAR_MAX in this case.
25881 (<stddef.h>): Do not include; no longer needed.
25882 (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
25883 (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
25884 (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
25885 !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
25886 && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
25887 (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
25888 __c99]: Define, to work around IRIX <stdint.h> incompatibility.
25889 (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
25890 !defined(__c99))]: Include in this case too, since it's harmless
25892 (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
25893 dangerous to do so.
25894 (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
25895 @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
25896 (_STDINT_MIN, _STDINT_MAX): New macros.
25897 (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
25898 (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
25899 (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
25900 (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
25901 (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
25902 (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
25903 macros, not typedefs; this simplifies things quite a bit.
25904 Use long int for all types narrower than int64_t.
25905 (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
25906 Define in terms of long long int or int64_t or long int,
25907 not int64_t or int32_t. This saves some compile-time testing.
25908 (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
25909 (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
25910 (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
25911 (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
25912 (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
25913 (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
25914 (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
25915 (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
25916 (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
25917 (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
25918 (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
25919 (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
25920 undef any previous version and define our own version, for
25921 simplicity and consistency with the new macros for types.
25922 (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
25923 (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
25924 Simplify definitions by using _STDINT_MIN and _STDINT_MAX
25925 where appropriate. Rely on new symbols @PTRDIFF_T_SUFFIX@,
25926 @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
25927 @WINT_T_SUFFIX@ to keep things simple here.
25928 (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
25929 Simplify by assuming typical 8/16/32/64 host, since we're
25930 already doing that elsewhere anyway.
25931 Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
25932 and assume long long int is 64 bits if available. This
25933 speeds up 'configure'.
25935 2006-07-01 Eric Blake <ebb9@byu.net>
25937 * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
25938 Reported by Andreas Buening.
25940 2006-07-01 Eric Blake <ebb9@byu.net>
25942 * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
25944 2006-06-30 Jim Hyslop <jhyslop@dreampossible.ca> (tiny change)
25946 * lib/getaddrinfo.c: fixed typo
25948 2006-06-29 Jim Meyering <jim@meyering.net>
25950 * modules/strftime (Maintainer): Add my name, since with the
25951 FPRINTFTIME changes strftime.c has forked from glibc.
25953 2006-06-29 Eric Blake <ebb9@byu.net>
25955 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
25957 2006-06-29 Eric Blake <ebb9@byu.net>
25959 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
25961 2006-06-29 Eric Blake <ebb9@byu.net>
25963 * lib/stat_.h: New file.
25965 2006-06-29 Eric Blake <ebb9@byu.net>
25967 * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
25968 unused static function.
25970 2006-06-29 Eric Blake <ebb9@byu.net>
25972 * doc/functions.texi (Function Portability): Document missing lstat
25975 2006-06-29 Eric Blake <ebb9@byu.net>
25977 * MODULES.html.sh: Add sys_stat.
25978 * modules/sys_stat: New module.
25979 * modules/mkstemp (Depends-on): Add sys_stat.
25981 2006-06-29 Derek R. Price <derek@ximbiot.com>
25983 * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
25985 2006-06-29 Derek R. Price <derek@ximbiot.com>
25987 * m4/c-bs-a.m4: Removed.
25989 2006-06-29 Derek R. Price <derek@ximbiot.com>
25991 * lib/strftime.c: Assume strftime() exists.
25993 2006-06-29 Derek Price <derek@ximbiot.com>
25995 * modules/c-bs-a: Removed - \a is C89.
25996 * MODULES.html.sh: Remove c-bs-a.
25998 2006-06-29 Bruno Haible <bruno@clisp.org>
26000 * modules/wcwidth (License): Change to LGPL.
26002 2006-06-28 Simon Josefsson <jas@extundo.com>
26004 * tests/test-getaddrinfo.c: Test getnameinfo too. Call WSAStartup
26007 * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
26010 2006-06-28 Simon Josefsson <jas@extundo.com>
26012 * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
26014 2006-06-28 Simon Josefsson <jas@extundo.com>
26016 * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
26017 functions there. It will succeed on Windows XP, but on Windows
26018 2000 and (presumably) earlier, it will fail, and use the internal
26020 (use_win32_p): New function.
26021 (getaddrinfo): Use strtoul on servname, to support numeric ports.
26022 Support AI_NUMERICSERV to disable getservbyname.
26023 (getnameinfo): New function, only supports
26024 NI_NUMERICHOST|NI_NUMERICSERV for now.
26026 * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
26027 only have some of them. Add AI_NUMERICSERV. Add prototype for
26030 2006-06-28 Eric Blake <ebb9@byu.net>
26032 * modules/wcwidth: New file.
26033 * modules/mbchar (Depends-on): Add wcwidth.
26034 * modules/mbswidth (Depends-on): Add wcwidth.
26035 * MODULES.html.sh: Add wcwidth.
26037 2006-06-28 Eric Blake <ebb9@byu.net>
26039 * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
26040 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
26042 2006-06-28 Eric Blake <ebb9@byu.net>
26044 * lib/xvasprintf.h: Fix comments.
26046 2006-06-28 Eric Blake <ebb9@byu.net>
26048 * lib/mbchar.h (wcwidth): Include wcwidth.h.
26049 * lib/mbswidth.c (wcwidth): Move from here...
26050 * lib/wcwidth.h: ...to this new file.
26052 2006-06-28 Derek R. Price <derek@ximbiot.com>
26054 * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
26056 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
26058 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
26060 2006-06-28 Derek R. Price <derek@ximbiot.com>
26062 * lib/savedir.c (CLOSEDIR): Remove. All uses changed to closedir.
26063 Autoconf 2.60 says this stuff was obsolete.
26065 2006-06-28 Bruno Haible <bruno@clisp.org>
26067 * modules/wcwidth (Files): Add m4/wchar_t.m4.
26069 2006-06-28 Bruno Haible <bruno@clisp.org>
26071 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
26074 2006-06-28 Bruno Haible <bruno@clisp.org>
26076 * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
26077 declaration for wcwidth.
26078 * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
26080 2006-06-28 Bruno Haible <bruno@clisp.org>
26082 * lib/mkdtemp.c [MINGW]: Include <io.h>.
26083 (mkdir): Define using _mkdir.
26085 2006-06-28 Bruno Haible <bruno@clisp.org>
26087 * lib/getaddrinfo.h: Fix POSIX URL.
26088 * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
26090 (use_win32_p): Make static.
26091 (getaddrinfo): Reject service name if it is empty or does not consist
26092 solely of decimal digits, or if its value is > 65535.
26093 (getnameinfo): Remove useless casts.
26095 2006-06-27 Simon Josefsson <jas@extundo.com>
26097 * modules/sys_select: New file, suggested by Bruno Haible, Paul
26098 Eggert and Martin Lambers.
26100 2006-06-27 Simon Josefsson <jas@extundo.com>
26102 * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
26103 Eggert and Martin Lambers.
26105 2006-06-27 Bruno Haible <bruno@clisp.org>
26107 * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
26108 result to 0, not to empty.
26109 Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
26111 2006-06-27 Bruno Haible <bruno@clisp.org>
26113 * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
26115 2006-06-26 Simon Josefsson <jas@extundo.com>
26117 * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
26120 2006-06-26 Paul Eggert <eggert@cs.ucla.edu>
26122 * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
26123 bug in IBM C V6 for AIX. Problem reported by Larry Jones in
26124 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
26126 2006-06-26 Mark D. Baushke <mdb@gnu.org>
26128 * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
26130 2006-06-26 Bruno Haible <bruno@clisp.org>
26132 * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
26134 2006-06-26 Bruno Haible <bruno@clisp.org>
26136 * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
26138 2006-06-26 Bruno Haible <bruno@clisp.org>
26140 * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
26141 SGI C compiler in pre-C99 mode.
26142 Suggested by Mark D. Baushke and Larry Jones.
26144 2006-06-26 Bruno Haible <bruno@clisp.org>
26146 * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
26148 Reported by Mark D. Baushke and Larry Jones.
26150 2006-06-26 Bruno Haible <bruno@clisp.org>
26152 * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
26154 Suggested by Mark D. Baushke and Larry Jones.
26156 2006-06-23 Simon Josefsson <jas@extundo.com>
26157 Bruno Haible <bruno@clisp.org>
26159 * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
26160 Emit mostlyclean-local rule.
26161 (func_emit_tests_Makefile_am): Likewise.
26162 * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
26164 2006-06-23 Mark D. Baushke <mdb@gnu.org>
26166 * lib/stdint_.h: Treat BSD/OS like OpenBSD.
26168 2006-06-23 Bruno Haible <bruno@clisp.org>
26170 * tests/test-stdint.c: Update to match ISO C 99 Technical
26173 2006-06-23 Bruno Haible <bruno@clisp.org>
26175 * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
26177 2006-06-23 Bruno Haible <bruno@clisp.org>
26179 * lib/stdint_.h: Treat IRIX like OpenBSD.
26181 2006-06-23 Bruno Haible <bruno@clisp.org>
26183 * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
26184 ISO C 99 Technical Corrigendum 1.
26186 2006-06-22 Simon Josefsson <jas@extundo.com>
26188 * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
26191 2006-06-22 Paul Eggert <eggert@cs.ucla.edu>
26193 * lib/glob.c (collated_compare): Remove 'const' uses that weren't
26194 needed. Some compiler complained about some of them. Problem reported
26196 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
26198 2006-06-21 Simon Josefsson <jas@extundo.com>
26200 * tests/test-getaddrinfo.c: New file.
26202 * modules/getaddrinfo-tests: New file.
26204 * MODULES.html.sh: Add inet_pton.
26206 * modules/inet_pton: New file.
26208 2006-06-21 Simon Josefsson <jas@extundo.com>
26210 * m4/getaddrinfo.m4: Don't define WINVER. Look for gethostbyname in
26211 -lws2_32 too. Fixes getaddrinfo on Windows 2000, with the price
26212 of using the (limited) gnulib implementation on Windows XP.
26214 * m4/inet_pton.m4: New file.
26216 2006-06-21 Simon Josefsson <jas@extundo.com>
26218 * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
26221 * lib/socket_.h: Don't define WINVER.
26223 * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
26224 slightly modified to work in gnulib.
26226 2006-06-21 Simon Josefsson <jas@extundo.com>
26228 * doc/gnulib.texi (Windows sockets): Add.
26230 2006-06-21 Paul Eggert <eggert@cs.ucla.edu>
26232 * lib/read-file.c (fread_file): Start with buffer allocation of
26233 0 bytes rather than 1 byte; this simplifies the code.
26234 Don't invoke feof; it's not needed. Refactor to avoid duplicate
26235 code to free buffer and save/restore errno.
26236 (internal_read_file): Remove unused local.
26238 2006-06-20 Paul Eggert <eggert@cs.ucla.edu>
26240 * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
26241 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
26242 Problem reported by Denis Excoffier in
26243 <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
26245 2006-06-19 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
26247 * modules/sys_socket, modules/socklen: Include sys/types since
26248 FreeBSD 4.x's sys/socket.h needs it.
26250 2006-06-19 Simon Josefsson <jas@extundo.com>
26252 * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
26254 2006-06-19 Paul Eggert <eggert@cs.ucla.edu>
26256 * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
26258 2006-06-19 Bruno Haible <bruno@clisp.org>
26260 * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
26261 and FULL_PATH_INTTYPES_H in angle brackets.
26262 Reported by Mark D. Baushke <mdb@gnu.org>.
26264 2006-06-17 Eric Blake <ebb9@byu.net>
26266 * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
26269 2006-06-17 Bruno Haible <bruno@clisp.org>
26271 * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
26274 2006-06-17 Bruno Haible <bruno@clisp.org>
26276 * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
26277 whether errno is declared. Assume <errno.h> declares errno.
26279 2006-06-17 Bruno Haible <bruno@clisp.org>
26281 * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
26283 2006-06-17 Bruno Haible <bruno@clisp.org>
26285 * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
26286 problem on Solaris 2.5.1.
26288 2006-06-16 Eric Blake <ebb9@byu.net>
26290 * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
26291 * lib/unicodeio.c [!defined errno]: Likewise.
26292 * lib/strtol.c [!defined errno]: Likewise.
26293 * lib/strtod.c [!defined errno]: Likewise.
26295 2006-06-15 Eric Blake <ebb9@byu.net>
26297 * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
26299 2006-06-15 Eric Blake <ebb9@byu.net>
26301 * config/srclist.txt (ssize_t.m4): Lose sync.
26303 2006-06-15 Bruno Haible <bruno@clisp.org>
26305 * modules/stdint (Files): Include m4/full-header-path.m4,
26306 m4/size_max.m4, m4/wchar_t.m4.
26307 (Makefile.am): Many more substitutions.
26308 * modules/stdint-tests: New file.
26309 * tests/test-stdint.c: New file.
26311 2006-06-15 Bruno Haible <bruno@clisp.org>
26313 * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
26314 (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
26315 gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
26316 gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
26317 gl_CHECK_TYPE_SAME): New macros.
26319 2006-06-15 Bruno Haible <bruno@clisp.org>
26321 * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
26323 2006-06-15 Bruno Haible <bruno@clisp.org>
26325 * lib/stdint_.h: Rewritten to be fully auto-configured.
26326 Fixes bug on HP-UX/IA64.
26328 2006-06-11 Paul Eggert <eggert@cs.ucla.edu>
26330 * lib/getdate.y (__attribute__): Don't define if already defined.
26331 Problem reported by Larry Jones.
26332 * lib/utimens.c (__attribute__): Likewise.
26334 2006-06-04 Paul Eggert <eggert@cs.ucla.edu>
26336 * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
26337 reported by Andreas Schwab.
26339 2006-05-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26340 Bruno Haible <bruno@clisp.org>
26342 * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
26343 check for the declaration of strnlen and a run test that exposes the
26344 AIX 5.1 strnlen bug. In the failure case, #define strndup to
26347 2006-05-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26348 Bruno Haible <bruno@clisp.org>
26350 * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
26352 2006-05-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26354 * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
26355 compile test, for Tru64 4.0D.
26357 2006-05-28 Karl Berry <karl@gnu.org>
26359 * config/srclist.txt (printf-args.c): lose sync.
26361 2006-05-26 Martin Lambers <marlam@marlam.de>
26363 * lib/getpass.c: Updates the test for the native W32 API, and adds
26364 missing includes, thus fixing compilation warnings.
26366 2006-05-25 Sergey Poznyakoff <gray@gnu.org.ua>
26368 * lib/exclude.c (exclude_fnmatch): New function.
26369 (excluded_file_name): Call exclude_fnmatch.
26370 * lib/exclude.h (excluded_file_name): New prototype
26372 2006-05-25 Paul Eggert <eggert@cs.ucla.edu>
26374 * lib/tempname.c (small_open, large_open): New macros.
26375 (__open, __open64) [!_LIBC]: Remove.
26376 (__gen_tempname): Use small_open and large_open instead of __open
26377 and __open64. This fixes a portability bug on HP-UX 11.11i
26378 reported by Simon Wing-Tang in
26379 <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
26381 2006-05-24 Bruno Haible <bruno@clisp.org>
26383 * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
26384 TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
26385 Reported by Thorsten Maerz <torte@netztorte.de> via
26386 Aaron Stone <aaron@serendipity.cx>.
26388 2006-05-19 Paul Eggert <eggert@cs.ucla.edu>
26390 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
26391 gl_ rather than jm_. Link, don't run, so that cross-compiles are
26392 allowed. Check that resulting type is arithmetic. Move AC_REQUIRE
26393 and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
26394 not really conditional on the cache.
26395 (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
26397 2006-05-19 Paul Eggert <eggert@cs.ucla.edu>
26399 * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
26400 Use the usual Autoconf way to include <time.h> and/or sys/time.h.
26401 (my_usleep): Don't mishandle maximum value.
26403 2006-05-19 Jim Meyering <jim@meyering.net>
26405 * lib/getugroups.c: Correct an outdated comment. From Bruno Haible.
26407 2006-05-17 Bruno Haible <bruno@clisp.org>
26409 Cygwin portability.
26410 * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
26412 2006-05-17 Bruno Haible <bruno@clisp.org>
26414 * lib/stdint_.h: Fix recognition of Cygwin.
26416 2006-05-15 Bruno Haible <bruno@clisp.org>
26418 * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
26419 on libtool patch by Ralf Wildenhues.
26421 2006-05-14 Paul Eggert <eggert@cs.ucla.edu>
26423 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
26424 test for C99 conformance; (bool) 0.5 is an integer constant
26425 expression, but (bool) -0.5 is not. Problem reported by Fedor
26426 Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
26428 2006-05-11 Simon Josefsson <jas@extundo.com>
26430 * m4/xvasprintf.m4: Fix obvious typo.
26432 2006-05-11 Jim Meyering <jim@meyering.net>
26434 * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/. From
26437 2006-05-10 Simon Josefsson <jas@extundo.com>
26439 * lib/md4.c: Typo fix, update copyright years.
26440 (K1, K2): Don't use L because it turn computations into 64-bit on
26443 2006-05-10 Paul Eggert <eggert@cs.ucla.edu>
26445 * lib/crc.c (crc32_update): Remove unnecessary L suffix.
26446 * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
26447 unwanted sign propagation, e.g., on hosts with 64-bit int.
26448 There still are some problems with reeelly weird theoretical hosts
26449 (e.g., 33-bit int) but it's not worth worrying about now.
26450 * lib/sha1.c (rol): Likewise.
26451 (K1, K2, K3, K4): Remove unnecessary L suffix.
26453 2006-05-10 Bruno Haible <bruno@clisp.org>
26455 * lib/des.c: Cast to avoid warnings.
26457 2006-05-09 Bruno Haible <bruno@clisp.org>
26459 * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
26460 (Depends-on): Depend also on xsize, stdarg.
26461 (configure.ac): Add gl_XVASPRINTF.
26463 2006-05-09 Bruno Haible <bruno@clisp.org>
26465 * m4/xvasprintf.m4: New file.
26467 2006-05-09 Bruno Haible <bruno@clisp.org>
26469 * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
26470 (EOVERFLOW): Define fallback value.
26471 (xstrcat): New function.
26472 (xvasprintf): Recognize the special case of a string concatenation.
26474 2006-05-08 Eric Blake <ebb9@byu.net>
26476 * gnulib-tool (func_version): Base copyright year on CVS date.
26477 (func_emit_copyright_notice): New function.
26478 (func_emit_lib_Makefile_am): Use it.
26479 (func_emit_tests_Makefile_am): Likewise.
26480 (func_import): Likewise.
26482 2006-05-08 Bruno Haible <bruno@clisp.org>
26484 * modules/stdarg: New file.
26485 * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
26487 2006-05-08 Bruno Haible <bruno@clisp.org>
26489 * m4/stdarg.m4: New file, from GNU gettext.
26491 2006-05-08 Bruno Haible <bruno@clisp.org>
26493 * config/srclist.txt (build-aux/config.rpath): different from latest
26496 2006-05-08 Bruno Haible <bruno@clisp.org>
26498 * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
26500 2006-05-05 Jim Meyering <jim@meyering.net>
26502 * m4/warning.m4: New file, derived from bison's file by the same name.
26504 2006-05-03 Bruno Haible <bruno@clisp.org>
26506 * lib/stdint_.h: Shorter URL.
26507 * lib/inttypes.h: Likewise.
26509 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
26511 * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
26513 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
26515 * lib/verify.h: Document the internals better. Most of this change
26516 was written by Bruno Haible.
26518 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
26520 * doc/verify.texi: New file, partly based on a proposal by
26523 2006-05-02 Bruno Haible <bruno@clisp.org>
26525 * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
26527 * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
26529 2006-04-29 Bruno Haible <bruno@clisp.org>
26531 * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
26532 Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
26534 2006-04-29 Bruno Haible <bruno@clisp.org>
26536 * gnulib-tool: Make --update option actually work.
26538 2006-04-29 Bruno Haible <bruno@clisp.org>
26540 * doc/gcd.texi: New file.
26541 * doc/gnulib.texi: Include it.
26543 2006-04-25 Paul Eggert <eggert@cs.ucla.edu>
26545 * lib/getdate.y (get_date): When adding relative date, start with the
26546 initial time, not with the result of the first mktime call.
26548 2006-04-25 Bruno Haible <bruno@clisp.org>
26550 * gnulib-tool (func_import): Output the include directives in three
26551 blocks, sorted separately.
26552 Reported by Ben Pfaff <blp@cs.stanford.edu>.
26554 2006-04-24 Paul Eggert <eggert@cs.ucla.edu>
26556 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
26557 to define main with arguments, for C++. Reported by Eric Blake.
26558 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
26559 Prefer 'int main ()' to 'int main (void)', for C++.
26560 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
26561 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
26562 for 'main', for C99 and C++.
26564 2006-04-24 Paul Eggert <eggert@cs.ucla.edu>
26566 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
26567 Don't assume that exit status -1 is valid.
26568 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
26569 * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
26570 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
26571 * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
26572 * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
26573 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
26574 not AC_TRY_RUN. Use return, not exit. Don't assume that
26575 functions can be used without declaring them, or that you can
26576 exit with status -1.
26577 * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
26579 2006-04-24 Karl Berry <karl@gnu.org>
26581 * config/srclist.txt (longdouble.m4): sync lost.
26583 2006-04-24 Eric Blake <ebb9@byu.net>
26585 * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
26587 2006-04-24 Bruno Haible <bruno@clisp.org>
26589 * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
26590 poll() implementation in AIX.
26591 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26593 2006-04-24 Bruno Haible <bruno@clisp.org>
26595 * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
26596 assigned exactly once.
26598 2006-04-23 Claudio Fontana <claudio@gnu.org>
26599 Bruno Haible <bruno@clisp.org>
26601 * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
26602 * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
26605 2006-04-23 Bruno Haible <bruno@clisp.org>
26607 * modules/copy-file: Depend on unistd.
26608 * modules/execute: Likewise.
26609 * modules/fatal-signal: Likewise.
26610 * modules/findprog: Likewise.
26611 * modules/mkdtemp : Likewise.
26612 * modules/pipe: Likewise.
26613 * modules/wait-process: Likewise.
26615 2006-04-23 Bruno Haible <bruno@clisp.org>
26617 * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
26618 condition was already detected.
26619 Reported by Ben Pfaff <blp@cs.stanford.edu>.
26621 2006-04-23 Bruno Haible <bruno@clisp.org>
26623 * lib/copy-file.c: Include <unistd.h> unconditionally.
26624 * lib/execute.c: Likewise.
26625 * lib/fatal-signal.c: Likewise.
26626 * lib/findprog.c: Likewise.
26627 * lib/mkdtemp.c: Likewise.
26628 * lib/pipe.h: Likewise.
26629 * lib/pipe.c: Likewise.
26630 * lib/wait-process.h: Likewise.
26632 2006-04-23 Bruno Haible <bruno@clisp.org>
26634 * gnulib-tool (func_usage): Fix --import description. Document
26636 (func_import): Create temporary file in a temporary directory, if
26637 --dry-run is specified. Silence errors from 'grep' when there are no
26638 m4 files in $m4dir.
26639 (func_create_testdir): Silence errors from 'grep' when there are no
26640 m4 files in $m4dir.
26641 Reported by Karl Berry <karl@freefriends.org>.
26643 2006-04-20 Bruno Haible <bruno@clisp.org>
26645 * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
26646 one argument, so that the code will be portable to Autoconf 2.60.
26647 * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
26648 * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
26649 * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
26651 2006-04-19 Derek Price <derek@ximbiot.com>
26652 Eric Blake <ebb9@byu.net>
26654 * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
26655 rather than "/full/path.h". Update comment to match. Shorten &
26656 generalize m4_translit call via AS_TR_CPP.
26658 2006-04-19 Derek Price <derek@ximbiot.com>
26659 Eric Blake <ebb9@byu.net>
26661 * lib/inttypes.h: Correct grammar in comment.
26663 2006-04-18 Derek Price <derek@ximbiot.com>
26664 Paul Eggert <eggert@cs.ucla.edu>
26666 * modules/inttypes: New file.
26667 * modules/strtoimax, modules/strtoumax: Depend on inttypes.
26669 2006-04-18 Derek Price <derek@ximbiot.com>
26670 Paul Eggert <eggert@cs.ucla.edu>
26672 * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
26675 2006-04-18 Derek Price <derek@ximbiot.com>
26676 Paul Eggert <eggert@cs.ucla.edu>
26678 * lib/inttypes.h: New file.
26679 * lib/strtoimax.c: Assume <inttypes.h>.
26681 2006-04-15 Paul Eggert <eggert@cs.ucla.edu>
26683 * lib/utimens.c (futimens): glibc futimesat messes up if /proc
26684 isn't mounted. Problem reported by Kir Kolyshkin.
26686 2006-04-13 Paul Eggert <eggert@cs.ucla.edu>
26688 * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
26689 RE_ENABLE_I18N is not defined. Problem reported by Mark D. Baushke via
26691 * lib/regex.h (RE_DUP_MAX): Update comment to match current
26694 2006-04-12 Eric Blake <ebb9@byu.net>
26696 * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
26697 is now done automatically by the corresponding Autoconf macro.
26699 2006-04-11 Paul Eggert <eggert@cs.ucla.edu>
26701 * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
26704 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
26706 Merge regex changes from libc, removing some of our
26707 POSIX-conformance changes that were rejected and redoing them in a
26708 less-intrusive way.
26710 * lib/regcomp.c (re_compile_internal, init_dfa):
26711 Length arg is now size_t, not Idx. All uses changed.
26712 (peek_token): Forward decl now says internal_function.
26713 (__re_error_msgid, __re_error_msgid_idx):
26714 Now static rather than extern with attribute_hidden.
26715 (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
26716 For some reason libc prefers K&R style defns for external functions.
26717 (regerror) [!defined _LIBC]: Likewise.
26718 (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
26719 (seek_collating_symbol_entry, lookup_collation_sequence_value):
26720 (build_range_exp, build_collating_symbol):
26721 Use K&R-style defn.
26722 (re_compile_fastmap): Use '\0' to memset, not 0.
26723 (utf8_sb_map): Make the calculations more obvious.
26724 (init_dfa, parse_bracket_exp, build_charclass_op):
26725 Call calloc and cast result, as glibc does.
26726 (init_word_char, fetch_token, peek_token, peek_token_bracket):
26727 (build_range_exp, build_collating_symbol):
26728 Now internal functions.
26730 * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
26732 * lib/regex.h (__USE_GNU_REGEX): New macro. Don't depend on
26733 _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
26734 Don't depend on VMS; depend on __VMS instead, for POSIX
26735 namespace cleanness.
26736 (regoff_t): Define to ssize_t, not long int.
26738 Remove the REG_ macros named below. Instead, make the old names
26739 (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
26741 (REG_BACKSLASH_ESCAPE_IN_LISTS):
26742 (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
26743 (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
26744 (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
26745 (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
26746 (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
26747 (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
26748 (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
26749 (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
26750 (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
26751 (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
26752 (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
26753 (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
26754 (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
26755 (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
26756 (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
26757 (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
26759 Remove. All uses replaced by the old RE_* names.
26760 (RE_BACKSLASH_ESCAPE_IN_LISTS):
26761 (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
26762 (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
26763 (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
26764 (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
26765 (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
26766 (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
26767 (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
26768 (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
26769 (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
26770 (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
26771 Don't bother having these macros be independent of each others'
26772 values, since they no longer exist in the POSIX name space.
26774 Rename the following member names back to their old names,
26775 unless !__USE_GNU_REGEX. All uses changed back.
26776 (buffer): Renamed from re_buffer.
26777 (allocated): Renamed from re_allocated.
26778 (used): Renamed from re_used.
26779 (syntax): Renamed from re_syntax.
26780 (fastmap): Renamed from re_fastmap.
26781 (translate): Renamed from re_translate.
26782 (can_be_null): Renamed from re_can_be_null.
26783 (regs_allocated): Renamed from re_regs_allocated.
26784 (fastmap_accurate): Renamed from re_fastmap_accurate.
26785 (no_sub): Renamed from re_no_sub.
26786 (not_bol): Renamed from re_not_bol.
26787 (not_eol): Renamed from re_not_eol.
26788 (newline_anchor): Renamed from re_newline_anchor.
26789 (num_regs): Renamed from rm_num_regs.
26790 (start): Renamed from rm_start.
26791 (end): Renamed from rm_end.
26793 (free_state): Move up a bit.
26795 * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
26796 #define to be empty.
26797 (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
26798 when that is what is intended.
26799 (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
26800 (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
26802 (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
26803 All uses changed back to re_malloc, etc. It's now the caller's
26804 responsibility to check for overflow; all callers changed.
26805 (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
26806 (re_x2nrealloc): Remove.
26807 (free_state): Remove decl.
26809 * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
26810 (re_set_registers, re_exec):
26811 Use K&R-style defn.
26813 2006-01-31 Roland McGrath <roland@redhat.com>
26815 * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
26816 Reported by Mike Frysinger <vapier@gentoo.org>.
26818 2006-01-15 Andreas Jaeger <aj@suse.de>
26821 * lib/regex_internal.c (re_string_reconstruct): Adjust for
26822 build_wcs_upper_buffer change.
26823 (build_wcs_upper_buffer): Change return type.
26825 2005-12-10 Ulrich Drepper <drepper@redhat.com>
26827 * lib/regex_internal.h: Include <stdint.h> if available.
26829 2005-12-06 Paolo Bonzini <bonzini@gnu.org>
26831 * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
26833 2005-10-14 Ulrich Drepper <drepper@redhat.com>
26835 * lib/regcomp.c: Adjust for changed secondary hash function.
26837 2005-09-30 Ulrich Drepper <drepper@redhat.com>
26839 * lib/regex.h: Pretty printing.
26840 Clean up namespace a bit.
26842 2005-09-30 Jakub Jelinek <jakub@redhat.com>
26844 * lib/regexec.c (update_cur_sifted_state, check_arrival,
26845 check_arrival_add_next_nodes): Avoid using uninitialized variable.
26847 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
26848 Ulrich Drepper <drepper@redhat.com>
26851 * lib/regex_internal.h (bitset_t): Renamed from bitset. All uses
26853 (bitset_word_t): Renamed from bitset_word. All uses changed.
26855 2005-09-22 Ulrich Drepper <drepper@redhat.com>
26858 * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
26859 * lib/regcomp.c: Remove unnecessary uses of
26860 unsigned RE_TRANSLATE_TYPE.
26861 * lib/regex_internal.h: Likewise.
26862 * lib/regex_internal.c: Likewise.
26863 * lib/regexec.c: Likewise.
26864 Based on a patch by Stepan Kasal <kasal@ucw.cz>.
26866 2005-09-07 Ulrich Drepper <drepper@redhat.com>
26868 * lib/regexec.c (find_recover_state): Remove unnecessary
26870 (transit_state_bkref): Make DFA a const pointer.
26871 (get_subexp): Likewise.
26872 (check_arrival): Likewise.
26873 (update_cur_sifted_state): Likewise.
26874 (re_search_internal): Likewise.
26875 (prune_impossible_nodes): Likewise.
26876 (acquire_init_state_context): Likewise.
26877 (proceed_next_node): Likewise.
26878 (set_regs): Likewise.
26879 (free_fail_stack_return): Likewise.
26880 (check_arrival_expand_ecl): Mark DFA parameter as const.
26881 (check_arrival_expand_ecl_sub): Likewise.
26882 (check_subexp_limits): Likewise.
26883 (sub_epsilon_src_nodes): Likewise.
26884 (add_epsilon_src_nodes): Likewise.
26885 (merge_state_array): Likewise.
26886 (update_regs): Likewise.
26887 (build_trtable): Likewise.
26888 (sift_states_backward): Mark MCTX parameter as const.
26889 (build_sifted_states): Likewise.
26890 (update_cur_sifted_state): Likewise.
26891 (sift_states_mkref): Likewise.
26892 (check_arrival_expand_ecl): Mark eclosure as const.
26893 (check_dst_limits_calc_pos_1): Likewise.
26894 * lib/regex_internal.h (re_match_context_t): Make dfa a const
26897 2005-09-06 Ulrich Drepper <drepper@redhat.com>
26899 * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
26900 (transit_state_sb): Likewise.
26901 (transit_state_mb): Likewise.
26902 (sift_states_iter_mb): Likewise.
26903 (check_arrival_add_next_nodes): Likewise.
26904 (check_node_accept_bytes): Change first parameter to pointer-to-const.
26905 [_LIBC] (re_search_2_stub): Use mempcpy.
26907 * lib/regex_internal.c (re_string_reconstruct): Avoid calling
26908 mbrtowc for very simple UTF-8 case.
26910 * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
26911 a pointer-to-const.
26912 (re_acquire_state_context): Likewise.
26913 * lib/regex_internal.h: Adjust prototypes.
26915 * lib/regex.c: Prevent using C++ compilers.
26917 * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
26918 (re_acquire_state_context): Likewise.
26920 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
26922 * modules/regex (Depends-on): Add ssize_t.
26924 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
26926 * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
26929 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
26931 * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
26933 2006-03-29 Mark D. Baushke <mdb@gnu.org>
26934 Bruno Haible <bruno@clisp.org>
26936 * lib/stdint_.h: On OpenBSD, don't redefine types already included in
26937 <sys/types.h> and <inttypes.h>.
26939 2006-03-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26941 * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
26942 `__error_t_defined', so argp.h will not typedef the former.
26944 2006-03-25 Paul Eggert <eggert@cs.ucla.edu>
26946 * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
26947 REG_SYNTAX_EMACS, and REG_IGNORE_CASE. Settle for the traditional
26948 glibc names. Even if glibc is changed to conform to POSIX, the
26949 traditional names will be available anyway, since regex depends on
26950 the extensions module. Also, fix a longstanding typo in the
26951 implementation of Spencer ERE test #75 from grep 2.3. Problems
26952 reported by Emanuele Giaquinta. Also, change sense of cached
26953 variable, so that the message makes sense.
26955 2006-03-24 Simon Josefsson <jas@extundo.com>
26957 * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
26958 including some doc fixes.
26959 (base64_encode_alloc): Fix +1 bug on allocation failures.
26961 2006-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26963 * lib/base64.c (base64_encode): Do not read past end of array with
26964 unsanitized input on systems with CHAR_BIT > 8.
26966 2006-03-24 Eric Blake <ebb9@byu.net>
26968 * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
26970 2006-03-22 Karl Berry <karl@gnu.org>
26972 * config/srclist.txt (*setenv.[ch]): get from coreutils.
26973 * config/srclistvars.sh (COREUTILS): new var.
26975 2006-03-17 Jim Meyering <jim@meyering.net>
26977 * m4/regex.m4 (gl_REGEX): Fix typo in last change:
26978 s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
26980 2006-03-16 Paul Eggert <eggert@cs.ucla.edu>
26982 * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
26983 no longer needs it. Instead, check that regoff_t is as least
26984 as wide as ptrdiff_t.
26986 Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
26987 so that our regex.h stays compatible with the installed regex.
26988 This is helpful for installers who configure --without-included-regex.
26989 Problem reported by Emanuele Giaquinta.
26991 2006-03-16 Paul Eggert <eggert@cs.ucla.edu>
26993 * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
26994 Typedef to long int, not to off_, as POSIX will likely change
26997 2006-03-15 Eric Blake <ebb9@byu.net>
26999 * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
27001 2006-03-13 Sergey Poznyakoff <gray@gnu.org.ua>
27003 * lib/argp-help.c (validate_uparams): Fix typo
27004 * lib/argp-parse.c (argp_default_options): Consistently begin help
27005 messages with a lowercase letter.
27007 2006-03-11 Paul Eggert <eggert@cs.ucla.edu>
27009 * lib/time_r.h (asctime_r, ctime_r): Remove. These functions can
27010 overrun buffers and shouldn't be used (much as gets shouldn't be
27012 * lib/time_r.c (asctime_r, ctime_r): Likewise.
27014 2006-03-08 Simon Josefsson <jas@extundo.com>
27016 * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
27017 suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27019 2006-03-08 Simon Josefsson <jas@extundo.com>
27021 * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
27022 $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27024 2006-03-08 Simon Josefsson <jas@extundo.com>
27026 * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
27027 signal that configure disabled the device.
27029 2006-03-08 Simon Josefsson <jas@extundo.com>
27031 * build-aux/maint.mk: Fix refresh-po, to handle no translated
27034 2006-03-07 Simon Josefsson <jas@extundo.com>
27036 * modules/getopt (Depends-on): Add unistd.
27038 * modules/unistd: New file.
27040 2006-03-07 Simon Josefsson <jas@extundo.com>
27042 * modules/gc-random: New file.
27044 2006-03-07 Simon Josefsson <jas@extundo.com>
27046 * m4/unistd_h.m4: New file.
27048 2006-03-07 Simon Josefsson <jas@extundo.com>
27050 * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
27051 test to be side-effect free by storing the result in the cache
27052 variable gl_cv_lib_readline, and moving the assignment of
27053 LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
27054 From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27056 2006-03-07 Simon Josefsson <jas@extundo.com>
27058 * m4/gc-random.m4: New file, mostly from gc.m4. Warn instead of
27059 error on missing devices (the functions will return an error).
27061 * m4/gc.m4: Move random stuff to gc-random.m4
27063 2006-03-07 Simon Josefsson <jas@extundo.com>
27065 * lib/unistd_.h: New file.
27067 2006-03-07 Simon Josefsson <jas@extundo.com>
27069 * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
27071 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
27073 * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
27074 Problem reported by Juan Manuel Guerrero.
27076 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
27078 * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
27080 * lib/getlogin_r.c: Likewise.
27081 * lib/getlogin_r.h: Likewise.
27082 * lib/glob.c: Likewise.
27083 * lib/pagealign_alloc.c: Likewise.
27084 * lib/unistd_.h: Remove; no longer needed.
27086 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
27088 * MODULES.html.sh (Support for systems lacking POSIX:2001):
27090 * modules/c-stack (Depends-on): Add unistd.
27091 * modules/getlogin_r: Likewise.
27092 * modules/glob: Likewise.
27093 * modules/pagealign_alloc: Likewise.
27094 * modules/unistd (Files): Remove lib/unistd_.h.
27095 (EXTRA_DIST): Remove.
27096 (unistd.h): Create using 'echo' rather than 'cp', so that we don't
27098 (MOSTLYCLEANFILES): Remove unistd.h-t.
27100 2006-03-03 Simon Josefsson <jas@extundo.com>
27102 * build-aux/maint.mk: Add several syntax checks from CoreUtils.
27104 2006-03-03 Simon Josefsson <jas@extundo.com>
27106 * build-aux/maint.mk: Add refresh-po rule, based on ideas from
27109 2006-03-03 Simon Josefsson <jas@extundo.com>
27111 * build-aux/maint.mk: Add indent target.
27113 2006-03-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
27115 * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
27116 our replacement poll.h in any case, to avoid a differing
27117 declaration from a system header. Seen on AIX.
27119 2006-03-01 Simon Josefsson <jas@extundo.com>
27121 * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
27124 2006-03-01 Paul Eggert <eggert@cs.ucla.edu>
27126 * modules/gettime (Depends-on): Add extensions module.
27127 * modules/nanosleep (Depends-on): Likewise.
27128 * modules/settime (Depends-on): Likewise.
27130 2006-03-01 Paul Eggert <eggert@cs.ucla.edu>
27132 * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
27133 not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
27135 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
27136 * m4/timespec.m4 (gl_TIMESPEC): Likewise.
27138 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
27139 not "==". Reported by Ralf Wildenhues.
27141 2006-03-01 Karl Berry <karl@gnu.org>
27143 * doc/Copyright/request-*: new files, synced from gnuorg.
27145 2006-03-01 Karl Berry <karl@gnu.org>
27147 * config/srclist.txt (Copyright/*): new entries.
27149 2006-02-28 Simon Josefsson <jas@extundo.com>
27151 * lib/getopt.c: Protect #include of unistd.h, for MSVS.
27153 2006-02-27 Simon Josefsson <jas@extundo.com>
27155 * lib/base64.h: Indent #define's. From Jim Meyering
27156 <jim@meyering.net>.
27158 2006-02-27 Jim Meyering <jim@meyering.net>
27160 Revert the change of 2006-02-24, so these files can continue
27161 to be sync'd from gettext.
27162 * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
27165 2006-02-26 Paul Eggert <eggert@cs.ucla.edu>
27167 * modules/intprops: New file.
27168 * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
27170 * modules/getloadavg (Files): Remove lib/intprops.h.
27171 (Depends-on): Add intprops.
27172 * modules/human: Likewise.
27173 * modules/inttostr: Likewise.
27174 * modules/openat: Likewise.
27175 * modules/sig2str: Likewise.
27176 * modules/userspec: Likewise.
27177 * modules/utimecmp: Likewise.
27178 * modules/xnanosleep: Likewise.
27179 * modules/xstrtol: Likewise.
27181 2006-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny changes)
27183 * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
27184 * modules/lock-tests (TESTS): Use $(EXEEXT).
27185 * modules/tls-tests: Likewise.
27186 * modules/argp-tests: Likewise.
27187 (check_PROGRAMS): New var, replacing...
27188 (noinst_PROGRAMS, test_argp_SOURCES): Remove.
27190 2006-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27192 * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
27195 2006-02-24 Paul Eggert <eggert@cs.ucla.edu>
27197 * lib/glob.c: Say "invalid" rather than "illegal" in comments.
27199 2006-02-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27201 Sync from coreutils.
27202 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
27205 2006-02-22 Jim Meyering <jim@meyering.net>
27207 Sync from coreutils.
27208 * m4/chdir-safer.m4: New file.
27210 2006-02-20 Paul Eggert <eggert@cs.ucla.edu>
27212 * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
27213 AT_FDCWD exceeds INT_MAX.
27214 * lib/openat.h (AT_FDCWD): Likewise.
27216 2006-02-17 Eric Blake <address@hidden>
27218 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
27220 2006-02-16 Simon Josefsson <jas@extundo.com>
27222 * modules/getaddrinfo (Depends-on): Add sys_socket.
27224 2006-02-15 Simon Josefsson <jas@extundo.com>
27226 * build-aux/maint.mk: Add dsyntax-check rule.
27228 2006-02-15 Eric Blake <ebb9@byu.net>
27230 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
27231 winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
27232 'present but cannot compile' warnings on cygwin.
27233 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET. Don't
27234 use ws2tcpip.h if sys/socket.h works.
27235 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
27236 (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
27238 2006-02-14 Simon Josefsson <jas@extundo.com>
27240 * modules/maintainer-makefile (Files): Rename.
27242 * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
27243 and (the local) Makefile.cfg to maint-cfg.mk.
27245 * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
27248 * modules/maintainer-makefile: New module.
27250 * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
27251 severaly stripped to make it possible to build it up from scratch
27252 with reliable tests.
27254 * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
27255 fixes to permit overriding the default actions when configure and
27256 makefile are not available.
27258 2006-02-14 Paul Eggert <eggert@cs.ucla.edu>
27260 Sync from coreutils.
27261 * modules/lstat (Depends-on): Don't depend on xalloc.
27262 (License): Change from GPL to LGPL, since this is now simply a
27263 replacement for a libc function.
27265 2006-02-14 Jim Meyering <jim@meyering.net>
27267 Sync from coreutils.
27269 Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
27270 failure on deficient systems, and simplify gnulib lgpl dependencies.
27271 * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
27272 xmalloc/lstat combination. Based on a patch from Bruno Haible.
27274 * lib/xalloc-die.c: Remove unused definition of N_.
27276 2006-02-14 Jim Meyering <jim@meyering.net>
27278 Sync from coreutils.
27279 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
27280 AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
27281 $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
27282 double-quote uses of that variable, to accommodate the rare case in
27283 which getmntent is available in none of the libraries checked. This
27284 happens at least on FreeBSD 5.0.
27286 2006-02-13 Simon Josefsson <jas@extundo.com>
27288 * gnulib-tool (Usage): Fix --import, from
27289 karl@freefriends.org (Karl Berry).
27291 2006-02-13 Sergey Poznyakoff <gray@gnu.org.ua>
27293 * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
27295 2006-02-07 Sergey Poznyakoff <gray@gnu.org.ua>
27297 * lib/argp-namefrob.h: Restore changes accidentally lost during the
27298 "autoupdate" on 2005-12-12.
27300 2006-02-07 Paul Eggert <eggert@cs.ucla.edu>
27302 * modules/closeout (Depends-on): Remove atexit.
27304 2006-02-07 Paul Eggert <eggert@cs.ucla.edu>
27306 * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
27307 ints to 0 or 1, as this isn't true for the stdbool.h substitute.
27309 2006-02-05 Paul Eggert <eggert@cs.ucla.edu>
27311 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
27312 __EXTENSIONS__ if this causes compilation to fail. Problem
27313 reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
27314 c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
27316 2006-01-27 Paul Eggert <eggert@cs.ucla.edu>
27318 * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
27319 Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
27320 <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
27323 2006-01-26 Simon Josefsson <jas@extundo.com>
27325 * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
27326 prototype is visible on mingw32.
27328 * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
27331 * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
27334 2006-01-26 Paul Eggert <eggert@cs.ucla.edu>
27336 * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too. Don't
27337 attempt to open for write; this always fails, at least on POSIX
27338 hosts. This reinstates the 2006-01-09 change, which was
27339 inadvertently removed.
27341 2006-01-26 Bruno Haible <bruno@clisp.org>
27343 * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
27344 Reported by Paul Eggert.
27346 2006-01-26 Bruno Haible <bruno@clisp.org>
27347 Paul Eggert <eggert@cs.ucla.edu>
27349 * lib/stdbool_.h (_Bool)
27350 [(! (defined __cplusplus || defined __BEOS__)
27351 && !defined __GNUC__
27352 && !(defined __HP_cc || defined __xlc__
27353 || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
27354 || defined __sgi))]:
27355 #define to signed char in these cases too; this simplifies
27356 the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
27357 etc., separately) and makes it more conservative.
27359 2006-01-25 Simon Josefsson <jas@extundo.com>
27361 * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
27362 -lws2_32. Protect sys/socket.h and netdb.h #include's. Include
27363 ws2tcpip.h with WINVER=0x0501. All for mingw32.
27365 2006-01-25 Sergey Poznyakoff <gray@gnu.org.ua>
27367 * lib/argp-namefrob.h: Bugfix. Remove stray #
27369 2006-01-25 Paul Eggert <eggert@cs.ucla.edu>
27371 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
27372 so that we test the test.
27373 Check for yet another HP-UX cc bug involving *bool |= bool.
27375 2006-01-25 Karl Berry <karl@gnu.org>
27377 * config/srclist.txt (vasnprintf.c): sync lost.
27379 2006-01-25 Jim Meyering <jim@meyering.net>
27381 Sync from the stable (b5) branch of coreutils:
27383 * lib/fts.c (fts_children): Don't let close() clobber errno from
27386 * lib/fts.c (fts_stat): When following a symlink-to-directory,
27387 don't necessarily interpret stat-fails+lstat-succeeds as indicating
27388 a dangling symlink. That can also happen at least for ELOOP.
27389 The fix: return FTS_SLNONE only when the stat errno is ENOENT.
27390 FYI, this bug predates the inclusion of fts.c in coreutils.
27392 * lib/fts.c (fts_open): Put new maxarglen declaration and uses
27393 in their own block, so pre-c99 compilers don't object.
27395 Avoid the double-free (first in fts_read, second in fts_close) that
27396 would occur when an `active' directory is made inaccessible (e.g.,
27397 via chmod a-x) during a traversal.
27398 * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
27399 before returning. Reproduce this failure by
27400 mkdir -p a/b; cd a; chmod a-x . b
27401 Reported by Stavros Passas.
27403 2006-01-25 Jim Meyering <jim@meyering.net>
27405 * lib/fileblocks.c: Remove more useless parentheses.
27406 * lib/readutmp.h: Likewise.
27408 2006-01-25 Bruno Haible <bruno@clisp.org>
27410 * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
27412 Reported by Paul Eggert.
27414 2006-01-25 Bruno Haible <bruno@clisp.org>
27416 * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
27417 rid of a trap command. For Solaris sh.
27418 Reported by Mark D. Baushke <mdb@gnu.org>.
27420 2006-01-24 Simon Josefsson <jas@extundo.com>
27422 * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
27425 2006-01-24 Karl Berry <karl@gnu.org>
27427 * config/srclist.txt (argp-namefrob.h): sync lost.
27429 2006-01-24 Jim Meyering <jim@meyering.net>
27431 * modules/openat (Files): Add lib/intprops.h.
27432 From Mark D. Baushke.
27434 2006-01-24 Jim Meyering <jim@meyering.net>
27436 * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
27437 Reported by Mark D. Baushke.
27439 2006-01-24 Jim Meyering <jim@meyering.net>
27441 * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
27443 2006-01-24 Bruno Haible <bruno@clisp.org>
27445 * modules/strnlen (Maintainer): Change from glibc to all.
27447 2006-01-24 Bruno Haible <bruno@clisp.org>
27449 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
27450 Patch by Paul Eggert.
27452 2006-01-24 Bruno Haible <bruno@clisp.org>
27454 * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
27456 Report and patch by Albert Chin-A-Young <china@thewrittenword.com> on
27459 * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
27460 'signed char' to avoid problems with the built-in _Bool type.
27461 Reported by Paul Eggert on 2005-11-26.
27463 2006-01-24 Bruno Haible <bruno@clisp.org>
27465 * gnulib-tool (func_import): Avoid constructing complicated sed
27466 expressions inside backquote.
27467 Report and solution by Mark D. Baushke <mdb@gnu.org>.
27469 2006-01-23 Ulrich Drepper <drepper@redhat.com>
27471 These changes imported from libc.
27472 * lib/getopt.c: Use __fxprintf instead of inline stream orientation
27473 test and two separate function calls.
27474 * lib/strndup.c (__strndup): Add libc_hidden_def.
27476 2006-01-23 Simon Josefsson <jas@extundo.com>
27478 * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
27479 Remove the test_*_SOURCES variable: automake infers it by default.
27480 * modules/tls-tests: Likewise.
27482 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
27484 Work around porting bugs reported by Dieter in
27485 <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
27486 * lib/getopt.c (_NOPROTO): Remove; no longer needed.
27487 Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
27488 Include "getopt.h" first, to check interface.
27489 (getenv): Declare only if defined HAVE_DECL_GETENV &&
27491 * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
27492 (__strndup): Revert to K&R-style function dfns, the glibc style.
27493 * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
27494 (strnlen, __strnlen): Remove #defines and #undefs; not needed.
27495 Include strnlen.h first, to get prototype properly.
27496 (strnlen): Renamed from __strnlen.
27499 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
27501 * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
27503 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
27505 * config/srclist.txt: Adjust to reflect glibc reorganization.
27506 This affects only comments.
27508 2006-01-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
27510 * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
27511 Reported by Bruce Korb <bkorb@gnu.org>.
27513 2006-01-22 Paul Eggert <eggert@cs.ucla.edu>
27515 * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
27516 to pacify gcc -Wswitch-default.
27518 2006-01-22 Bruno Haible <bruno@clisp.org>
27520 * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
27521 temporary buffer for sprintf, take into account the precision also
27522 for 'd', 'i', 'u', 'o', 'x', 'X'.
27524 2006-01-21 Sergey Poznyakoff <gray@gnu.org.ua>
27526 * modules/argp-tests: New module
27527 * tests/test-argp.c: New file
27528 * tests/test-argp-2.sh: New file
27530 2006-01-21 Sergey Poznyakoff <gray@gnu.org.ua>
27532 * lib/argp-help.c (usage_long_opt): Do not print DOC options.
27533 (__argp_base_name): Removed
27534 * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
27536 (__argp_base_name): Provide macro definition or extern declaration
27537 depending on the configuration
27539 2006-01-20 Simon Josefsson <jas@extundo.com>
27541 * modules/inet_ntop (Depends-on): Depend on sys_socket.
27543 2006-01-20 Simon Josefsson <jas@extundo.com>
27545 * lib/inet_ntop.h: Unconditionally include sys/socket.h.
27547 2006-01-20 Paul Eggert <eggert@cs.ucla.edu>
27549 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
27550 rather than -Xlinker -z -Xlinker ignore, as it's more portable.
27551 Suggested by Bruno Haible.
27553 2006-01-20 Karl Berry <karl@gnu.org>
27555 * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
27556 until changes propagate, I guess.
27558 2006-01-19 Simon Josefsson <jas@extundo.com>
27560 * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
27562 2006-01-19 Simon Josefsson <jas@extundo.com>
27564 * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
27566 2006-01-19 Simon Josefsson <jas@extundo.com>
27568 * gnulib-tool: Set check_PROGRAMS.
27570 * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
27571 modules/des-tests, modules/gc-arcfour-tests,
27572 modules/gc-arctwo-tests, modules/gc-des-tests,
27573 modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
27574 modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
27575 modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
27576 modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
27577 modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
27578 modules/md5-tests, modules/readline, modules/rijndael-tests: Use
27579 check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
27582 2006-01-18 Simon Josefsson <jas@extundo.com>
27584 * modules/socklen (Depends-on): Depend on sys_socket.
27586 2006-01-18 Simon Josefsson <jas@extundo.com>
27588 * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
27589 modules/des-tests, modules/gc-arcfour-tests,
27590 modules/gc-arctwo-tests, modules/gc-des-tests,
27591 modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
27592 modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
27593 modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
27594 modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
27595 modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
27596 modules/md5-tests, modules/readline, modules/rijndael-tests: Add
27597 $(EXEEXT) to automake TESTS variable, for mingw32.
27599 2006-01-17 Simon Josefsson <jas@extundo.com>
27601 * modules/socklen (Include): Need sys/socket.h.
27603 2006-01-17 Bruno Haible <bruno@clisp.org>
27605 * modules/ssize_t (Include): Add <sys/types.h>.
27607 2006-01-16 Paul Eggert <eggert@cs.ucla.edu>
27609 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
27610 it's not portable and it doesn't work with cross-compiles.
27611 Problem reported by Bruno Haible. Fix missing-$ typo in
27612 'test "gl_cv_ignore_unused_libraries" ...' that prevented
27613 -zignore from being used with Sun's C compiler.
27615 2006-01-12 Simon Josefsson <jas@extundo.com>
27617 * lib/base64.c: Fix warning, reported by Bruno Haible
27618 <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
27620 2006-01-12 Bruno Haible <bruno@clisp.org>
27622 * modules/ldd: New file.
27623 * build-aux/ldd.sh.in: New file.
27624 * MODULES.html.sh (Support for building libraries and executables): Add
27627 2006-01-12 Bruno Haible <bruno@clisp.org>
27629 * m4/ldd.m4: New file.
27631 2006-01-12 Bruno Haible <bruno@clisp.org>
27633 * gnulib-tool (func_import, func_create_testdir): Don't go into an
27634 endless loop while replacing $auxdir with build-aux.
27636 2006-01-11 Simon Josefsson <jas@extundo.com>
27638 * lib/stdint_.h (SIZE_MAX): Add missing (.
27640 2006-01-11 Paul Eggert <eggert@cs.ucla.edu>
27642 Sync from coreutils.
27643 * lib/md5.c: Fix commentary typos.
27644 (alignof, UNALIGNED_P): No need for a GCC-specific version.
27645 * lib/md5.h (__attribute__): Remove; unused.
27646 * lib/sha1.c: Fix commentary to match md5 better.
27647 * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
27648 so that we don't need to worry about alignment. All uses changed.
27649 This merges the 2005-10-28 md5 change into sha1.
27651 2006-01-11 Jim Meyering <jim@meyering.net>
27653 Sync from coreutils.
27654 * lib/md5.c (OP): Fix spacing.
27656 2006-01-11 Bruno Haible <bruno@clisp.org>
27658 Ensure automatic ordering between gl_LOCK and gl_ARGP.
27659 * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
27660 (gl_LOCK): New macro, requiring gl_LOCK_BODY.
27662 2006-01-11 Bruno Haible <bruno@clisp.org>
27664 Ensure automatic ordering between gl_LOCK and gl_ARGP.
27665 * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
27666 the "early" section as well.
27668 2006-01-11 Bruno Haible <bruno@clisp.org>
27670 Avoid "ar: no archive members specified" error on MacOS X.
27671 * gnulib-tool (func_modules_add_dummy): New function.
27672 (func_import, func_create_testdir): Invoke it.
27674 2006-01-11 Bruno Haible <bruno@clisp.org>
27676 * gnulib-tool (func_import, func_create_testdir): Replace build-aux
27677 with $auxdir in AC_CONFIG_FILES statements.
27679 2006-01-11 Bruno Haible <bruno@clisp.org>
27681 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
27682 Initialize also noinst_HEADERS to empty.
27684 2006-01-11 Bruno Haible <bruno@clisp.org>
27686 * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
27688 (func_create_megatestdir): Call aclocal, autoconf, automake here, not
27691 2006-01-11 Bruno Haible <bruno@clisp.org>
27693 * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
27694 overridable by the user.
27695 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27697 2006-01-10 Simon Josefsson <jas@extundo.com>
27699 * modules/sys_socket: New file.
27701 2006-01-10 Simon Josefsson <jas@extundo.com>
27703 * m4/sys_socket_h.m4: New file.
27705 2006-01-10 Simon Josefsson <jas@extundo.com>
27707 * lib/socket_.h: New file.
27709 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
27711 * modules/readutmp (Maintainer): Add myself.
27713 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
27715 * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
27716 the 2002-12-31 change. Problem and fix reported by Bruno Haible.
27717 People who are still concerned with buggy memcmp implementations
27718 can invoke gl_FUNC_MEMCMP themselves.
27720 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
27722 * lib/regex_internal.h (BITSET_WORD_BITS):
27723 Work around a bug in 64-bit PGC (before version 6.1-2), where the
27724 preprocessor mishandles large unsigned values as if they were signed.
27725 Problem reported by Claudio Fontana in
27726 <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
27728 2006-01-10 Jim Meyering <jim@meyering.net>
27730 Avoid the double-free (first in fts_read, second in fts_close) that
27731 would occur when an `active' directory is made inaccessible (e.g.,
27732 via chmod a-x) during a traversal.
27733 * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
27734 before returning. Reproduce this failure by
27735 mkdir -p a/b; cd a; chmod a-x . b
27736 Reported by Stavros Passas.
27738 Sync from coreutils.
27739 * lib/sha1.c: Tweak grammar in a comment.
27741 2006-01-10 Jim Meyering <jim@meyering.net>
27743 * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
27744 Patch by Joerg Sonnenberger.
27746 2006-01-10 Bruno Haible <bruno@clisp.org>
27748 * modules/readutmp: Depend on module free.
27749 * modules/strtok_r: Depend on module restrict.
27751 2006-01-10 Bruno Haible <bruno@clisp.org>
27753 * modules/gettext (configure.ac): Add an invocation of
27754 AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
27756 2006-01-10 Bruno Haible <bruno@clisp.org>
27758 * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
27759 Reported by Werner Lemberg <wl@gnu.org>.
27761 2006-01-10 Bruno Haible <bruno@clisp.org>
27763 * lib/localcharset.c: Update from GNU gettext.
27765 2006-01-10 Bruno Haible <bruno@clisp.org>
27767 * lib/argp.h (__const): Remove macro. Use const instead.
27768 * lib/argp-fmtstream.h (__const): Likewise.
27769 * lib/glob_.h (__const): Remove macro.
27770 * lib/glob-libc.h: Use const instead of __const.
27772 2006-01-10 Bruno Haible <bruno@clisp.org>
27774 * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
27776 Needed to avoid an automake error regarding the 'gettext' module.
27778 2006-01-09 Simon Josefsson <jas@extundo.com>
27780 * modules/inet_ntop (Depends-on): Add restrict.
27782 2006-01-09 Simon Josefsson <jas@extundo.com>
27784 * modules/gc-rijndael-tests (License): Put under LGPL.
27786 * modules/gc-des-tests (License): Likewise.
27788 * modules/gc-arcfour-tests (License): Likewise.
27790 * modules/gc-arctwo-tests (License): Likewise.
27792 * modules/gc-pbkdf2-sha1-tests (License): Likewise.
27794 * modules/gc-hmac-sha1-tests (Files): Likewise.
27796 * modules/gc-hmac-md5-tests (License): Likewise.
27798 * modules/gc-sha1-tests (License): Likewise.
27800 * modules/gc-md5-tests (License): Likewise.
27802 * modules/gc-md4-tests (License): Likewise.
27804 * modules/gc-md2-tests (License): Likewise.
27806 * modules/gc-tests (License): Likewise.
27808 * modules/des-tests (License): Likewise.
27810 * modules/md4-tests (License): Likewise.
27812 * modules/md2-tests (License): Likewise.
27814 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
27816 Sync from coreutils:
27818 * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
27819 * modules/lib-ignore: New file.
27820 * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
27821 chdir-safer.m4, lchmod.m4.
27822 * modules/openat: Add mkdirat.c, openat-priv.h.
27824 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
27826 Sync from coreutils.
27827 * m4/lib-ignore.m4: New file.
27828 * m4/lchmod.m4: New file.
27830 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
27832 Sync from coreutils.
27833 * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
27834 for write access: POSIX says that must fail.
27835 * lib/fts.c (diropen): Likewise.
27836 * lib/save-cwd.c (save_cwd): Likewise.
27837 * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
27838 well, for minor improvements on hosts that lack O_DIRECTORY.
27839 * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
27840 Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
27841 Fall back on chown if open failed with EACCES.
27843 * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
27844 Report an error at compile-time if only a 1-second nominal clock
27845 resolution is found.
27847 * lib/lchmod.h: New file.
27848 * lib/mkdir-p.c: Include lchmod.h, lchown.h.
27849 (make_dir_parents): Use lchown rather than chown, and
27850 lchmod rather than chmod.
27852 * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
27853 dummies too. Problem with "none" reported by Bob Proulx. Problem with
27854 "proc" reported by n0dalus.
27856 * lib/mountlist.c: Include <limits.h>.
27857 (dev_from_mount_options)
27858 [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
27859 New function. It no longer assumes "dev=" has the System V meaning
27860 on Linux (since it doesn't). It also parses "dev=" more carefully.
27861 (read_file_system_list)
27862 [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
27863 MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
27866 * lib/posixtm.h (PDS_PRE_2000): New macro.
27867 * lib/posixtm.c (year): Arg is now syntax_bits rather than
27868 allow_century. All usages changed. Reject dates outside the range
27869 1969-1999 if PDS_PRE_2000 is used.
27871 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
27873 Sync from coreutils.
27874 * doc/getdate.texi (General date syntax): Invalid dates are rejected.
27875 (Time of day items): Mention the possibility of leap seconds.
27876 Problem reported by Dr. David Alan Gilbert.
27878 2006-01-09 Jim Meyering <jim@meyering.net>
27880 Sync from coreutils.
27882 * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
27884 * lib/chdir-safer.h, lib/chdir-safer.c: New files.
27886 * lib/modechange.c (mode_compile): Reject an invalid mode string
27887 that starts with an octal digit. From Andreas Gruenbacher.
27889 * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
27890 and dup to open_safer and dup_safer, respectively.
27891 (openat_permissive): Fix typo in comment.
27893 * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
27894 "gettext.h"; either no longer needed or are guaranteed by openat.h.
27895 (_): Remove; no longer needed.
27896 (openat): Renamed from rpl_openat; no need for rpl_openat
27897 since openat.h renames openat for us.
27898 Replace most of the body with a call to openat_permissive,
27899 to avoid duplicate code.
27900 Port to (probably hypothetical) environments were mode_t is
27902 (openat_permissive): Require mode arg, so that we can check
27903 types better. Put it just after flags. Change cwd failure
27904 indicator from pointer-to-bool to pointer-to-errno-value.
27905 All callers changed.
27906 Invoke openat_save_fail and/or openat_restore_fail if
27907 cwd_errno is null, so that openat can call us.
27908 (openat_permissive, fdopendir, fstatat, unlinkat):
27909 Simplify errno handling to avoid some duplicate code,
27910 as it's OK to set errno on success.
27911 * lib/openat.h: Revamp code so that function macros depend on
27912 __OPENAT_PREFIX only, not also on AT_FDCWD.
27913 (openat_ro): Remove. Caller changed to use openat_permissive.
27914 (openat_permissive): Now a macro, if not a function.
27915 (openat_restore_fail, openat_save_fail): Now always functions,
27916 since mkdirat needs them even if __OPENAT_PREFIX is defined.
27918 * lib/openat-priv.h: New file, defining macros used by mkdirat.c
27920 * lib/mkdirat.c: Include openat-priv.h.
27921 Remove definitions of macros defined therein.
27922 * lib/openat.c: Likewise.
27924 * lib/mkdirat.c (mkdirat): New file and function.
27925 * lib/openat.h (mkdirat): Declare.
27927 * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
27929 * lib/openat.h (openat_permissive): Declare.
27930 (openat_ro): Define.
27932 * lib/openat.c (EXPECTED_ERRNO): New macro.
27933 (openat_permissive): New function -- used in remove.c rewrite.
27934 (all functions): Set errno just before returning, only if there
27935 was an actual failure.
27936 Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
27938 Emulate openat-family functions using Linux's procfs, if possible.
27939 Idea and some code based on Ulrich Drepper's glibc changes.
27941 * lib/openat.c: (BUILD_PROC_NAME): New macro.
27942 Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
27943 (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
27944 before falling back on save_cwd and restore_cwd.
27945 (fdopendir, fstatat, unlinkat): Likewise.
27947 * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
27948 skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
27950 * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
27951 as second argument to va_arg. Otherwise, some versions of gcc
27952 warn that `if this code is reached, the program will abort'.
27954 2006-01-09 Jim Meyering <jim@meyering.net>
27956 Sync from coreutils.
27957 * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
27958 Require openat-priv.h.
27960 2006-01-09 Bruno Haible <bruno@clisp.org>
27962 * modules/strnlen (Include): Use strnlen.h.
27964 2006-01-09 Bruno Haible <bruno@clisp.org>
27966 * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
27968 2006-01-09 Bruno Haible <bruno@clisp.org>
27970 * lib/sysexit_.h (EX_OK): New macro.
27971 Suggested by Martin Lambers <marlam@marlam.de>.
27973 2006-01-09 Bruno Haible <bruno@clisp.org>
27975 * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
27976 don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
27978 2006-01-09 Bruno Haible <bruno@clisp.org>
27980 * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
27983 2006-01-09 Bruno Haible <bruno@clisp.org>
27985 * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
27986 * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
27987 * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
27988 * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
27990 2006-01-09 Bruno Haible <bruno@clisp.org>
27992 * build-aux/javacomp.sh.in: New file, moved from lib/.
27993 * modules/javacomp-script (Files): Update.
27994 (configure.ac): Add AC_CONFIG_FILES invocation.
27995 (EXTRA_DIST): Remove variable.
27997 * build-aux/javaexec.sh.in: New file, moved from lib/.
27998 * modules/javaexec (Files): Update.
27999 (configure.ac): Add AC_CONFIG_FILES invocation.
28000 (EXTRA_DIST): Remove javaexec.sh.in.
28002 * build-aux/csharpcomp.sh.in: New file, moved from lib/.
28003 * modules/csharpcomp-script (Files): Update.
28004 (configure.ac): Add AC_CONFIG_FILES invocation.
28005 (EXTRA_DIST): Remove variable.
28007 * build-aux/csharpexec.sh.in: New file, moved from lib/.
28008 * modules/csharpexec (Files): Update.
28009 (configure.ac): Add AC_CONFIG_FILES invocation.
28010 (EXTRA_DIST): Remove csharpexec.sh.in.
28012 2006-01-09 Andreas Gruenbacher <agruen@suse.de>
28014 Sync from coreutils.
28016 Add POSIX ACL support
28017 * lib/acl.h (copy_acl, set_acl): Add declarations.
28018 * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
28019 systems other than Linux.
28020 (chmod_or_fchmod): New function: use fchmod when possible,
28021 and chmod otherwise.
28022 (file_has_acl): Add a POSIX ACL implementation, with a
28023 Linux-specific subcase.
28024 (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
28025 S_ISVTX from one file to another. Fall back to fchmod/chmod when
28026 acls are unsupported.
28027 (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
28028 S_ISVTX to a defined value. Fall back to fchmod/chmod when acls
28031 2006-01-09 Andreas Gruenbacher <agruen@suse.de>
28033 Sync from coreutils.
28034 * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
28036 2006-01-07 Bruno Haible <bruno@clisp.org>
28038 * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
28041 2006-01-04 Paul Eggert <eggert@cs.ucla.edu>
28043 * lib/strftime.c (tzname): Don't declare if it is already #defined.
28044 Problem reported for Mingw by Mark Junker.
28046 2006-01-04 Paul Eggert <eggert@cs.ucla.edu>
28048 * README: Gnulib normally doesn't generate a tarball.
28050 2006-01-03 Paul Eggert <eggert@cs.ucla.edu>
28052 * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
28053 long int, not int, for nanosecond counts, so that people who are
28054 used to POSIX struct timespec won't be surprised. Reported by Jim
28057 2005-12-28 Bruno Haible <bruno@clisp.org>
28059 * build-aux/config.rpath: Update from GNU gettext.
28061 2005-12-16 Jim Meyering <jim@meyering.net>
28063 * modules/fprintftime: New module.
28064 * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
28066 2005-12-16 Jim Meyering <jim@meyering.net>
28068 * m4/fprintftime.m4: New file.
28070 2005-12-16 Jim Meyering <jim@meyering.net>
28072 * lib/fprintftime.c, lib/fprintftime.h: New files.
28074 2005-12-15 Simon Josefsson <jas@extundo.com>
28076 * modules/socklen (configure.ac): Fix M4 macro name, to align with
28079 2005-12-10 Sergey Poznyakoff <gray@gnu.org.ua>
28081 * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
28082 HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
28084 2005-12-10 Sergey Poznyakoff <gray@gnu.org.ua>
28086 * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
28087 * lib/argp-help.c (fill_in_uparams): Check if the constructed
28088 struct uparams is valid. Fall back to the default values if it is
28091 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
28093 * modules/argp (Files): Add argp-pin.c
28094 (Depends-on): dirname
28095 (lib_SOURCES): Add argp-pin.c
28097 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
28099 * m4/argp.m4: Check if program_invocation_name and
28100 program_invocation_short_name are declared and define appropriate
28101 macros if they are not.
28103 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
28105 * lib/argp-help.c (__argp_base_name): New function
28106 (__argp_short_program_name): Rewrite using __argp_base_name
28107 * lib/argp-namefrob.h: Define program_invocation_name and
28108 program_invocation_short_name if requested
28109 (__argp_base_name): Add prototype
28110 * lib/argp-parse.c (argp_def): Use gettext wrappers
28111 (argp_default_parser): Use __argp_base_name
28112 * lib/argp-pin.c: New file. Defines program_invocation_name and
28113 program_invocation_short_name on systems that lack them.
28115 2005-12-07 Paul Eggert <eggert@cs.ucla.edu>
28117 * m4/stat-time.m4 (gl_STAT_TIME): Add check for
28118 TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
28119 porting problem reported by Georg Schwarz in
28120 <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
28122 2005-12-07 Paul Eggert <eggert@cs.ucla.edu>
28124 * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
28125 TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
28126 porting problem reported by Georg Schwarz in
28127 <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
28129 2005-12-05 Bruno Haible <bruno@clisp.org>
28131 * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
28132 * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
28133 Reported by Mark Junker <mjscod@gmx.de>.
28135 2005-12-02 Paul Eggert <eggert@cs.ucla.edu>
28137 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
28138 Use implementation from Albert Chin, with some
28139 comments/corrections by Stepan Kasal and myself.
28141 2005-12-02 Bruno Haible <bruno@clisp.org>
28143 * gnulib-tool (func_import): Accept GPLed build tool modules when
28145 * modules/csharpcomp-script: New file.
28146 * modules/csharpcomp: Depend on it.
28147 * modules/javacomp-script: New file.
28148 * modules/javacomp: Depend on it.
28149 Suggested by Simon Josefsson.
28151 2005-12-01 Paul Eggert <eggert@cs.ucla.edu>
28153 * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
28154 statement, to work around an HP-UX 10.20 compiler bug reported by
28157 2005-11-29 Paul Eggert <eggert@cs.ucla.edu>
28159 * modules/savedir (Depends-on): Add openat.
28161 2005-11-29 Paul Eggert <eggert@cs.ucla.edu>
28163 * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
28164 (uintmax_t) [defined uintmax_t]: Do not declare.
28165 (SIZE_MAX) [defined SIZE_MAX]: Do not define.
28166 This works around a problem if intmax_t.m4 and/or uintmax_t.m4
28167 and/or size_max.m4 are also used. Problem reported by Mark D. Baushke.
28168 (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
28169 sake of portability to weird hosts that C allows (though we don't
28170 know of any practical examples).
28172 * lib/savedir.h (fdsavedir): New decl.
28173 * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
28174 contains most of the former guts of savedir.
28175 (savedir): Use savedirstream.
28176 Include "openat.h".
28178 2005-11-25 Paul Eggert <eggert@cs.ucla.edu>
28180 * modules/obstack (Files): Add m4/ulonglong.m4.
28181 Problem reported by Davide Angelocola.
28183 2005-11-15 Paul Eggert <eggert@cs.ucla.edu>
28185 * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
28186 coreutils no longer futzes with rounding modes.
28188 2005-11-14 Jim Meyering <jim@meyering.net>
28190 * lib/mkstemp-safer.c: Include <config.h>, required for possible
28191 replacement of mkstemp.
28193 2005-11-10 Simon Josefsson <jas@extundo.com>
28195 * lib/readline.c: Remove EOL.
28197 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
28199 * modules/gethrxtime (Depends-on): Add gettime.
28201 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
28203 * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
28204 or gettimeofday; no longer needed.
28206 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
28208 * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
28210 (gethrxtime) [! (HAVE_NANOUPTIME
28211 || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
28212 || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
28213 our own approximation.
28215 2005-11-08 Eric Blake <ebb9@byu.net>
28217 * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
28219 2005-11-08 Eric Blake <ebb9@byu.net>
28221 * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
28223 2005-11-04 Bruno Haible <bruno@clisp.org>
28225 * gnulib-tool: Implement --update mode.
28227 2005-10-30 Paul Eggert <eggert@cs.ucla.edu>
28229 Fix porting problem reported by Theodoros V. Kalamatianos.
28230 * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
28231 Don't assume that futimes failing means we must fail.
28233 2005-10-30 Paul Eggert <eggert@cs.ucla.edu>
28235 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
28236 variables to suggest the intended function of the PATH_MAX check.
28238 2005-10-30 Kean Johnston <jkj@sco.com>
28240 Trivial changes to support SCO systems.
28241 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
28243 * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
28244 where __ptr is null when no I/O is pending.
28246 2005-10-29 Paul Eggert <eggert@cs.ucla.edu>
28248 * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
28249 leave errno alone. Problem reported by Dmitry V. Levin.
28251 2005-10-28 Simon Josefsson <jas@extundo.com>
28253 * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
28256 * tests/test-gc-md2.c, tests/test-md2.c: New files.
28258 * modules/md2, modules/md2-tests: New files.
28260 2005-10-28 Simon Josefsson <jas@extundo.com>
28262 * m4/inet_ntop.m4: More tests.
28264 * m4/gc-md2.m4, md2.m4: New file.
28266 2005-10-28 Simon Josefsson <jas@extundo.com>
28268 * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
28269 "restrict" keywords, as per POSIX. Protect the function
28270 declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
28271 Don't use K&R prototypes. Check the sprintf return values.
28272 Re-define EAFNOSUPPORT if not present. Indent.
28274 * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
28275 suggested by Bruno Haible <bruno@clisp.org>.
28277 * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
28279 * lib/gc.h: Add MD2 and RMD160 length defines. Add prototypes.
28281 * lib/gc-libgcrypt.c: Add MD2 (which is not available through
28284 * lib/gc-gnulib.c: Add MD2. Implement gc_hash_* API.
28286 * lib/md2.h, lib/md2.c: New files.
28288 2005-10-28 Paul Eggert <eggert@cs.ucla.edu>
28290 * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
28291 errno alone. Problem reported by Frederic Jolliton.
28293 2005-10-27 Paul Eggert <eggert@cs.ucla.edu>
28295 * modules/verify (License): Change from GPL to LGPL. This is a
28296 tiny module and there are apparently near-equivalents that are
28297 under the BSD license.
28299 2005-10-24 Simon Josefsson <jas@extundo.com>
28301 * modules/sha1: Relicense to LGPL.
28303 2005-10-24 Simon Josefsson <jas@extundo.com>
28305 * lib/md4.h: Shrink buffer size, now that we changed the type.
28307 2005-10-23 Simon Josefsson <jas@extundo.com>
28309 * gnulib-tool (func_import): Fix --tests-base.
28311 2005-10-22 Simon Josefsson <jas@extundo.com>
28313 * modules/arcfour (Depends-on): Need stdint.
28315 2005-10-22 Simon Josefsson <jas@extundo.com>
28317 * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
28318 suggested by Bruno Haible <bruno@clisp.org>. Fix error messages.
28320 2005-10-22 Simon Josefsson <jas@extundo.com>
28322 * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
28323 suggested by Bruno Haible <bruno@clisp.org>.
28325 2005-10-22 Simon Josefsson <jas@extundo.com>
28327 * lib/crc.h: Include stddef.h, for size_t.
28329 2005-10-22 Simon Josefsson <jas@extundo.com>
28331 * lib/arcfour.h, arcfour.c: Use fixed size indices in the
28332 arcfour_context struct (simplify test vector testing in GNU
28335 2005-10-21 Simon Josefsson <jas@extundo.com>
28337 * modules/des, modules/des-tests: New files.
28339 * modules/gc-des, modules/gc-des-tests: New files.
28341 * tests/test-des.c, tests/test-gc-des.c: New file.
28343 2005-10-21 Simon Josefsson <jas@extundo.com>
28345 * modules/arctwo, modules/arctwo-tests: New files.
28347 * tests/test-arctwo.c: New file.
28349 * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
28351 * tests/test-gc-arctwo.c: New file.
28353 2005-10-21 Simon Josefsson <jas@extundo.com>
28355 * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
28356 Bruno Haible <bruno@clisp.org>.
28358 * m4/gc-des.m4: New file.
28360 2005-10-21 Simon Josefsson <jas@extundo.com>
28362 * m4/arctwo.m4: New file.
28364 * m4/gc-arctwo.m4: New file.
28366 2005-10-21 Simon Josefsson <jas@extundo.com>
28368 * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
28371 2005-10-21 Simon Josefsson <jas@extundo.com>
28373 * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
28376 * lib/hmac-sha1.c (hmac_sha1): Likewise.
28378 * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
28379 Bruno Haible <bruno@clisp.org>.
28381 * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
28384 2005-10-21 Simon Josefsson <jas@extundo.com>
28386 * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
28388 2005-10-21 Simon Josefsson <jas@extundo.com>
28390 * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
28392 2005-10-21 Simon Josefsson <jas@extundo.com>
28394 * lib/des.h, lib/des.c: New files.
28396 * lib/gc-gnulib.c: Support DES.c
28398 2005-10-21 Simon Josefsson <jas@extundo.com>
28400 * lib/arctwo.h, lib/arctwo.c: New files.
28402 * lib/gc-gnulib.c: Support ARCTWO.
28404 2005-10-21 Simon Josefsson <jas@extundo.com>
28406 * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
28407 suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28409 2005-10-21 Simon Josefsson <jas@extundo.com>
28411 * gnulib-tool (func_import, func_create_testdir): Define automake
28412 conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
28413 Makefile.am snippet),
28414 suggested by Bruno Haible <bruno@clisp.org>.
28416 * modules/gc (Makefile.am): Use it.
28418 2005-10-21 Bruno Haible <bruno@clisp.org>
28420 * gnulib-tool (func_import, func_create_testdir): Add quoting to last
28423 2005-10-19 Simon Josefsson <jas@extundo.com>
28425 * tests/test-gc-rijndael.c: New file.
28427 * modules/gc-rijndael, modules/gc-rijndael-test: New files.
28429 2005-10-19 Simon Josefsson <jas@extundo.com>
28431 * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
28434 2005-10-19 Simon Josefsson <jas@extundo.com>
28436 * tests/test-gc-arcfour.c: New file.
28438 * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
28440 2005-10-19 Simon Josefsson <jas@extundo.com>
28442 * modules/gc-md4, modules/gc-md4-tests: New file.
28444 * tests/test-gc-md4.c: New file.
28446 2005-10-19 Simon Josefsson <jas@extundo.com>
28448 * m4/gc-md4.m4: New file.
28450 2005-10-19 Simon Josefsson <jas@extundo.com>
28452 * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
28453 gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
28456 2005-10-19 Simon Josefsson <jas@extundo.com>
28458 * m4/gc-arcfour.m4: New file.
28460 * m4/gc-rijndael.m4: New file.
28462 2005-10-19 Simon Josefsson <jas@extundo.com>
28464 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
28466 2005-10-19 Simon Josefsson <jas@extundo.com>
28468 * lib/gc-gnulib.c: Support ARCFOUR.
28470 2005-10-19 Simon Josefsson <jas@extundo.com>
28472 * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
28475 * lib/gc.h: Add ECB enum type.
28477 * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
28479 2005-10-18 Simon Josefsson <jas@extundo.com>
28481 * tests/test-md5.c: New file.
28483 * modules/md5-tests: New file.
28485 2005-10-18 Simon Josefsson <jas@extundo.com>
28487 * tests/test-md4.c: New file.
28489 * modules/md4, modules/md4-tests: New files.
28491 2005-10-18 Simon Josefsson <jas@extundo.com>
28493 * m4/md4.m4: New file.
28495 2005-10-18 Simon Josefsson <jas@extundo.com>
28497 * lib/md4.h, lib/md4.c: New files, based on md5.?.
28499 2005-10-17 Stepan Kasal <kasal@ucw.cz>
28501 * gnulib-tool (func_create_testdir): Omit the second check whether
28502 BUILT_SOURCES in nonempty.
28504 2005-10-17 Simon Josefsson <jas@extundo.com>
28506 * tests/test-rijndael.c: New file.
28508 2005-10-17 Simon Josefsson <jas@extundo.com>
28510 * modules/sha1: Depend on stdint instead of md5.
28512 * modules/md5: Depend on stdint, remove uint32_t.
28514 2005-10-17 Simon Josefsson <jas@extundo.com>
28516 * modules/gc-sha1-tests: New file.
28518 * tests/test-gc-sha1.c: New file.
28520 2005-10-17 Simon Josefsson <jas@extundo.com>
28522 * m4/md5.m4: Remove call to uint32_t.m4.
28524 2005-10-17 Simon Josefsson <jas@extundo.com>
28526 * lib/sha1.c: Use uint32_t instead of md5_uint32.t
28528 * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
28531 * lib/md5.c: Use uin32_t. Fix non-gcc UNALIGNED_P macro.
28533 * lib/md5.h: Use stdint.h and uint32_t. Doc fix.
28535 2005-10-17 Simon Josefsson <jas@extundo.com>
28537 * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
28539 2005-10-17 Simon Josefsson <jas@extundo.com>
28541 * lib/gc.h, gc-libgcrypt.c: Add ciphers.
28543 2005-10-17 Simon Josefsson <jas@extundo.com>
28545 * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
28547 * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
28549 2005-10-17 Bruno Haible <bruno@clisp.org>
28551 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
28552 that it can also be used in a test.
28554 2005-10-16 Bruno Haible <bruno@clisp.org>
28556 * gnulib-tool (func_emit_tests_Makefile_am): Also define
28557 TESTS_ENVIRONMENT, so that individual tests can augment it.
28559 * gnulib-tool (func_create_testdir): Use an intermediate target for
28560 building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
28561 macros, like $(ALLOCA_H), which cannot be passed through the command
28564 2005-10-15 Simon Josefsson <jas@extundo.com>
28566 * modules/rijndael-tests: New file.
28568 * modules/rijndael: New file.
28570 2005-10-15 Simon Josefsson <jas@extundo.com>
28572 * m4/rijndael.m4: New file.
28574 2005-10-15 Simon Josefsson <jas@extundo.com>
28576 * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
28578 * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
28580 2005-10-14 Simon Josefsson <jas@extundo.com>
28582 * tests/test-arcfour.c: New file.
28584 * modules/arcfour, modules/arcfour-tests: New files.
28586 2005-10-14 Simon Josefsson <jas@extundo.com>
28588 * m4/arcfour.m4: New file.
28590 2005-10-14 Simon Josefsson <jas@extundo.com>
28592 * lib/arcfour.h, lib/arcfour.c: New files.
28594 2005-10-14 Roland McGrath <roland@redhat.com>
28596 Import from libc. [BZ #1331]
28597 * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
28599 Reported by Matej Vela <vela@debian.org>.
28601 2005-10-14 Paul Eggert <eggert@cs.ucla.edu>
28603 * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
28604 include <wchar.h>; no longer needed.
28606 2005-10-14 Paul Eggert <eggert@cs.ucla.edu>
28608 * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
28610 2005-10-14 Jakub Jelinek <jakub@redhat.com>
28611 and Ulrich Drepper <drepper@redhat.com>
28614 * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
28615 instead of inline stream orientation test and two separate
28616 function calls. Pay no attention to USE_IN_LIBIO.
28618 2005-10-13 Simon Josefsson <jas@extundo.com>
28620 * modules/gc-hmac-md5-tests: New file.
28622 * tests/test-gc-hmac-sha1.c: New file.
28624 * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
28626 * modules/gc-hmac-md5-tests: New file.
28628 * tests/test-gc-md5.c: New file.
28630 * modules/gc-md5-tests: New file.
28632 2005-10-13 Simon Josefsson <jas@extundo.com>
28634 * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
28635 Move memory allocation outside of loop.
28637 2005-10-13 Paul Eggert <eggert@cs.ucla.edu>
28639 * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
28640 intermediate directory is in a read-only file system. Problem
28641 reported by Eric Blake.
28643 2005-10-13 Oskar Liljeblad <oskar@osk.mine.nu>
28645 * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
28647 2005-10-12 Simon Josefsson <jas@extundo.com>
28649 * tests/test-hmac-sha1.c: New file.
28651 * modules/hmac-sha1-tests: New file.
28653 * modules/hmac-sha1: New file.
28655 2005-10-12 Simon Josefsson <jas@extundo.com>
28657 * modules/gc-sha1: New file.
28659 2005-10-12 Simon Josefsson <jas@extundo.com>
28661 * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
28663 * tests/test-gc-pbkdf2-sha1.c: New file.
28665 2005-10-12 Simon Josefsson <jas@extundo.com>
28667 * modules/gc-md5, modules/gc-hmac-md5: New files.
28669 * modules/gc (Files): Remove md5, memxor and hmac files.
28671 2005-10-12 Simon Josefsson <jas@extundo.com>
28673 * m4/gc-pbkdf2-sha1.m4: New file.
28675 * m4/gc-hmac-sha1.m4: New file.
28677 * m4/gc-sha1: New file.
28679 * m4/hmac-sha1.m4: New file.
28681 2005-10-12 Simon Josefsson <jas@extundo.com>
28683 * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
28685 * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
28687 2005-10-12 Simon Josefsson <jas@extundo.com>
28689 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
28690 suggested by Bruno Haible <bruno@clisp.org>.
28692 2005-10-12 Simon Josefsson <jas@extundo.com>
28694 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
28696 2005-10-12 Simon Josefsson <jas@extundo.com>
28698 * lib/gc-pbkdf2-sha1.c: New file.
28700 * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
28702 2005-10-12 Simon Josefsson <jas@extundo.com>
28704 * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
28706 * lib/gc-gnulib.c (gc_hmac_sha1): New function.
28708 2005-10-12 Simon Josefsson <jas@extundo.com>
28710 * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
28711 GC_USE_HMAC_MD5, respectively.
28713 * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
28714 (gc_md5): Fix typo.
28716 * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
28718 * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
28720 * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
28722 2005-10-12 Bruno Haible <bruno@clisp.org>
28724 * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
28725 Reported by Stepan Kasal <kasal@ucw.cz>.
28727 2005-10-11 Simon Josefsson <jas@extundo.com>
28729 * tests/test-crc.c: New file.
28731 * modules/crc, modules/crc-tests: New files.
28733 2005-10-11 Simon Josefsson <jas@extundo.com>
28735 * m4/crc.m4: New file.
28737 2005-10-11 Simon Josefsson <jas@extundo.com>
28739 * lib/gc.h: Add gc_hash and gc_hash_buffer.
28741 * lib/gc-gnulib.c (gc_hash_buffer): Add. Reorder #include's.
28743 * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
28745 2005-10-11 Simon Josefsson <jas@extundo.com>
28747 * lib/crc.h, lib/crc.c: New files.
28749 * lib/gc.h (gc_hash_buffer): Add doc.
28751 2005-10-11 Bruno Haible <bruno@clisp.org>
28753 * modules/c-strcasestr: New file.
28754 * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
28756 2005-10-11 Bruno Haible <bruno@clisp.org>
28758 * modules/c-strcase: New file.
28759 * MODULES.html.sh (String handling <string.h>): Add c-strcase.
28761 2005-10-11 Bruno Haible <bruno@clisp.org>
28763 * lib/strcasecmp.c: Include limits.h.
28764 (strcasecmp): Avoid integer overflow on exotic platforms.
28765 * lib/strncasecmp.c: Include limits.h.
28766 (strncasecmp): Avoid integer overflow on exotic platforms.
28767 Reported by Paul Eggert.
28769 2005-10-11 Bruno Haible <bruno@clisp.org>
28771 * lib/c-strcasestr.h: New file, from GNU gettext.
28772 * lib/c-strcasestr.c: New file, from GNU gettext.
28774 2005-10-11 Bruno Haible <bruno@clisp.org>
28776 * lib/c-strcase.h: New file, from GNU gettext.
28777 * lib/c-strcasecmp.c: New file, from GNU gettext.
28778 * lib/c-strncasecmp.c: New file, from GNU gettext.
28780 2005-10-10 Paul Eggert <eggert@cs.ucla.edu>
28782 * modules/mempcpy (License): GPL -> LGPL.
28783 * modules/strchrnul (License): Likewise.
28784 * modules/sysexits (License): Likewise.
28786 2005-10-08 Simon Josefsson <jas@extundo.com>
28788 * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
28790 2005-10-07 Simon Josefsson <jas@extundo.com>
28792 * m4/memxor.m4: Remove gl_C_RESTRICT call.
28794 2005-10-06 Simon Josefsson <jas@extundo.com>
28796 * tests/test-hmac-md5.c: New file.
28798 * modules/hmac-md5-tests: New file.
28800 * modules/hmac-md5: New file.
28802 2005-10-06 Simon Josefsson <jas@extundo.com>
28804 * m4/hmac-md5.m4: New file.
28806 * m4/memxor.m4: Require gl_C_RESTRICT.
28808 2005-10-06 Simon Josefsson <jas@extundo.com>
28810 * lib/memxor.c (memxor): Avoid casts and warnings.
28812 2005-10-06 Simon Josefsson <jas@extundo.com>
28814 * lib/hmac-md5.c: New file.
28816 * lib/hmac.h: New file.
28818 2005-10-06 Paul Eggert <eggert@cs.ucla.edu>
28820 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
28821 promotes to int, not unsigned int, to catch the AIX 5.3
28824 2005-10-05 Simon Josefsson <jas@extundo.com>
28826 * modules/memxor: New file.
28828 * modules/iconv (Files): Move config.rpath to havelib, it is used
28831 * modules/havelib (Files): Add config.rpath.
28833 2005-10-05 Simon Josefsson <jas@extundo.com>
28835 * m4/memxor.m4: New file.
28837 2005-10-05 Simon Josefsson <jas@extundo.com>
28839 * lib/memxor.c (memxor): Fix compiler error.
28841 * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
28842 <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
28844 * lib/memxor.h, lib/memxor.c: New files.
28846 * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
28847 we assume all systems have it, suggested by Jim Meyering
28848 <jim@meyering.net>. Remove HAVE_SYS_SOCKET_H test too, to see if
28849 any systems lack sys/socket.h; mingw32 is known to lack it, but we
28850 don't support it yet anyway. Also remove HAVE_NETDB_H test, for
28853 2005-10-05 Simon Josefsson <jas@extundo.com>
28855 * config/srclist.txt: Add glibc bug 1423 for md5.h.
28857 2005-10-05 Paul Eggert <eggert@cs.ucla.edu>
28859 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
28860 sys/socket.h, netdb.h, sys/types.h; the checks areno longer
28861 needed, since the source code now assumes these .h files.
28863 2005-10-05 Derek Price <derek@ximbiot.com>
28865 * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
28867 2005-10-05 Bruno Haible <bruno@clisp.org>
28869 * modules/stdint (License): Change to LGPL.
28871 2005-10-04 Simon Josefsson <jas@extundo.com>
28873 * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
28874 D. Baushke" <mdb@gnu.org>.
28876 2005-10-04 Bruno Haible <bruno@clisp.org>
28878 * lib/verify.h (verify_true): Provide alternative definition for C++.
28880 2005-10-03 Paul Eggert <eggert@cs.ucla.edu>
28882 * lib/getdelim.c: Include getdelim.h first. Include <limits.h>.
28883 (SSIZE_MAX): New macro, if not already defined.
28884 (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
28887 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
28889 Sync from coreutils.
28890 * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
28891 * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
28892 defines ULONG_MAX_LT_ULLONG_MAX. Thomas M.Ott reports that
28893 ULLONG_MAX doesn't work with 2.7.2.1.
28895 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
28897 * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
28900 * modules/exclude (Depends-on): Depend on verify.
28901 * modules/strtoimax (Depends-on): Likewise.
28902 * modules/utimecmp (Depends-on): Likewise.
28904 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
28906 * lib/exclude.c: Include verify.h.
28907 (verify): Remove. All callers changed to use verify.h's version.
28908 * lib/strtoimax.c: Likewise.
28909 * lib/utimecmp.c: Likewis.e
28911 Sync from coreutils.
28912 * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
28913 getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
28914 * lib/.cvsignore: Add fts.h, search.h, t-fpending.
28915 * lib/settime.c (settime): Fix { typo in previous patch. Also, don't
28916 bother returning ENOSYS if settimeofday or stime fails; just let
28917 them return whatever errno they want to return.
28918 * lib/utimens.c: Include unistd.h, for dup2.
28919 (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
28920 (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
28922 2005-10-02 Jim Meyering <jim@meyering.net>
28924 Sync from coreutils.
28925 * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
28926 from glibc-2.2.5 that fails for read-only files.
28928 2005-10-02 Jim Meyering <jim@meyering.net>
28930 Sync from coreutils.
28931 * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
28932 * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
28933 `#if HAVE_CONFIG_H'.
28934 * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
28935 Remove AT_FDCWD test.
28936 Do not consume the fd unless successful.
28937 * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
28938 * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
28939 block, so that we don't even try to compile it if settimeofday is
28940 available. This works around a compilation failure on OSF1 V5.1,
28941 due to stime requiring a `long int*' while tv_sec is `int'.
28943 2005-10-02 Alfred M. Szmidt <ams@gnu.org>
28945 Sync from coreutils.
28946 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
28947 against `yes', rather than just testing for nonempty.
28949 2005-10-01 Simon Josefsson <jas@extundo.com>
28951 * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
28954 * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
28955 as an (POSIX) extension. Check for sys/types.h, sys/socket.h, and
28956 netdb.h too, needed by getaddrinfo.h. Check if getaddrinfo,
28957 freeaddrinfo and gai_strerror are declared by the POSIX headers.
28958 Check if struct addrinfo is declared.
28960 2005-10-01 Simon Josefsson <jas@extundo.com>
28962 * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
28963 Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO. Protect
28964 AI_* and EAI_* definitions. Protect function declarations.
28966 2005-10-01 Jim Meyering <jim@meyering.net>
28968 Sync from coreutils.
28970 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
28971 libraries [inet nsl socket xnet]. Nelson Beebe reported that with
28972 native cc on Solaris 7, getaddrinfo.c requires -lsocket.
28973 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
28974 in the inet and nsl libraries. Required on Solaris 5.7.
28976 2005-10-01 Jim Meyering <jim@meyering.net>
28978 Sync from coreutils.
28979 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
28980 in the inet and nsl libraries. Required on Solaris 5.7.
28982 2005-10-01 Eric Blake <ebb9@byu.net> (tiny change)
28984 * lib/getdelim.c (getdelim): Remove unused variables.
28986 2005-09-29 Paul Eggert <eggert@cs.ucla.edu>
28988 * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
28989 so that the code works even with ancient cpp. Portability problem
28990 with GCC 2.7.2.1 reported by Thomas M.Ott.
28992 2005-09-27 Paul Eggert <eggert@cs.ucla.edu>
28994 * modules/regex (Depends-on): Add strcase.
28996 * modules/gethostname (Licence): Change from GPL to LGPL, since
28997 gethostname.c is a trivial implementation of a standard library
28999 * modules/poll (License): Change from GPL to LGPL, since it's
29000 derived from LGPL code.
29002 2005-09-27 Jim Meyering <jim@meyering.net>
29004 * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
29007 * lib/intprops.h (signed_type_or_expr__): Define.
29008 (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
29009 for unsigned types.
29011 2005-09-26 Paul Eggert <eggert@cs.ucla.edu>
29013 * lib/verify.h (verify_expr): Remove, replacing with:
29014 (verify_true): New macro that returns true instead of void.
29015 (verify_type__): Remove.
29016 (verify): Use verify_true rather than verify_type__.
29018 2005-09-26 Bruno Haible <bruno@clisp.org>
29020 * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
29022 (lib_SOURCES): Remove mbchar.c.
29023 * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
29024 (Files): Add m4/mbrtowc.m4.
29025 * modules/mbiter: Likewise.
29026 * modules/mbuiter: Likewise.
29028 2005-09-26 Bruno Haible <bruno@clisp.org>
29030 * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
29031 compile mbchar.c if they are not both present.
29032 * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
29033 * m4/mbiter.m4 (gl_MBITER): Likewise.
29034 * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
29035 * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
29036 * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
29038 2005-09-25 Jim Meyering <jim@meyering.net>
29040 * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
29041 also uses socklen_t.
29043 2005-09-24 Paul Eggert <eggert@cs.ucla.edu>
29045 * lib/utimens.c (ENOSYS): Define if not already defined.
29046 (futimens): Support having a null PATH if the file descriptor
29049 * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
29051 (__attribute): Define to empty unless GCC 3.1 or later.
29052 This works around a core dump on OpenBSD 3.4, which has GCC
29053 2.95.3, which dumps core when given __attribute__(()). It also
29054 simplifies other tests, since we really don't want to bother with
29055 worrying about which ancient version of GCC supported what.
29056 Original problem reported by Yoann Vandoorselaere, with part of
29057 the fix suggested by Derek Price.
29059 2005-09-24 Jim Meyering <jim@meyering.net>
29061 * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
29062 so we can once again use a positive bitfield width of 1 -- now we
29063 don't have to explain why we were using a bitfield width of 2.
29065 2005-09-23 Paul Eggert <eggert@cs.ucla.edu>
29067 * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
29068 and similarly for the other external symbols. Problem reported
29071 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
29072 bug reported by Jim Meyering.
29074 * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
29075 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
29076 not needed, since socklen is a prerequisite module.
29078 2005-09-23 Paul Eggert <eggert@cs.ucla.edu>
29080 * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
29081 Problem reported by Eric Blake.
29082 (getaddrinfo): Initialize se so that it's not garbage.
29083 Redo internal storage allocation so that it doesn't make unportable
29084 assumptions about alignment.
29087 * lib/utimens.c (futimens): Use futimesat if available.
29088 Prefer it to futimes since it doesn't have the futimes bug.
29090 * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
29091 (verify): Don't use the __LINE__ trick, as it doesn't work in general.
29092 Instead, declare a function that returns a pointer to an array,
29093 and use verify_type__ to declare the size of the array.
29094 Problem and germ of a solution reported by Bruno Haible.
29095 (verify_type__): Use 2, not 1, for bitfield size, to avoid
29096 a warning with Irix 6.5 cc. Problem reported by Bruno Haible.
29098 2005-09-23 Jim Meyering <jim@meyering.net>
29100 Sync from coreutils.
29101 Correct build failure (socklen_t not defined) on at least
29102 mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
29103 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
29105 2005-09-23 Jim Meyering <jim@meyering.net>
29107 * modules/getaddrinfo (Depends-on): Add socklen.
29109 2005-09-23 Bruno Haible <bruno@clisp.org>
29111 * tests/test-verify.c: New file.
29113 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
29115 Sync from coreutils.
29117 * modules/argmatch (Depends-on): Add verify.
29118 * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
29120 * modules/save-cwd (Depends-on): Likewise.
29122 * modules/openat (Files): Add lib/openat-die.c.
29123 (Depends-on): Remove error, exitfail.
29126 * modules/verify: New file.
29127 * MODULES.html.sh (Diagnostics <assert.h>): New section,
29128 with "verify" module.
29130 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
29132 Sync from coreutils.
29134 * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
29135 * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
29136 * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
29137 * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
29138 * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
29139 * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
29140 * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
29141 Don't bother checking for string.h, stdlib.h, unistd.h.
29142 * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
29143 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
29145 * m4/jm-macros.m4 (gl_MACROS): Likewise.
29146 * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
29148 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
29149 (gl_GETDATE): Use it.
29151 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
29153 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
29155 Sync from coreutils.
29157 * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
29159 * lib/argmatch.h: Include verify.h
29160 (ARGMATCH_VERIFY): Use verify rather than rolling our own.
29161 (ARGMATCH_ASSERT): Remove; unused.
29162 * lib/canonicalize.c: Assume STDC_HEADERS.
29163 * lib/exclude.c: Include "strcase.h".
29164 * lib/regex_internal.h [!defined _LIBC]: Likewise.
29165 * lib/getusershell.c: Include stdio--.h rather than stdio.h
29167 (getusershell): Call fopen, not fopen_safer.
29168 * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
29169 Do not include unistd-safer.h.
29170 (save_cwd): Don't call fd_safer; no longer needed
29171 now that we include fcntl--.h.
29173 * lib/getdate.y (relative_time): New type.
29174 (RELATIVE_TIME_0): New constant.
29175 (parser_control): Use relative_time instead of doing it ourselves.
29176 (%union): Add new relative_time rel member.
29177 (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
29179 (relunit, relunit_snumber): Now of type rel.
29180 (zone, rel, relunit, get_date): Adjust to above changes.
29182 * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
29183 Do not include unistd-safer.h.
29184 (getloadavg): Don't call fd_safer; no longer needed
29185 now that we include fcntl--.h.
29187 * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
29188 (make_dir_parents): Treat ENOSYS like EEXIST.
29190 Improve quality of diagnostics on restore_cwd failure.
29191 * lib/mkdir-p.h (make_dir): Remove. All uses replaced by mkdir.
29192 (make_dir_parents): Last arg is now int * (for errno), not bool *.
29193 * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
29194 Rewrite "mkdir -p" algorithm to avoid the need for "stat"
29195 each time through the loop. Do not diagnose restore_cwd failure;
29196 that is the caller's job (and perhaps the caller does not care).
29198 * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
29199 (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
29200 If the file already exists but is not a directory, don't bother
29201 to try to make its parents.
29202 Close potential file descriptor leak if we can't chdir("/") (!).
29203 Don't always return true if chdir($PWD) fails; return true only
29204 if the requested action was done successfully (except for the
29206 Don't log final directory unless we actually made it.
29207 Refactor to avoid duplicate code to fix up permissions.
29208 Don't attempt to fix up parent permissions if chdir($PWD) fails.
29210 * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
29211 to make it a bit faster and (I hope) clearer.
29212 * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
29213 Fix bug in formats like %2N.
29215 * lib/verify.h: New file.
29217 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
29219 Sync from coreutils.
29220 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
29222 2005-09-22 Jim Meyering <jim@meyering.net>
29224 Sync from coreutils.
29226 * m4/lstat.m4 (gl_FUNC_LSTAT):
29227 Use AC_LIBSOURCES to require lstat.c and lstat.h.
29228 Remove obsolete comment.
29229 * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
29230 * m4/xstrtod.m4: Likewise.
29232 * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
29234 2005-09-22 Jim Meyering <jim@meyering.net>
29236 Sync from coreutils.
29238 * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
29240 * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
29241 the .tm_year member, since otherwise gcc-4.0 would now warn about
29242 tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
29244 * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
29245 order to avoid an unsuppressible warning from gcc on 64-bit systems.
29247 * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
29248 the command "date -d'2005-03-27 +1 day'" succeeds once again, even
29249 when run in a time zone for which daylight savings time is in effect
29250 for the starting date.
29252 * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
29253 stop us from restricting permissions of just-created absolute-named
29255 * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
29256 to restore initial working directory.
29257 * lib/mkdir-p.c (make_dir_parents): New parameter:
29258 different_working_dir, to tell caller if/when we change the working
29259 directory and are unable to return to the initial one.
29260 * lib/mkdir-p.h (make_dir_parents): Update prototype.
29261 * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
29262 `return false'. This fixes a bug introduced on 2004-07-30.
29264 * lib/openat.c (fdopendir): Be sure to close the supplied
29265 file descriptor before returning. This makes our replacement
29266 implementation a little closer to Solaris's, where fdopendir
29267 ties the file descriptor to the returned DIR* pointer.
29268 * lib/openat.c (unlinkat): New function.
29269 * lib/openat.h (unlinkat): Add prototype.
29270 * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
29271 (openat_restore_fail): Rename from openat_restore_die.
29272 * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
29274 Provide an alternative to exiting immediately upon save_cwd or
29275 restore_cwd failure. Now, an application can arrange e.g.,
29276 to perform a longjump in that case.
29277 * lib/openat.c: Include dirname.h.
29278 Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
29279 (rpl_openat, fdopendir, fstatat): Call openat_save_die
29280 and openat_restore_die rather than calling error directly.
29281 Don't include "error.h" or "exitfail.h"; they're no longer needed.
29283 * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
29284 * lib/openat.h (openat_save_die, openat_restore_die): Declare and
29287 * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
29288 size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
29289 int utc, int nanoseconds);
29291 date should not have to allocate a megabyte of virtual memory to
29292 handle a format argument like +%1048575T. When implemented with
29293 strftime, it must allocate such a buffer, use strftime to fill it
29294 in, print it, then free it.
29295 With fprintftime, it simply prints everything and exits.
29296 With no need for memory allocation, that's one fewer way to fail.
29297 * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
29298 optional field width, not before, so we accept %9:z, not %:9z.
29299 (my_strftime): Be sure to use L_('x') for literals.
29301 * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
29302 * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
29303 * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
29304 * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
29305 * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
29306 * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
29307 * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
29308 * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
29309 * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
29310 * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
29311 * lib/xgethostname.c, lib/xreadlink.c:
29312 Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
29314 * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
29315 * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
29316 * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
29317 Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
29318 and don't include <sys/file.h>).
29320 2005-09-22 Eric Blake <ebb9@byu.net> (tiny change)
29322 Sync from coreutils.
29324 * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
29325 [__linux__]: Allocate a big enough buffer for /proc/loadavg.
29326 [!LDAV_DONE]: Avoid unused variable warning.
29328 2005-09-21 Bruno Haible <bruno@clisp.org>
29330 * lib/unicodeio.h (unicode_to_mb): New declaration.
29332 2005-09-20 Derek Price <derek@ximbiot.com>
29334 * lib/getaddrinfo.c: Don't include <netdb.h> included from
29337 2005-09-20 Bruno Haible <bruno@clisp.org>
29339 * gnulib-tool: Remove trailing slashes from the values specified for
29340 --source-base, --m4-base, --tests-base, --aux-dir.
29341 Suggested by Simon Josefsson <jas@extundo.com>.
29343 2005-09-20 Bruno Haible <bruno@clisp.org>
29345 * gnulib-tool (func_all_modules, func_modules_transitive_closure,
29346 func_modules_to_filelist, func_import, func_create_testdir): Make all
29347 sorting results locale-independent, so that gnulib-cache.m4 doesn't
29348 change when gnulib-tool is invoked in a different locale.
29350 2005-09-19 Simon Josefsson <jas@extundo.com>
29352 * m4/socklen.m4: Fix typo.
29354 2005-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29356 Use a consistent style for including <config.h>.
29357 * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
29358 lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
29359 lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
29360 lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
29361 lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
29362 lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
29363 lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
29364 lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
29365 lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
29366 lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
29367 lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
29368 lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
29369 lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
29370 lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
29371 lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
29372 lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
29373 lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
29374 lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
29375 lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
29376 lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
29377 lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
29378 lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
29379 lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
29380 lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
29381 lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
29382 lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
29383 lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
29384 lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
29385 lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
29386 lib/xstrtoumax.c, lib/yesno.c:
29387 Standardize inclusion of config.h.
29388 * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
29389 lib/inttostr.h: Removed inclusion of config.h from header files.
29390 * lib/inttostr.c: Adjusted in-tree users.
29391 * lib/timespec.h: Remove superfluous warning to include config.h.
29392 * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
29393 lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
29394 lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
29395 lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
29396 config.h with HAVE_CONFIG_H.
29398 2005-09-19 Jim Meyering <jim@meyering.net>
29400 * modules/pathmax (License): Change to LGPL.
29402 2005-09-19 Derek Price <derek@ximbiot.com>
29404 * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
29406 2005-09-19 Bruno Haible <bruno@clisp.org>
29408 * gnulib-tool (import): Provide default for --tests-base.
29410 2005-09-19 Bruno Haible <bruno@clisp.org>
29412 * doc/quote.texi: New file, extracted from gnulib.texi.
29413 * doc/ctime.texi: New file, extracted from gnulib.texi.
29414 * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
29415 * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
29416 * doc/gnulib.texi: Include them.
29418 2005-09-18 Bruno Haible <bruno@clisp.org>
29421 * gnulib-tool (func_readlink): New function.
29422 (func_ln_if_changed): Use it.
29424 2005-09-18 Bruno Haible <bruno@clisp.org>
29426 * gnulib-tool: Support --with-tests also with --import.
29427 (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
29428 (func_import): Use variables $testsbase and $inctests. Emit a
29429 gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
29430 Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
29431 SUBDIRS += $testsdir.
29432 (func_create_testdir): Update.
29434 2005-09-18 Bruno Haible <bruno@clisp.org>
29436 * gnulib-tool: Revise --dry-run implementation. Use variable $doit
29437 instead of $dry_run.
29438 (func_cp_if_changed, func_mv_if_changed): Remove functions.
29439 (func_ln_if_changed): Don't handle dry-run here.
29440 (func_import): In dry-run mode, detect more precisely which actions
29441 would be performed, and don't use "...ing" verbs.
29443 2005-09-18 Bruno Haible <bruno@clisp.org>
29445 * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
29446 (func_import): Use join on two temporary files instead of three nested
29447 loops, in order to determine which files are new or old.
29449 2005-09-18 Bruno Haible <bruno@clisp.org>
29451 * gnulib-tool (func_import): Comment out code that spits out the
29452 new files with --dry-run.
29454 2005-09-18 Bruno Haible <bruno@clisp.org>
29456 * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
29458 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
29460 * lib/stat-time.h: New file.
29461 * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
29462 (MTIME_CMP, TIMESPEC_NS): Remove. Now done by stat-time.h,
29463 in a different way.
29464 (timespec_cmp): New function.
29465 * lib/utimecmp.c: Include stat-time.h.
29466 (SYSCALL_RESOLUTION): Depend on whether various struct stat
29467 members exist, not on the obsolescent ST_MTIM_NSEC.
29468 (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
29470 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
29472 * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
29474 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
29476 * MODULES.html.sh (File system functions): Add stat-time.
29477 * modules/stat-time: New file.
29478 * modules/timespec (Files): Remove m4/st_mtim.m4; this
29479 is now done in a different way, by the stat-time module.
29480 * modules/utimecmp (Depends-on): Add stat-time.
29482 2005-09-15 Paul Eggert <eggert@cs.ucla.edu>
29484 * m4/st_mtim.m4: Remove. Superseded by...
29485 * m4/stat-time.m4: New file.
29486 * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
29487 Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
29489 2005-09-15 Derek Price <derek@ximbiot.com>
29491 * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
29493 2005-09-15 Derek Price <derek@ximbiot.com>
29495 * lib/regex_internal.h: Blank `pure' for GNUC < 3.
29496 * lib/regex_internal.c: Ditto, using this...
29497 (__GNUC_PREREQ): ...new macro.
29498 * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
29500 (__GNUC_PREREQ): ...this new macro.
29502 * lib/strstr.h: Include string.h. Define strstr as a macro here.
29504 2005-09-15 Derek Price <derek@ximbiot.com>
29505 Paul Eggert <eggert@cs.ucla.edu>
29507 * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
29508 changes, consolidating in...
29509 * lib/regex_internal.h: ...this file.
29511 2005-09-13 Jim Meyering <jim@meyering.net>
29513 * lib/canon-host.c: Filter through gnu indent and reword comments
29515 * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
29517 2005-09-13 Derek Price <derek@ximbiot.com>
29519 * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
29521 Reported by Jim Meyering <jim@meyering.net>.
29523 2005-09-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
29525 * lib/base64.c: Typo.
29526 (base64_encode): Put b64str in initialized data section.
29528 2005-09-12 Paul Eggert <eggert@cs.ucla.edu>
29530 Merge glibc and coreutils changes into gnulib, plus a few
29532 * lib/md5.c: Use #error rather than a string.
29533 (CYCLIC): New macro, from glibc source. Use it instead of rol.
29534 * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
29535 (__attribute__): Define to empty for non recent-GCC.
29536 (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
29537 (__md5_process_bytes, __md5_read_ctx, __md5_stream):
29538 Renamed from their non-__ counterparts, with new macros replacing
29539 them if not _LIBC. Add __THROW attribute.
29541 (struct md5_ctx): Align buffer if using GCC.
29542 * lib/sha1.h (struct sha1_ctx): Likewise.
29543 * lib/sha1.c (SWAP): Renamed from the NOTSWAP. All uses changed.
29544 The old name was backwards.
29545 (NOTSWAP): Remove; not used.
29546 (rol): New macro, moved here from md5.h.
29547 (sha1_process_block): Remove a FIXME that doesn't make sense.
29549 2005-09-12 Derek Price <derek@ximbiot.com>
29551 Return usable errors from canon-host.
29552 * lib/canon-host.h: New file.
29553 * lib/canon-host.c (canon_host): Wrap...
29554 (canon_host_r): ...this new function, which now relies exclusively on
29556 (ch_strerror): New function.
29557 (last_cherror): New global.
29558 * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
29560 (getaddrinfo): Add AI_CANONNAME functionality. Don't do arithmetic on
29562 (freeaddrinfo): Free ai->ai_canonname when set.
29564 2005-09-12 Derek Price <derek@ximbiot.com>
29566 Make canon-host require getaddrinfo.
29567 * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
29568 AC_LIBSOURCE canon-host.h. Call...
29569 (gl_PREREQ_CANON_HOST): ...this new function, which requires
29571 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
29573 2005-09-12 Derek Price <derek@ximbiot.com>
29575 * modules/canon-host: Add canon-host.h. Depend on getaddrinfo. Make
29577 * modules/getaddrinfo: Add link to opengroup spec. Depend on strdup.
29579 2005-09-12 Derek Price <derek@ximbiot.com>
29581 * lib/gai_strerror.c: Include config.h when available. Include
29582 getaddrinfo.h before other headers to test interface.
29583 Reported by Larry Jones <lawrence.jones@ugs.com>.
29585 2005-09-12 Derek Price <derek@ximbiot.com>
29586 Paul Eggert <eggert@cs.ucla.edu>
29588 * modules/glob (Files): Add glob-libc.h.
29590 2005-09-12 Derek Price <derek@ximbiot.com>
29591 Paul Eggert <eggert@cs.ucla.edu>
29593 * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
29594 glob_.h, glob-libc.h.
29595 (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
29597 2005-09-12 Derek Price <derek@ximbiot.com>
29598 Paul Eggert <eggert@cs.ucla.edu>
29600 * lib/glob-libc.h: Renamed from glob_.h. The new version is
29601 taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
29602 protecting things that should be done only in gnulib contexts.
29603 * lib/glob_.h: New file, containing only the glob things needed for
29605 (GLOB_PREFIX): Remove. All uses changed to look for __GLOB_GNULIB.
29606 (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
29607 (glob, globfree, glob_pattern_p): Now defined simply in terms of
29608 rpl_glob, rpl_globfree, rpl_glob_pattern_p.
29609 (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
29610 and to respect the namespace rules better.
29612 2005-09-08 Simon Josefsson <jas@extundo.com>
29614 * modules/socklen: New file.
29616 2005-09-08 Simon Josefsson <jas@extundo.com>
29618 * m4/socklen.m4: New file.
29620 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
29622 * modules/utimens (Files): Add m4/utimbuf.m4, since
29623 m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
29624 Reported by Sergey Poznyakoff.
29626 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
29628 * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
29629 definitions, since that's the preferred style in glibc.
29630 Fix a minor spacing issue, and update copyright notice to match
29633 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
29635 * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
29637 2005-09-06 Simon Josefsson <jas@extundo.com>
29639 * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
29640 TCSETATTR. Reported by Derek Price <derek@ximbiot.com>.
29642 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
29644 * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
29647 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
29649 * config/srclist.txt: Add glibc bug 1302.
29651 2005-09-05 Paul Eggert <eggert@cs.ucla.edu>
29653 Change bitset word type from unsigned int to unsigned long int,
29654 as this has better performance on typical 64-bit hosts.
29655 Port bitset code to hosts with unusual word sizes.
29656 * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
29657 (build_collating_symbol):
29658 Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
29659 argument is a bitset. This is merely a style issue, but it makes
29660 it clearer that an entire array is expected.
29661 (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
29662 * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
29663 Port to the case where bitset_word is not the same as unsigned int.
29664 * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
29665 (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
29667 * lib/regexec.c (check_dst_limits_calc_pos_1,
29668 check_subexp_matching_top):
29669 (build_trtable, group_nodes_into_DFAstates):
29671 * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
29672 Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
29673 * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
29674 * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
29675 * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
29676 * lib/regcomp.c (optimize_subexps, lower_subexp):
29677 Work even if bitset_word has holes in its bitwise representation.
29678 * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
29679 * lib/regexec.c (check_dst_limits_calc_pos_1,
29680 check_subexp_matching_top):
29682 * lib/regex_internal.c (re_string_reconstruct):
29683 Don't assume UCHAR_MAX == 255.
29684 * lib/regex_internal.h (bitset_set_all): Likewise.
29685 * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
29687 (BITSET_WORDS): Renamed from BITSET_UINTS. All uses changed.
29688 (bitset_word): New type, replacing 'unsigned int' for bitset uses.
29690 (BITSET_WORD_MAX): New macro.
29691 (bitset_set, bitset_clear, bitset_contain, bitset_empty):
29692 (bitset_set_all, bitset_copy): Now inline functions, not macros.
29693 (bitset_empty, bitset_copy):
29694 Prefer sizeof (bitset) to multiplying it out ourselves.
29695 (bitset_not_merge): Remove; unused.
29696 (bitset_contain): Return bool, not unsigned int with one bit on.
29697 All callers changed.
29698 * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
29699 alignment than re_node_set; do this by defining a new internal
29700 type struct dests_alloc and using it to allocate memory.
29702 2005-09-05 Bruno Haible <bruno@clisp.org>
29704 * gnulib-tool (func_import): Fix comparison in handling of symbolic
29707 2005-09-04 Martin Lambers <marlam@marlam.de> (tiny change)
29709 * modules/size_max (Makefile.am): Add size_max.h
29711 2005-09-04 Derek Price <derek@ximbiot.com>
29713 * gnulib-tool (func_import): Fix reversed $symbolic logic.
29715 2005-09-03 Simon Josefsson <jas@extundo.com>
29717 * gnulib-tool: Fix typo.
29719 2005-09-03 Simon Josefsson <jas@extundo.com>
29721 * config/srclist.txt: Add glibc bug 1293.
29723 2005-09-03 Derek Price <derek@ximbiot.com>
29725 * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
29726 From Larry Jones <lawrence.jones@ugs.com>.
29728 2005-09-02 Simon Josefsson <jas@extundo.com>
29730 * modules/socklen: New file.
29732 2005-09-02 Simon Josefsson <jas@extundo.com>
29734 * modules/havelib: New module.
29736 * modules/gettext, modules/iconv, modules/lock, modules/readline:
29739 2005-09-02 Paul Eggert <eggert@cs.ucla.edu>
29741 Check for arithmetic overflow when calculating sizes, to prevent
29742 some buffer-overflow issues. These patches are conservative, in the
29743 sense that when I couldn't determine whether an overflow was possible,
29744 I inserted a run-time check.
29745 * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
29747 (SIZE_MAX) [!defined SIZE_MAX]: New macro.
29748 (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
29749 (re_xnrealloc, re_x2nrealloc): New inline functions.
29750 * lib/regcomp.c (init_dfa, analyze, build_range_exp,
29751 parse_bracket_exp):
29752 (build_equiv_class, build_charclass): Check for arithmetic overflow
29753 in size expression calculations.
29754 * lib/regex_internal.c (re_string_realloc_buffers):
29755 (build_wcs_upper_buffer, re_node_set_add_intersect):
29756 (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
29757 (re_dfa_add_node, register_state): Likewise.
29758 * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
29759 (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
29760 (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
29761 (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
29763 2005-09-02 Paul Eggert <eggert@cs.ucla.edu>
29765 * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
29766 m4/ulonglong.m4. Problem reported by Martin Lambers.
29768 2005-09-02 Bruno Haible <bruno@clisp.org>
29770 Support for lib vs. lib64 distinction on biarch platforms.
29771 * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
29772 (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
29773 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
29775 2005-09-02 Bruno Haible <bruno@clisp.org>
29777 * gnulib-tool (import): In the other first-use case, provide defaults
29780 2005-09-02 Bruno Haible <bruno@clisp.org>
29782 * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
29783 patches not yet found in the latest gettext release.
29785 2005-09-01 Paul Eggert <eggert@cs.ucla.edu>
29787 * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
29788 to avoid a collision with bits/local_lim.h in glibc.
29789 All uses changed. Problem reported by Dmitry V. Levin in
29790 <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
29792 * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
29793 bugs in int versus size_t comparisons.
29794 (re_string_context_at): Fix bug where the code assumed that
29797 Use bool where appropriate.
29798 * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
29799 All callers changed.
29800 (calc_eclosure_iter): Likewise, for ROOT arg.
29801 (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
29802 (build_charclass_op): Likewise, for NON_MATCH arg.
29803 * lib/regex_internal.c (re_string_allocate, re_string_construct):
29804 (re_string_construct_common): Likewise, for ICASE arg.
29805 * lib/regexec.c (re_search_2_stub, re_search_stub):
29806 Likewise, for RET_LEN arg.
29807 (check_matching): Likewise, for FL_LONGEST_MATCH arg.
29808 (set_regs): Likewise, for FL_BACKTRACK arg.
29809 * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
29810 (duplicate_node_closure, calc_inveclosure, calc_eclosure):
29811 (calc_eclosure_iter, parse_bracket_exp):
29812 Use bool for internal variables that are booleans.
29813 * lib/regexec.c (re_search_internal, check_matching,
29814 proceed_next_node):
29815 (set_regs, build_sifted_states, sift_states_bkref):
29816 (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
29817 (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
29818 (find_collation_sequence_value):
29820 * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
29821 (re_node_set_compare):
29822 Return bool, not int. All callers changed.
29823 * lib/regexec.c (check_halt_node_context, check_dst_limits):
29824 (build_trtable, check_node_accept): Likewise.
29825 * lib/regex_internal.h: Include stdbool.h.
29827 Fix bugs uncovered when converting to bool.
29828 * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
29829 failure instead of charging ahead blindly.
29830 * lib/regex_internal.c (register_state): Likewise.
29831 * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
29832 for freeing internal storage.
29833 (group_nodes_into_DFA_states): Use unsigned int, not int, for
29834 bitset pieces used as boolean, to avoid undefined behavior
29835 on hosts that do int overflow checking.
29837 2005-09-01 Paul Eggert <eggert@cs.ucla.edu>
29839 * config/srclist.txt: Add glibc bugs 1285-1287.
29841 2005-09-01 Jim Meyering <jim@meyering.net>
29843 * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
29844 CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
29845 Require gl_STAT_MACROS, too.
29847 2005-09-01 Bruno Haible <bruno@clisp.org>
29849 * gnulib-tool (import): In the first-use case, provide defaults.
29851 2005-09-01 Bruno Haible <bruno@clisp.org>
29853 * gnulib-tool (func_import): Remove the .tmp files.
29855 2005-09-01 Bruno Haible <bruno@clisp.org>
29857 * gnulib-tool (func_import): Fix handling of symbolic links.
29859 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
29861 On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
29862 old glibc regex code mishandles strings longer than 2**31 bytes.
29863 This patch fixes this when the regex code is used in gnulib
29864 (i.e., outside glibc).
29866 This patch should not affect the use of the regex code inside
29867 glibc. No doubt this problem also needs to be handled for glibc
29868 as well, but the result will be an incompatible change to the
29869 glibc ABI, and the old ABI will have to be supported too. That
29870 can be the the subject for another patch.
29872 * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
29873 governing whether the rest of this patch is active. By default,
29874 the macro is disabled and the patch has no effect.
29875 (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
29876 (__re_idx_t, __re_size_t, __re_long_size_t): New types.
29877 (struct re_pattern_buffer, re_search, re_search_2, re_match):
29878 (re_match_2, re_set_registers): Use the new types.
29879 * lib/regex_internal.h (Idx, re_hashval_t): New types.
29880 (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
29882 (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
29883 (re_string_context_at, bin_tree_t, re_dfastate_t):
29884 (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
29885 (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
29886 (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
29887 (re_string_char_size_at, re_string_wchar_at):
29888 (re_string_elem_size_at):
29889 Use the new types and macros to port to 64-bit hosts.
29890 Use unsigned types for internal values, so that the code
29891 mostly works even for arrays larger than SSIZE_MAX.
29892 * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
29893 (search_duplicated_node, calc_eclosure_iter, fetch_number):
29894 (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
29895 (build_equiv_class, build_charclass, re_compile_fastmap_iter):
29896 (free_dfa_content, create_initial_state, optimize_utf8, analyze):
29897 (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
29898 (calc_inveclosure, parse_dup_op, build_range_exp):
29899 (build_collating_symbol, parse_bracket_exp, build_charclass_op):
29900 (fetch_number, create_token_tree, mark_opt_subexp):
29902 * lib/regex_internal.c (re_string_construct_common,
29903 create_ci_newstate):
29904 (create_cd_newstate, re_string_allocate, re_string_construct):
29905 (re_string_realloc_buffers, build_wcs_upper_buffer):
29906 (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
29907 (re_string_reconstruct, re_string_peek_byte_case):
29908 (re_string_fetch_byte_case, re_string_context_at):
29909 (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
29910 (re_node_set_init_copy, re_node_set_add_intersect):
29911 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
29912 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
29913 (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
29914 (re_acquire_state, re_acquire_state_context, register_state):
29916 * lib/regex.c (match_ctx_init, match_ctx_add_entry,
29917 search_cur_bkref_entry):
29918 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
29919 (re_search_internal, re_search_2_stub, re_search_stub)
29920 (re_copy_regs, check_matching, check_halt_state_context, update_regs):
29921 (push_fail_stack, sift_states_iter_mb, build_sifted_states):
29922 (update_cur_sifted_state, check_dst_limits):
29923 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
29924 (check_subexp_limits, sift_states_bkref, merge_state_array):
29925 (check_subexp_matching_top, get_subexp, get_subexp_sub):
29926 (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
29927 (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
29928 (expand_bkref_cache, check_node_accept_bytes):
29929 (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
29930 (re_search, re_match_2, re_search_2, prune_impossible_nodes):
29931 (acquire_init_state_context, check_halt_node_context):
29932 (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
29933 (sift_states_backward, clean_state_log_if_needed):
29934 (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
29935 (find_recover_state, transit_state_sb, transit_state_mb):
29936 (transit_state_bkref, build_trtable, match_ctx_clean):
29938 * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
29939 to work around an assumption that REG_MISSING is negative.
29941 * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
29942 (seek_collating_symbol_entry) [defined _LIBC]:
29943 (lookup_collation_sequence_value) [defined _LIBC]:
29944 (build_range_exp, build_collating_symbol) [defined _LIBC]:
29945 Use prototypes rather than old-style function definitions.
29946 * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
29947 (transit_state_sb) [0]:
29948 (find_collation_sequence_value) [defined _LIBC]: Likewise.
29950 * lib/regexec.c (re_search_internal): Simplify update of rm_so and
29953 * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
29954 (optimize_subexps, lower_subexp):
29955 Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
29956 since the signed shift might overflow. Use 1u<<31 instead.
29957 * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
29959 * lib/regexec.c (check_dst_limits_calc_pos_1,
29960 check_subexp_matching_top): Likewise.
29962 * lib/regcomp.c (optimize_subexps, lower_subexp):
29963 Use CHAR_BIT rather than 8, for clarity.
29964 * lib/regexec.c (check_dst_limits_calc_pos_1):
29965 (check_subexp_matching_top): Likewise.
29966 * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
29967 have to worry about portability issues when shifting it left.
29968 Remove no-longer-needed test for table_size > 0.
29969 * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
29970 in a word, as the resulting behavior is undefined.
29971 * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
29972 in one case, a <= should have been an <, and in another case the
29973 whole test was missing.
29974 * lib/regex_internal.h (BYTE_BITS): Remove. All uses changed to
29975 the standard name CHAR_BIT.
29976 * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
29977 this is not true on one's complement and signed-magnitude hosts.
29979 * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
29981 (struct re_dfa_t): Remove unused member states_alloc.
29982 * lib/regcomp.c (init_dfa): Don't initialize unused members.
29984 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
29986 * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
29987 _REGEX_LARGE_OFFSETS). Test for regoff_t/off_t bug in 64-bit
29988 and large-file glibc and in 32-bit large-file Solaris.
29990 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
29992 * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
29993 lengths fit in regoff_t; this isn't true if regoff_t is the same
29995 * lib/regex.c (re_search_internal): 5th arg is LAST_START
29996 (= START + RANGE) instead of RANGE. This avoids overflow
29997 problems when regoff_t is the same width as size_t.
29998 All callers changed.
29999 (re_search_2_stub): Check for overflow when adding the
30000 sizes of the two strings.
30001 (re_search_stub): Check for overflow when adding START
30002 to RANGE; if it occurs, substitute the extreme value.
30004 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
30006 * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
30008 2005-08-31 Jim Meyering <jim@meyering.net>
30010 * lib/regcomp.c (search_duplicated_node): Make first pointer arg
30011 a pointer-to-const.
30012 * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
30013 (register_state): Likewise.
30014 * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
30015 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
30016 (group_nodes_into_DFAstates): Likewise.
30018 2005-08-31 Jim Meyering <jim@meyering.net>
30020 * check-module: Add a FIXME comment.
30022 2005-08-31 Eric Blake <ebb9@byu.net>
30024 * modules/unistd-safer (Files): Add unistd--.h.
30025 * modules/stdio-safer (Files): Add stdio--.h.
30027 2005-08-31 Derek Price <derek@ximbiot.com>
30029 * lib/getdelim.c (getdelim): Return EOF on EOF.
30030 Reported by Larry Jones <lawrence.jones@ugs.com>.
30032 2005-08-31 Bruno Haible <bruno@clisp.org>
30034 Avoid unnecessary diffs in the generated lib/Makefile.am.
30035 * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
30036 the generated files.
30037 (func_import): Don't set cmd.
30039 2005-08-31 Bruno Haible <bruno@clisp.org>
30041 * lib/strstr.c: Include <stddef.h>, for NULL.
30042 * lib/strcasestr.c: Likewise.
30043 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
30045 2005-08-31 Bruno Haible <bruno@clisp.org>
30047 * gnulib-tool: New option --macro-prefix.
30048 (func_import): Use macro_prefix.
30049 (import): Handle option --macro-prefix.
30051 2005-08-31 Bruno Haible <bruno@clisp.org>
30053 * gnulib-tool (import): Rename most ac_* variables to cached_*.
30054 Also use new variables cached_lgpl, cached_libtool.
30056 2005-08-31 Bruno Haible <bruno@clisp.org>
30058 * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
30059 always instantiating them.
30061 2005-08-31 Bruno Haible <bruno@clisp.org>
30063 * gnulib-tool (func_import): Read the previous cached settings
30064 from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
30065 earlier added by gnulib but are now dropped. Warn when a gnulib file
30066 overwrites a non-gnulib file.
30068 2005-08-31 Bruno Haible <bruno@clisp.org>
30070 * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
30071 gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
30072 projects that don't keep autogenerated files in CVS. Put into
30073 actioncmd only the specified modules, not the transitive closure.
30075 2005-08-31 Bruno Haible <bruno@clisp.org>
30077 * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
30078 Create directories that shall be filled.
30079 (import): Don't look for gl_* macros in configure.ac. Recurse across
30080 all directories containing a gnulib-cache.m4 files, if meaningful.
30082 2005-08-31 Bruno Haible <bruno@clisp.org>
30084 * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
30085 (import): Set seen_libtool when we see gl_LIBTOOL.
30087 2005-08-31 Bruno Haible <bruno@clisp.org>
30089 * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
30090 declaration macro definitions from generated gnulib.m4.
30092 2005-08-30 Oskar Liljeblad <oskar@osk.mine.nu>
30094 * lib/iconvme.h: Add prototype for iconv_alloc.
30096 2005-08-29 Simon Josefsson <jas@extundo.com>
30098 * lib/iconvme.c: Fix errno.
30100 2005-08-29 Bruno Haible <bruno@clisp.org>
30102 * gnulib-tool: Enclose all occurrences of $destdir in "...", so
30103 that it works when the directory contains spaces.
30105 2005-08-29 Bruno Haible <bruno@clisp.org>
30107 * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
30109 2005-08-29 Bruno Haible <bruno@clisp.org>
30111 * gnulib-tool (func_import): Emit more comments into gnulib.m4.
30114 2005-08-29 Bruno Haible <bruno@clisp.org>
30115 and Stepan Kasal <kasal@ucw.cz>
30117 * check-module: If more parameters are given, check each of them
30118 separately; add more exceptions, as noted by Jim Meyering.
30119 (check_module): New procedure.
30120 (%exempt_header): Now contains all exceptions.
30122 2005-08-29 Ben Pfaff <blp@cs.stanford.edu>
30124 * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
30126 2005-08-29 Oskar Liljeblad <oskar@osk.mine.nu>
30128 * lib/iconvme.c: Split iconv_string into iconv_alloc.
30130 2005-08-28 Bruno Haible <bruno@clisp.org>
30132 * m4/gnulib-tool.m4: New file.
30134 2005-08-27 Jim Meyering <jim@meyering.net>
30136 * modules/unistd-safer (Files): Add pipe-safer.c.
30137 * modules/fcntl-safer (Files): Add creat-safer.c.
30139 2005-08-27 Jim Meyering <jim@meyering.net>
30141 * m4/stdlib-safer.m4: New file. From coreutils.
30142 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
30143 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
30144 AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
30145 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
30146 Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
30148 2005-08-27 Jim Meyering <jim@meyering.net>
30150 * lib/fopen-safer.c: Merge minor changes from coreutils.
30151 * lib/dup-safer.c: Likewise.
30152 * lib/fd-safer.c: Likewise.
30154 Merge from coreutils.
30155 * lib/stdio--.h: New file.
30156 * lib/stdlib--.h: New file.
30157 * lib/mkstemp-safer.c: New file.
30159 GNU tar needs these.
30160 * lib/pipe-safer.c: New file.
30161 * lib/creat-safer.c: New file.
30162 * lib/fcntl--.h (creat): Define to creat_safer.
30163 * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
30164 * lib/unistd--.h (pipe): Define to pipe_safer.
30165 * lib/unistd-safer.h: Declare pipe_safer.
30167 2005-08-26 Simon Josefsson <jas@extundo.com>
30169 * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
30170 Haible <bruno@clisp.org>.
30172 2005-08-26 Paul Eggert <eggert@cs.ucla.edu>
30174 * lib/regex_internal.h: Remove all references to
30175 RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
30177 (bitset_not, bitset_merge, bitset_not_merge):
30178 (bitset_mask, re_string_allocate, re_string_construct):
30179 (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
30180 (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
30181 (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
30182 (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
30183 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
30184 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
30185 (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
30186 (re_acquire_state_context):
30187 Remove unnecessary forward decls.
30188 (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
30189 Put __attribute at function definition,
30190 now that the function decl has been removed.
30191 * lib/regex_internal.c (re_string_peek_byte_case):
30192 (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
30195 2005-08-25 Stepan Kasal <kasal@ucw.cz>
30197 * m4/regex.m4: Add AC_PREREQ(2.50).
30198 (gl_REGEX): If --with-included-regex was given, skip the autodetection.
30200 2005-08-25 Simon Josefsson <jas@extundo.com>
30202 * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
30205 2005-08-25 Simon Josefsson <jas@extundo.com>
30207 * lib/getpass.c: Add WIN32 implementation. Conditionalize use of
30208 termios.h, tcgetattr, tcsetattr and __fsetlocking. Remove some
30209 GLIBC specific code.
30211 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
30213 Make regex safe for g++. This fixes one real bug (an "err"
30214 that should have been "*err"). g++ problem reported by
30216 * lib/regex_internal.h (re_calloc): New macro, consistent with
30217 re_malloc etc. All callers of calloc changed to use re_calloc.
30218 * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
30219 not int. All callers changed.
30220 * lib/regcomp.c (re_compile_fastmap_iter): Don't use
30221 alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
30222 * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
30223 (find_recover_state): Change "err" to "*err"; this fixes what
30224 appears to be a real bug.
30225 (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
30228 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
30230 * modules/regex (Depends-on): Add malloc, since the code
30231 assumes that !malloc(0) means failure.
30233 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
30235 * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
30237 alloca modernization/simplification for regex.
30238 * lib/regex.c: Remove portability cruft for alloca. This no longer
30239 needs to be at the start of the file, and can be moved into
30240 regex_internal.h and simplified.
30241 * lib/regex_internal.h: Include <alloca.h>.
30242 (__libc_use_alloca) [!defined _LIBC]: New macro.
30243 * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
30244 now works outside glibc.
30246 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
30248 * config/srclist.txt: Add glibc bugs 1241, 1245.
30250 2005-08-25 Jim Meyering <jim@meyering.net>
30252 * lib/open-safer.c: Include <config.h>.
30253 Otherwise, we'd lose LARGEFILE support in any file using
30256 2005-08-25 Bruno Haible <bruno@clisp.org>
30258 * m4/minmax.m4: Require autoconf 2.52.
30259 (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
30260 of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
30261 alternatives of translit over the alphabet.
30262 Based on a patch from Stepan Kasal <kasal@ucw.cz>.
30264 2005-08-24 Simon Josefsson <jas@extundo.com>
30266 * tests/test-getpass.c: New file.
30268 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
30270 * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
30271 for GNU regex features.
30273 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
30275 * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
30276 * lib/regex.h (regerror): Likewise.
30278 * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
30279 requires this. (The code never needed it.)
30281 * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
30282 All uses of recently-renamed identifiers changed to use the new,
30283 POSIX-compliant names. The code will build and run just fine
30284 without these changes, but it's better to eat our own dog food
30285 and use the standard-conforming names.
30287 * lib/regex.h: Fix a multitude of POSIX name space violations.
30288 These changes have an effect only for programs that define
30289 _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
30290 do not change anything for programs compiled in the normal way.
30291 Also, there is no effect on the ABI.
30293 (_REGEX_SOURCE): New macro.
30294 Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
30295 defined and _GNU_SOURCE is not; this fixes a name space violation.
30297 Rename the following macros to obey POSIX requirements.
30298 The old names are still visible as macros if _REGEX_SOURCE is defined.
30299 (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
30300 RE_BACKSLASH_ESCAPE_IN_LISTS.
30301 (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
30302 (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
30303 (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
30304 (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
30305 (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
30306 (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
30307 (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
30308 (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
30309 (REG_INTERVALS): renamed from RE_INTERVALS.
30310 (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
30311 (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
30312 (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
30313 (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
30314 (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
30315 (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
30316 (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
30317 (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
30318 RE_UNMATCHED_RIGHT_PAREN_ORD.
30319 (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
30320 (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
30321 (REG_DEBUG): renamed from RE_DEBUG.
30322 (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
30323 (REG_IGNORE_CASE): renamed from RE_ICASE. This renaming is a bit
30324 unusual, since we can't clash with the POSIX REG_ICASE.
30325 (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
30326 (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
30327 (REG_NO_SUB): renamed from RE_NO_SUB.
30328 (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
30329 (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
30330 (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
30331 (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
30332 (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
30333 (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
30334 (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
30335 (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
30336 (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
30337 (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
30338 (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
30339 (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
30340 RE_SYNTAX_POSIX_MINIMAL_BASIC.
30341 (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
30342 (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
30343 RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
30344 (REG_DUP_MAX): renamed from RE_DUP_MAX. No need to undef it.
30345 (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
30346 (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
30347 (REG_FIXED): Renamed from REGS_FIXED.
30348 (REG_NREGS): Renamed from RE_NREGS.
30350 (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
30351 of other REG_* macros, since POSIX says the user is allowed to
30352 #undef these macros selectively.
30354 (reg_errcode_t): Update comment stating what other tables need
30357 Rename the following enum values to obey POSIX requirements.
30358 The old names are still visible as macros.
30359 (_REG_ENOSYS): Renamed from REG_ENOSYS. Define even if _XOPEN_SOURCE
30360 is not defined, since GNU is supposed to be a superset of POSIX as
30361 much as possible, and since we want reg_errcode_t to be a signed
30362 type for implementation consistency.
30363 (_REG_NOERROR): Renamed from REG_NOERROR.
30364 (_REG_NOMATCH): Renamed from REG_NOMATCH.
30365 (_REG_BADPAT): Renamed from REG_BADPAT.
30366 (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
30367 (_REG_ECTYPE): Renamed from REG_ECTYPE.
30368 (_REG_EESCAPE): Renamed from REG_EESCAPE.
30369 (_REG_ESUBREG): Renamed from REG_ESUBREG.
30370 (_REG_EBRACK): Renamed from REG_EBRACK.
30371 (_REG_EPAREN): Renamed from REG_EPAREN.
30372 (_REG_EBRACE): Renamed from REG_EBRACE.
30373 (_REG_BADBR): Renamed from REG_BADBR.
30374 (_REG_ERANGE): Renamed from REG_ERANGE.
30375 (_REG_ESPACE): Renamed from REG_ESPACE.
30376 (_REG_BADRPT): Renamed from REG_BADRPT.
30377 (_REG_EEND): Renamed from REG_EEND.
30378 (_REG_ESIZE): Renamed from REG_ESIZE.
30379 (_REG_ERPAREN): Renamed from REG_ERPAREN.
30380 (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
30381 (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
30382 (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
30383 (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
30385 (_REG_RE_NAME, _REG_RM_NAME): New macros.
30386 (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE. All uses
30387 changed. But support the old name if the new one is not defined
30388 and if _REGEX_SOURCE.
30390 Change the following member names in struct re_pattern_buffer.
30391 The old names are still supported if !_REGEX_SOURCE.
30392 The new names are always supported, regardless of _REGEX_SOURCE.
30393 (re_buffer): Renamed from buffer.
30394 (re_allocated): Renamed from allocated.
30395 (re_used): Renamed from used.
30396 (re_syntax): Renamed from syntax.
30397 (re_fastmap): Renamed from fastmap.
30398 (re_translate): Renamed from translate.
30399 (re_can_be_null): Renamed from can_be_null.
30400 (re_regs_allocated): Renamed from regs_allocated.
30401 (re_fastmap_accurate): Renamed from fastmap_accurate.
30402 (re_no_sub): Renamed from no_sub.
30403 (re_not_bol): Renamed from not_bol.
30404 (re_not_eol): Renamed from not_eol.
30405 (re_newline_anchor): Renamed from newline_anchor.
30407 Change the following member names in struct re_registers.
30408 The old names are still supported if !_REGEX_SOURCE.
30409 The new names are always supported, regardless of _REGEX_SOURCE.
30410 (rm_num_regs): Renamed from num_regs.
30411 (rm_start): Renamed from start.
30412 (rm_end): Renamed from end.
30414 (re_set_syntax, re_compile_pattern, re_compile_fastmap):
30415 (re_search, re_search_2, re_match, re_match_2, re_set_registers):
30416 Prepend __ to parameter names.
30418 Undo yesterday's changes.
30420 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
30422 * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
30423 supersedes it. Add glibc bugs 1237, 1238, 1240. Comment out
30426 2005-08-24 Jim Meyering <jim@meyering.net>
30428 Sync from coreutils.
30429 * m4/fcntl-safer.m4: New file.
30431 * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
30432 and object files for this module.
30434 2005-08-24 Jim Meyering <jim@meyering.net>
30436 Sync from coreutils.
30437 * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
30439 2005-08-24 Jim Meyering <jim@meyering.net>
30441 * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
30442 now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
30444 2005-08-24 Jim Meyering <jim@meyering.net>
30446 * modules/fcntl-safer: New module.
30447 * modules/fts (Depends-on): Add fcntl-safer.
30448 * MODULES.html.sh (File descriptor based Input/Output):
30451 2005-08-24 Bruno Haible <bruno@clisp.org>
30453 Support for unit test modules.
30454 * modules/README: Mention tests modules.
30455 * modules/TEMPLATE-TESTS: New file.
30456 * gnulib-tool: New options --extract-tests-module, --with-tests and
30457 --tests-base (unused for the moment).
30458 (testsbase, inctests): New variables.
30459 (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
30460 (func_verify_module): Exclude TEMPLATE-TESTS.
30461 (func_verify_nontests_module, func_verify_tests_module): New functions.
30462 (func_get_dependencies): Add implicit dependency for tests modules.
30463 (func_get_tests_module): New function.
30464 (func_modules_transitive_closure): When --with-tests was specified,
30465 include the unit tests as well, unless explicitly avoided.
30466 (func_emit_lib_Makefile_am): Ignore the tests modules here.
30467 (func_emit_tests_Makefile_am): New function.
30468 (func_create_testdir): When --with-tests was specified, emit a
30470 * MODULES.html.sh (Future developments): Update.
30472 2005-08-24 Bruno Haible <bruno@clisp.org>
30474 * modules/tls-tests: New file.
30475 * tests/test-tls.c: New file, from GNU gettext.
30477 2005-08-24 Bruno Haible <bruno@clisp.org>
30479 * modules/lock-tests: New file.
30480 * tests/test-lock.c: New file, from GNU gettext.
30482 2005-08-24 Bruno Haible <bruno@clisp.org>
30484 * lib/lock.h: Add multiple inclusion guard.
30485 * lib/tls.h: Add multiple inclusion guard.
30487 2005-08-24 Bruno Haible <bruno@clisp.org>
30489 * gnulib-tool: Add support for the --aux-dir option to
30490 --create-testdir, --create-megatestdir, --test, --megatest.
30491 (func_create_testdir, func_create_megatestdir): Optionally emit a
30492 AC_CONFIG_AUX_DIR directive.
30493 (create-testdir, create-megatestdir, test, megatest): Provide a
30494 default value for $auxdir.
30496 2005-08-24 Bruno Haible <bruno@clisp.org>
30498 * gnulib-tool (import): Use compound statement instead of subshell
30501 2005-08-24 Bruno Haible <bruno@clisp.org>
30503 * gnulib-tool (import): Change --aux-dir default to "build-aux".
30505 2005-08-24 Bruno Haible <bruno@clisp.org>
30507 * gnulib-tool (func_version): Update.
30509 2005-08-24 Bruno Haible <bruno@clisp.org>
30511 * gnulib-tool (func_import, func_create_testdir,
30512 func_create_megatestdir): Quote all autoconf macro arguments.
30514 2005-08-24 Bruno Haible <bruno@clisp.org>
30516 * gnulib-tool (func_create_megatestdir): Call autoreconf without the
30517 option --force, because --force causes the aclocal.m4 of each
30518 subdirectory to be newer than the corresponding config.h.in.
30520 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
30522 * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
30523 All contents moved to gl_REGEX.
30524 (gl_REGEX): Don't bother checking whether lib/regex.c exists;
30525 assume that it does.
30527 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
30529 * lib/regex.h (REG_NOSYS)
30530 [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
30531 Define, since POSIX requires it as of 2001.
30533 [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
30534 New private symbol, used to keep the enum signed in all cases.
30535 * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
30537 <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
30539 * lib/regex_internal.c (re_string_skip_chars, register_state):
30541 Remove forward decls; no longer needed now that we use prototypes.
30542 * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
30543 (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
30544 (clean_state_log_if_needed): Likewise.
30546 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
30548 * config/srclist.txt: Add glibc bugs 1231-1233.
30550 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
30552 Fix problems reported by Sam Steingold in
30553 <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
30554 * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
30555 assumed that reg_errcode_t is a signed type, which is not
30556 necessarily true if _XOPEN_SOURCE is not defined.
30557 * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
30558 since some compilers warn about it otherwise.
30560 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
30562 * lib/regcomp.c (create_initial_state): Remove duplicate decl.
30563 (init_word_char, create_initial_state, duplicate_node_closure):
30564 (fetch_token, peek_token_bracket, build_range_exp):
30565 (build_collating_symbol): Remove forward decls; no longer needed
30566 now that we use prototypes.
30569 (re_compile_pattern, re_set_syntax, re_compile_fastmap):
30570 (re_compile_fastmap_iter, regcomp, regerror, regfree):
30571 (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
30572 (create_initial_state, optimize_utf8, analyze, postorder, preorder):
30573 (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
30574 (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
30575 (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
30576 (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
30577 (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
30578 (build_range_exp, build_collating_symbol, parse_bracket_exp):
30579 (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
30580 (build_charclass, build_charclass_op, fetch_number, create_tree):
30581 (create_token_tree, mark_opt_subexp, duplicate_tree):
30582 Use prototypes rather than old-style definitions.
30584 * lib/regex_internal.c:
30585 (re_string_allocate, re_string_construct, re_string_realloc_buffers):
30586 (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
30587 (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
30588 (re_string_reconstruct, re_string_peek_byte_case):
30589 (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
30590 (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
30591 (re_node_set_init_copy, re_node_set_add_intersect):
30592 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
30593 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
30594 (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
30595 (re_acquire_state, re_acquire_state_context, register_state):
30596 (create_ci_newstate, create_cd_newstate, free_state):
30598 * lib/regexec.c (regexec, re_match, re_search, re_match_2,
30600 (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
30601 (re_search_internal, prune_impossible_nodes):
30602 (acquire_init_state_context, check_matching, static):
30603 (check_halt_node_context, check_halt_state_context, proceed_next_node):
30604 (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
30605 (update_regs, sift_states_backward, build_sifted_states):
30606 (clean_state_log_if_needed, merge_state_array):
30607 (update_cur_sifted_state, add_epsilon_src_nodes):
30608 (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
30609 (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
30610 (sift_states_iter_mb, transit_state, merge_state_with_log, static):
30611 (find_recover_state, check_subexp_matching_top, transit_state_mb):
30612 (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
30613 (check_arrival, check_arrival_add_next_nodes):
30614 (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
30615 (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
30616 (check_node_accept_bytes, check_node_accept, extend_buffers):
30617 (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
30618 (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
30622 * lib/regex_internal.h:
30623 (re_string_allocate, re_string_construct, re_string_reconstruct):
30624 (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
30625 (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
30626 (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
30627 (re_string_context_at, re_string_peek_byte_case):
30628 (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
30629 is defined, since we now use prototypes always.
30631 * lib/regex.h (_RE_ARGS): Remove. No longer needed, since we assume
30632 C89 or better. All uses removed.
30634 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
30636 * config/srclist.txt: Add glibc bugs 1220-1227.
30638 2005-08-20 Jim Meyering <jim@meyering.net>
30640 * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
30641 of unused local, dfa.
30643 2005-08-20 Bruno Haible <bruno@clisp.org>
30645 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
30647 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
30649 * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
30650 (re_node_set_insert_last, re_dfa_add_node):
30651 Rename local variables to avoid GCC shadowing warnings.
30653 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
30655 * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
30656 [defined lint]: Suppress bogus uninitialized-variable warnings.
30658 * lib/regcomp.c (duplicate_node): Return new index, not an error code,
30659 and let the caller return REG_ESPACE if out of space. This
30660 removes an uninitialied-variable warning with GCC 4.0.1, and also
30661 avoids taking the address of a local variable. All callers
30664 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
30666 * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
30667 $LIBCSRC/posix/regexec.c.
30668 Add glibc bug 1217 for regcomp.c.
30670 2005-08-19 Jim Meyering <jim@meyering.net>
30672 * lib/regexec.c (proceed_next_node): Redo local variables to
30673 avoid GCC shadowing warnings.
30675 2005-08-18 Bruno Haible <bruno@clisp.org>
30677 * lib/strstr.c (strstr): Fix return value in multibyte case.
30678 * lib/strcasestr.c (strcasestr): Likewise.
30680 2005-08-17 Paul Eggert <eggert@cs.ucla.edu>
30682 * lib/regex.h: Remove useless space-before-tab. From coreutils.
30684 2005-08-17 Jim Meyering <jim@meyering.net>
30686 Make the %s format (seconds since the epoch) work for a negative
30687 number and when used with a zero-padded field width, e.g. %015s.
30689 * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
30690 label so that it precedes the code to set `digits'. Otherwise,
30691 %0Ns wouldn't work. Before this change, `date -d @-22 +%05s' would
30692 print `00-22'. Now, it prints `-0022', as it should.
30694 2005-08-17 Bruno Haible <bruno@clisp.org>
30696 * modules/strstr (Files): Add m4/mbrtowc.m4.
30697 (Depends-on): Add mbuiter.
30699 2005-08-17 Bruno Haible <bruno@clisp.org>
30701 * modules/strcasestr: New file.
30702 * MODULES.html.sh (String handling, based on ANSI C 89): Add
30705 2005-08-17 Bruno Haible <bruno@clisp.org>
30707 * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
30709 2005-08-17 Bruno Haible <bruno@clisp.org>
30711 * modules/mbuiter: New file.
30712 * MODULES.html.sh (Extended multibyte and wide character utilities):
30715 2005-08-17 Bruno Haible <bruno@clisp.org>
30717 * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
30718 (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
30720 2005-08-17 Bruno Haible <bruno@clisp.org>
30722 * m4/strcasestr.m4: New file.
30724 2005-08-17 Bruno Haible <bruno@clisp.org>
30726 * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
30727 * lib/strstr.c: Completely rewritten, with multibyte locale support.
30729 2005-08-17 Bruno Haible <bruno@clisp.org>
30731 * lib/strcasestr.h: New file.
30732 * lib/strcasestr.c: New file.
30734 2005-08-17 Bruno Haible <bruno@clisp.org>
30736 * lib/strcasecmp.c: Use mbuiter.h.
30738 2005-08-17 Bruno Haible <bruno@clisp.org>
30740 * lib/mbuiter.h: New file.
30742 2005-08-16 Paul Eggert <eggert@cs.ucla.edu>
30744 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
30745 of gl_GETOPT_SUBSTITUTE. That way, if both gl_GETOPT_SUBSTITUTE
30746 and gl_GETOPT are both invoked via different paths (as happens
30747 with GNU tar CVS because it uses both argp and getopt), the former
30750 2005-08-16 Bruno Haible <bruno@clisp.org>
30752 * modules/tls: New file.
30753 * MODULES.html.sh (Multithreading): Add tls.
30755 2005-08-16 Bruno Haible <bruno@clisp.org>
30757 * modules/strnlen1: New file.
30758 * MODULES.html.sh (String handling): Add strnlen1.
30760 2005-08-16 Bruno Haible <bruno@clisp.org>
30762 * modules/strcase (Files): Add m4/mbrtowc.m4.
30763 (Depends-on): Add strnlen1, mbchar.
30765 2005-08-16 Bruno Haible <bruno@clisp.org>
30767 * modules/mbiter: New file.
30768 * MODULES.html.sh (Extended multibyte and wide character utilities):
30771 2005-08-16 Bruno Haible <bruno@clisp.org>
30773 * modules/mbfile: New file.
30774 * MODULES.html.sh (Extended multibyte and wide character utilities):
30777 2005-08-16 Bruno Haible <bruno@clisp.org>
30779 * modules/mbchar: New file.
30780 * MODULES.html.sh (Extended multibyte and wide character utilities):
30783 2005-08-16 Bruno Haible <bruno@clisp.org>
30785 * m4/tls.m4: New file, from GNU gettext.
30787 2005-08-16 Bruno Haible <bruno@clisp.org>
30789 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
30791 (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
30793 2005-08-16 Bruno Haible <bruno@clisp.org>
30795 * m4/mbiter.m4: New file.
30797 2005-08-16 Bruno Haible <bruno@clisp.org>
30799 * m4/mbfile.m4: New file.
30801 2005-08-16 Bruno Haible <bruno@clisp.org>
30803 * m4/mbchar.m4: New file.
30805 2005-08-16 Bruno Haible <bruno@clisp.org>
30807 * lib/tls.h: New file, from GNU gettext.
30808 * lib/tls.c: New file, from GNU gettext.
30810 2005-08-16 Bruno Haible <bruno@clisp.org>
30812 * lib/strnlen1.h: New file.
30813 * lib/strnlen1.c: New file.
30815 2005-08-16 Bruno Haible <bruno@clisp.org>
30817 * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
30818 (mbi_init): Update.
30819 (mbi_avail, mbi_advance): Let the iteration end before the terminating
30820 NUL byte, not after it.
30822 2005-08-16 Bruno Haible <bruno@clisp.org>
30824 * lib/strcase.h (strcasecmp): Add note in comments.
30825 * lib/strncasecmp.c: Use code from strcasecmp.c.
30826 * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
30827 (strcasecmp): Work correctly in multibyte locales.
30829 2005-08-16 Bruno Haible <bruno@clisp.org>
30831 * lib/mbiter.h: New file.
30833 2005-08-16 Bruno Haible <bruno@clisp.org>
30835 * lib/mbfile.h: New file.
30837 2005-08-16 Bruno Haible <bruno@clisp.org>
30839 * lib/mbchar.h: New file.
30840 * lib/mbchar.c: New file.
30842 2005-08-16 Bruno Haible <bruno@clisp.org>
30844 * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
30845 the valid ones. Makes the comparison operations transitive:
30846 cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
30847 * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
30849 2005-08-15 Simon Josefsson <jas@extundo.com>
30851 * modules/ssize_t (License): Change to 'unlimited'.
30853 * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
30855 2005-08-15 Paul Eggert <eggert@cs.ucla.edu>
30857 * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
30858 Add comments for each pending glibc patch.
30860 2005-08-15 Bruno Haible <bruno@clisp.org>
30862 * lib/regex.h (__restrict_arr): Don't define to __restrict if
30863 __cplusplus is defined.
30865 2005-08-14 Jim Meyering <jim@meyering.net>
30867 Sync from coreutils.
30869 * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
30870 Use the hash-table-based cycle-detection code not just when
30871 FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
30872 Reported by James Youngman in
30873 <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
30874 * lib/fts_.h: Mention that with FTS_LOGICAL, we use
30875 FTS_TIGHT_CYCLE_CHECK.
30876 * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
30877 s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
30879 * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
30880 * lib/fts.c (fd_safer): Remove decl.
30881 Include fcntl--.h rather than unistd-safer.h
30882 (fts_safe_changedir): Don't call fd_safer; no longer needed
30883 now that we include fcntl--.h.
30885 2005-08-12 Simon Josefsson <jas@extundo.com>
30887 * modules/getndelim2: Use ssize_t module.
30888 * modules/getnline: Likewise.
30889 * modules/safe-read: Likewise.
30890 * modules/xreadlink: Likewise.
30892 * modules/ssize_t: New file.
30894 2005-08-12 Simon Josefsson <jas@extundo.com>
30896 * m4/readline.m4: Look for termcap, curses or ncurses if required.
30898 2005-08-12 Simon Josefsson <jas@extundo.com>
30900 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
30903 2005-08-12 Simon Josefsson <jas@extundo.com>
30905 * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
30906 readline, getdelim and check_version.
30907 (Support for systems lacking ISO C 99: Sizes of integer types):
30910 2005-08-12 Bruno Haible <bruno@clisp.org>
30912 * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
30914 2005-08-11 Simon Josefsson <jas@extundo.com>
30916 * modules/readline: New file.
30918 * modules/strnlen (Files): Add strnlen.h.
30920 2005-08-11 Simon Josefsson <jas@extundo.com>
30922 * m4/readline.m4: New file.
30924 2005-08-11 Simon Josefsson <jas@extundo.com>
30926 * lib/readline.h, readline.c: New file.
30928 2005-08-11 Simon Josefsson <jas@extundo.com>
30930 * doc/gnulib.texi (Initial import, Finishing touches): Mention
30933 2005-08-11 Bruno Haible <bruno@clisp.org>
30935 * lib/strnlen.h (strnlen): Change parameter name to match comment.
30937 2005-08-10 Stepan Kasal <kasal@ucw.cz>
30939 * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
30941 2005-08-10 Simon Josefsson <jas@extundo.com>
30943 * tests/test-iconvme.c: New file.
30945 2005-08-10 Simon Josefsson <jas@extundo.com>
30947 * m4/strnlen.m4: New file.
30949 * m4/strndup.m4: Don't check for strnlen declaration, done in
30952 2005-08-10 Simon Josefsson <jas@extundo.com>
30954 * lib/strndup.c: Use strnlen.h.
30956 * lib/strnlen.h: New file.
30958 2005-08-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
30962 2005-08-02 Simon Josefsson <jas@extundo.com>
30964 * modules/readline: New file.
30966 2005-08-02 Simon Josefsson <jas@extundo.com>
30968 * modules/getdelim: New file.
30970 * modules/getline: Rewrite, don't use getndelim2.
30972 2005-08-02 Simon Josefsson <jas@extundo.com>
30974 * m4/getline.m4: Separate out getdelim stuff into separate module.
30976 * m4/getdelim.m4: New file.
30978 2005-08-02 Simon Josefsson <jas@extundo.com>
30980 * lib/getline.h, getline.c: Rewrite.
30982 * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
30984 2005-07-31 Bruno Haible <bruno@clisp.org>
30986 * lib/lock.h (gl_lock_initializer): New macro.
30987 (gl_lock_define_initialized): Use it.
30988 (gl_rwlock_initializer): New macro.
30989 (gl_rwlock_define_initialized): Use it.
30990 (gl_recursive_lock_initializer): New macro.
30991 (gl_recursive_lock_define_initialized): Use it.
30993 2005-07-30 Karl Berry <karl@gnu.org>
30995 * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
30996 Report from Ben Pfaff, regarding getopt.
30998 2005-07-26 Paul Eggert <eggert@cs.ucla.edu>
31000 Add support to getopt for Emacs, which doesn't use LIBOBJS in the
31002 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
31003 (gl_GETOPT_SUBSTITUTE): Use it. Invoke gl_PREREQ_GETOPT.
31004 (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
31005 (gl_GETOPT): Use the new macros. Most of the implementation
31006 is moved to the new macros. This is for programs like Emacs
31007 that don't want all the functionality of gl_GETOPT.
31009 2005-07-26 Bruno Haible <bruno@clisp.org>
31011 * m4/lock.m4: Update from GNU gettext.
31013 2005-07-26 Bruno Haible <bruno@clisp.org>
31015 * lib/lock.h: Update from GNU gettext.
31016 * lib/lock.c: Update from GNU gettext.
31018 2005-07-25 Paul Eggert <eggert@cs.ucla.edu>
31020 * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
31021 obsolescent AC_TRY_RUN. Include the default includes files, for
31024 2005-07-24 Bruno Haible <bruno@clisp.org>
31026 * modules/visibility: New file.
31027 * MODULES.html.sh (Misc): Add visibility.
31029 2005-07-24 Bruno Haible <bruno@clisp.org>
31031 * m4/visibility.m4: New file.
31033 2005-07-24 Bruno Haible <bruno@clisp.org>
31035 * doc/visibility.texi: New file.
31037 2005-07-22 Bruno Haible <bruno@clisp.org>
31039 * modules/alloca-opt (Makefile.am): Remove explicit dependency on
31040 $(ALLOCA_H), redundant through BUILT_SOURCES.
31041 * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
31042 redundant through BUILT_SOURCES.
31043 * modules/byteswap (Makefile.am): Remove explicit dependency on
31044 $(BYTESWAP_H), redundant through BUILT_SOURCES.
31045 * modules/fnmatch (Makefile.am): Remove explicit dependency on
31046 $(FNMATCH_H), redundant through BUILT_SOURCES.
31047 * modules/getopt (Makefile.am): Remove explicit dependency on
31048 $(GETOPT_H), redundant through BUILT_SOURCES.
31049 * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
31050 redundant through BUILT_SOURCES.
31051 * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
31052 redundant through BUILT_SOURCES.
31053 * modules/stdbool (Makefile.am): Remove explicit dependency on
31054 $(STDBOOL_H), redundant through BUILT_SOURCES.
31055 * modules/stdint (Makefile.am): Remove explicit dependency on
31056 $(STDINT_H), redundant through BUILT_SOURCES.
31057 * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
31058 Remove explicit dependency on $(SYSEXITS_H).
31059 Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
31061 2005-07-18 Simon Josefsson <jas@extundo.com>
31063 * lib/check-version.c (check_version): Accept identical versions too.
31065 2005-07-18 Bruno Haible <bruno@clisp.org>
31067 * modules/lock: New file.
31068 * MODULES.html.sh (Multithreading): New section.
31070 2005-07-18 Bruno Haible <bruno@clisp.org>
31072 * m4/lock.m4: New file, from GNU gettext.
31074 2005-07-18 Bruno Haible <bruno@clisp.org>
31076 * lib/lock.h: New file, from GNU gettext.
31077 * lib/lock.c: New file, from GNU gettext.
31079 2005-07-18 Bruno Haible <bruno@clisp.org>
31081 * lib/lock.h (gl_once_t): New type.
31082 (gl_once_define, gl_once): New macros.
31083 * lib/lock.c (fresh_once): New variable.
31084 (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
31087 2005-07-16 Simon Josefsson <jas@extundo.com>
31089 * doc/gnulib.texi (Library version handling): Add ELF symbol collision
31090 workaround, suggested by Bruno.
31092 2005-07-15 Paul Eggert <eggert@cs.ucla.edu>
31094 * modules/xalloc (Depends-on): Add xalloc-die.
31095 * modules/xvasprintf (Depends-on): Add xalloc-die.
31097 2005-07-15 Paul Eggert <eggert@cs.ucla.edu>
31099 * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
31100 with a minor change.
31102 2005-07-15 Bruno Haible <bruno@clisp.org>
31104 * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
31105 When using lib/poll.c, define poll as rpl_poll.
31107 2005-07-14 Paul Eggert <eggert@cs.ucla.edu>
31109 * modules/argp (Depends-on): Remove unlocked-io.
31111 2005-07-14 Derek Price <derek@ximbiot.com>
31113 * m4/glob.m4 (gl_GLOB): Cache glob interface check result. Add check
31114 for glob symlink bug.
31116 2005-07-14 Bruno Haible <bruno@clisp.org>
31118 * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
31119 Instead, test for *_unlocked function declarations directly.
31121 2005-07-11 Simon Josefsson <jas@extundo.com>
31123 * modules/size_max: New file.
31125 * modules/xsize: Depend on size_max module for size_max.m4.
31127 2005-07-11 Simon Josefsson <jas@extundo.com>
31129 * lib/size_max.h: New file.
31131 2005-07-11 Paul Eggert <eggert@cs.ucla.edu>
31133 * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
31134 copyright symbol and the year.
31135 * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
31136 (version_etc_va): Use parameterized copyright notice.
31137 Reword to conform to the current GNU coding standards.
31139 2005-07-11 Karl Berry <karl@gnu.org>
31141 * doc/gnulib.texi (Quoting): new node.
31142 (Initial import): more info, from Patrice.
31144 2005-07-11 Bruno Haible <bruno@clisp.org>
31146 * gnulib-tool (func_usage): Document option --avoid.
31147 (Command line options): Handle --avoid.
31148 (func_acceptable): New function.
31149 (func_modules_transitive_closure): Use it.
31151 2005-07-11 Bruno Haible <bruno@clisp.org>
31153 * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
31154 Reported by Jim Meyering.
31156 2005-07-10 Bruno Haible <bruno@clisp.org>
31158 * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
31159 Needed when size_t is smaller than 'unsigned int'.
31160 Reported by Paul Eggert.
31162 2005-07-09 Sergey Poznyakoff <gray@gnu.org.ua>
31164 * modules/argp (Depends-on): Add unlocked-io
31166 2005-07-09 Sergey Poznyakoff <gray@gnu.org.ua>
31168 * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
31171 2005-07-08 Paul Eggert <eggert@cs.ucla.edu>
31173 * config/srclist.txt: Comment out regcomp.c, since we have a porting
31176 2005-07-08 Eric Blake <ebb9@byu.net> (tiny change)
31177 and Paul Eggert <eggert@cs.ucla.edu>
31179 * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
31180 in wint_t, not wchar_t. Remove now-unnecessary cast.
31182 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
31184 * modules/regex (Files): Add lib/regex_internal.c,
31185 lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
31186 (Depends-on): Add extensions.
31187 (Makefile.am): Remove lib_SOURCES; now done by m4 code.
31189 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
31191 * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
31193 * m4/same.m4 (gl_SAME): Likewise.
31194 Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
31196 * m4/regex.m4: Adjust to new libc regex implementation.
31197 (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
31198 all the .c and .h parts of (the new) regex.
31199 Quote the m4 stuff better.
31200 Check for RE_ICASE bug of old gnulib.
31201 Check for REG_STARTEND of recent libc.
31202 Rename local variables from jm_* to gl_*.
31203 Quote operand of "test -f".
31204 Say "recent enough" version of libc, not "version 2".
31205 (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
31206 prerequisite module. Remove AC_HEADER_STDC; no longer needed.
31207 Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
31208 Remove check for btowc, isascii.
31209 Require AM_LANGINFO_CODESET.
31211 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
31213 * lib/regex.c, regex.h: Sync from libc.
31214 * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
31216 New files, synced from libc, except that regex_internal.h
31217 currently has a small porting fix.
31219 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
31221 * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
31222 regex_internal.c, regexec.c.
31223 Add regex_internal.h too, but as a comment, since the libc version
31224 is currently broken in gnulib mode.
31226 2005-07-06 Paul Eggert <eggert@cs.ucla.edu>
31228 Support programs like Emacs that use gnulib but not gettext.
31229 * MODULES.html.sh (Internationalization functions): Add gettext-h.
31230 * modules/gettext-h: New file.
31231 * modules/gettext (Files): Remove lib/gettext.h.
31232 (Depends-on): Add gettext-h.
31233 (Makefile.am): Remove lib_SOURCES.
31234 * modules/argmatch, modules/c-stack, modules/closeout:
31235 * modules/copy-file, modules/csharpcomp, modules/csharpexec:
31236 * modules/execute, modules/file-type, modules/getaddrinfo:
31237 * modules/getopt, modules/human, modules/javacomp:
31238 * modules/javaexec, modules/mkdir-p, modules/obstack:
31239 * modules/openat, modules/pagealign_alloc, modules/pipe:
31240 * modules/quotearg, modules/regex, modules/rpmatch:
31241 * modules/unicodeio, modules/userspec, modules/version-etc:
31242 * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
31244 Depend on gettext-h, not gettext.
31246 2005-07-05 Paul Eggert <eggert@cs.ucla.edu>
31248 * gnulib-tool (func_import): Add support for 'public domain' license.
31249 * modules/alloca, modules/atexit, modules/memmove:
31250 Now public domain, not GPL.
31251 * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
31252 * modules/realloc, modules/strerror, modules/strtod:
31255 2005-07-05 Bruno Haible <bruno@clisp.org>
31257 * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
31258 autoconf CVS. Needed for mingw.
31260 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
31262 Remove the dependency of the strftime module on the tzset module.
31263 * modules/strftime (Depends-on): Remove dependency on tzset.
31265 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
31267 Remove the dependency of the strftime module on the tzset module.
31268 * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
31269 gl_FUNC_TZSET_CLOBBER.
31271 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
31273 Remove the dependency of the strftime module on the tzset module.
31274 * lib/strftime.c (my_strftime)
31275 [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
31276 Copy the input structure, to work around some of the bug with
31277 Solaris 2.5.1 and Solaris 2.6. If you still care about these old
31278 Solaris releases, you should also use the tzset module, but we won't
31279 require it as a dependency any more since we don't want LGPLed code
31280 to depend on GPLed code.
31282 2005-07-02 Jim Meyering <jim@meyering.net>
31284 * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
31285 * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
31286 * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
31287 Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
31289 2005-07-02 Jim Meyering <jim@meyering.net>
31291 * lib/backupfile.c (backup_args): Change a `0' to NULL.
31293 2005-07-01 Paul Eggert <eggert@cs.ucla.edu>
31295 * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
31296 declares only 'struct timespec;' (!).
31298 2005-07-01 Jim Meyering <jim@meyering.net>
31300 * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
31301 * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
31302 * lib/save-cwd.c, tempname.c:
31303 Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
31304 and don't include <sys/file.h>).
31306 2005-06-29 Jim Meyering <jim@meyering.net>
31308 * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
31309 type name. Use the variable name instead.
31310 * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
31313 2005-06-28 Simon Josefsson <jas@extundo.com>
31315 * modules/check-version (Files): Add check-version.m4.
31317 2005-06-28 Simon Josefsson <jas@extundo.com>
31319 * m4/check-version.m4: New file, suggested by Jim Meyering
31320 <jim@meyering.net>.
31322 2005-06-28 Simon Josefsson <jas@extundo.com>
31324 * lib/check-version.h, lib/check-version.c: New files.
31326 2005-06-28 Simon Josefsson <jas@extundo.com>
31328 * lib/base64.c (base64_encode): Indent. Rename 'b64' to avoid
31329 collision with global variable. Better indentation. Don't
31330 increment buffer pointer beyond buffer end. Based on comments
31331 from Paul Eggert <eggert@cs.ucla.edu>.
31333 * lib/base64.h: Indent.
31335 2005-06-28 Simon Josefsson <jas@extundo.com>
31337 * doc/gnulib.texi (Library version handling): New section.
31339 2005-06-28 Jim Meyering <jim@meyering.net>
31341 * check-module (find_included_lib_files): Hard-code another
31342 pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
31343 but modules/fts-lgpl (correctly) does not list those files.
31345 * modules/canonicalize (Files): Add lib/pathmax.h.
31347 2005-06-25 Simon Josefsson <jas@extundo.com>
31349 * modules/check-version: New file.
31351 2005-06-24 Paul Eggert <eggert@cs.ucla.edu>
31353 * lib/canon-host.c (canon-host): Append trailing "," to 0 in
31354 initializer of struct addrinfo, as an indication that we don't
31355 care how many members the structure has.
31357 2005-06-24 Derek Price <derek@ximbiot.com>
31358 and Bruno Haible <bruno@clisp.org>
31360 Remove stat module & update lstat.
31361 * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
31362 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
31363 * m4/stat.m4: Remove this file.
31365 2005-06-24 Derek Price <derek@ximbiot.com>
31366 and Bruno Haible <bruno@clisp.org>
31368 Remove stat module & update lstat.
31369 * lib/stat.c: Remove this file...
31370 (slash_aware_lstat): ...moving this content and its support...
31371 * lib/lstat.c (rpl_lstat): ...into here.
31372 * lib/lstat.h: New file.
31374 2005-06-24 Derek Price <derek@ximbiot.com>
31375 and Bruno Haible <bruno@clisp.org>
31377 Remove stat module & update lstat.
31378 * config/srclist.txt (libc sources): Remove stat.
31380 2005-06-24 Derek Price <derek@ximbiot.com>
31381 and Bruno Haible <bruno@clisp.org>
31383 Remove stat module & update lstat.
31384 * MODULES.html.sh (stat): Remove.
31385 * MODULES.html: Regenerated.
31386 * modules/lstat (Description): Correct function name.
31387 (Files): Add "lstat.h".
31388 (Depends-on): Remove stat, add xalloc, stat-macros.
31389 * modules/stat: Remove this file.
31390 (Include): Add "lstat.h", remove <sys/stat.h>.
31392 2005-06-23 Paul Eggert <eggert@cs.ucla.edu>
31394 * lib/mktime.c: Include <string.h> even if !DEBUG. (From glibc.)
31395 (ranged_convert): Don't save conversion in a temporary struct.
31396 This causes a warning with GCC 4.0.0, and anyway in the typical
31397 case it's not worth the extra 100 bytes or so of code.
31398 (ranged_convert, __mktime_internal): When calling a function via a
31399 pointer P, use P () rather than (*P) (), as we now assume C89 or
31402 2005-06-22 Paul Eggert <eggert@cs.ucla.edu>
31404 * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
31405 "who -r" failed to give output. Problem reported by Tim Waugh.
31407 * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
31408 (xcalloc): Use it to avoid needless tests.
31409 Problem reported by Jim Meyering.
31411 2005-06-20 Derek Price <derek@ximbiot.com>
31413 * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
31414 unnecessary for Autoconfs > 2.59c.
31416 2005-06-16 Sergey Poznyakoff <gray@Mirddin.farlep.net>
31418 * lib/argp.h (__option_is_short): Check upper limit of
31419 __key. Isprint() requires its argument to have the value
31420 of an unsigned char or EOF.
31422 2005-06-16 Jim Meyering <jim@meyering.net>
31424 * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
31425 when either N or S is zero.
31427 2005-06-16 Derek Price <derek@ximbiot.com>
31429 * m4/bison.m4: Declare YACC & YFLAGS precious.
31431 2005-06-10 Paul Eggert <eggert@cs.ucla.edu>
31433 * lib/fnmatch.c (fnmatch): If there is an encoding error in a
31434 multibyte string or pattern, fall back on unibyte matching.
31435 Problem reported by James Youngman.
31437 2005-06-08 Bruno Haible <bruno@clisp.org>
31439 * modules/csharpcomp: New file.
31440 * MODULES.html.sh (C#): Add csharpcomp.
31442 2005-06-08 Bruno Haible <bruno@clisp.org>
31444 * m4/csharpcomp.m4: New file, from GNU gettext.
31446 2005-06-08 Bruno Haible <bruno@clisp.org>
31448 * lib/csharpcomp.h: New file, from GNU gettext.
31449 * lib/csharpcomp.c: New file, from GNU gettext.
31450 * lib/csharpcomp.sh.in: New file, from GNU gettext.
31452 2005-06-08 Bruno Haible <bruno@clisp.org>
31454 * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
31457 2005-06-07 Derek Price <derek@ximbiot.com>
31460 * lib/glob_.h: Indent nested #ifdef.
31462 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
31464 Sync from coreutils.
31465 Use "file name" when talking about file names, instead of "filename"
31466 or "path", as per the GNU coding standards.
31467 * lib/mkdir-p.c: Renamed from makepath.c.
31468 (make_dir_parents): Renamed from make_path. All callers changed.
31469 * lib/mkdir-p.h: Likewise. All includers changed.
31470 * lib/filenamecat.c: Renamed from path-concat.c.
31471 (file_name_concat): Renamed from path_concat. All callers changed.
31472 [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
31473 * lib/filenamecat.h: Likewise. All includers changed.
31474 * lib/acl.c: Don't use "path" or "filename" to mean "file name"
31475 in comments or local variable names.
31476 * lib/basename.c: Likewise.
31477 * lib/canonicalize.c, canonicalize.h: Likewise.
31478 * lib/dirname.c, dirname.h: Likewise.
31479 * lib/euidaccess.c: Likewise.
31480 * lib/exclude.c: Likewise
31481 * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
31482 * lib/fsusage.c, fsuage.h: Likewise.
31483 * lib/fts.c, fts_.h: Likewise.
31484 * lib/getcwd.c: Likewise.
31485 * lib/getloadavg.c: Likewise.
31486 * lib/mkstemp.c: Likewise.
31487 * lib/mountlist.c, mountlist.h: Likewise.
31488 * lib/openat.c, openat.h: Likewise.
31489 * lib/readlink-stub.c: Likewise.
31490 * lib/readutmp.c, readutmp.h: Likewise.
31491 * lib/rename.c: Likewise.
31492 * lib/rmdir.c: Likewise.
31493 * lib/same.c: Likewise.
31494 * lib/savedir.c: Likewise.
31495 * lib/stripslash.c: Likewise.
31496 * lib/tempname.c: Likewise.
31497 * lib/xreadlink.c: Likewise.
31498 * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
31500 * lib/exclude.h: Likewise.
31502 * lib/euidaccess.c (getuid, getgid, getuid, getegid)
31503 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
31504 * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
31505 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
31506 * lib/pathmax.h: Include <limits.h> unconditionally, since other
31507 files have been getting away with it for years (MORE/BSD 4.3
31509 * lib/userspec.c (getpwnam, getgrnam, getgrgid)
31510 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
31512 * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
31513 Define to 256, not 255, as per modern POSIX.
31515 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
31517 Sync from coreutils.
31518 Use "file name" when talking about file names, instead of "filename"
31519 or "path", as per the GNU coding standards.
31520 * MODULES.html.sh: mkdir-p renamed from makepath.
31521 filenamecat renamed from path-concat.
31522 * modules/filenamecat: Renamed from modules/path-concat.
31523 (Files): filenamecat.h and filenamecat.c renamed from
31524 path-concat.h and path-concat.c.
31525 (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
31526 (Include): filenamecat.h, not path-concat.h.
31527 * modules/mkdir-p: Renamed from modules/makepath.
31528 (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
31530 (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
31531 (Include): mkdir-p.h, not makepath.h.
31533 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
31535 Sync from coreutils.
31536 * m4/mkdir-p.m4: Renamed from makepath.m4.
31537 (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH. All uses changed.
31538 Rename files from makepath.c to mkdir-p.c, and from
31539 makepath.h to mkdir-p.h.
31540 * m4/filenamecat.m4: Renamed from path-concat.m4.
31541 (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT. All uses changed.
31542 Rename files from path-concat.c to filenamecat.c,
31543 and from path-concat.h to filenamecat.h.
31544 * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
31545 "file name" in local variables or comments.
31546 * m4/rename.m4: Likewise.
31548 2005-06-01 Bruno Haible <bruno@clisp.org>
31550 * modules/csharpexec: New file.
31551 * MODULES.html.sh (C#): New section.
31553 2005-06-01 Bruno Haible <bruno@clisp.org>
31555 * m4/csharp.m4: New file, from GNU gettext.
31556 * m4/csharpexec.m4: New file, from GNU gettext.
31558 2005-06-01 Bruno Haible <bruno@clisp.org>
31560 * lib/csharpexec.h: New file, from GNU gettext.
31561 * lib/csharpexec.c: New file, from GNU gettext.
31562 * lib/csharpexec.sh.in: New file, from GNU gettext.
31564 2005-05-31 Derek Price <derek@ximbiot.com>
31565 Paul Eggert <eggert@cs.ucla.edu>
31568 * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
31570 2005-05-31 Derek Price <derek@ximbiot.com>
31571 Paul Eggert <eggert@cs.ucla.edu>
31574 * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
31576 2005-05-29 Derek Price <derek@ximbiot.com>
31578 * config/srclist.txt (glob_.h, glob.c): Add these files.
31580 2005-05-29 Derek Price <derek@ximbiot.com>
31582 * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
31583 * modules/glob: New file.
31584 * modules/getlogin_r: Add link to POSIX spec in description.
31586 2005-05-29 Derek Price <derek@ximbiot.com>
31587 Paul Eggert <eggert@cs.ucla.edu>
31589 * m4/glob.m4: New file.
31591 2005-05-29 Derek Price <derek@ximbiot.com>
31592 Paul Eggert <eggert@cs.ucla.edu>
31594 * lib/glob_.h, lib/glob.c: New files.
31596 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
31598 * modules/fts (Files): Remove m4/inttypes-pri.m4.
31599 * modules/fts-lgpl (Depends-on): Remove gettext.
31601 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
31603 * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
31604 and don't require gt_INTTYPES_PRI.
31606 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
31608 * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
31610 * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
31611 the configuration hassle isn't worth it.
31612 Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
31613 (LONGEST_MODIFIER, PRIuMAX): Remove.
31615 2005-05-27 Bruno Haible <bruno@clisp.org>
31617 * lib/getlogin_r.h: Remove second include of <stddef.h>.
31619 2005-05-26 Paul Eggert <eggert@cs.ucla.edu>
31621 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
31622 _POSIX_PTHREAD_SEMANTICS for Solaris.
31624 2005-05-25 Derek Price <derek@ximbiot.com>
31626 * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
31628 2005-05-25 Derek Price <derek@ximbiot.com>
31629 Paul Eggert <eggert@cs.ucla.edu>
31631 * modules/getlogin_r, m4/getlogin_r.m4: New files.
31632 * lib/getlogin_r.c, getlogin_r.h: New files.
31634 2005-05-25 Bruno Haible <bruno@clisp.org>
31635 Derek Price <derek@ximbiot.com>
31637 * lib/getlogin_r.h: Simplify API documentation.
31639 2005-05-23 Derek Price <derek@ximbiot.com>
31641 * modules/minmax (Files): Add m4/minmax.m4.
31642 (configure.ac): Add gl_MINMAX.
31644 2005-05-22 Paul Eggert <eggert@cs.ucla.edu>
31646 * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
31647 so that unistd-safer.h (GPL'ed code) need not be included.
31649 2005-05-22 Bruno Haible <bruno@clisp.org>
31651 * m4/minmax.m4: New file.
31652 Based on a patch by Derek Price <derek@ximbiot.com>.
31654 2005-05-22 Bruno Haible <bruno@clisp.org>
31656 * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
31657 (INT64_MIN): Fix definition.
31658 Suggested by Paul Eggert <eggert@cs.ucla.edu>.
31660 * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
31661 NEED_SIGNED_INT_TYPES.
31663 * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
31664 HAVE_SYSTEM_INTTYPES.
31666 2005-05-22 Bruno Haible <bruno@clisp.org>
31668 * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
31669 Also include <sys/param.h> if it defines MIN, MAX.
31670 Based on a patch by Derek Price <derek@ximbiot.com>.
31672 2005-05-21 Jim Meyering <jim@meyering.net>
31674 * modules/fts (Files): Add m4/inttypes-pri.m4.
31675 (Depends-on): Add lstat and remove gettext. Alphabetize.
31677 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
31680 * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
31681 (setup_dir, free_dir): New functions.
31682 (enter_dir, leave_dir): Define trivial
31683 alternatives of _LGPL_PACKAGE. Move to fts-cycle.c if !_LGPL_PACKAGE.
31684 (HT_INITIAL_SIZE, ENTER_DIR): Remove. All uses removed.
31685 (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
31686 (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
31687 Move to fts-cycle.c.
31688 (fts_open): Use setup_dir.
31689 (fts_close): Use free_dir.
31690 (fts_read): Have just one copy of the ENTER_DIR code rather than three.
31691 This adds a label and some gotos, but the alternatives were messier.
31692 Check for memory allocation failure when entering a dir.
31693 (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
31694 * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
31695 (FTS): New member fts_cycle, that is a union that contains the
31696 old active_dir_ht and cycle_state. All uses changed to mention
31697 fts_cycle.ht and fts_cycle.state.
31698 * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
31699 fts.c, with the following changes:
31700 (setup_dir, free_dir): New functions.
31701 (enter_dir): Now returns bool. Return true if successful, false
31702 if memory exhausted. All callers changed.
31703 Do not bother partly cleaning up on
31704 memory allocation failure; that is free_dir's job.
31705 However, free ad if hash_insert fails, to avoid memory leak.
31706 (enter_dir, leave_dir): Accommodate change to FTS by inspecting
31707 fts->fts_options to see which union member to use.
31709 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
31711 * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
31712 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
31714 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
31716 * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
31718 2005-05-20 Jim Meyering <jim@meyering.net>
31720 * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
31721 Now a macro, to pacify GCC.
31723 2005-05-20 Eric Blake <ebb9@byu.net> (tiny change)
31725 * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
31728 2005-05-20 Eric Blake <ebb9@byu.net> (tiny change)
31730 * lib/chown.c (rpl_chown): Return -1 on failure.
31732 2005-05-18 Paul Eggert <eggert@cs.ucla.edu>
31734 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
31735 Don't check for stddef.h.
31736 * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
31737 don't use its results.
31738 Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
31739 since we include them unconditionally. Don't require
31740 AM_STDBOOL_H, since stdbool is a prerequisite.
31741 Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
31742 since we assume C89 or better.
31743 Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
31744 as we don't use their results.
31745 Don't check for fchdir, memmove, memset, strrchr, as we use
31746 them unconditionally.
31747 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
31748 GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
31750 2005-05-18 Paul Eggert <eggert@cs.ucla.edu>
31752 * lib/canonicalize.c: Include canonicalize.h first, to test interface.
31753 Include <stddef.h> unconditionally, since we assume C89 now.
31754 All uses of PTR_INT_TYPE replaced by ptrdiff_t.
31755 * lib/fts.c: Include fts_.h first, to check interface.
31756 Do not include intprops.h; no longer needed.
31757 Include cycle-check.h and hash.h, since fts_.h no longer does.
31758 Remove unnecessary casts of closedir to void.
31759 (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
31760 decide whether to decrement nlinks.
31761 * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
31762 (FTS): Use struct hash_table * instead of Hash_table, so that
31763 we no longer need to include hash.h here.
31765 2005-05-18 Jim Meyering <jim@meyering.net>
31767 * modules/dirfd (License): Change to LGPL. Most of the code
31768 is already in the public domain.
31770 2005-05-18 Jim Meyering <jim@meyering.net>
31772 * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
31773 Reported by Yoann Vandoorselaere.
31775 2005-05-17 Jim Meyering <jim@meyering.net>
31777 * m4/fts.m4: New file, from coreutils.
31779 2005-05-17 Jim Meyering <jim@meyering.net>
31781 * lib/fts.c, lib/fts_.h: New files, from coreutils.
31783 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
31785 Sync from coreutils.
31786 * m4/unlinkdir.m4: New file.
31788 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
31790 Sync from coreutils.
31791 * lib/unlinkdir.c, lib/unlinkdir.h: New files.
31792 * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
31793 lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
31794 White space changes only.
31795 * lib/makepath.c (make_path): Port to hosts where leading "//" is
31797 * lib/yesno.c: Include getline.h, not ctype.h.
31798 (yesno): Don't remove leading white space; POSIX doesn't allow it.
31799 Use getline to remove arbitrary restriction on response length.
31801 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
31803 * config/srclist-update: Spell out "Street" in FSF postal
31804 mail address; this is the style the FSF seems to prefer.
31806 * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
31807 build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
31808 this updates FSF postal mail address.
31810 Sync from coreutils.
31811 * modules/unlinkdir: New file.
31812 * modules/yesno (Depends-on): Add getline.
31813 * MODULES.html.sh (File system functions): Add unlinkdir.
31815 2005-05-13 Paul Eggert <eggert@cs.ucla.edu>
31817 * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
31819 Change the initial comment to refer to GPL, not LGPL.
31820 gnulib-tool will change it to LGPL as needed.
31822 * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
31823 lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
31824 lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
31825 lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
31826 lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
31827 lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
31828 lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
31829 lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
31830 lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
31831 lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
31832 lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
31833 lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
31834 lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
31835 lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
31836 lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
31837 lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
31838 lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
31839 lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
31840 lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
31841 lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
31842 lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
31843 lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
31844 lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
31845 lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
31846 lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
31847 lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
31848 lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
31849 lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
31850 lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
31851 lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
31852 lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
31853 lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
31854 lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
31855 lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
31856 lib/getusershell.c, lib/group-member.c, lib/group-member.h,
31857 lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
31858 lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
31859 lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
31860 lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
31861 lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
31862 lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
31863 lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
31864 lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
31865 lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
31866 lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
31867 lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
31868 lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
31869 lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
31870 lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
31871 lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
31872 lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
31873 lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
31874 lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
31875 lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
31876 lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
31877 lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
31878 lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
31879 lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
31880 lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
31881 lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
31882 lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
31883 lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
31884 lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
31885 lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
31886 lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
31887 lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
31888 lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
31889 lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
31890 lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
31891 lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
31892 lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
31893 lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
31894 lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
31895 lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
31896 lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
31897 lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
31898 lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
31899 lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
31900 lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
31901 lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
31902 lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
31903 lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
31904 lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
31905 lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
31906 lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
31907 lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
31908 lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
31909 lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
31910 lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
31911 lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
31912 lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
31913 lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
31914 lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
31915 lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
31916 lib/yesno.c, lib/yesno.h:
31917 Update FSF postal mail address.
31919 2005-05-13 Paul Eggert <eggert@cs.ucla.edu>
31921 * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
31922 tests/test-memmem.c, tests/test-stpncpy.c:
31923 Update FSF postal mail address.
31925 2005-05-13 Bruno Haible <bruno@clisp.org>
31927 * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
31928 int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
31929 UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
31930 INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
31931 INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
31932 Add support for 64-bit integers in the MSVC compiler.
31934 2005-05-12 Sergey Poznyakoff <gray@Mirddin.farlep.net>
31936 * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
31938 2005-05-12 Eric Blake <ebb9@byu.net> (tiny change)
31940 * gnulib-tool (func_import): Sort and uniquify recommended includes.
31942 2005-05-11 Paul Eggert <eggert@cs.ucla.edu>
31944 * doc/getdate.texi (General date syntax): Don't say that date
31945 date --iso-8601=ns generates acceptable dates; it doesn't yet.
31946 Problem reported by Nic Ferrier.
31948 2005-05-10 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
31950 * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
31951 specified in ai_socktype. Fix invalid ai_protocol
31952 check. ai_protocol is usually set to 0 or depending on
31953 ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP. Checking for
31954 SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid. Set
31955 ai_socktype / ai_protocol in the returned addrinfo structure.
31957 2005-05-10 Simon Josefsson <jas@extundo.com>
31959 * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
31960 Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
31962 2005-05-10 Karl Berry <karl@gnu.org>
31964 * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
31965 (from http://www.gnu.org/licenses).
31966 * doc/COPYING.LIB: also rename to COPYING.LESSER.
31967 * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
31970 2005-05-10 Karl Berry <karl@gnu.org>
31972 * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
31973 (COPYING.DOC): remove.
31975 * config/srclist-update: new FSF address.
31977 2005-05-10 Derek Price <derek@ximbiot.com>
31979 * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
31982 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
31983 Bruno Haible <bruno@clisp.org>
31985 * modules/inet_ntop: New file.
31986 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
31989 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
31990 Bruno Haible <bruno@clisp.org>
31992 * m4/inet_ntop.m4: New file.
31994 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
31995 Bruno Haible <bruno@clisp.org>
31997 * lib/inet_ntop.h: New file.
31998 * lib/inet_ntop.c: New file, from glibc with modifications.
32000 2005-05-09 Paul Eggert <eggert@cs.ucla.edu>
32002 * modules/time_r (License): Change to LGPL.
32003 * modules/extensions (License): Change to LGPL. Actually,
32004 the license is more permissive than that, but currently gnulib-tool
32005 doesn't know how to handle more-permissive licenses.
32007 * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
32008 Problem reported by Dave Love.
32010 2005-05-08 Jim Meyering <jim@meyering.net>
32012 * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
32015 2005-05-06 Paul Eggert <eggert@cs.ucla.edu>
32017 * modules/argmatch (Depends-on): Add stdbool.
32018 * modules/backupfile (Depends-on): Likewise.
32019 * modules/chdir-long (Depends-on): Likewise.
32020 * modules/closeout (Depends-on): Likewise.
32021 * modules/cycle-check (Depends-on): Likewise.
32022 * modules/dirname (Depends-on): Likewise.
32023 * modules/fnmatch (Depends-on): Likewise.
32024 * modules/fsusage (Depends-on): Likewise.
32025 * modules/fwriteerror (Depends-on): Likewise.
32026 * modules/getcwd (Depends-on): Likewise.
32027 * modules/getloadavg (Depends-on): Likewise.
32028 * modules/hard-locale (Depends-on): Likewise.
32029 * modules/makepath (Depends-on): Likewise.
32030 * modules/mountlist (Depends-on): Likewise.
32031 * modules/nanosleep (Depends-on): Likewise.
32032 * modules/posixtm (Depends-on): Likewise.
32033 * modules/quotearg (Depends-on): Likewise.
32034 * modules/readtokens (Depends-on): Likewise.
32035 * modules/readtokens0 (Depends-on): Likewise.
32036 * modules/readutmp (Depends-on): Likewise.
32037 * modules/save-cwd (Depends-on): Likewise.
32038 * modules/strftime (Depends-on): Likewise.
32039 * modules/userspec (Depends-on): Likewise.
32040 * modules/utimecmp (Depends-on): Likewise.
32041 * modules/xgetcwd (Depends-on): Likewise.
32042 * modules/xnanosleep (Depends-on): Likewise.
32043 * modules/xstrtod (Depends-on): Likewise.
32044 * modules/yesno (Depends-on): Likewise.
32046 2005-05-05 Paul Eggert <eggert@cs.ucla.edu>
32048 * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
32051 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
32053 Merge from coreutils. Among other things,
32054 add bulletproofing for cases where stdin, stdout, or stderr are closed.
32055 * lib/fd-safer.c: New file.
32056 * lib/fcntl-safer.h, open-safer.c: Remove.
32057 * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
32058 * lib/dup-safer.c: Include unistd-safer.h first.
32059 Don't include errno.h.
32060 (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
32061 * lib/file-type.h: Don't assume invoker included sys/stat.h first.
32062 * lib/file-type.c: Rely on file-type.h change.
32063 * lib/getloadavg.c: Include unistd-safer.h.
32064 (getloadavg): Use safer open.
32065 * lib/getusershell.c: Include "stdio-safer.h".
32066 (getusershell): Use safer fopen.
32067 * lib/long-options.c (long_options): Use NULL rather than 0.
32068 * lib/modechange.h (mode_free): Remove; all callers changed to invoke
32070 * lib/modechange.c: Likewise.
32071 xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
32072 (MODE_DONE): New constant.
32073 (struct mode_change): Remove 'next' member.
32074 (make_node_op_equals): New function; like the old one of the
32075 same name, except it allocates an array.
32076 (mode_compile, mode_create_from_ref): Use it.
32077 (mode_compile): Allocate result as an array, not a linked list.
32078 Parse octal string ourself, so that we catch mistakes like "+0".
32079 (mode_adjust): Arg is an array, not a linked list.
32080 * lib/modechange.c: Include stat-macros.h, xalloc.h.
32081 (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
32082 (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
32083 (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
32084 Remove. This is now stat-macros.h's job.
32085 (talloc): Remove. All callers replaced by xalloc, so that
32086 our invokers don't have to worry about reporting memory failures.
32087 (make_node_op_equals): Remove.
32088 (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
32090 (struct mode_change): Moved here from modechange.h.
32091 (mode_append_entry): Remove.
32092 (mode_compile): Remove MASKED_OPS arg, since it encouraged
32093 apps to have incorrect behavior. Use simpler algorithm for head
32094 and tail. Don't futz with umask; that's now the job of mode_adjust.
32095 Detect more invalid usages rather than having somewhat-random behavior.
32096 Don't insert an "a=" action, as that leads to incorrect behavior.
32097 (mode_compile, mode_create_from_ref): Return NULL on error instead
32098 of an enum, since now there's only one way to have an error. All
32100 (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
32101 at the correct time. Simplify calculation of "+u" and its ilk.
32102 Don't mishandle "+X".
32103 (mode_free): Remove "register" and localize decls.
32104 * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
32105 (struct mode_change): Move to modechange.c; callers don't
32106 need to see this stuff.
32107 (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
32108 (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
32109 (mode_change, mode_adjust): Reflect the new signatures noted above.
32110 * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
32111 that might redefine system include files.
32112 (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
32113 (my_usleep): Use NULL rather than (void *) 0.
32114 (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
32115 Use siginterrupt to specify that system calls should be interrupted.
32116 (rpl_nanosleep): Move initialization of suspended closer to call of
32118 * lib/readutmp.h (read_utmp): New arg OPTIONS. All uses changed.
32119 * lib/readutmp.c: Likewise. Include signal.h, stdbool.h.
32120 (desirable_utmp_entry): New function.
32121 (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
32122 using x2nrealloc, to simplify logic.
32123 (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
32124 size calculation. Do not assume utmp file is a regular file.
32125 * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
32126 (READ_UTMP_CHECK_PIDS): New constant.
32127 * lib/save-cwd.c: Include unistd-safer.h.
32128 (save_cwd): Use fd_safer.
32129 * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
32130 [!_LIBC] Include "stat-macros.h" instead.
32131 * lib/unistd-safer.h (fd_safer): New decl.
32133 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
32135 * modules/getloadavg (Depends-on): Add unistd-safer.
32136 * modules/getusershell (Depends-on): Add stdio-safer.
32137 * modules/lstat (Depends-on): Remove xalloc.
32138 * modules/mkstemp (Depends-on): Add stat-macros.
32139 * modules/modechange (Depends-on): Remove xstrtol.
32140 Add stat-macros, xalloc.
32141 * modules/save-cwd (Depends-on): Add unistd-safer.
32142 * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
32143 * modules/unistd-safer (Files): Add lib/fd-safer.c
32144 (Makefile.am): Remove lib_SOURCES.
32146 * MODULES.html.sh (Enhancements for POSIX:2001 functions):
32147 Remove fcntl-safer; unistd-safer supersedes it.
32149 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
32151 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
32153 * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
32154 (gl_PREREQ_CHOWN): Remove.
32155 * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
32156 it. Don't require AC_HEADER_STAT.
32157 (gl_PREREQ_LSTAT): Remove.
32158 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
32159 Don't require AC_HEADER_STAT.
32160 * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
32161 (gl_PREREQ_RMDIR): Remove.
32162 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
32163 mention stat-macros.h or AC_HEADER_STAT, since we'll make
32164 the stat-macros module a prerequisite.
32165 * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
32166 * m4/filemode.m4 (gl_FILEMODE): Likewise.
32167 * m4/makepath.m4 (gl_MAKEPATH): Likewise.
32168 * m4/modechange.m4 (gl_MODECHANGE): Likewise.
32169 * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
32171 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
32172 fetish_FUNC_RMDIR_NOTEMPTY. All uses changed. Use gl_ for
32174 * m4/fcntl-safer.m4: Remove.
32175 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
32176 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
32177 Invoke gl_PREREQ_FD_SAFER.
32178 (gl_PREREQ_FD_SAFER): New macro.
32179 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
32180 * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
32181 Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
32182 Remove duplicate call to AC_LIBOBJ(readutmp).
32183 (gl_PREREQ_READUTMP): Remove. All uses inlined.
32185 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
32186 MAP_ANON. Problem reported by Moriyoshi Koizumi to bug-cvs.
32188 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
32190 * MODULES.html.sh (Misc): Add byteswap.
32192 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
32194 * modules/getcwd (Depends-on): Add extensions.
32195 * modules/openat (Depends-on): Likewise.
32197 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
32199 * modules/byteswap: New file.
32201 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
32203 * m4/byteswap.m4: New file.
32205 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
32207 * lib/byteswap_.h: New file.
32209 2005-04-25 Karl Berry <karl@gnu.org>
32211 * m4/gettext.m4: Update from GNU gettext 0.14.4.
32213 2005-04-25 Albert Chin <china@thewrittenword.com>
32215 * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
32218 2005-04-21 Oskar Liljeblad <oskar@osk.mine.nu>
32220 * gnulib-tool (Options): Add -s for --symlink/--symbolic.
32221 (func_ln_if_changed) Remove forcibly for no error message
32222 in case file does not exist.
32224 2005-04-19 Simon Josefsson <jas@extundo.com>
32226 * gnulib-tool (Options): Make --symlink mean --symbolic.
32228 2005-04-18 Oskar Liljeblad <oskar@osk.mine.nu>
32230 * doc/gnulib.texi (Initial import): Fix. Mention --aux-dir.
32232 2005-04-16 Simon Josefsson <jas@extundo.com>
32234 * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
32236 2005-04-15 Simon Josefsson <jas@extundo.com>
32238 * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
32240 2005-04-15 Simon Josefsson <jas@extundo.com>
32242 * gnulib-tool: Rename --symlink to --symbolic.
32244 2005-04-15 Oskar Liljeblad <oskar@osk.mine.nu>
32246 * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
32247 symbolic links to files instead of copying/moving. Add --aux-dir,
32248 specifying directory relative --dir where auxiliary build tools
32251 2005-04-14 Bruno Haible <bruno@clisp.org>
32253 * modules/allocsa (License): Change to LGPL.
32254 Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
32256 2005-04-13 Paul Eggert <eggert@cs.ucla.edu>
32258 * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
32259 that "UTC +1 second" continues to work. Problem reported
32260 by Dmitry V. Levin.
32261 (relunit_snumber): New rule.
32264 2005-04-12 Paul Eggert <eggert@cs.ucla.edu>
32266 * lib/getdate.y (universal_time_zone_table): New constant.
32267 (time_zone_table): Remove GMT, UT, UTC entries; they're now in
32268 universal_time_zone_table.
32269 (lookup_zone): Prefer universal_time_zone_table to
32270 local_time_zone_table, so that "GMT" time stamps are allowed in
32271 London during the summer. Problem reported by Ian Abbott.
32273 2005-04-12 Jim Meyering <jim@meyering.net>
32275 * lib/human.c (humblock): Set *options even when returning due to
32276 xstrtoumax conversion failure. Thanks to a used-uninitialized
32277 warning from gcc-4.
32279 2005-04-09 Jim Meyering <jim@meyering.net>
32281 * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
32282 -Wuninitialized: initialize tm0.tm_year.
32284 2005-04-04 Paul Eggert <eggert@cs.ucla.edu>
32286 * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
32287 count, since there's no maximum. All uses changed.
32288 Add member dsts_seen.
32289 (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
32291 (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
32292 Use pc_rels_seen to decide whther a date is absolute.
32294 * lib/getdate.y (number): Don't overwrite year.
32295 (get_date): Initialize pc.year.digits to 0, not 4, to enable above
32298 2005-04-02 Simon Josefsson <jas@extundo.com>
32300 * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
32301 patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
32303 2005-03-28 Eric Blake <ebb9@byu.net> (tiny change)
32305 * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
32306 where no absolute path name can be longer than PATH_MAX.
32308 2005-03-27 Jim Meyering <jim@meyering.net>
32310 * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
32312 2005-03-26 Paul Eggert <eggert@cs.ucla.edu>
32314 * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
32315 "one's complement" -> "ones' complement" in comment, as per Knuth.
32316 "value of type" -> "type or expression" in comment.
32317 * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
32319 2005-03-26 Jim Meyering <jim@meyering.net>
32322 * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
32323 Correct typos: s/or/of/.
32325 2005-03-26 Jim Meyering <jim@meyering.net>
32327 * modules/check-include-files: Move to ../ and rename to...
32328 * check-module: ...this.
32330 2005-03-25 Jim Meyering <jim@meyering.net>
32332 * modules/xvasprintf (Files): Add xalloc.h.
32334 2005-03-23 Paul Eggert <eggert@cs.ucla.edu>
32336 * modules/gettext (Files): config/config.rpath ->
32337 build-aux/config.rpath
32338 * modules/iconv (Files): Likewise.
32339 Problem reported by Oskar Liljeblad.
32341 2005-03-23 Jim Meyering <jim@meyering.net>
32343 * modules/check-include-files: New script to check for
32344 missing dependencies, multiple includes, etc.
32346 * modules/c-strtold (Depends-on): Add xalloc.
32347 * modules/c-strtod (Depends-on): Add xalloc.
32348 * modules/hash (Depends-on): Add xalloc.
32349 (Files): Remove lib/xalloc.h.
32351 * modules/gethrxtime (Files): Add lib/gethrxtime.h.
32352 * modules/userspec (Files): Add lib/inttostr.h.
32354 2005-03-23 Jim Meyering <jim@meyering.net>
32356 * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
32358 2005-03-22 Jim Meyering <jim@meyering.net>
32360 * modules/stat-macros: New module.
32361 * modules/canonicalize, modules/euidaccess, modules/file-type,
32362 * modules/filemode, modules/lchown, modules/makepath,
32363 * modules/rmdir, modules/stat: Depend on new stat-macros module
32364 rather than listing lib/stat-macros.h manually.
32365 Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
32367 2005-03-22 Jim Meyering <jim@meyering.net>
32369 * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
32371 2005-03-22 Bruno Haible <bruno@clisp.org>
32373 * config/srclist.txt: Replace target directory 'config' with
32375 * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
32376 * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
32379 2005-03-21 Paul Eggert <eggert@cs.ucla.edu>
32381 * modules/chdir-long (Depends-on): Add mempcpy.
32383 * modules/acl, modules/backupfile, modules/c-strtod,
32384 modules/c-strtold, modules/canon-host, modules/canonicalize,
32385 modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
32386 modules/exclude, modules/exitfail, modules/file-type,
32387 modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
32388 modules/getdate, modules/getline, modules/getpagesize,
32389 modules/getpass, modules/getugroups, modules/group-member,
32390 modules/hard-locale, modules/hash, modules/human, modules/idcache,
32391 modules/inttostr, modules/long-options, modules/makepath,
32392 modules/md5, modules/memcasecmp, modules/memcoll,
32393 modules/modechange, modules/mountlist, modules/path-concat,
32394 modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
32395 modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
32396 modules/safe-read, modules/safe-write, modules/same, modules/savedir,
32397 modules/settime, modules/sha1, modules/sig2str, modules/strdup,
32398 modules/strftime, modules/strndup, modules/strverscmp,
32399 modules/timespec, modules/unlocked-io, modules/userspec,
32400 modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
32402 Remove lib_SOURCES line from Makefile.am section, as this is now
32403 done automatically by the corresponding Autoconf macro.
32405 2005-03-21 Jim Meyering <jim@meyering.net>
32407 Changes imported from coreutils.
32409 * lib/cycle-check.c: Don't include xalloc.h.
32411 * lib/path-concat.c: Don't include assert.h.
32412 (path_concat): Remove assertion that would have triggered
32413 for ABASE starting with more than one slash.
32414 Reported by Andreas Schwab.
32416 * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
32417 properly when ABASE is an absolute file name.
32418 Correct the description of this function.
32419 Include <assert.h>.
32420 Add an assertion and a test driver.
32421 This fixes a bug introduced on 2004-07-02.
32422 Andreas Schwab reported the resulting failure of cp --parents:
32423 http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
32425 2005-03-21 Jim Meyering <jim@meyering.net>
32427 * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
32428 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
32430 2005-03-21 Jim Meyering <jim@meyering.net>
32431 and Paul Eggert <eggert@cs.ucla.edu>
32433 * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
32434 m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
32435 m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
32436 m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
32437 m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
32438 m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
32439 m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
32440 m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
32441 m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
32442 m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
32443 m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
32444 m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
32445 m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
32446 m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
32447 m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
32448 m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
32449 Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
32452 2005-03-18 Paul Eggert <eggert@cs.ucla.edu>
32454 * lib/strftime.c (my_strftime): If the underlying strftime returns 0
32455 (which shouldn't happen), generate nothing instead of returning 0
32456 immediately, so that nstrftime (NULL, ...) doesn't return 0.
32458 2005-03-16 Bruno Haible <bruno@clisp.org>
32460 * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
32461 HAVE_LONGLONG_64BIT.
32463 2005-03-16 Bruno Haible <bruno@clisp.org>
32465 * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
32466 HAVE_LONGLONG_64BIT.
32468 2005-03-16 Bruno Haible <bruno@clisp.org>
32470 * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
32471 HAVE_LONGLONG_64BIT.
32473 2005-03-15 Paul Eggert <eggert@cs.ucla.edu>
32475 * lib/strftime.c (my_strftime): Prepend space to format so that we can
32476 reliably distinguish strftime failure from empty output on POSIX
32479 2005-03-15 Paul Eggert <eggert@cs.ucla.edu>
32481 * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
32482 (iconv_string): Don't guess a size-zero buffer, as that might cause
32483 buffer overrun. Instead, avoid multiplying by MB_LEN_MAX if the
32484 result would be 'too large', where 'too large' is (heuristically)
32485 the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
32486 overflow concerns. This will prevent some unwanted malloc failures
32487 when the inputs are very large.
32489 2005-03-15 Karl Berry <karl@gnu.org>
32491 * config/srclist.txt (config.rpath): from gettext.
32492 * config/config.rpath: update.
32494 2005-03-15 Bruno Haible <bruno@clisp.org>
32496 * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
32499 * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
32502 * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
32505 2005-03-14 Simon Josefsson <jas@extundo.com>
32507 * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
32510 2005-03-14 Paul Eggert <eggert@cs.ucla.edu>
32512 * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
32513 TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
32515 * lib/strtol.c: Likewise.
32517 2005-03-14 Jim Meyering <jim@meyering.net>
32519 * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
32520 && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
32521 to be nonzero so that we (and caller) can detect the difference
32522 between a valid zero-length expansion and an error return, even
32523 when the underlying strftime fails before writing anything into
32526 2005-03-14 Bruno Haible <bruno@clisp.org>
32528 * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
32529 Update from GNU gettext 0.14.3.
32531 2005-03-10 Jim Meyering <jim@meyering.net>
32533 * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
32535 2005-03-10 Jim Meyering <jim@meyering.net>
32537 * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
32538 so that this module works on systems without fchdir.
32540 2005-03-09 Paul Eggert <eggert@cs.ucla.edu>
32542 Factor int-properties macros into a single file, except for
32543 glibc-related files.
32544 * lib/intprops.h: New file.
32545 * lib/getloadavg.c: Include it instead of limits.h.
32546 (INT_STRLEN_BOUND): Remove.
32547 * lib/human.c: Include intprops.h.
32548 (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
32549 * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
32551 * lib/inttostr.h: Include intprops.h instead of limits.h.
32552 (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
32553 * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
32554 for consistency with intprops.h.
32555 (time_t_is_integer, twos_complement_arithmetic): Use them.
32556 * lib/sig2str.h: Include <signal.h>, intprops.h.
32557 (INT_STRLEN_BOUND): Remove.
32558 * lib/strftime.c (TYPE_SIGNED): Remove.
32559 (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
32560 * lib/strtol.c: Adjust comments to match intprops.h.
32561 * lib/userspec.c: Include intprops.h.
32562 (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
32563 * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
32564 * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
32565 instead of rolling our own expressions.
32566 * lib/xstrtol.c: Include xstrtol.h first, to test interface.
32568 * lib/strftime.c: Include <stdbool.h>. Use bool where appropriate,
32570 (my_strftime): Do not mishandle years close to INT_MAX, by doing
32571 the right thing even if adding 1900 would overflow. Similarly
32572 for tm_mon + 1 and tm_yday + 1.
32573 Make %Y always equivalent to %C%y, and similarly for %G and %g.
32574 (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
32575 (DO_SIGNED_NUMBER): New macro.
32576 (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
32578 2005-03-07 Bruno Haible <bruno@clisp.org>
32580 * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
32582 2005-03-07 Bruno Haible <bruno@clisp.org>
32584 * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
32586 2005-03-04 Derek R. Price <derek@ximbiot.com>
32588 * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
32589 (func_import): Only replace files via --import when they have actually
32592 2005-03-03 Derek R. Price <derek@ximbiot.com>
32594 * m4/mmap-anon.m4: New file.
32595 * m4/pagealign_alloc.m4: New file.
32597 2005-03-03 Derek R. Price <derek@ximbiot.com>
32598 Bruno Haible <bruno@clisp.org>
32600 * modules/pagealign_alloc: New file.
32601 * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
32603 2005-03-03 Derek R. Price <derek@ximbiot.com>
32604 Bruno Haible <bruno@clisp.org>
32606 * lib/pagealign_alloc.h: New file.
32607 * lib/pagealign_alloc.c: New file.
32609 2005-03-03 Bruno Haible <bruno@clisp.org>
32611 * m4/inttypes.m4, isc-posix.m4, once-only.m4:
32612 Use an all-permissive copyright notice, recommended by RMS.
32614 2005-03-02 Bruno Haible <bruno@clisp.org>
32616 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
32617 of AIX, the replacement has to be done only after <string.h> is
32618 included, therefore not in config.h. stpncpy.h does the replacement,
32619 and stpncpy.c uses it.
32621 2005-03-02 Bruno Haible <bruno@clisp.org>
32623 * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
32626 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
32628 Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
32629 The workaround isn't strictly needed for POSIX conformance, and
32630 it's too much of a pain to configure and maintain. We'll ask
32631 people to fix their kernels instead.
32632 * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
32633 (NANOSLEEP_BUG_WORKAROUND): Remove.
32634 (xnanosleep): Remove the workaround.
32636 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
32638 * modules/gettime (Makefile.am): Remove lib_SOURCES line.
32639 Reported by Derek Price.
32640 (Include): Add "timespec.h".
32642 * modules/xnanosleep (Depends-on): Remove gethrxtime.
32644 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
32646 * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
32647 to detect nanosleep bug.
32649 2005-03-01 Bruno Haible <bruno@clisp.org>
32651 * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
32653 2005-02-26 Paul Eggert <eggert@cs.ucla.edu>
32655 * modules/gethrxtime: New file.
32656 * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
32657 (Depends-on): Add gethrxtime.
32658 (configure.ac): Add gl_XNANOSLEEP.
32659 (Makefile.am): Remove lib_SOURCES line.
32661 2005-02-25 Paul Eggert <eggert@cs.ucla.edu>
32663 * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
32664 * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
32666 2005-02-25 Paul Eggert <eggert@cs.ucla.edu>
32668 * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
32669 * lib/timespec.h (gettime): Return void, since it always
32670 succeeds now. All uses changed.
32671 * lib/gettime.c (gettime) Likewise.
32672 [HAVE_NANOTIME]: Prefer nanotime.
32673 Assume gettimeofday succeeds, as POSIX requires.
32674 Assime time () succeeds, since other code already does.
32675 * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
32676 (timespec_subtract): Remove.
32677 (NANOSLEEP_BUG_WORKAROUND): New constant.
32678 (xnanosleep): Use gethrxtime rather than gettime; this simplifies
32679 things considerably. Use it only on GNU/Linux hosts, since the
32680 workaround shouldn't be needed elsewhere.
32682 2005-02-24 Bruno Haible <bruno@clisp.org>
32684 * modules/gettext (Files): Add m4/glibc2.m4.
32686 2005-02-24 Bruno Haible <bruno@clisp.org>
32688 * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
32689 * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
32691 Update from GNU gettext 0.14.2.
32692 * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
32694 2005-02-24 Bruno Haible <bruno@clisp.org>
32696 * lib/localcharset.c: Update from GNU gettext 0.14.2.
32697 * lib/config.charset: Update from GNU gettext 0.14.2.
32699 2005-02-24 Bruno Haible <bruno@clisp.org>
32701 * lib/gettext.h: Update from GNU gettext 0.14.2.
32703 2005-02-23 Simon Josefsson <jas@extundo.com>
32705 * m4/iconvme.m4: New file.
32707 2005-02-23 Jim Meyering <jim@meyering.net>
32709 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
32711 Thanks to Bruno Haible for catching it.
32713 2005-02-22 Simon Josefsson <jas@extundo.com>
32715 * modules/iconvme: New file.
32717 * MODULES.html.sh: Add iconvme.
32719 2005-02-22 Simon Josefsson <jas@extundo.com>
32721 * lib/iconvme.h, lib/iconvme.c: New files, from libc.
32723 2005-02-22 Simon Josefsson <jas@extundo.com>
32725 * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
32727 2005-02-22 Jim Meyering <jim@meyering.net>
32729 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
32732 2005-02-20 Neil Conway <neilc@samurai.com>
32734 * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
32735 returned by OSX/Darwin if the specified buffer is not large
32736 enough for the hostname.
32738 2005-02-03 Sergey Poznyakoff <gray@Mirddin.farlep.net>
32740 * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
32741 pass it to _help, otherwise the latter coredumps trying to
32742 dereference state.root_argp.
32744 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
32746 * modules/chdir-long (Depends-on): Add memrchr.
32747 * modules/memrchr (Files): Add lib/memrchr.h.
32748 (Include): "memrchr.h".
32750 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
32752 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
32754 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
32756 * lib/memrchr.h: New file.
32757 * lib/chdir-long.c: Include it.
32758 * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
32759 Don't bother including stddef.h.
32761 2005-02-01 Paul Eggert <eggert@cs.ucla.edu>
32763 * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
32765 Include <sys/types.h>, for dev_t.
32766 (ME_DUMMY, ME_REMOTE): Move from here....
32767 * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
32768 (ME_DUMMY): Count "subfs" as a dummy. Problem reported by
32770 Include mountlist.h first, to test the interface.
32772 2005-01-29 Bruno Haible <bruno@clisp.org>
32774 * lib/progname.c (program_name): Initialize.
32775 Needed when linking statically on MacOS X.
32777 2005-01-28 Paul Eggert <eggert@cs.ucla.edu>
32779 Sync from coreutils.
32780 * modules/getloadavg (Files): Remove m4/getloadavg.m4.
32781 (Depends-on): Add c-strtod.
32782 (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
32784 2005-01-28 Paul Eggert <eggert@cs.ucla.edu>
32786 Sync from coreutils.
32787 * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
32789 Remove files that are specific to coreutils.
32790 * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
32792 2005-01-28 Bruno Haible <bruno@clisp.org>
32794 * modules/javacomp: New file.
32795 * MODULES.html.sh (Java): Add javacomp.
32797 2005-01-28 Bruno Haible <bruno@clisp.org>
32799 * m4/javacomp.m4: New file, from GNU gettext.
32801 2005-01-28 Bruno Haible <bruno@clisp.org>
32803 * lib/javacomp.sh.in: New file, from GNU gettext.
32804 * lib/javacomp.h: New file, from GNU gettext.
32805 * lib/javacomp.c: New file, from GNU gettext.
32807 2005-01-26 Simon Josefsson <jas@extundo.com>
32809 * lib/gai_strerror.c: Use GPL in header.
32811 2005-01-26 Bruno Haible <bruno@clisp.org>
32813 * modules/javaexec: New file.
32814 * MODULES.html.sh (Java): Add javaexec.
32816 2005-01-26 Bruno Haible <bruno@clisp.org>
32818 * m4/javaexec.m4: New file, from GNU gettext.
32820 2005-01-26 Bruno Haible <bruno@clisp.org>
32822 * lib/javaexec.sh.in: New file, from GNU gettext.
32823 * lib/javaexec.h: New file, from GNU gettext.
32824 * lib/javaexec.c: New file, from GNU gettext.
32826 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
32828 * modules/lchown (Depends-on): Remove lchown.h
32830 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
32832 * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
32833 must be defined if the header file was not found, in order
32834 to provide a replacement. Reported by Todd Vierling <tv@duh.org>
32836 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
32838 * lib/argp-help.c (hol_entry_help): Avoid using non-constant
32839 initializers for struct pentry_state.
32840 (__argp_error): Check return value of __asprintf
32841 (__argp_failure): Translate error message
32843 * lib/argp-parse.c: Removed braces around the expansion of N_()
32845 2005-01-23 Paul Eggert <eggert@cs.ucla.edu>
32847 * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
32848 backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
32849 c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
32850 clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
32851 dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
32852 exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
32853 file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
32854 free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
32855 getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
32856 getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
32857 getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
32858 gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
32859 group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
32860 idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
32861 link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
32862 makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
32863 memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
32864 memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
32865 modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
32866 path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
32867 posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
32868 readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
32869 restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
32870 savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
32871 sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
32872 stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
32873 strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
32874 strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
32875 strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
32876 time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
32877 uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
32878 unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
32879 utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
32880 xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
32881 xstrtol.m4, xstrtoumax.m4, yesno.m4:
32882 Use an all-permissive copyright notice, recommended by RMS.
32884 2005-01-21 Paul Eggert <eggert@cs.ucla.edu>
32886 * modules/chdir-long (Depends-on): Remove mempcpy.
32888 2005-01-21 Jim Meyering <jim@meyering.net>
32890 * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
32891 same value as for Solaris 9.
32893 * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
32894 component length. This included changing the parameter to be
32895 of type `char *' rather than `char const *'.
32896 * lib/chdir-long.h (chdir_long): Update prototype.
32898 * lib/openat.c (fdopendir, fstatat): New functions.
32899 * lib/openat.h: Include headers required for use of DIR and struct
32901 [AT_SYMLINK_NOFOLLOW]: Define.
32902 (fdopendir, fstatat): Add prototypes.
32904 2005-01-21 Bruno Haible <bruno@clisp.org>
32906 * modules/classpath: New file.
32907 * MODULES.html.sh (Java): Add classpath.
32909 2005-01-21 Bruno Haible <bruno@clisp.org>
32911 * lib/classpath.h: New file, from GNU gettext.
32912 * lib/classpath.c: New file, from GNU gettext.
32914 2005-01-20 Simon Josefsson <jas@extundo.com>
32916 * modules/version-etc-fsf: New file.
32918 2005-01-20 Simon Josefsson <jas@extundo.com>
32920 * lib/version-etc-fsf.c: New file, with version_etc_copyright.
32921 * lib/version-etc.c: Remove version_etc_copyright.
32922 * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
32923 prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
32925 2005-01-20 Simon Josefsson <jas@extundo.com>
32927 * lib/base64.h (isbase64): Add.
32929 * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
32930 using a unsigned prototype, don't inline.
32931 (base64_decode): Use it.
32933 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
32935 * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
32938 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
32940 * lib/save-cwd.c (save_cwd): Remove code to support the case
32941 where fchdir is missing or flaky.
32943 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
32945 * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
32947 2005-01-19 Paul Eggert <eggert@cs.ucla.edu>
32949 * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
32950 AC_LIBSOURCES now does this.
32951 * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
32952 with new ullong_max module.
32954 2005-01-19 Bruno Haible <bruno@clisp.org>
32956 * modules/sh-quote: New file.
32957 * MODULES.html.sh (Executing programs): Add sh-quote.
32959 2005-01-19 Bruno Haible <bruno@clisp.org>
32961 * lib/sh-quote.h: New file, from GNU gettext.
32962 * lib/sh-quote.c: New file, from GNU gettext.
32964 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
32966 Merge from coreutils.
32967 * m4/ullong_max.m4: New file.
32968 * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
32969 (gl_MACROS): Assume localeconv exists.
32971 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
32973 Merge changes from coreutils, as described below in several
32974 changelogs dated today.
32976 * lib/save-cwd.c: Include "save-cwd.h" before other include files.
32977 (O_DIRECTORY): Remove; not needed here, since "." must be
32978 a directory. All uses removed.
32979 (save_cwd): Use __sgi || __sun, not sun || __sun. __sun is
32980 universal on Suns, and we also need to test for IRIX.
32981 Revamp code to use 'if' rather than '#if'.
32982 Avoid unnecessary comparison of cwd->desc to 0.
32984 * lib/utimens.c (futimens): Robustify the previous patch, by checking
32985 for known valid error numbers rather than observed invalid ones.
32987 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
32989 * modules/ullong_max: New file.
32991 * modules/chdir-long, modules/openat: New files.
32992 * modules/save-cwd (Depends-on): Depend on chdir-long.
32993 (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
32995 2005-01-18 Jim Meyering <jim@meyering.net>
32997 Merge from coreutils.
32998 * m4/chdir-long.m4, m4/openat.m4: New files.
32999 * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
33000 save-cwd.h. Add AC_LIBOBJ for save-cwd.
33001 * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
33002 is sane and DOES follow symlinks. Besides, testing 20 different
33003 systems found no broken chown implementations.
33004 Prompted by a change in rsync's copy of this macro.
33005 * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
33007 * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
33009 * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
33010 (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
33011 NULL-means-set-to-current-time semantics.
33012 Remove temporary file immediately, rather than waiting
33013 for configure's at-exit trap code to do it.
33015 2005-01-18 Jim Meyering <jim@meyering.net>
33017 * lib/version-etc.c (version_etc_copyright): Update copyright date.
33019 * lib/utimens.c (futimens): Account for the fact that futimes
33020 can also fail with errno == ENOSYS or errno == ENOENT.
33021 Patch from Dmitry V. Levin.
33023 Change the name of the robust chdir function from chdir to chdir_long.
33024 * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
33025 (restore_cwd): Use chdir_long, not chdir.
33026 * lib/chdir-long.c: Renamed from chdir.c.
33027 * lib/chdir-long.h: Renamed from chdir.h.
33028 [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
33031 2005-01-18 Bruno Haible <bruno@clisp.org>
33033 * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
33034 * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
33035 * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
33036 * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
33037 * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
33038 * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
33039 * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
33040 * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
33041 * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
33042 * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
33043 * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
33044 * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
33045 * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
33046 * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
33047 Use an all-permissive copyright notice, recommended by RMS.
33049 2005-01-18 Bob Proulx <bob@proulx.com>
33051 * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
33052 simplify offsetof() macro construct to avoid compile failure with
33053 native HP-UX 11.0 ANSI C compiler.
33055 2005-01-17 Bruno Haible <bruno@clisp.org>
33057 * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
33058 redundant because stpncpy.m4 takes care of it.
33060 2005-01-17 Bruno Haible <bruno@clisp.org>
33062 * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
33064 2005-01-17 Bruno Haible <bruno@clisp.org>
33066 * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
33069 2005-01-17 Bruno Haible <bruno@clisp.org>
33071 * lib/fwriteerror.h (fwriteerror): Change specification to include
33073 * lib/fwriteerror.c: Include <stdbool.h>.
33074 (fwriteerror): At the end, close the file stream. Record whether
33075 stdout was already closed.
33077 2005-01-17 Bruno Haible <bruno@clisp.org>
33079 * lib/execute.c (environ): Declare if needed.
33080 * lib/pipe.c (environ): Likewise.
33081 Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
33083 2005-01-11 Sergey Poznyakoff <gray@Mirddin.farlep.net>
33085 * modules/argp: Depend on vsnprintf
33087 2005-01-10 Jim Meyering <jim@meyering.net>
33089 * modules/closeout (Depends-on): Add atexit.
33091 2005-01-06 Bruno Haible <bruno@clisp.org>
33093 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
33095 2005-01-04 Paul Eggert <eggert@cs.ucla.edu>
33097 * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
33098 definitions to be after all include files, to avoid collisions.
33099 Problem reported by Bob Proulx.
33101 2005-01-04 Jim Meyering <jim@meyering.net>
33103 Changes imported from coreutils.
33104 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
33105 as the mkstemp template, use a temporary directory and an
33106 8.3-friendly template to avoid trouble on systems like DJGPP.
33107 Reported by Juan M. Guerrero via Stepan Kasal.
33108 * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
33109 close. Remove the temporary directory right away, rather than waiting
33110 for configure's at-exit trap code to do it.
33111 Suggestion from Stepan Kasal.
33113 2005-01-01 Simon Josefsson <jas@extundo.com>
33115 * gnulib-tool: Print #include directives when --import'ing.
33117 2004-12-28 Simon Josefsson <jas@extundo.com>
33119 * tests/test-base64.c: Include required header files. Remove
33122 2004-12-28 Paul Eggert <eggert@cs.ucla.edu>
33124 * modules/error (Depends-on): Remove gettext.
33126 2004-12-28 Paul Eggert <eggert@cs.ucla.edu>
33128 * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
33129 not needed. This removes a dependency on the gettext module.
33130 [defined _LIBC]: Do not include <libintl.h>; not needed.
33132 2004-12-24 Paul Eggert <eggert@cs.ucla.edu>
33134 * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
33135 (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
33137 2004-12-24 Paul Eggert <eggert@cs.ucla.edu>
33139 * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
33142 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
33144 * modules/getdate (Depends-on): Remove alloca-opt.
33146 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
33148 * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
33150 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
33152 * lib/argp-parse.c: Include <stddef.h>.
33153 (alignof, alignto): New macros.
33154 (parser_init): Don't assume that void * is aligned sufficiently
33157 * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
33158 need to extend the stack.
33159 (YYINITDEPTH): New macro, so that the initial stack isn't overly
33162 2004-12-22 Sergey Poznyakoff <gray@Mirddin.farlep.net>
33164 * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
33166 2004-12-19 Paul Eggert <eggert@cs.ucla.edu>
33168 * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
33169 (2004-10-24) change. Apparently this was a false alarm.
33171 * modules/getdate: Depend on alloca-opt, not alloca.
33173 2004-12-19 Paul Eggert <eggert@cs.ucla.edu>
33175 * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
33176 Remove now-obsolete comment about AIX.
33177 * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
33178 (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
33179 (YYMAXDEPTH): New macro.
33181 2004-12-18 Simon Josefsson <jas@extundo.com>
33183 * modules/alloca: Depend on alloca-opt, instead of duplicating it.
33185 2004-12-18 Bruno Haible <bruno@clisp.org>
33187 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
33189 2004-12-18 Bruno Haible <bruno@clisp.org>
33191 * lib/fatal-signal.c (fatal_signals): Make non-const.
33192 (init_fatal_signals): New function.
33193 (uninstall_handlers, install_handlers): Ignore signals that were set to
33195 (at_fatal_signal): Call init_fatal_signals.
33196 (init_fatal_signal_set): Likewise. Ignore signals that were set to
33198 Reported by Paul Eggert.
33200 2004-12-18 Bruno Haible <bruno@clisp.org>
33202 * doc/alloca.texi: New file.
33203 * doc/alloca-opt.texi: New file.
33205 2004-12-17 Jim Meyering <jim@meyering.net>
33207 * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
33208 Otherwise, install-sh could exit with improper exit status when
33209 exiting via a trapped interrupt. Thanks to a report from Bob Proulx.
33211 2004-12-16 Simon Josefsson <jas@extundo.com>
33213 * tests/test-base64.c: Add license.
33215 2004-12-15 Stepan Kasal <address@hidden>
33217 * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
33219 2004-12-12 Paul Eggert <eggert@cs.ucla.edu>
33221 * modules/getcwd (Files): Add m4/d-ino.m4.
33222 Suggested by Mark D. Baushke.
33224 2004-12-08 Paul Eggert <eggert@cs.ucla.edu>
33226 * lib/getdate.y (textint): New member "negative".
33227 (time_zone_hhmm): New function.
33228 Expect 14 shift-reduce conflicts, not 13.
33229 (o_colon_minutes): New rule.
33230 (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
33231 (yylex): Set the "negative" member of signed numbers.
33233 2004-12-08 Paul Eggert <eggert@cs.ucla.edu>
33235 * doc/getdate.texi (Time of day items, Time zone items):
33236 Describe new formats +00:00, UTC+00:00.
33238 2004-12-07 Paul Eggert <eggert@cs.ucla.edu>
33240 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
33241 spurious "-l"s. Problem reported by Stepan Kasal.
33243 2004-12-06 Paul Eggert <eggert@cs.ucla.edu>
33245 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
33246 in Autoconf 2.59. Problem reported by Mark D. Baushke.
33248 2004-12-04 Simon Josefsson <jas@extundo.com>
33250 * modules/getaddrinfo (License): Add LGPL, reported by Yoann
33251 Vandoorselaere <yoann@prelude-ids.org>.
33253 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
33255 Changes imported from coreutils.
33256 * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
33258 * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
33260 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
33262 Changes imported from coreutils.
33263 * lib/hard-locale.c: Assume <locale.h> exists.
33264 Include "strdup.h".
33265 (GLIBC_VERSION): New macro.
33266 (hard_locale): Assume setlocale exists.
33267 Rewrite to avoid #ifdef.
33268 Use strdup rather than malloc + strcpy.
33269 * lib/human.c: Assume <locale.h> exists.
33270 (human_readable): Assume localeconv exists.
33272 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
33274 * modules/hard-locale (Depends-on): Add strdup.
33276 2004-12-01 Jakub Jelinek <jakub@redhat.com>
33278 * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
33279 convert T2, not T. (Imported from libc.)
33281 2004-11-30 Simon Josefsson <jas@extundo.com>
33283 * modules/restrict (License): Change to LGPL.
33285 2004-11-30 Simon Josefsson <jas@extundo.com>
33287 * m4/restrict.m4: Add copyright and copying conditions.
33289 2004-11-30 Simon Josefsson <jas@extundo.com>
33291 * m4/base64.m4: New file.
33293 2004-11-30 Simon Josefsson <jas@extundo.com>
33295 * MODULES.html.sh (Extra functions based on ANSI C 89): Add
33298 * tests/test-base64.c: New file.
33300 * modules/base64: New file.
33302 2004-11-30 Paul Eggert <eggert@cs.ucla.edu>
33304 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
33305 Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
33307 * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
33309 2004-11-30 Paul Eggert <eggert@cs.ucla.edu>
33311 * lib/getcwd.c (is_ENAMETOOLONG): New macro.
33312 (__getcwd.c): Don't restore errno; glibc doesn't.
33313 [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
33314 first, falling back to our code only if its results look suspicious.
33315 Ensure that the resulting buffer is only as large as necessary.
33317 * lib/readutmp.c: Include readutmp.h first.
33318 Include <errno.h>, since readutmp.h no longer does that.
33319 * lib/readutmp.h: Don't include <errno.h>,
33320 <sys/param.h>, <time.h>; not needed to establish interface.
33321 (errno): Remove decl.
33322 (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
33323 (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
33324 UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
33326 2004-11-28 Simon Josefsson <jas@extundo.com>
33328 * lib/base64.h, base64.c: New file.
33330 2004-11-27 Paul Eggert <eggert@cs.ucla.edu>
33332 * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
33334 2004-11-26 Paul Eggert <eggert@cs.ucla.edu>
33336 * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
33337 (Depends-on): Remove pathmax, same. Add mempcpy.
33338 (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
33339 (Makefile.am): Append getcwd.h to lib_SOURCES.
33340 (Include): Add getcwd.h.
33341 (Maintainer): Change from Jim Meyering to "all, glibc",
33342 since getdate now uses intended-for-glibc code.
33343 * modules/xgetcwd (Files): Remove m4/getcwd.m4.
33344 (Depends-on): Depend on getcwd. Do not depend on pathmax.
33346 2004-11-25 Paul Eggert <eggert@cs.ucla.edu>
33348 Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
33349 HP's ANSI C compiler.
33350 * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
33351 Declaring int functions causes warnings on some modern systems and
33352 shouldn't be needed to compile on ancient ones.
33353 * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
33356 * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
33357 with the following changes.
33358 (__set_errno): Parenthesize properly.
33359 Include <stdbool.h>.
33360 (MIN, MAX, MATCHING_INO): New macros.
33361 (__getcwd): Define with prototype, not K&R form.
33362 Use heuristics to allocate default buffer on stack if possible.
33363 If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
33364 behavior, and to avoid the PATH_MAX limit when computing
33366 Use MATCHING_INO to compare inode number to file.
33367 Check for arithmetic overflow in size calculations.
33368 Fix bug in reallocation of dot array that caused getcwd to fail
33369 on directories nested deeper than 75.
33370 Be more careful about saving errno on error.
33371 Do not use realloc; use only free+malloc, as this is a bit
33372 more flexible and avoids a needless copy operation.
33373 Do not inspect st_dev and st_ino for symbolic links; POSIX
33374 doesn't specify the latter.
33375 Check for closedir errors.
33376 Avoid needless casts.
33377 Use "#ifdef weak_alias" around weak_alias, to be like other
33379 The following changes to getcwd.c have effect only when used in
33380 gnulib; they have no effect inside glibc proper.
33381 (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
33382 as alloca isn't used.
33383 (alloca, __alloca): Likewise.
33384 [!_LIBC]: Include "getcwd.h", "mempcpy.h".
33385 Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
33386 unconditionally, as gnulib assumes C89 or better.
33387 Do not include <sys/param.h>.
33388 (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
33389 no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
33391 (NULL) [!defined NULL]: Remove; we assume C89 or better.
33392 Include <dirent.h> in a way that is compatible with modern Autoconf.
33393 (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
33394 New macros, if not already defined.
33395 Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
33396 Use "_LIBC", not "defined _LIBC", for consistency.
33397 (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
33399 (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
33400 (GETCWD_RETURN_TYPE): Remove. All uses replaced by char *.
33401 * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
33402 credit only to Jim Meyering and adjust the copyright dates.
33403 Do not include <limits.h>, <stdio.h>, <sys/types.h>,
33404 <stdlib.h>, <unistd.h>, "pathmax.h".
33405 Instead, include "xgetcwd.h" (first) and "getcwd.h".
33406 (INITIAL_BUFFER_SIZE): Remove.
33407 (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
33409 2004-11-25 Paul Eggert <eggert@cs.ucla.edu>
33411 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
33412 GL_FUNC_GETCWD_PATH_MAX for consistency. All uses changed.
33413 Use the _ONCE methods, for efficiency.
33414 Check for fcntl.h. In test program, include <errno.h>
33415 and <fcntl.h> if available. Remove old K&R cruft from
33416 test program. Check for common errors in GNU/Linux,
33417 OpenBSD, and Solaris. Just set gl_cv_func_getcwd_path_max;
33418 don't do AC_LIBOBJ, as that's getcwd.m4's job.
33419 * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
33420 AC_FUNC_GETCWD_NULL. All used changed. Change cache variable
33422 (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros. Revamp to
33423 accommodate new getcwd.c.
33424 * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
33425 * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
33426 * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
33427 that's all we need now.
33429 2004-11-23 Sergey Poznyakoff <gray@Mirddin.farlep.net>
33431 * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
33432 argp-parse.c depends on getopt internals, that means we should
33433 always use our getopt, to be on the safe side.
33434 * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
33435 order not to spoil the result of an eventual previous invocation
33436 of gl_GETOPT_SUBSTITUTE.
33438 2004-11-23 Sergey Poznyakoff <gray@Mirddin.farlep.net>
33440 * lib/getopt_.h: Re-addition of __getopt_argv_const caused
33441 redefinition warnings. To avoid them, include the defines
33442 in `#if !defined __need_getopt ... #endif'. The only place
33443 where __getopt_argv_const is used is in definitions
33444 of getopt_long and getopt_long_only below, which are as well
33445 protected by `#ifndef __need_getopt'.
33446 [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
33447 __need_getopt after including <stdio.h> and <unistd.h> These
33448 headers might have defined it.
33450 2004-11-23 Paul Eggert <eggert@cs.ucla.edu>
33452 * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
33454 2004-11-23 Paul Eggert <eggert@cs.ucla.edu>
33456 * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
33457 (futimens): New function, which uses futimes if available.
33458 (futimens, utimens): Support timespec==NULL, with same semantics
33459 as utime and utimens.
33460 * lib/utimens.h (futimens): New decl.
33462 2004-11-23 Jim Meyering <jim@meyering.net>
33464 * lib/getopt_.h: Remove trailing blanks.
33466 2004-11-23 Jim Meyering <jim@meyering.net>
33468 * lib/__fpending.c: Add comment.
33470 2004-11-22 Paul Eggert <eggert@cs.ucla.edu>
33472 * modules/canonicalize (Depends-on): Add xreadlink.
33473 Problem reported by James Youngman.
33475 2004-11-20 Paul Eggert <eggert@cs.ucla.edu>
33477 * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
33479 (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
33480 optopt): Use them instead of invoking ## directly; otherwise, the
33481 symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
33483 2004-11-19 Bruno Haible <bruno@clisp.org>
33485 * lib/strtok_r.c: Move comments from here...
33486 * lib/strtok_r.h: ... to here.
33488 2004-11-17 Paul Eggert <eggert@cs.ucla.edu>
33490 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
33491 implementations that mishandle size_t overflow.
33493 2004-11-17 Paul Eggert <eggert@cs.ucla.edu>
33495 * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
33496 might fail. Problem reported by Yoann Vandoorselaere.
33497 * lib/calloc.c (rpl_calloc): Defend against buggy calloc
33498 implementations that mishandle size_t overflow.
33500 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
33502 * modules/canon-host (Depends-on): Add strdup.
33504 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
33506 * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
33508 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
33510 * lib/canon-host.c: Include "strdup.h".
33511 (canon_host): Use getaddrinfo if available, so that IPv6 works.
33512 Use strdup instead of malloc/strcpy to duplicate strings.
33514 * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
33515 (human_space_before_unit): New constant.
33516 * lib/human.c (human_readable): Support it.
33518 * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
33519 (xgetcwd): Set errno correctly when failing.
33520 Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
33521 the failure is actually due to a PATH_MAX problem.
33523 Further getopt changes to make it more likely that glibc will
33524 buy the changes back.
33525 * lib/getopt.c (POSIXLY_CORRECT): New constant.
33526 (getopt): Use it, so to preserve glibc semantic
33527 * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
33528 when compiling for libc.
33529 * lib/getopt_.h (__getopt_argv_const): Bring it back.
33530 (getopt_long, getopt_long_only): Use it.
33532 * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
33533 _getopt_internal): New arg POSIXLY_CORRECT. All callers changed.
33534 (getopt): Argv is now char * const *, as per standard.
33535 (_getopt_internal_r, _getopt_internal): Argv is now char **,
33536 not char *__getopt_argv_const *.
33537 * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
33538 _getopt_long_only_r): Likewise.
33539 * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
33540 * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
33541 _getopt_long_r, _getopt_long_only_r): Likewise.
33542 * lib/getopt_.h (__getopt_argv_const): Remove.
33543 (getopt): Argv is now char * const *, as per standard.
33545 * lib/getdate.y (tORDINAL): New token.
33546 (day, relunit): Allow it for relative times.
33547 (relative_time_table): Use tORDINAL for ordinals.
33549 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
33551 * doc/getdate.texi (General date syntax): "next" is 1, not 2.
33552 Document that "second" isn't allowed as an ordinal number.
33554 2004-11-16 Jim Meyering <jim@meyering.net>
33556 * modules/closeout (Depends-on): Add fpending.
33558 2004-11-15 Jim Meyering <jim@meyering.net>
33560 * lib/closeout.c: Include "__fpending.h" once again.
33561 Include <stdbool.h>.
33562 (close_stdout): Don't fail just because stdout was closed initially,
33563 since some programs don't write to stdout in the normal course of
33564 operation (other than --version and --help), and we don't want this
33565 function to make e.g. `touch file >&-' fail.
33566 But do fail if it was closed and someone has tried to write to it.
33567 E.g., `printf foo >&-' must fail.
33569 2004-11-13 Jim Meyering <jim@meyering.net>
33571 * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
33573 2004-11-12 Simon Josefsson <jas@extundo.com>
33575 * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
33576 small doc fix is still pending.
33578 2004-11-11 Simon Josefsson <jas@extundo.com>
33580 * modules/strtok_r: New file.
33582 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
33585 2004-11-11 Simon Josefsson <jas@extundo.com>
33587 * m4/strtok_r.m4: New file.
33589 * m4/getopt.m4: Replace opterr.
33591 2004-11-11 Simon Josefsson <jas@extundo.com>
33593 * lib/strtok_r.h, strtok_r.c: New file.
33595 2004-11-11 Paul Eggert <eggert@cs.ucla.edu>
33597 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
33598 of replacing opterr, getopt, etc. This should handle the
33599 powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
33601 2004-11-11 Paul Eggert <eggert@cs.ucla.edu>
33603 * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
33604 we can stop lying to compilers about the constness of argv when we
33605 are compiled outside glibc.
33606 (getopt, getopt_long, getopt_long_only): Use it.
33607 * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
33608 _getopt_internal, getopt): Likewise.
33609 * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
33610 _getopt_long_only_r): Likewise.
33611 * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
33612 _getopt_long_r, _getopt_long_only_r): Likewise.
33614 * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
33615 Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
33616 Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
33617 the other external symbols.
33618 (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
33619 declaration, since the above renaming now works around collisions.
33621 2004-11-11 Jim Meyering <jim@meyering.net>
33623 * lib/linebreak.c: Remove trailing blanks.
33624 * lib/alloca_.h: Likewise.
33625 * lib/acosl.c: Likewise.
33626 * lib/euidaccess.c: Likewise.
33627 * lib/allocsa.h: Likewise.
33629 2004-11-10 Simon Josefsson <jas@extundo.com>
33631 * m4/getaddrinfo.m4: New file.
33633 2004-11-10 Simon Josefsson <jas@extundo.com>
33635 * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
33637 2004-11-10 Simon Josefsson <jas@extundo.com>
33639 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
33642 * modules/getaddrinfo: New file.
33644 2004-11-10 Paul Eggert <eggert@cs.ucla.edu>
33646 * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
33648 2004-11-10 Paul Eggert <eggert@cs.ucla.edu>
33650 * lib/mktime.c (SHR): New macro, which is a portable
33651 substitute for >> that should work even on Crays.
33652 (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
33653 Problem reported by Mark D. Baushke in
33654 <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
33655 * lib/getdate.y (SHR): Likewise.
33657 * lib/strftime.c (SHR): Likewise.
33659 * lib/quotearg.c (struct quoting_options): Use unsigned int for
33660 quote_these_too, so that right shifts are well defined. All uses
33663 2004-11-10 Jim Meyering <jim@meyering.net>
33665 Ensure that no close failure goes unreported.
33666 * lib/closeout.c (close_stdout): Always close stdout. I.e., don't
33667 return early when it seems there's nothing to flush.
33668 Don't include __fpending.h.
33670 2004-11-10 Jim Meyering <jim@meyering.net>
33672 * modules/closeout (Depends-on): Remove fpending.
33674 2004-11-10 Jim Meyering <jim@meyering.net>
33676 * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
33678 2004-11-09 Paul Eggert <eggert@cs.ucla.edu>
33680 * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove. Move its body to
33682 (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
33683 and AC_REQUIRE when possible, to avoid duplicate checks.
33684 Check for <wchar.h>.
33686 2004-11-09 Paul Eggert <eggert@cs.ucla.edu>
33688 * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
33690 2004-11-09 Bruno Haible <bruno@clisp.org>
33692 * m4/sockpfaf.m4: New file.
33694 2004-11-05 Bruno Haible <bruno@clisp.org>
33696 * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
33697 Reported by Mark D. Baushke <mdb@cvshome.org>.
33699 2004-11-04 Bruno Haible <bruno@clisp.org>
33701 2004-09-11 Bruno Haible <bruno@clisp.org>
33702 * allocsa.valgrind: New file.
33703 2004-02-06 Bruno Haible <bruno@clisp.org>
33704 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
33705 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
33706 Reported by Christopher Seip <chris.seip@hp.com>.
33708 2004-11-04 Bruno Haible <bruno@clisp.org>
33710 * modules/allocsa (Files): Add lib/allocsa.valgrind.
33711 (Makefile.am): Distribute it.
33713 2004-11-03 Paul Eggert <eggert@cs.ucla.edu>
33715 * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
33716 with errno == ERANGE if the buffer is too small.
33717 Problem reported by Mark D. Baushke.
33719 2004-11-03 Albert Chin <china@thewrittenword.com>
33720 Paul Eggert <eggert@cs.ucla.edu>
33722 * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
33723 equivalent, substitute $ac_type for equivalent type rather than
33724 blindly using uint32_t *always* which won't work if uint32_t is not
33725 available. Define _UINT32_T to work around typedef of uint32_t if
33726 <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
33729 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
33731 * m4/jm-macros.m4: Sync from coreutils.
33732 (gl_MACROS): Check for mbrlen, for pathchk.
33733 (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
33735 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
33737 * lib/xreadlink.c (MAXSIZE): New macro.
33738 (xreadlink): Use it instead of SSIZE_MAX. Ensure initial buffer
33739 size does not exceed MAXSIZE. Avoid cast.
33740 As suggested by Mark D. Baushke in
33741 <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
33742 if readlink fails with buffer size just under MAXSIZE, try again
33745 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
33747 * config/srclist.txt: Add mktime.c; glibc bought all our changes.
33749 2004-11-02 Derek R. Price <derek@ximbiot.com>
33750 and Paul Eggert <eggert@cs.ucla.edu>
33752 * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
33753 (get_date): Overparenthesize to avoid GCC warning.
33755 2004-11-02 Bruno Haible <bruno@clisp.org>
33757 * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
33760 2004-11-02 Bruno Haible <bruno@clisp.org>
33762 * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
33763 function returns void.
33765 2004-11-01 Paul Eggert <eggert@cs.ucla.edu>
33767 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
33768 fflush_unlocked, flockfile, funlockfile, funlockfile,
33769 fputs_unlocked, putc_unlocked.
33771 2004-11-01 Paul Eggert <eggert@cs.ucla.edu>
33773 * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
33774 (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
33777 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
33779 * modules/getdate (Files): Add doc/getdate.texi.
33780 (Depends-on): Add setenv, xalloc.
33782 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
33784 * lib/getdate.y: Add support for TZ="foo" within a date string.
33785 Fix some bugs near time_t boundaries. Reject dates with
33786 out-of-range components, e.g., "Sept 31".
33787 Include <stdlib.h>, "setenv.h", "xalloc.h".
33788 (ISDIGIT_LOCALE): Remove; unused.
33789 Note that the TZ and time functions used here are not reentrant.
33790 (mktime_ok, get_tz): New functions.
33791 (TZBUFSIZE): New constant.
33792 (get_date): Parse leading TZ="foo". Reject out-of-range components;.
33793 This requires that we sometimes generate our own TZ="XXX..." setting.
33795 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
33797 * doc/getdate.texi: New file, from coreutils with modifications for
33798 the new TZ parsing.
33800 2004-10-27 Derek R. Price <derek@ximbiot.com>
33802 * lib/mktime.c (not_equal_tm): Remove redundant check.
33804 2004-10-24 Paul Eggert <eggert@cs.ucla.edu>
33806 * modules/regex (lib_SOURCES): Add regex.c.
33807 Reported by James Youngman in
33808 <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
33810 2004-10-24 Paul Eggert <eggert@cs.ucla.edu>
33812 * lib/getdate.y: Use Bison 1.875 features, and some minor
33813 code cleanups. This change does not affect semantics.
33814 Don't include <stdlib.h>; no longer needed.
33815 Don't include unlocked-io.h; only the "#if TEST" code uses
33816 stdio, and performance isn't crucial there.
33817 (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
33818 Bison 1.875 features as described below.
33819 All uses of "PC." replaced by "pc->".
33820 (YYSTYPE): Add a forward declaration.
33821 (yylex, yyerror): Use full prototypes in forward decls.
33822 Use "%pure-parser" rather than obsolescent "%pure_parser".
33823 Use %parse-param and %lex-param instead of obsolescent
33824 YYPARSE_PARAM and YYLEX_PARAM.
33825 (meridian_table, month_and_day_table, time_units_table,
33826 relative_time_table, time_zone_table, military_table,
33827 lookup_zone, lookup_word, get_date):
33828 Use NULL instead of 0 where appropriate.
33829 (to_hour): Avoid abort (), to avoid a dependency on
33831 (yyerror, yylex): Now accepts parser_control * arg.
33832 (main) [TEST]: Use '\0' rather than 0 for char.
33834 2004-10-22 Paul Eggert <eggert@cs.ucla.edu>
33836 * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
33838 2004-10-22 Paul Eggert <eggert@cs.ucla.edu>
33840 * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
33841 It's now the caller's responsibility to handle the case where
33842 !HAVE_GETPAGESIZE && !defined getpagesize.
33844 * lib/mktime.c (leapyear): Arg is long int, not int.
33846 2004-10-18 Paul Eggert <eggert@cs.ucla.edu>
33848 * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
33850 2004-10-17 Paul Eggert <eggert@cs.ucla.edu>
33852 * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
33853 missing. Problem reported by James Youngman.
33855 2004-10-16 Simon Josefsson <jas@extundo.com>
33857 * gnulib-tool: Fix comments. Fix parse problem.
33858 (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
33860 2004-10-15 Paul Eggert <eggert@cs.ucla.edu>
33862 * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
33863 implementation of getopt_long. Problem reported by Alexander Taler in:
33864 http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
33866 2004-10-15 Bruno Haible <bruno@clisp.org>
33868 * gnulib-tool: Untabify. Initialize supplied_libname.
33869 (func_usage): More homogenous output.
33870 (func_modules_transitive_closure, func_modules_to_filelist,
33871 func_emit_lib_Makefile_am): New functions.
33872 (func_import): New function, extracted from big case statement. Use
33873 func_get_license, func_modules_transitive_closure,
33874 func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
33875 opt_lgpl. Don't use test -a, as it's not portable.
33876 (func_create_testdir): Use func_modules_transitive_closure,
33877 func_modules_to_filelist, func_emit_lib_Makefile_am.
33879 2004-10-15 Bruno Haible <bruno@clisp.org>
33881 * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
33883 2004-10-15 Bruno Haible <bruno@clisp.org>
33885 * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
33886 the portions belonging to each module.
33887 Suggested by Derek Robert Price <derek@ximbiot.com>.
33889 2004-10-12 Simon Josefsson <jas@extundo.com>
33891 * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
33892 (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
33895 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
33897 * modules/vsnprintf: New file.
33899 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
33901 * m4/vsnprintf.m4: New file.
33903 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
33905 * lib/vsnprintf.h: New file.
33906 * lib/vsnprintf.c: New file.
33908 2004-10-11 Bruno Haible <bruno@clisp.org>
33910 * MODULES.html.sh (Support for systems lacking ISO C 99): Add
33913 2004-10-10 Paul Eggert <eggert@cs.ucla.edu>
33915 * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
33917 2004-10-07 Bruno Haible <bruno@clisp.org>
33919 * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
33920 fits into the provided buffer.
33922 2004-10-06 Paul Eggert <eggert@cs.ucla.edu>
33924 * lib/diacrit.c, diacrit.h: Add GPL notice.
33926 * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
33928 * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
33929 * lib/logl.c (logl): Keep the code as similar to glibc as possible.
33930 This avoids a potential constant-folding bug.
33932 2004-10-05 Bruno Haible <bruno@clisp.org>
33934 * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
33935 for the declaration of strsep.
33937 2004-10-05 Bruno Haible <bruno@clisp.org>
33939 * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
33941 2004-10-04 Simon Josefsson <jas@extundo.com>
33943 * modules/memmem: New file.
33944 * tests/test-memmem.c: New file.
33945 * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
33947 2004-10-04 Simon Josefsson <jas@extundo.com>
33949 * m4/memmem.m4: New file.
33951 2004-10-04 Simon Josefsson <jas@extundo.com>
33953 * lib/memmem.h: New file.
33954 * lib/memmem.c: New file, taken from glibc.
33956 2004-10-04 Simon Josefsson <jas@extundo.com>
33958 * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
33959 '#ifdef USE_UNLOCKED_IO'.
33961 2004-10-04 Simon Josefsson <jas@extundo.com>
33963 * config/srclist.txt: Add memmem from glibc.
33965 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
33967 * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
33969 * modules/argmatch, modules/argp, modules/closeout, modules/error,
33970 modules/exclude, modules/getdate, modules/getline,
33971 modules/getndelim2, modules/getpass, modules/getpass-gnu,
33972 modules/getusershell, modules/linebuffer, modules/md5,
33973 modules/mountlist, modules/posixtm, modules/readtokens,
33974 modules/readutmp, modules/regex, modules/sha1,
33975 modules/version-etc, modules/yesno:
33976 Remove dependency on unlocked-io.
33978 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
33980 * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove. All uses removed.
33982 * m4/unlocked-io.m4: Add copyright notice.
33983 (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
33985 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
33987 * lib/xalloc.h (xmemdup): Renamed from xclone. All uses changed.
33988 * lib/xmalloc.c (xmemdup): Likewise.
33989 * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
33990 XFREE): Remove these long-obsolescent macros.
33991 * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
33992 * lib/xstrdup.c: Remove.
33994 * lib/regex.c (re_comp): Cast gettext return value to char *,
33995 Problem reported by Martin Neitzel via Mark D. Baushke.
33997 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
33999 * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
34000 getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
34001 md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
34002 regex.c, sha1.c, version-etc.c, yesno.c:
34003 Include "unlocked-io.h" only if USE_UNLOCKED_IO.
34004 * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
34005 the includer's responsibility.
34007 Sync from coreutils.
34009 * lib/modechange.c (mode_compile): Don't decrement a pointer that
34010 points to the start of a string, as the C Standard says the
34011 resulting behavior is undefined.
34013 * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
34014 simple -> simple_backups, numbered_existing ->
34015 numbered_existing_backups, numbered -> numbered_backups
34016 to avoid shadowing problems. All uses changed.
34017 * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
34018 * lib/backupfile.c (check_extension, numbered_backup):
34019 Rename locals to avoid shadowing 'basename'.
34020 * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
34023 * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
34024 * lib/.cvsignore: Add getopt.h.
34026 2004-10-04 Bruno Haible <bruno@clisp.org>
34028 * modules/README: New file.
34029 * gnulib-tool (func_all_modules, func_verify_module): modules/README is
34032 2004-10-02 Jim Meyering <jim@meyering.net>
34034 * lib/dirfd.h, getpagesize.h: Add copyright notice.
34036 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
34038 * modules/strsep: New file.
34040 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
34042 * m4/strsep.m4: New file.
34044 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
34046 * lib/strsep.h: New file.
34047 * lib/strsep.c: New file.
34049 2004-10-01 Simon Josefsson <jas@extundo.com>
34051 * lib/snprintf.c (snprintf): Handle size==0.
34053 2004-10-01 Simon Josefsson <jas@extundo.com>
34054 Bruno Haible <bruno@clisp.org>
34056 * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
34057 (snprintf): Declare 'args'.
34059 2004-10-01 Paul Eggert <eggert@cs.ucla.edu>
34061 * lib/snprintf.c: Remove comments as to why each header is needed.
34063 2004-10-01 Bruno Haible <bruno@clisp.org>
34065 * MODULES.html.sh: Add strsep.
34067 2004-09-30 Simon Josefsson <jas@extundo.com>
34069 * modules/snprintf: New file.
34071 2004-09-30 Simon Josefsson <jas@extundo.com>
34073 * m4/snprintf.m4: New file.
34075 2004-09-30 Simon Josefsson <jas@extundo.com>
34077 * lib/snprintf.h, lib/snprintf.c: New files.
34079 2004-09-30 Sergey Poznyakoff <gray@Mirddin.farlep.net>
34081 * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
34082 (hol_entry_help): Never translate an empty string.
34083 Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
34084 * lib/argp.h (OPTION_NO_TRANS): New option.
34086 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
34088 * modules/argp (Maintainer): Replace Simon Josefsson
34089 by Sergey Poznyakoff.
34091 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
34093 * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
34094 changes merged back into glibc.
34096 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
34098 * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
34100 2004-09-29 Oskar Liljeblad <oskar@osk.mine.nu>
34102 * lib/xvasprintf.c: Include xalloc.h.
34103 (xvasprintf): Use xalloc_die, not xmalloc_die.
34105 2004-09-29 Bruno Haible <bruno@clisp.org>
34107 * modules/alloca-opt: New file, derived from modules/alloca.
34108 * modules/allocsa: Depend on alloca-opt instead of alloca.
34109 * modules/setenv: Likewise.
34110 * modules/vasnprintf: Likewise.
34111 * MODULES.html.sh: Add alloca-opt.
34113 2004-09-28 Simon Josefsson <jas@extundo.com>
34115 * gnulib-tool: New parameter --lgpl, to asseert that modules are
34116 LGPL, and to replace license template from GPL to LGPL.
34118 2004-09-28 Paul Eggert <eggert@cs.ucla.edu>
34120 * modules/dummy: Change license to LGPL.
34122 2004-09-28 Paul Eggert <eggert@cs.ucla.edu>
34124 * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
34126 2004-09-24 Simon Josefsson <jas@extundo.com>
34128 * modules/minmax (License): Change from GPL to LGPL.
34130 2004-09-23 Simon Josefsson <jas@extundo.com>
34132 * gnulib-tool (--import): Typo.
34134 2004-09-23 Simon Josefsson <jas@extundo.com>
34136 * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
34138 2004-09-22 Bruno Haible <bruno@clisp.org>
34140 * modules/*: Add 'License' field.
34141 * gnulib-tool: Accept --extract-license option.
34142 (func_get_license): New function.
34144 2004-09-21 Bruno Haible <bruno@clisp.org>
34146 * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
34147 Reported by Simon Josefsson.
34149 2004-09-20 Paul Eggert <eggert@cs.ucla.edu>
34151 * modules/inttostr (Files): Add m4/longlong.m4, since it uses
34152 gl_AC_TYPE_LONG_LONG.
34154 2004-09-20 Paul Eggert <eggert@cs.ucla.edu>
34156 * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
34158 2004-09-18 Simon Josefsson <jas@extundo.com>
34159 and Paul Eggert <eggert@cs.ucla.edu>
34161 * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
34162 calls with autoreconf. Define GL_LIB.
34164 2004-09-14 Karl Berry <karl@gnu.org>
34166 * config/srclist.txt: unsync setenv.c, sigh.
34168 2004-09-13 Paul Eggert <eggert@cs.ucla.edu>
34170 * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
34171 Problem reported by Bruno Haible in:
34172 http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
34174 2004-09-13 Paul Eggert <eggert@cs.ucla.edu>
34176 * config/srclist.txt: Comment out argp-pvh.c.
34178 2004-09-11 Paul Eggert <eggert@cs.ucla.edu>
34180 * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
34181 in case some system header has #define'd it. Problem reported by
34182 Soeren D. Schulze in
34183 <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
34185 2004-09-09 Karl Berry <karl@gnu.org>
34187 * regex.[ch]: delete from the root. These were supposed to be
34188 synced with emacs cvs, but this has not happened for about
34189 a year, and anyway nothing else uses emacs regex.[ch].
34190 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
34191 lib/regex[.ch] is untouched.
34193 2004-09-09 Bruno Haible <bruno@clisp.org>
34195 * modules/vasnprintf (Files): Add m4/eoverflow.m4.
34197 2004-09-09 Bruno Haible <bruno@clisp.org>
34199 * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
34201 * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
34203 2004-09-08 Oskar Liljeblad <oskar@osk.mine.nu>
34205 * modules/xvasprintf: New file.
34206 * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
34208 2004-09-08 Oskar Liljeblad <oskar@osk.mine.nu>
34210 * lib/xvasprintf.h: New file.
34211 * lib/xvasprintf.c: New file.
34212 * lib/xasprintf.c: New file.
34214 2004-09-08 Bruno Haible <bruno@clisp.org>
34216 * m4/stdint.m4: New file, taken from GNU clisp with modifications.
34218 2004-09-08 Bruno Haible <bruno@clisp.org>
34220 * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
34221 length is > INT_MAX.
34222 * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
34225 2004-09-08 Bruno Haible <bruno@clisp.org>
34227 * lib/stdint_.h: New file, taken from GNU clisp.
34229 2004-09-08 Bruno Haible <bruno@clisp.org>
34230 Oskar Liljeblad <oskar@osk.mine.nu>
34232 * modules/stdint: New file.
34233 * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
34235 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
34237 Import from coreutils.
34238 * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
34239 strings on unbounded length. alloca's performance benefits aren't
34240 that important here.
34241 (V_STRDUP): Remove.
34242 (parse_with_separator): New function, with most of the internals
34243 of the old parse_user_spec. Allow user to omit both user and group,
34244 for compatibility with FreeBSD.
34245 Clone only the user name, not the entire spec.
34246 Do not set *uid, *gid unless entirely successful.
34247 Avoid memory leak in some failing cases.
34248 Fix regression for USER.GROUP reported by Dmitry V. Levin in
34249 <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
34250 (parse_user_spec): Rewrite to use parse_with_separator.
34252 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
34254 * modules/userspec: Don't depend on alloca.
34256 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
34258 * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
34260 2004-08-17 Paul Eggert <eggert@cs.ucla.edu>
34262 * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
34263 readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
34264 utimecmp, utimens, xnanosleep. Rename sha to sha1.
34266 2004-08-16 Simon Josefsson <jas@extundo.com>
34268 * gnulib-tool: Use sed instead of autoconf --trace, inspired by
34269 libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
34270 Add --dry-run for --import.
34271 Let user provided command line parameters override configure.ac
34274 2004-08-12 Simon Josefsson <jas@extundo.com>
34276 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
34277 as discussed with Paul Eggert in threads rooted at
34278 <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
34280 <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
34281 Before, the test was empty, and relied on ELIDE_CODE in source
34283 (gl_PREREQ_GETOPT): New macro.
34284 (gl_GETOPT): Use them.
34286 2004-08-12 Simon Josefsson <jas@extundo.com>
34288 * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
34289 * lib/getopt_.h: Renamed from getopt.h.
34291 2004-08-12 Simon Josefsson <jas@extundo.com>
34293 * gnulib-tool: Add --source-base, --m4-base, --libtool options.
34294 Change default library name from libfoo to libgnu.
34295 Now, if you have a configure.ac that says:
34298 gl_MODULES(error getopt etcetera)
34300 you can import all you need by running:
34301 ../gnulib/gnulib-tool --import
34303 * modules/getopt (Files): Rename getopt.h to getopt_.h.
34304 (Makefile.am): Rewrite, use logic from argz.
34305 (Include): Use <getopt.h> instead of "getopt.h".
34307 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
34309 * modules/argp (Files): Add m4/unlocked-io.m4.
34310 (Depends-on): Add extensions.
34312 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
34314 * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
34315 uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
34316 Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
34317 Check for program_invocation_name, program_invocation_short_name,
34318 flockfile, funlockfile, features.h, _getopt_long_only_r.
34320 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
34322 * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
34323 its complicated substitute.
34324 * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
34325 and program_invocation_name.
34326 (__argp_basename) [!_LIBC]: Remove; the only use was
34327 replaced by its body.
34328 (__argp_short_program_name): Change condition from
34329 !defined __argp_short_program_name to
34330 ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
34331 to match argp-namefrob.h.
34332 (__argp_failure): Don't assume strerror_r returns char *.
34333 * lib/argp-parse.c (N_): Define unconditionally.
34334 (argp_default_options): Fill out initializers with 0 to avoid
34337 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
34339 * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
34342 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
34344 Merge from coreutils.
34346 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
34348 * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
34349 gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
34351 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
34353 Merge from coreutils.
34355 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
34356 wmemchr or wmemcpy. Problem reported by Robert Dahlem
34357 for Reliant Unix 5.43.
34359 * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
34360 (union fooround): Use uintmax_t, not long int.
34361 The rest is a merge from libc:
34362 [defined _LIBC]: Include <shlib-compat.h>.
34363 (_obstack) [defined _LIBC]: Remove after 2.3.4.
34365 * lib/settime.c (settime): Recode to avoid warning with
34368 * lib/strverscmp.c: Convert to UTF-8.
34370 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
34372 * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
34375 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
34377 * modules/xalloc-die: New file.
34378 * modules/xalloc: Remove dependencies on error, gettext, exitfail.
34380 * modules/md5 (Files): Add m4/uint32_t.m4.
34381 * modules/sha1: Renamed from modules/sha.
34383 Rename lib/sha.h to lib/sha1.h.
34384 Rename lib/sha.c to lib/sha1.c.
34385 Rename m4/sha.m4 to m4/sha1.m4.
34386 (lib_SOURCES): Likewise.
34387 (configure.ac): Rename gl_SHA to gl_SHA1.
34388 (Include): sha.h -> sha1.h.
34390 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
34392 * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
34393 * m4/sha1.m4: Renamed from sha.m4.
34394 (gl_SHA1): Renamed from gl_SHA. All uses changed.
34396 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
34398 * lib/obstack.h (obstack_empty_p):
34399 Don't assume that chunk->contents is suitably aligned.
34400 * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
34401 Likewise. Problem reported by Benno in
34402 <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
34404 * lib/chown.c (rpl_chown): Work even if the file is writeable but not
34405 readable. This could be improved further but it'd take some work.
34407 2004-08-08 Simon Josefsson <jas@extundo.com>
34409 * modules/xgethostname (Depends-on): Remove exit and error (not
34412 * modules/getpass-gnu: Add getpass.h.
34413 (Depends-on): Add stdbool.
34414 * modules/getpass: Add getpass.h.
34416 2004-08-08 Simon Josefsson <jas@extundo.com>
34418 * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
34419 Check getpass declaration.
34421 2004-08-08 Simon Josefsson <jas@extundo.com>
34423 * lib/xgethostname.c: Don't include error.h (not used).
34425 * lib/getpass.h: Add.
34426 * lib/getpass.c: Include getpass.h first.
34428 2004-08-08 Paul Eggert <eggert@cs.ucla.edu>
34430 * lib/xalloc-die.c: New file.
34431 * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
34433 * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
34434 Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
34436 (_, N_, xalloc_die): Move to xalloc-die.c.
34437 * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
34438 so that we needn't mess with xalloc_msg_memory_exhausted.
34440 * lib/sha1.h: Renamed from sha.h.
34441 (SHA1_H): Renamed from _SHA_H.
34442 (sha1_ctx): Renamed from sha_ctx.
34443 (sha1_init_ctx): Renamed from sha_init_ctx.
34444 (sha1_process_block): Renamed from sha_process_block.
34445 (sha1_process_bytes): Renamed from sha_process_bytes.
34446 (sha1_finish_ctx): Renamed from sha_finish_ctx.
34447 (sha1_read_ctx): Renamed from sha_read_ctx.
34448 (sha1_stream): Renamed from sha_stream.
34449 (sha1_buffer): Renamed from sha_buffer.
34450 * lib/sha1.c: Likewise; renamed from sha.c.
34451 Do not include <sys/types.h>.
34452 Include <stddef.h> rather than <stdlib.h>.
34454 2004-08-08 Bruno Haible <bruno@clisp.org>
34456 * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
34457 FILESYSTEM_PREFIX_LEN.
34458 * lib/progreloc.c: Likewise.
34459 * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
34461 2004-08-06 Simon Josefsson <jas@extundo.com>
34463 * modules/progname (Depends-on): Don't depend on stdbool.
34465 2004-08-06 Simon Josefsson <jas@extundo.com>
34467 * modules/getsubopt: New file.
34468 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
34471 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
34473 More merge from coreutils.
34475 * m4/utimens.m4, m4/utimecmp.m4: New files.
34476 * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
34477 fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
34478 prereq.m4, sha.m4: Import changes from coreutils.
34480 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
34482 More merge from coreutils.
34483 * modules/raise, modules/readtokens0, modules/utimens:
34484 * modules/utimecmp, module/xnanosleep: New files.
34485 * modules/strftime: Add lib/strftime.h.
34486 Change include from <time.h> to "strftime.h".
34487 * modules/yesno: Add lib/yesno.h.
34488 * modules/backupfile: Remove lib/addext.c.
34489 * modules/euidaccess: Add stat-macros.h.
34490 * modules/canonicalize, modules/euidaccess,
34491 modules/filemode, modules/lchown, modules/makepath,
34492 modules/rmdir, modules/stat: Likewise.
34494 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
34497 * lib/argp-help.c (make_hol, hol_append): Don't assume that
34498 SIZE_MAX is a valid preprocessor constant.
34499 (__argp_basename): Change from "#ifndef _LIBC"
34500 to "#ifndef __argp_short_program_name", so that
34501 we don't compile these functions for tar.
34503 More merges from coreutils.
34504 * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
34505 * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
34506 * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
34507 * lib/addext.c: Remove; no longer needed.
34508 * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
34509 lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
34510 lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
34511 lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
34512 lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
34513 lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
34514 lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
34515 lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
34516 lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
34517 lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
34518 lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
34519 lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
34520 lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
34521 lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
34522 lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
34523 lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
34524 lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
34525 Import changes from coreutils.
34527 2004-08-05 Simon Josefsson <jas@extundo.com>
34529 * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
34531 2004-08-05 Simon Josefsson <jas@extundo.com>
34533 * m4/getsubopt.m4: New file.
34535 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
34537 Merge from coreutils.
34539 * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
34540 * m4/getcwd-path-max.m4: New files.
34542 * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
34543 FILESYSTEM_PREFIX_LEN ->
34544 FILE_SYSTEM_PREFIX_LEN.
34545 FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
34546 FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
34547 FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
34548 FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
34550 * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
34551 prerequisite modules now handle the DOS stuff.
34552 Don't check for unistd.h.
34554 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
34556 Merge from coreutils.
34558 * lib/.gdb-history: Remove; this doesn't belong here.
34560 * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
34561 * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
34562 * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
34563 * lib/getcwd.c: New files.
34565 * lib/dirname.h: Include <stdbool.h>.
34566 (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
34567 for consistency with POSIX terminology. All uses changed.
34568 (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
34569 (strip_trailing_slashes): Use bool for booleans.
34570 * lib/stripslash.c (strip_trailing_slashes): Likewise.
34572 * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
34573 sometimes returns a positive errno value even when it succeeds.
34574 (print_errno_message) [!LIBC]: Fall back on strerror if
34575 __strerror_r fails.
34577 * lib/path-concat.c (mempcpy): Don't define if a system header defines
34578 it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
34579 (longest_relative_suffix): New function.
34580 (path_concat): Use it. Assume first argument is not NULL.
34581 Port to DOS. Omit redundant separators.
34582 Report an error instead of returning NULL.
34583 Use mempcpy instead of memcpy.
34584 (xpath_concat): Remove: not declared or used.
34586 * lib/same.h: Include <stdbool.h>
34587 (same_name): Return bool, not int.
34588 * lib/same.c (same_name): Likewise.
34589 (errno): Don't declare; we assume C89 or better now.
34591 * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
34592 if not already defined.
34594 * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
34595 * lib/dup-safer.c (errno): Likewise.
34597 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
34599 Merge from coreutils.
34600 * modules/c-strtod, modules/c-strtold, modules/canonicalize:
34601 * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
34602 * modules/path-concat: Don't depend on strdup.
34604 2004-08-03 Simon Josefsson <jas@extundo.com>
34606 * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
34607 * lib/progname.h: Don't include stdbool.h.
34609 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
34611 * modules/fatal: Remove, as the "fatal" module wasn't used or working.
34612 * MODULES.html.sh (func_all_modules): Remove fatal.
34614 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
34616 * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
34618 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
34620 * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
34623 2004-08-02 Simon Josefsson <jas@extundo.com>
34625 * lib/getsubopt.h: New file, with comments from Bruno Haible.
34626 * lib/getsubopt.c: New file, from glibc, but slightly modified based on
34627 suggestions from Paul Eggert <eggert@cs.ucla.edu>.
34629 2004-08-01 Simon Josefsson <jas@extundo.com>
34631 * lib/xgetdomainname.c: Include stdlib.h, for free().
34633 2004-07-19 Bruno Haible <bruno@clisp.org>
34635 * MODULES.html.sh (func_all_modules): Add dummy.
34637 2004-07-16 Simon Josefsson <jas@extundo.com>
34639 * modules/dummy: New file.
34641 2004-07-16 Simon Josefsson <jas@extundo.com>
34643 * lib/dummy.c: New file.
34645 2004-07-16 Bruno Haible <bruno@clisp.org>
34647 * lib/backupfile.h: Add extern "C" for C++.
34648 * lib/closeout.h: Likewise.
34649 * lib/copy-file.h: Likewise.
34650 * lib/findprog.h: Likewise.
34651 * lib/full-write.h: Likewise.
34652 * lib/pathname.h: Likewise.
34653 * lib/progname.h: Likewise.
34654 * lib/stpcpy.h: Likewise.
34655 * lib/stpncpy.h: Likewise.
34656 * lib/strcase.h: Likewise.
34657 * lib/strstr.h: Likewise.
34658 * lib/xalloc.h: Likewise.
34660 * lib/mbswidth.h: Add extern "C" for C++.
34661 Reported by Albert Chin-A-Young <china@thewrittenword.com>.
34663 2004-07-13 Robert Millan <robertmh@gnu.org>
34665 * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
34667 2004-07-09 Simon Josefsson <jas@extundo.com>
34669 * lib/getndelim2.c: Include stddef.h, for ptrdiff_t. (FreeBSD 4.9
34670 failed without this.)
34672 2004-07-09 Paul Eggert <eggert@cs.ucla.edu>
34674 * modules/chown (Files): Add lib/fchown-stub.c, since
34675 gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
34677 2004-07-09 Paul Eggert <eggert@cs.ucla.edu>
34679 * lib/fchown-stub.c: New file.
34681 2004-06-24 Jim Meyering <jim@meyering.net>
34683 * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
34685 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
34687 * modules/argz: Omit "#include".
34689 * MODULES.html.sh (func_all_modules): Add calloc, to match
34690 2004-06-01 addition of calloc module.
34692 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
34694 * m4/argz.m4: New file, which is autoupdated from libtool.
34696 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
34698 * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
34701 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
34703 * config/srclist-update: Don't insist on "USA." before the
34704 close-comment, as libtool omits the period and puts the */ on a
34706 * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
34707 * config/srclistvars.sh: Add LIBTOOL (for eggert only).
34709 2004-06-22 Gary V. Vaughan <gary@gnu.org>
34711 * modules/argz: New file.
34712 * MODULES.html.sh (func_all_modules): Add argz.
34714 2004-06-12 Jim Meyering <jim@meyering.net>
34715 and Paul Eggert <eggert@cs.ucla.edu>
34717 * modules/hash (Files): Add lib/xalloc.h.
34718 * modules/pipe (Depends-on): Add wait-process.
34719 * modules/stat (Depends-on): Add xalloc.
34720 * modules/userspec (Files): Add lib/userspec.h.
34723 Upgrade from gettext-0.13.
34724 * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
34725 m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
34726 m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
34728 2004-06-10 Jim Meyering <jim@meyering.net>
34730 * lib/calloc.c: New file.
34732 2004-06-06 Paul Eggert <eggert@cs.ucla.edu>
34734 * lib/getdate.y (yylex): Allow space between sign and number.
34735 Problem reported by Dan Jacobson.
34737 2004-06-01 Paul Eggert <eggert@cs.ucla.edu>
34739 Merge from coreutils CVS.
34741 * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
34742 makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
34743 putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
34744 strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
34745 xstrtol.m4: Fix copyright date and/or serial number.
34747 * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
34748 See if we need an fchown replacement.
34749 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
34750 (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
34751 and use the replacement function if we detect either defect.
34753 * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
34756 2004-06-01 Paul Eggert <eggert@cs.ucla.edu>
34757 and Jim Meyering <jim@meyering.net>
34759 Merge from coreutils CVS.
34761 * lib/stat-macros.h: New file, with contents from file-type.h
34762 and coreutils' system.h.
34763 * lib/file-type.c: Include "stat-macros.h".
34764 * lib/file-type.h (file_type): Move all macro definitions to new file,
34767 * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
34768 Wrap old code with this conditional.
34769 [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
34770 function that does not dereference symlinks.
34771 * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
34773 * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
34774 dependency problems.
34775 (xreadlink): Accept new arg SIZE, for efficiency.
34776 All decls and uses changed.
34777 * lib/xreadlink.h: Include <stddef.h>, for size_t.
34779 * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
34780 gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
34782 * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
34785 2004-06-01 Jim Meyering <jim@meyering.net>
34787 * m4/calloc.m4: New file.
34789 2004-05-31 Paul Eggert <eggert@cs.ucla.edu>
34791 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
34792 C B3910B A.05.55 [Dec 04 2003]. Problem reported by Jim Meyering.
34793 Also, fix a typo in a diagnostic.
34795 2004-05-30 Paul Eggert <eggert@cs.ucla.edu>
34797 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
34798 or AC_FUNC_REALLOC.
34800 2004-05-30 Paul Eggert <eggert@cs.ucla.edu>
34802 * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
34803 macros to be defined.
34804 (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
34805 the allocator returns NULL because the requested size is zero.
34807 2004-05-20 Paul Eggert <eggert@cs.ucla.edu>
34809 * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
34810 var. Add comment explaining why libc still defines it. This
34811 merges the following patch from glibc:
34812 http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
34814 2004-05-20 Andreas Schwab <schwab@suse.de>
34816 * m4/free.m4: Replace free if it not known to work, not the other
34819 2004-05-19 Paul Eggert <eggert@cs.ucla.edu>
34821 * lib/obstack.c (_obstack): Remove unused variable. It hasn't been
34822 present in glibc since revision 1.1 of this file.
34823 * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
34824 obstack_alignment_mask, obstack_alloc, obstack_base,
34825 obstack_blank, obstack_blank_fast, obstack_chunk_size,
34826 obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
34827 obstack_grow0, obstack_init, obstack_int_grow,
34828 obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
34829 obstack_next_free, obstack_object_size, obstack_ptr_grow,
34830 obstack_ptr_grow_fast, obstack_room): Remove declarations of
34831 nonexistent functions.
34833 2004-05-18 Karl Berry <karl@gnu.org>
34835 * config/srclist.txt: break link for vasnprintf.c.
34837 2004-05-17 Paul Eggert <eggert@cs.ucla.edu>
34839 Port obstack to the AS/400, where pointers are 16 bytes wide and
34840 you cannot cast an integer to a valid pointer. This patch is
34841 currently waiting to be integrated into glibc; see
34842 <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
34844 * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
34845 All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
34846 (__BPTR_ALIGN, __PTR_ALIGN): New macros.
34847 (struct obstack): temp member is now a union of a pointer and
34848 an integer, instead of an integer. All integer uses changed.
34849 This does not affect the physical layout of struct obstack,
34850 except on hosts (like the AS/400) where the size or alignment of
34851 void * is greater than that of ptrdiff_t.
34852 (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
34853 __STDC__)]: Store temporary in pointer member of union, not
34855 * lib/obstack.c: Include <stddef.h>, for offsetof.
34856 (struct fooalign): Remove; it doesn't need a name.
34857 (union fooround): Change double to long double, and add void *.
34858 (DEFAULT_ALIGNMENT): Use offsetof to compute.
34859 (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
34860 not a macro. Hence the values are always int; so remove all
34861 casts-to-int in uses.
34863 2004-05-17 Paul Eggert <eggert@cs.ucla.edu>
34865 * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
34866 we can get this patch merged into glibc.
34868 2004-05-17 Derek R. Price <derek@ximbiot.com>
34869 Paul Eggert <eggert@cs.ucla.edu>
34871 * m4/argp: Depend on alloca.
34873 2004-05-17 Derek R. Price <derek@ximbiot.com>
34874 Paul Eggert <eggert@cs.ucla.edu>
34876 * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
34879 2004-05-17 Bruno Haible <bruno@clisp.org>
34881 * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
34882 precision that consists of a '.' followed by an empty digit string.
34883 Patch by Tor Lillqvist <tml@iki.fi>.
34885 2004-05-16 Paul Eggert <eggert@cs.ucla.edu>
34887 * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
34888 for backward compatibility with older code. We need our own
34889 alloca.h if _AIX is defined. Define HAVE_ALLOCA if we discover
34890 it under some other name, and our alloca.h will define it.
34892 2004-05-16 Paul Eggert <eggert@cs.ucla.edu>
34893 Derek Price <derek@ximbiot.com>
34895 * lib/alloca.c: Include <alloca.h>, to get our interface.
34896 * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
34897 include <alloca.h> first. Use C89 prototype for alloca; this
34898 requires including <stddef.h> for size_t. Use extern "C" if C++.
34899 Use #elif for simplicity, since we can assume C89 now.
34900 Don't try to source the system alloca.h since it will not be found
34901 and to prevent recursively including its replacement.
34902 * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
34903 * lib/regex.c: Likewise.
34905 2004-05-16 Derek Price <derek@ximbiot.com>
34906 Paul Eggert <eggert@cs.ucla.edu>
34908 getline cleanup. This changes the getndelim2 API: both order of
34909 arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
34912 * lib/getline.c: Don't include stddef.h or stdio.h, since our
34913 interface does that.
34914 (getline): Always use getdelim, so that we don't have two
34915 copies of this code.
34916 * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
34918 (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
34919 (GETNDELIM2_MAXIMUM): New macro.
34920 (getndelim2): Reorder arguments. delim==EOF now means no delimiter,
34921 instead of the old practice of delim2==0. All callers changed.
34922 Return -1 on overflow, instead of returning junk.
34923 Do not set *linesize unless allocation succeeds.
34924 * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
34925 that we include sys/types.h.
34926 * lib/getnline.h: Likewise.
34927 * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
34928 (getndelim2): Reorder arguments.
34929 * lib/getnline.c (getnline, getndelim):
34930 Don't discard the NMAX argument.
34931 (getnline): Invoke getndelim, to avoid code duplication.
34932 * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
34933 of (size_t) -1 by callers of the getnline family.
34935 2004-05-13 Paul Eggert <eggert@cs.ucla.edu>
34937 * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
34938 Check for gettimeofday.
34939 * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
34940 Check for settimeofday, stime.
34942 2004-05-13 Paul Eggert <eggert@cs.ucla.edu>
34944 * lib/nanosleep.c (suspended): Change its type from int to
34945 sig_atomic_t volatile.
34946 (first_call): Make it private to rpl_nanosleep, and have it
34947 be zero initially as that's a bit faster.
34948 (my_usleep): Round up fractional times instead of truncating them,
34949 as this is the usual meaning for 'sleep'.
34951 * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
34953 * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
34954 (ENOSYS): Define if not defined.
34955 (settime): Fall back on stime if it exists and settimeofday fails.
34956 But don't bother with fallbacks if a method fails with errno == EPERM.
34958 2004-05-11 Jim Meyering <jim@meyering.net>
34960 Prior to this change, the save_cwd caller required read access to the
34961 current directory on most systems (ones with the fchdir function).
34963 * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
34964 fails, try write-only, and finally, resort to using xgetcwd.
34966 2004-05-06 Paul Eggert <eggert@cs.ucla.edu>
34968 * lib/obstack.c, obstack.h: Import changes from libc.
34970 2004-04-28 Bruno Haible <bruno@clisp.org>
34972 * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
34973 also implicitly appends .exe to executables.
34974 * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
34975 accepts Windows pathnames.
34976 * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
34977 Treat Cygwin like Windows, since it now accepts Windows pathnames.
34978 * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
34979 Treat Cygwin like Windows, since it now accepts Windows pathnames.
34980 Reported by Derek Robert Price <derek@ximbiot.com>.
34982 2004-04-21 Karl Berry <karl@gnu.org>
34984 * config/srclist.txt (localcharset.c): break sync.
34986 2004-04-20 Paul Eggert <eggert@twinsun.com>
34988 * m4/host-os.m4: Add a copyright notice.
34990 2004-04-20 Jim Meyering <jim@meyering.net>
34992 Change UTILS_ to gl_ in AC_DEFINE'd names.
34993 Change utils_- and jm_-prefixed variables, too.
34994 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
34995 UTILS_FUNC_MKDIR_TRAILING_SLASH.
34996 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
34998 * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
34999 Don't emit trailing blanks.
35000 Also rename jm_-prefixed variables to have gl_ prefix.
35002 * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
35003 Also rename jm_-prefixed variables to have gl_ prefix.
35005 * m4/jm-macros.m4: Reflect the renamings.
35006 * m4/prereq.m4: Likewise.
35008 2004-04-20 Jim Meyering <jim@meyering.net>
35010 * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
35013 2004-04-20 Jim Meyering <jim@meyering.net>
35014 Bruno Haible <bruno@clisp.org>
35016 * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
35017 memory when realloc fails.
35019 2004-04-19 Jim Meyering <jim@meyering.net>
35021 * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
35022 now that readutmp.c may call `free (0)'.
35024 2004-04-19 Bruno Haible <bruno@clisp.org>
35026 * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
35027 * m4/inttypes_h.m4: Likewise.
35028 * m4/stdint_h.m4: Likewise.
35029 * m4/intmax_t.m4: Likewise.
35030 * m4/uintmax_t.m4: Likewise.
35032 2004-04-18 Jim Meyering <jim@meyering.net>
35034 * m4/prereq.m4: Don't forbid jm_ prefix.
35036 * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
35037 * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
35038 * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
35039 * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
35040 * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
35041 * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
35042 * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
35043 * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
35044 * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
35045 * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
35046 * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
35047 * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
35048 * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
35049 * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
35050 * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
35051 * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
35052 * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
35053 * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
35054 Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
35056 2004-04-18 Jim Meyering <jim@meyering.net>
35058 * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
35059 failure, don't leak memory and do call END_UTMP_ENT.
35061 2004-04-16 Jim Meyering <jim@meyering.net>
35063 * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro. It is specific to
35064 coreutils' stat program.
35065 (gl_PREREQ): Don't require jm_PREREQ_STAT.
35067 2004-04-11 Paul Eggert <eggert@twinsun.com>
35069 * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
35071 (CHAR_BIT): Remove, since we assume C89.
35072 Include <stdint.h> if available, as per current Autoconf CVS advice.
35074 2004-03-31 Jim Meyering <jim@meyering.net>
35076 * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
35077 Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
35078 * m4/xalloc.m4: Likewise.
35080 2004-03-30 Paul Eggert <eggert@twinsun.com>
35082 Merge from coreutils.
35084 * m4/inttostr.m4: New file.
35085 * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
35086 Require AM_STDBOOL_H and gl_TIMESPEC instead.
35087 Require gl_CLOCK_TIME.
35088 * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
35090 2004-03-30 Paul Eggert <eggert@twinsun.com>
35092 * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
35093 not bool, to be more consistent with Unix conventions.
35094 Suggested by Bruno Haible.
35096 Merge from coreutils.
35098 * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
35099 * lib/umaxtostr.c: New files.
35101 * lib/getdate.h: Include stdbool.h, and timespec.h instead of
35102 the usual <time.h> dance.
35103 (get_date): Change signature to support fractional time stamps.
35104 All callers changed.
35105 * lib/getdate.y: Include "getdate.h" first, as we can now
35106 assume C89 and don't need to worry about 'const'.
35107 Similarly, include "unlocked-io.h" near start, not in middle.
35108 Include <limits.h>.
35109 (textint.value): Use long int rather than int.
35110 (textint.digits): Use size_t rather than int.
35111 (BILLION, LOG10_BILLION): New constants.
35112 (parser_control): New member rel_ns. Members day_ordinal,
35113 time_zone, month, day, hour, minutes, rel_year, rel_month,
35114 rel_day, rel_hour, rel_minutes, rel_seconds
35115 are now long int, not int. Member seconds is now struct timespec,
35116 not int. New member timespec_seen. Members dates_seen, days_seen,
35117 local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
35119 (%union.intval): Now long int, not int.
35120 New member timespec.
35121 (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
35122 (seconds, signed_seconds, unsigned_seconds): New nonterminals.
35123 (spec): Now is a timespec or an item list.
35124 (timespec, items): New nonterminals.
35125 (time, rel, relunit, number, get_date):
35126 Add support for fractional seconds.
35127 (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
35128 (gmtime, localtime, mktime): Remove decls; not needed with C89.
35129 (to_hour): First arg is now long int, not int.
35130 (to_year): Returns long int, not int.
35131 Don't treat year -70 like 70.
35132 (tm_diff): Returns long int, not int.
35133 (lookup_word): Use bool instead of int when appropriate.
35134 (yylex): Use size_t for count, not int.
35135 Detect overflow when parsing large integer constants.
35136 Add support for fractions.
35137 (get_date): Make pointers 'const' if possible.
35138 Use more-portable code to detect integer overflow.
35139 (main) [TEST]: Adjust to above changes. Test for localtime failure.
35140 Don't use ctime; it's not reliable if the year has >4 digits.
35142 * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
35143 This is for compatibility with BSD.
35145 * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
35146 (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
35147 From coreutils' system.h.
35149 * lib/userspec.c: Don't include "posixver.h".
35150 (parse_user_spec): Fall back on USER.GROUP parsing, regardless
35151 of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
35152 compatible extension. Simplify code by removing a boolean int
35153 that was always nonzero if a string was nonnull.
35155 2004-03-30 Jim Meyering <jim@meyering.net>
35157 Merge from coreutils.
35159 Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
35160 * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
35161 on some systems one must include <grp.h> before it.
35162 Reported by Christian Krackowizer.
35164 2004-03-30 Jim Meyering <jim@meyering.net>
35166 Merge from coreutils.
35168 * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
35170 * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
35171 an empty input stream.
35173 * lib/readtokens.c: Include <stdbool.h>.
35174 (readtoken): Use `size_t' rather than int/long.
35175 All callers adjusted.
35176 Use `bool' rather than `int' where appropriate.
35177 Use memset rather than an explicit loop.
35178 Use x2nrealloc rather than xrealloc.
35179 Allow the use of `\0' as a delimiter.
35180 (readtokens): Likewise.
35181 * lib/readtokens.h (readtoken, readtokens): Update prototypes.
35183 2004-03-30 Jim Meyering <jim@meyering.net>
35185 * m4/realloc.m4: Remove file, since now it does no more than
35186 AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
35187 the `configure.ac' section of module/realloc.
35188 * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
35190 2004-03-30 Bruno Haible <bruno@clisp.org>
35192 * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
35195 2004-03-29 Paul Eggert <eggert@twinsun.com>
35197 Merge changes to getloadavg.c from coreutils and Emacs.
35199 * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
35200 Define to an expression, not to the empty string.
35201 Include cloexec.h and xalloc.h.
35202 (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
35203 Use set_cloexec_flag rather than rolling our own.
35204 * lib/cloexec.c, lib/cloexec.h: New files.
35206 2004-03-29 Paul Eggert <eggert@twinsun.com>
35208 * m4/cloexec.m4: New file.
35210 2004-03-18 Paul Eggert <eggert@twinsun.com>
35212 * lib/getopt.h: Sync with libc CVS.
35214 2004-03-18 Paul Eggert <eggert@twinsun.com>
35215 Bruno Haible <bruno@clisp.org>
35217 * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
35220 2004-03-18 Paul Eggert <eggert@twinsun.com>
35221 Bruno Haible <bruno@clisp.org>
35223 * lib/mbswidth.h: Include <wchar.h> only if
35224 HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
35226 * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
35228 2004-03-09 Paul Eggert <eggert@twinsun.com>
35230 * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
35231 Sync with libc CVS.
35232 * lib/getopt_int.h: New file, also synced from libc.
35234 2004-03-09 Paul Eggert <eggert@twinsun.com>
35236 * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
35237 * config/srclist.txt: Sync getopt with libc. Add getopt_int.h.
35238 Bring back getopt.c, getopt.h, getopt1.c.
35240 2004-03-07 Paul Eggert <eggert@twinsun.com>
35242 * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
35243 All uses changed. Check for sa_sigaction member; this fixes
35244 a bug first reported by Jason Andrade in
35245 <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
35247 2004-03-07 Paul Eggert <eggert@twinsun.com>
35249 * lib/c-stack.c (SIGACTION_WORKS): New macro. Use it instead of long
35250 '#if' expressions. Unlike the code it replaces, it does not
35251 depend on (defined _SC_PAGESIZE). However, it does depend on
35252 HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
35253 first reported by Jason Andrade in
35254 <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
35256 2004-02-25 Simon Josefsson <jas@extundo.com>
35258 * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
35260 2004-02-25 Simon Josefsson <jas@extundo.com>
35262 * lib/strdup.h: New file.
35263 * lib/strdup.c: Include it.
35264 * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
35265 * lib/userspec.c: Include strdup.h. Drop strdup declaration.
35267 2004-02-23 Karl Berry <karl@gnu.org>
35269 * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
35270 (from fencepost.gnu.org:/gd/gnuorg).
35272 2004-02-23 Karl Berry <karl@gnu.org>
35274 * config/srclistvars.sh (GNUORG) [karl]: redefine.
35275 * config/srclist.txt: add maintain/standards documents.
35277 2004-02-18 Bruno Haible <bruno@clisp.org>
35279 * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
35280 Reported by Derek Robert Price <derek@ximbiot.com>.
35282 2004-02-16 Karl Berry <karl@gnu.org>
35284 * config/mkinstalldirs, install-sh: update from automake.
35286 2004-02-06 Karl Berry <karl@gnu.org>
35288 * m4/po.m4: update from gettext 0.14.1.
35290 2004-02-06 Karl Berry <karl@gnu.org>
35292 * lib/config.charset: update from gettext 0.14.1.
35294 2004-02-05 Paul Eggert <eggert@twinsun.com>
35296 Add comments and code, prompted by suggestions from Bruno Haible
35298 * lib/quotearg.h (quotearg_alloc): New decl. Improve the comments
35299 describing the enum quoting_style values.
35300 * lib/quotearg.c (quotearg_alloc): New function.
35301 (quotearg_buffer_restyled): Treat lone { and } as special.
35302 Treat = as special. Work around bug with older shells
35303 that "see" a '\' that is really the 2nd byte of a multibyte char.
35304 Quote empty string with shell_quoting_style.
35306 2004-02-03 Bruno Haible <bruno@clisp.org>
35308 * m4/pipe.m4: New file, from GNU gettext.
35310 2004-02-03 Bruno Haible <bruno@clisp.org>
35312 * lib/pipe.h: New file, from GNU gettext.
35313 * lib/pipe.c: New file, from GNU gettext.
35315 2004-01-27 Bruno Haible <bruno@clisp.org>
35317 * m4/execute.m4: New file, from GNU gettext.
35319 2004-01-27 Bruno Haible <bruno@clisp.org>
35321 * lib/execute.h: New file, from GNU gettext.
35322 * lib/execute.c: New file, from GNU gettext.
35323 * lib/w32spawn.h: New file, from GNU gettext.
35325 2004-01-24 Paul Eggert <eggert@twinsun.com>
35327 Merge from diffutils.
35329 * lib/file-type.c (file_type): Add typed memory objects.
35330 * lib/file-type.h (S_TYPEISTMO): New macro.
35332 * lib/c-stack.h (c_stack_action): Remove argv argument.
35333 * lib/c-stack.c (c_stack_action): Likewise. All uses changed.
35334 (die): Don't calculate message unless segv_action returns.
35335 (get_stack_location, min_address_from_argv, max_address_from_argv,
35336 volatile stack_base, volatile_stack_size): Remove.
35337 (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
35338 that every segmentation violation is a stack overflow. (Ouch!)
35339 See Debian bug 136249 (still outstanding) for more info about why
35340 HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
35342 2004-01-24 Paul Eggert <eggert@twinsun.com>
35344 Exit-status fix from coreutils.
35346 Use exit_failure consistently in place of EXIT_FAILURE,
35347 so that program exit statuses are consistent on failure.
35349 * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
35350 Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
35351 * lib/argmatch.h: Comment fix to match the above.
35352 * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
35353 Now a macro referring to exit_failure, instead of a separate
35354 variable. Include "exitfail.h" to get it.
35355 * lib/xstrtol.h: Include "exitfail.h".
35356 (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
35358 * lib/long-options.c (parse_long_options): Use prototype
35359 for usage function arg. Pass it EXIT_SUCCESS rather than 0,
35362 2004-01-21 Jim Meyering <jim@meyering.net>
35364 * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
35365 so as not to conflict with a different-sized __mktime_internal
35366 function in GNU libc.
35367 * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
35368 Problem building statically-linked `ls' reported by Michael Brunnbauer.
35370 2004-01-20 Karl Berry <karl@gnu.org>
35372 * config/config.guess: update from config.
35374 * config/srclistvars.sh: GNUWWWLICENSES for karl.
35376 2004-01-20 Bruno Haible <bruno@clisp.org>
35378 Safer stack allocation.
35379 * lib/setenv.c: Include allocsa.h.
35380 (alloca): Remove fallback definition.
35381 (freea): Remove macro.
35382 (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
35385 2004-01-20 Bruno Haible <bruno@clisp.org>
35387 * m4/eealloc.m4: New file, from GNU gettext.
35389 2004-01-20 Bruno Haible <bruno@clisp.org>
35391 * m4/allocsa.m4: New file, from GNU gettext.
35393 2004-01-20 Bruno Haible <bruno@clisp.org>
35395 * lib/xallocsa.h: New file, from GNU gettext.
35396 * lib/xallocsa.c: New file, from GNU gettext.
35398 2004-01-20 Bruno Haible <bruno@clisp.org>
35400 * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
35402 2004-01-20 Bruno Haible <bruno@clisp.org>
35404 * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
35405 * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
35408 2004-01-20 Bruno Haible <bruno@clisp.org>
35410 * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
35413 2004-01-20 Bruno Haible <bruno@clisp.org>
35415 * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
35417 2004-01-20 Bruno Haible <bruno@clisp.org>
35419 * lib/eealloc.h: New file.
35421 2004-01-20 Bruno Haible <bruno@clisp.org>
35423 * lib/binary-io.h: Avoid warnings on Cygwin.
35425 2004-01-20 Bruno Haible <bruno@clisp.org>
35427 * lib/allocsa.h: New file, from GNU gettext.
35428 * lib/allocsa.c: New file, from GNU gettext.
35430 2004-01-18 Karl Berry <karl@gnu.org>
35432 * doc/gpl.texi, doc/lgpl.texi: new files.
35434 2004-01-18 Karl Berry <karl@gnu.org>
35436 * config/srclistvars.sh (GNUWWWLICENSES): new variable.
35437 * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
35439 2004-01-15 Paul Eggert <eggert@twinsun.com>
35441 Merge from coreutils.
35443 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
35444 * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
35445 (gl_DEFAULT_POSIX2_VERSION): Move
35446 the documentation from 'configure' into 'config.hin',
35447 so that 'configure --help' isn't burdened by it and
35448 we don't have to worry about its formatting there.
35449 Reword the documentation so that it's more succinct
35450 and can be run together into a single paragraph.
35451 * m4/same.m4 (gl_SAME): Check for pathconf.
35453 2004-01-15 Paul Eggert <eggert@twinsun.com>
35455 Merge from coreutils.
35457 * lib/posixver.c: Include posixver.h.
35459 * lib/same.c: Include <stdbool.h>, <limits.h>.
35460 (_POSIX_NAME_MAX): Define if not defined.
35462 (same_name): If file names are silently truncated, report
35463 that the file names are the same if they are the same after
35464 the silent truncation.
35466 * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
35467 conversion function.
35468 * lib/xstrtod.c (xstrtod): Likewise. All callers changed to
35469 include c-strtod.h and use c_strtod. Don't include stdlib.h; no
35472 2004-01-15 Jim Meyering <jim@meyering.net>
35474 Merge from coreutils.
35476 * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
35477 if no library is required.
35478 * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
35479 * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
35480 * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
35481 (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
35482 * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
35483 * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
35484 value, $ac_cv_search_crypt, if it's "none required".
35485 * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
35486 * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
35487 not gl_FUNC_GETLOADAVG.
35488 * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
35489 gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
35491 2004-01-15 Jim Meyering <jim@meyering.net>
35493 Merge from coreutils.
35495 * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code. These
35496 days, gcc-3.x does better all by itself. Patch from Dean Gaudet:
35497 http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
35499 * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
35500 optional configure-time default.
35502 * lib/version-etc.c (version_etc_copyright): Update copyright date.
35504 * lib/xreadlink.c (xreadlink): Correct outdated comment.
35506 2004-01-15 Alexandre Duret-Lutz <adl@gnu.org>
35508 Merge from coreutils.
35510 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
35511 value, $ac_cv_search_nanosleep, if it's "none required".
35513 2004-01-14 Paul Eggert <eggert@twinsun.com>
35515 * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
35516 with like-named macro in fnmatch.c.
35517 (EXT): Use an internal constant instead.
35519 Merge fnmatch patches from glibc.
35520 * lib/fnmatch.c (mbsinit): Remove define.
35521 Add libc_hidden_ver (__fnmatch, fnmatch).
35522 * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
35523 Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
35525 2004-01-14 Karl Berry <karl@gnu.org>
35527 * config/install-sh: update from automake.
35529 2004-01-13 Karl Berry <karl@gnu.org>
35531 * config/install-sh: update from automake.
35533 2004-01-09 Karl Berry <karl@gnu.org>
35535 * config/install-sh: update from automake.
35537 2004-01-05 Karl Berry <karl@gnu.org>
35539 * config/config.{sub,guess}: update from config.
35541 2003-12-31 Karl Berry <karl@gnu.org>
35543 * config/depcomp: update from automake.
35545 2003-12-14 Karl Berry <karl@gnu.org>
35547 * lib/config.charset: update from gettext-runtime.
35549 2003-12-03 Paul Eggert <eggert@twinsun.com>
35551 * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
35552 Bug reported by Alfred M. Szmidt.
35554 2003-12-03 Bruno Haible <bruno@clisp.org>
35556 * m4/gettext.m4: Upgrade from gettext-0.13.
35557 * m4/po.m4: Upgrade from gettext-0.13.
35558 * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
35559 * m4/intmax.m4: New file, from gettext-0.13.
35560 * m4/printf-posix.m4: New file, from gettext-0.13.
35562 2003-11-29 Karl Berry <karl@gnu.org>
35564 * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
35566 2003-11-25 Paul Eggert <eggert@twinsun.com>
35567 Bruno Haible <bruno@clisp.org>
35569 * lib/printf-parse.h: Don't include sys/types.h.
35570 (ARG_NONE): New macro.
35571 (char_directive): Change type of *arg_index fields to size_t.
35572 * lib/printf-parse.c: Don't include sys/types.h.
35573 (SSIZE_MAX): Remove macro.
35574 (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
35575 Remove unnecessary overflow check.
35576 * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
35579 2003-11-25 Bruno Haible <bruno@clisp.org>
35581 * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
35583 2003-11-25 Bruno Haible <bruno@clisp.org>
35585 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
35588 2003-11-24 Paul Eggert <eggert@twinsun.com>
35590 * modules/alloca: Remove dependency on xalloc.
35592 2003-11-24 Paul Eggert <eggert@twinsun.com>
35594 * lib/alloca.c: Remove dependency on xalloc module.
35595 (xalloc_die): Remove.
35596 (memory_full) [!defined emacs]: New macro.
35597 [!defined emacs]: Don't include xalloc.h.
35598 (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
35599 address arithmetic overflows. Change datatypes a bit to avoid
35602 2003-11-22 Jim Meyering <jim@meyering.net>
35604 * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
35607 2003-11-21 Karl Berry <karl@gnu.org>
35609 * config/config.{sub,guess}: update from config.
35611 2003-11-18 Karl Berry <karl@gnu.org>
35613 * config/config.{sub,guess}: update from config.
35615 * config/(printf-{parse,args}.[ch]): sync broken, sigh.
35617 2003-11-17 Paul Eggert <eggert@twinsun.com>
35619 * README: Mention that S+T cannot overflow if S is the size of
35620 an existing object and T is sufficiently small.
35622 2003-11-17 Jim Meyering <jim@meyering.net>
35624 On systems without utime and without a utimes function capable of
35625 dealing with a NULL struct utimbuf* argument, this utime replacement
35626 could -- in unusual circumstances -- leak a file descriptor.
35627 * lib/utime.c: Include <unistd.h> and <errno.h>.
35628 (utime_null): Be sure to close `fd' and to preserve errno.
35629 Reported by Geoff Collyer via Arnold Robbins.
35631 2003-11-17 Bruno Haible <bruno@clisp.org>
35633 * modules/vasnprintf (Files): Add m4/ssize_t.m4.
35634 (Depends-on): Add xsize.
35636 2003-11-17 Bruno Haible <bruno@clisp.org>
35638 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
35640 2003-11-17 Bruno Haible <bruno@clisp.org>
35642 * lib/vasnprintf.c (alloca): Remove fallback definition.
35643 (freea): Remove definition.
35644 (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
35645 Reported by Paul Eggert.
35647 2003-11-16 Paul Eggert <eggert@twinsun.com>
35648 Bruno Haible <bruno@clisp.org>
35650 Protect against address arithmetic overflow.
35651 * lib/printf-args.h: Include stddef.h.
35652 (arguments): Change type of field 'count' to size_t.
35653 * lib/printf-args.c (printf_fetchargs): Use size_t instead of
35654 'unsigned int' where appropriate.
35655 * lib/printf-parse.h: Include sys/types.h.
35656 (char_directive): Change type of *arg_index fields to ssize_t.
35657 (char_directives): Change type of fields 'count', max_*_length to
35659 * lib/printf-parse.c: Include sys/types.h and xsize.h.
35660 (SSIZE_MAX): Define fallback value.
35661 (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
35662 instead of 'int' where appropriate. Check a_allocated, d_allocated
35663 against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
35664 * lib/vasnprintf.c: Include xsize.h.
35665 (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
35666 Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
35667 overflow. Avoid wraparound when converting a width or precision from
35670 2003-11-16 Bruno Haible <bruno@clisp.org>
35672 Update from GNU gettext.
35673 * lib/printf-parse.c: Generalize to it can be compiled for wide
35675 (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
35676 * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
35677 (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
35678 SNPRINTF): New macros.
35679 Don't include <alloca.h> if the file is used inside libintl.
35680 (local_wcslen): New function, for Solaris 2.5.1.
35681 (VASNPRINTF): Use it instead of wcslen.
35683 2003-11-16 Bruno Haible <bruno@clisp.org>
35685 * lib/xsize.h (xmax): New function.
35686 (xsum, xsum3, xsum4): Declare as "pure" functions.
35688 2003-11-12 Paul Eggert <eggert@twinsun.com>
35690 * modules/xalloc (Files): Undo latest change, since xalloc.h
35691 no longer needs SIZE_MAX or PTRDIFF_MAX.
35693 2003-11-12 Paul Eggert <eggert@twinsun.com>
35695 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
35698 2003-11-12 Paul Eggert <eggert@twinsun.com>
35700 * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
35701 "return", to pacify some unknown compiler. Problem reported
35702 by Joerg Schilling.
35704 2003-11-12 Paul Eggert <eggert@twinsun.com>
35706 * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
35707 (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
35708 the heuristic, rather than PTRDIFF_MAX and SIZE_MAX. This
35709 heuristic is just as accurate as far as we know, and it removes a
35710 dependency on size_max.m4 and ptrdiff_max.m4.
35712 2003-11-11 Bruno Haible <bruno@clisp.org>
35714 * modules/xsize (Files): Add m4/size_max.m4.
35715 * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
35717 2003-11-11 Bruno Haible <bruno@clisp.org>
35719 * m4/size_max.m4: New file.
35720 * m4/ptrdiff_max.m4: New file.
35721 * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
35722 * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
35723 (gl_XALLOC): Invoke it.
35725 2003-11-11 Bruno Haible <bruno@clisp.org>
35727 * lib/xsize.h (SIZE_MAX): Remove fallback definition.
35728 * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
35731 2003-11-10 Paul Eggert <eggert@twinsun.com>
35733 * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
35734 PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
35735 rejected some allocations of exactly SIZE_MAX - 2 bytes.
35737 [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
35738 not (size_t) -1, since it's defined here.
35740 2003-11-09 Karl Berry <karl@gnu.org>
35742 * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
35744 2003-11-06 Paul Eggert <eggert@twinsun.com>
35746 * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
35747 (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
35748 Reject sizes of exactly SIZE_MAX bytes.
35749 * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
35750 is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
35752 2003-11-05 Bruno Haible <bruno@clisp.org>
35754 * lib/xsize.h: Include limits.h, to avoid a possible collision with
35755 SIZE_MAX defined in <limits.h> on Solaris.
35757 2003-11-04 Jim Meyering <jim@meyering.net>
35759 * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
35760 variable names, rather than @VAR@.
35761 * modules/poll: Likewise.
35763 2003-11-04 Bruno Haible <bruno@clisp.org>
35765 * modules/xsize: New file.
35766 * modules/linebreak: Depend on xsize.
35767 * MODULES.html.sh (func_all_modules): Add xsize.
35769 2003-11-04 Bruno Haible <bruno@clisp.org>
35771 * m4/xsize.m4: New file.
35773 2003-11-04 Bruno Haible <bruno@clisp.org>
35775 * lib/xsize.h: New file.
35776 * lib/linebreak.c: Include xsize.h.
35777 (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
35778 argument for overflow.
35779 Suggested by Paul Eggert.
35781 2003-11-03 Karl Berry <karl@gnu.org>
35783 * config/config.{guess,sub}: update from config.
35785 2003-11-03 Jim Meyering <jim@meyering.net>
35787 * modules/userspec (lib_SOURCES): Add userspec.h.
35788 (Include): Add "userspec.h".
35789 Improve description.
35791 2003-11-03 Jim Meyering <jim@meyering.net>
35793 * lib/userspec.c: Include "userspec.h".
35794 * lib/userspec.h: New file.
35796 2003-11-03 Bruno Haible <bruno@clisp.org>
35798 * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
35800 2003-11-03 Bruno Haible <bruno@clisp.org>
35802 * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
35803 available, to avoid (extremely rare) race condition.
35804 Suggested by Paul Eggert.
35806 2003-11-02 Karl Berry <karl@gnu.org>
35808 * config/srclist.txt (vasprintf.c): sync broken, sigh.
35810 2003-10-31 Paul Eggert <eggert@twinsun.com>
35812 * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
35813 * lib/mountlist.c (SIZE_MAX): Define if not defined already.
35814 (read_filesystem_list): Set and use me_type_malloced.
35815 Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
35816 whatever the type happens to be), for brevity and consistency.
35817 Check for size calculation overflow on Alphas running OSF/1.
35819 2003-10-31 Jim Meyering <jim@meyering.net>
35821 * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
35823 * lib/linebuffer.c: Include <string.h> for declaration of memset.
35825 2003-10-30 Paul Eggert <eggert@twinsun.com>
35826 Bruno Haible <bruno@clisp.org>
35828 * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
35829 (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
35831 2003-10-30 Paul Eggert <eggert@cs.ucla.edu>
35833 * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
35834 netbsd*-gnu*. Suggested by Robert Millan.
35836 2003-10-29 Paul Eggert <eggert@twinsun.com>
35838 * modules/group-member: Depend on stdbool.
35840 2003-10-29 Paul Eggert <eggert@twinsun.com>
35842 * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
35844 2003-10-29 Paul Eggert <eggert@twinsun.com>
35846 * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu. Add comments
35847 to it, and to knetbsd*-gnu and kfreebsd*-gnu. Remove the '*' from
35848 after the 'gnu' in these cases. This fixes some bugs in the
35849 previous change, and is based on suggestions by Robert Millan.
35851 2003-10-29 Paul Eggert <eggert@twinsun.com>
35853 * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
35854 so that it works even if SIZE_MAX < N. Do not include <stdbool.h>;
35856 * lib/quotearg.c (quotearg_n_options): Use it.
35857 * lib/group-member.c: Include <stdbool.h>.
35858 (free_group_info): Arg is now const *; don't free arg.
35859 (get_group_info): Now returns bool and accepts struct group_info *,
35860 rather than returning a malloc'ed struct group_info *.
35861 All uses changed. Check for overflow in internal size calculation.
35863 * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
35864 rather than xmalloc/xrealloc.
35865 * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
35866 using x2realloc rather than xmalloc/xrealloc. Also, fix a C
35867 conformance bug: the old code used a pointer after freeing the
35868 storage that it addressed.
35869 * lib/hash.c (hash_initialize): Simplify the code by using
35870 xalloc_oversized rather than doing it by hand.
35871 * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
35872 the buffer preserved. Use free and xmalloc instead.
35873 * lib/quotearg.c (quotearg_n_options): Likewise.
35874 Use a simpler test for size overflow. Don't use xalloc_oversized
35875 because unsigned int might be wider than size_t (!); this suggests
35876 that we should switch from unsigned int to size_t for slot numbers.
35878 2003-10-28 Paul Eggert <eggert@twinsun.com>
35880 * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
35881 GNU/KNetBSD. These implementations use glibc atop the FreeBSD and
35882 NetBSD kernels. Requested by Richard Stallman.
35884 2003-10-27 Paul Eggert <eggert@twinsun.com>
35886 * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
35887 to allocate the returned structure. Do not allocate a subarray,
35888 as x2nrealloc will do that.
35889 (add_exclude): Use x2nrealloc to reallocate ex->exclude,
35890 instead of xnrealloc.
35891 (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
35893 2003-10-27 Bruno Haible <bruno@clisp.org>
35895 * lib/stdbool_.h: Better support for BeOS.
35897 2003-10-26 Paul Eggert <eggert@twinsun.com>
35899 * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
35902 2003-10-26 Paul Eggert <eggert@twinsun.com>
35904 * lib/xalloc.h (xalloc_oversized): New static inline function, for
35905 callers that want to do their own size-overflow checking. Include
35906 <stdbool.h>, since xalloc_oversized returns bool.
35907 * lib/xalloc.c (array_size_overflow): Remove. All callers changed
35908 to use xalloc_oversized.
35910 Add two functions x2realloc, x2nrealloc, for programs that grow
35911 arrays dynamically by doubling their sizes.
35912 * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
35913 * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
35916 Port to C99 semantics for 'inline' of external functions.
35917 Bug reported by Bruno Haible.
35918 * lib/xmalloc.c (xnmalloc_inline): New static inline function,
35919 with the old contents of xnmalloc.
35920 (xnmalloc, xmalloc): Use it.
35921 (xnrealloc_inline): New static inline function,
35922 with the old contents of xnrealloc.
35923 (xnrealloc, xrealloc): Use it.
35925 * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
35928 2003-10-26 Karl Berry <karl@gnu.org>
35930 * config/srclist.txt (COPYING.DOC): no longer available from
35931 /gd/gnuorg; don't know where the ultimate source is.
35933 2003-10-25 Paul Eggert <eggert@twinsun.com>
35935 Fix several address-calculation bugs in the hash modules,
35936 plus some minor code cleanup.
35938 * lib/hash.h: Include <stdbool.h>, for bool.
35939 * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
35940 * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
35941 hash_get_n_entries, hash_get_max_bucket_length,
35942 hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
35943 hash_rehash): Use size_t rather than unsigned.
35944 * lib/hash.c (struct hash_table, hash_get_n_buckets,
35945 hash_get_n_buckets_used, hash_get_n_entries,
35946 hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
35947 hash_get_entries, hash_do_for_each, hash_string, is_prime,
35948 next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
35950 (SIZE_MAX): Define if not defined.
35951 (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
35952 hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
35954 Use const * when possible.
35955 (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
35956 (check_tuning): Fix bug: if tuning parameters were very close to
35957 0 or 1, rounding errors could have caused subscript violations.
35958 (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
35959 (hash_initialize): Add 'fail:' label
35960 to free table and return NULL, and use it to simplify code.
35961 Use calloc rather than clearing the storage ourself.
35962 (hash_initialize, hash_rehash): Check for arithmetic overflow in
35963 buffer size calculations.
35964 * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
35965 Include <stddef.h>, for size_t.
35966 * lib/hash-pjw.c (hash_pjw): Likewise.
35967 Switch to method described by Bruno Haible.
35968 Include <limits.h>, for CHAR_BIT.
35969 (SIZE_BITS): New macro.
35971 2003-10-23 Paul Eggert <eggert@twinsun.com>
35973 * m4/getline.m4 (AM_FUNC_GETLINE):
35974 Don't include getndelim2.o twice into LIBOBJS; this breaks on some
35975 hosts. Problem reported by Derek Robert Price in
35976 <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
35977 This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
35978 * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
35980 2003-10-21 Paul Eggert <eggert@twinsun.com>
35982 * lib/getndelim2.c (getndelim2): When size calculation overflows,
35983 ceiling the allocation at NMAX bytes rather than silently
35984 discarding input bytes before NMAX is reached. This makes
35985 a difference only if NMAX exceeds SIZE_MAX / 2.
35987 * lib/obstack.c: Merge from glibc.
35988 [defined _LIBC]: Include <obstack.h>, not "obstack.h".
35989 Add libc_hidden_def (_obstack_newchunk).
35990 (_obstack_free) [! defined _LIBC]: Remove.
35991 [defined _LIBC]: Make a strong alias from obstack_free, rather than
35992 a clone of the function body.
35993 (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
35994 [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
35996 * lib/obstack.h: Indenting cleanup, to make it easier to merge with
35998 (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
36001 * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
36002 (obstack_ptr_grow_fast, obstack_int_grow_fast):
36003 Don't use lvalue casts, as GCC plans to remove support for them
36004 in GCC 3.5. Reported by Joseph S. Myers. This bug
36005 was also present in the non-GCC version, indicating that this
36006 code had always been buggy and had never been widely used.
36007 (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
36008 Use the fast variant of each macro, rather than copying the
36009 definiens of the fast variant; that way, we'll be more likely to
36010 catch future bugs in the fast variants.
36012 2003-10-20 Bruno Haible <bruno@clisp.org>
36014 * modules/wait-process: New file.
36015 * MODULES.html.sh (func_all_modules): Add wait-process.
36017 2003-10-20 Bruno Haible <bruno@clisp.org>
36019 * m4/wait-process.m4: New file.
36021 2003-10-20 Bruno Haible <bruno@clisp.org>
36023 * lib/wait-process.h: New file, from GNU gettext.
36024 * lib/wait-process.c: New file, from GNU gettext.
36026 2003-10-19 Jim Meyering <jim@meyering.net>
36028 * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
36031 2003-10-18 Karl Berry <karl@gnu.org>
36033 * config/config.guess: update from config.
36035 2003-10-16 Paul Eggert <eggert@twinsun.com>
36037 * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
36038 (getgroups): First arg is int, not size_t.
36039 Don't let 'free' mangle errno.
36041 2003-10-16 Paul Eggert <eggert@twinsun.com>
36043 * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
36045 2003-10-16 Karl Berry <karl@gnu.org>
36047 * config/config.{guess,sub}: update from config.
36049 2003-10-16 Jim Meyering <jim@meyering.net>
36051 * lib/xmalloc.c: Include <string.h>, for declarations of memset and
36054 2003-10-15 Paul Eggert <eggert@twinsun.com>
36056 * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
36057 (SIZE_MAX): Remove.
36058 (new_exclude, add_exclude_file): Initial size no longer needs to
36060 (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
36061 our own address arithmetic overflow checking.
36063 * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
36064 (fnmatch): Do not alloca more than 2000 wide characters;
36065 instead, use malloc for large buffers.
36066 Check for address arithmetic overflow, and return -1
36067 with errno set to ENOMEM in that case.
36068 * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
36069 (NEW_PATTERN): Do not alloca more than 8000 bytes;
36070 instead, return -1. Check for address arithmetic overflow.
36072 2003-10-14 Paul Eggert <eggert@twinsun.com>
36074 Handle invalid suffixes and overflow independently, so that
36075 callers can treat them independently as needed. Fix some bugs in
36076 suffix handling, e.g., "100k@" was not diagnosed as an invalid
36077 suffix for a human-readable blocksize. The major caller-visible
36078 change is the addition of a new
36079 LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
36080 that both overflow and suffix chars were found.
36082 * lib/human.c (humblock): Don't check separately for invalid suffix
36083 char; that is xstrtoumax's job (now that its bug is fixed).
36084 * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
36085 INTMAX_MAX]: New macros.
36086 * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
36087 TYPE_MAXIMUM): New macros.
36088 (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
36089 (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
36090 if overflow occurs, as it's what __strtol does and it's more useful
36092 (__xstrtol): If __strtol reports some error other than ERANGE,
36093 reflect it to the caller as LONGINT_INVALID. If it reports
36094 ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
36095 | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
36096 * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
36098 (_STRTOL_ERROR): Handle it. Abort when given unknown error codes.
36099 * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
36100 * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
36101 [defined UINTMAX_MAX]: New macros.
36103 2003-10-14 Bruno Haible <bruno@clisp.org>
36105 * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
36107 2003-10-14 Bruno Haible <bruno@clisp.org>
36109 * m4/sig_atomic_t: New file, from GNU gettext.
36110 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
36112 2003-10-14 Bruno Haible <bruno@clisp.org>
36114 * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
36115 * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
36116 Also use volatile where needed.
36118 2003-10-12 Paul Eggert <eggert@twinsun.com>
36120 * modules/xalloc: Do not depend on 'exit'. Depend on 'stdbool'.
36121 Change maintainer from Bruno Haible to 'all'.
36123 2003-10-12 Paul Eggert <eggert@twinsun.com>
36125 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
36127 2003-10-12 Paul Eggert <eggert@twinsun.com>
36129 * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
36130 (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
36131 and define in terms of the other primitives.
36132 * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
36133 (SIZE_MAX): Define if not already defined.
36134 (array_size_overflow): New function.
36135 (xalloc_die): Abort instead of exiting if 'error' returns.
36136 (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
36137 (xmalloc, xrealloc): Use them.
36138 (xcalloc): Check for address arithmetic overflow.
36139 * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
36140 a bit faster than strcpy.
36142 2003-10-10 Simon Josefsson <jas@extundo.com>
36144 * modules/argp (Depends-on): Add restrict and strcase.
36146 2003-10-10 Simon Josefsson <jas@extundo.com>
36148 * m4/argp.m4: Add AC_C_INLINE.
36150 2003-10-08 Paul Eggert <eggert@twinsun.com>
36152 Merge getpass from libc, plus a few fixes.
36154 * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
36155 Include <stdbool.h>.
36156 Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
36157 __fsetlocking to empty.
36158 [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
36159 do include <bits/libc-lock.h>.
36160 Do not include <fcntl.h>; not needed.
36161 [_LIBC]: Include <wchar.h>.
36162 (NOTCANCEL_MODE): New macro.
36163 (flockfile, funlockfile) [_LIBC]: New macros.
36164 (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
36165 [!_LIBC]: New macros.
36166 (call_fclose): New function.
36167 (getpass): Use it. Save tty stream separately; this simplifies the
36168 code and makes it more reliable if stdin happens to equal stdout.
36169 Invoke __fsetlocking on tty.
36170 Handle thread cancellation if needed.
36171 Namespace cleanup (use __tcgetattr, __getline).
36172 Use bool for Booleans.
36173 [USE_IN_LIBIO]: Handle wide streams.
36174 [!_LIBC]: Unconditionally do the fseek, since we don't know what
36175 stream might go where.
36177 * lib/unlocked-io.h: Include <stdio.h>, so that the caller
36178 doesn't have to include <stdio.h> before us.
36179 (clearerr_unlocked, feof_unlocked, ferror_unlocked,
36180 fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
36181 fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
36182 putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
36183 if not declared, so that we can use getpass.c code from libc without
36185 (flockfile, ftrylockfile, funlockfile): New macros.
36187 2003-10-08 Paul Eggert <eggert@twinsun.com>
36189 * modules/getpass: Depend on stdbool.
36191 2003-10-08 Paul Eggert <eggert@twinsun.com>
36193 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
36195 2003-10-07 Karl Berry <karl@gnu.org>
36197 * config/config.{guess,sub}: update from config.
36199 2003-10-06 Jim Meyering <jim@meyering.net>
36200 Bruno Haible <bruno@clisp.org>
36202 This lets translators provide better translations for the
36203 "Written by ..." part of --version output.
36204 * lib/version-etc.h: Include stdarg.h.
36205 (version_etc_copyright): Declare as readonly.
36206 (version_etc): Make this function variadic with a NULL-terminated list
36207 of author name strings.
36208 (version_etc_va): New declaration.
36209 * lib/version-etc.c: Include stdarg.h, stdlib.h.
36210 (version_etc_copyright): Declare as readonly.
36211 (version_etc_va): New function. Provide a different translatable string
36212 for each possible number of authors < 10. Abbreviate when there are 10
36214 (version_etc): Make this function variadic. Call version_etc_va.
36215 Suggestion from Gary V. Vaughan.
36217 * lib/long-options.h (parse_long_options): Change prototype: the
36218 authors string is moved to the end and becomes variadic.
36219 * lib/long-options.c: Include stdarg.h.
36220 (parse_long_options): Make this function variadic, too.
36221 Call version_etc_va, not version_etc.
36223 2003-10-06 Bruno Haible <bruno@clisp.org>
36225 * modules/version-etc-2: Remove file.
36226 * MODULES.html.sh (func_all_modules): Remove version-etc-2.
36228 2003-10-06 Bruno Haible <bruno@clisp.org>
36230 * modules/fatal-signal: New file.
36231 * MODULES.html.sh (func_all_modules): Add fatal-signal.
36233 2003-10-06 Bruno Haible <bruno@clisp.org>
36235 * m4/fatal-signal.m4: New file.
36236 * m4/signalblocking.m4: New file, from GNU gettext.
36238 2003-10-06 Bruno Haible <bruno@clisp.org>
36240 * lib/version-etc-2.h: Remove file.
36241 * lib/version-etc-2.c: Remove file.
36243 2003-10-06 Bruno Haible <bruno@clisp.org>
36245 * lib/fatal-signal.h: New file, from GNU gettext.
36246 * lib/fatal-signal.c: New file, from GNU gettext.
36248 2003-10-05 Paul Eggert <eggert@twinsun.com>
36250 * README: Rework advice for preventing empty .o files.
36251 Don't recommend ELIDE constructs. Recommend <stddef.h>,
36254 2003-10-04 Karl Berry <karl@gnu.org>
36256 * lib/argp*: update from libc.
36258 2003-10-04 Karl Berry <karl@gnu.org>
36260 * config/config.{guess,sub}: update from config.
36262 2003-10-02 Bruno Haible <bruno@clisp.org>
36264 * modules/lchown (Include): Add lchown.h.
36265 * modules/time_r (Include): Use "..." syntax.
36266 * modules/xgetdomainname (Include): Add xgetdomainname.h.
36268 2003-10-01 Simon Josefsson <jas@extundo.com>
36270 * MODULES.html.sh (func_all_modules): Move gethostname from section
36271 'based on' to section 'lacking' POSIX:2001.
36273 2003-10-01 Larry Jones <lawrence.jones@eds.com>
36275 * lib/getpass.c (getpass): Use a no-op fseek when switching from input
36276 to output mode on the same stream.
36278 2003-09-29 Paul Eggert <eggert@twinsun.com>
36280 * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
36281 Fix arg typo in previous patch.
36283 2003-09-28 Jim Meyering <jim@meyering.net>
36285 * lib/error.c: Correct cpp indentation.
36287 2003-09-27 Paul Eggert <eggert@twinsun.com>
36289 * modules/free: New file.
36291 2003-09-27 Paul Eggert <eggert@twinsun.com>
36293 * m4/free.m4: New file.
36295 2003-09-27 Paul Eggert <eggert@twinsun.com>
36297 * lib/minmax.h (MIN, MAX)
36298 [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
36299 Omit the special code that used __typeof__, since we worry that
36300 it could be more trouble than it's worth. See:
36301 http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
36302 http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
36304 * lib/free.c: New file.
36306 2003-09-27 Oskar Liljeblad <oskar@osk.mine.nu>
36308 Trivial fixes to Makefile.am parts of module listings.
36309 * modules/strstr: Append strstr.h to lib_SOURCES.
36310 * modules/strcase: Likewise, for strcase.h.
36312 2003-09-27 Karl Berry <karl@gnu.org>
36314 * config/mkinstalldirs: update from automake.
36316 2003-09-26 Paul Eggert <eggert@twinsun.com>
36318 * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
36319 (error_tail): Do not loop, reallocating temporary buffer, since
36320 the output cannot contain more wide characters than the input
36321 contains bytes, the size must be big enough already. This avoids
36322 one potential size overflow calculation. Check for size overflow
36323 when calculating temporary buffer size. Free temporary buffer
36324 when done, if it was allocated with malloc; this plugs a memory
36325 leak. Remove casts from void * to pointers, that are no longer
36326 needed now that we're assuming C89 or better.
36328 Merge error changes from glibc.
36330 * lib/error.c, error.h: Update copyright notice header to match glibc.
36331 * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
36332 (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
36333 Disable cancellation while printing error.
36334 * lib/error.h: Prepend __ to parameter names.
36336 2003-09-26 Jim Meyering <jim@meyering.net>
36338 * lib/error.c (error_tail): Move some declarations
36339 into inner scope where the local variables are used.
36341 2003-09-26 Bruno Haible <bruno@clisp.org>
36343 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
36345 Don't define stpncpy through config.h; it's now done through stpncpy.h.
36347 2003-09-26 Bruno Haible <bruno@clisp.org>
36349 * lib/stpncpy.h (gnu_stpncpy): New declaration.
36350 (stpncpy): Define as alias for gnu_stpncpy.
36351 * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
36353 2003-09-25 Simon Josefsson <jas@extundo.com>
36355 * lib/xgetdomainname.h: New file.
36356 * lib/xgetdomainname.c: New file.
36358 2003-09-25 Simon Josefsson <jas@extundo.com>
36359 Bruno Haible <bruno@clisp.org>
36361 * modules/getdomainname: New file.
36362 * modules/xgetdomainname: New file.
36363 * MODULES.html.sh (func_all_modules): Add getdomainname,
36366 2003-09-25 Simon Josefsson <jas@extundo.com>
36367 Bruno Haible <bruno@clisp.org>
36369 * m4/getdomainname.m4: New file.
36371 2003-09-25 Simon Josefsson <jas@extundo.com>
36372 Bruno Haible <bruno@clisp.org>
36374 * lib/getdomainname.h: New file.
36375 * lib/getdomainname.c: New file.
36377 2003-09-25 Karl Berry <karl@gnu.org>
36379 * lib/argp-fmtstream.c, argp-help.c: update from libc.
36381 2003-09-25 Karl Berry <karl@gnu.org>
36383 * config/install-sh: update from automake.
36385 2003-09-25 Bruno Haible <bruno@clisp.org>
36387 * modules/version-etc-2: New file, from modules/version-etc with
36389 * MODULES.html.sh (func_all_modules): Add version-etc-2.
36391 2003-09-25 Bruno Haible <bruno@clisp.org>
36393 * lib/version-etc-2.h: New file, from version-etc.h with modifications.
36394 * lib/version-etc-2.c: New file, from version-etc.c with modifications.
36396 2003-09-24 Simon Josefsson <jas@extundo.com>
36398 * modules/xgethostname: Add xgethostname.h.
36400 2003-09-24 Paul Eggert <eggert@twinsun.com>
36402 * lib/linebuffer.c (freebuffer): Don't free the argument, just
36403 the buffer associated with the argument. Bug reported by
36406 2003-09-24 Paul Eggert <eggert@twinsun.com>
36408 * README: Document assumptions that 'int' is at least 32 bits
36409 wide, that integer arithmetic is 2's complement without overflow,
36410 that there are no holes in integer values, that adding sizes of
36411 two nonoverlapping objects can't overflow, and that all-bits-zero
36412 yields scalar zero. Fix spelling and capitalization typos.
36414 2003-09-19 Karl Berry <karl@gnu.org>
36416 * lib/argp.h: update from libc.
36418 2003-09-17 Paul Eggert <eggert@twinsun.com>
36420 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
36421 to avoid spurious warnings like "AC_RUN_IFELSE was called before
36422 gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
36424 2003-09-17 Paul Eggert <eggert@twinsun.com>
36426 * gnulib-tool: Use "test -h", not "test -L", for portability
36427 to Solaris 8 /bin/sh. (This bug is fixed in Solaris 9.)
36428 (tags_regexp): Remove, since \| doesn't conform to POSIX.
36429 (sed_extract_prog): Issue s commands one-by-one, rather than
36430 using \| in one s command.
36432 2003-09-16 Paul Eggert <eggert@twinsun.com>
36434 * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
36435 input error, instead of returning NULL the next time we are called
36436 (and therefore losing track of errno).
36438 2003-09-16 Bruno Haible <bruno@clisp.org>
36440 * gnulib-tool (func_create_testdir): Warn about duplicated
36443 2003-09-15 Paul Eggert <eggert@twinsun.com>
36445 * modules/argmatch, modules/fatal, modules/obstack,
36446 modules/xalloc, modules/xgethostname: Sort dependencies by
36447 importance, not alphabetically.
36449 2003-09-15 Paul Eggert <eggert@twinsun.com>
36451 * lib/getndelim2.c (getndelim2): Don't trash errno when a read
36452 fails, so that the caller gets the proper errno.
36454 * lib/readutmp.c (read_utmp): Likewise.
36455 Check for fstat error. Close stream and free storage
36458 2003-09-14 Karl Berry <karl@gnu.org>
36460 * config/srclist.txt (strdup.c): disable for c89 changes.
36462 2003-09-14 Jim Meyering <jim@meyering.net>
36464 * lib/getloadavg.c: Correct cpp indentation.
36465 * lib/strdup.c: Likewise.
36466 * lib/vasnprintf.c: Likewise.
36468 2003-09-14 Bruno Haible <bruno@clisp.org>
36470 * modules/fwriteerror: New file.
36471 * MODULES.html.sh (func_all_modules): Add fwriteerror.
36473 2003-09-14 Bruno Haible <bruno@clisp.org>
36475 * lib/fwriteerror.h: New file.
36476 * lib/fwriteerror.c: New file.
36478 2003-09-12 Paul Eggert <eggert@twinsun.com>
36480 * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
36481 modules/xgethostname, modules/xalloc: Depend on exit.
36483 2003-09-12 Paul Eggert <eggert@twinsun.com>
36485 * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
36487 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
36488 and AC_MINIX, too, so that their extensions are available.
36490 * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove. All uses removed.
36491 This macro has been superseded by gl_BACKUPFILE.
36493 More patches to assume C89 or better.
36495 * m4/error.m4 (gl_ERROR): Don't check for vprintf.
36497 * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
36499 * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
36500 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
36501 Include <string.h>, <stdlib.h> unconditionally.
36502 * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
36503 * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
36504 * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
36505 headers or for string.h.
36506 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
36509 * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
36511 * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
36512 * m4/userspec.m4 (gl_USERSPEC): Likewise.
36513 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
36514 * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
36515 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
36516 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
36518 (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
36519 * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
36520 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
36522 * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
36523 * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
36524 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
36527 2003-09-12 Paul Eggert <eggert@twinsun.com>
36529 * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
36530 * lib/obstack.c [!defined _LIBC]: Likewise.
36531 * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
36532 * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
36533 * lib/exitfail.c: Don't include stdlib.h; no longer needed.
36535 More changes to assume C89 or better.
36537 * lib/error.c (error_tail): Assume vprintf.
36539 * lib/argmatch.c (getenv): Remove decl.
36540 * lib/progreloc.c (get_full_program_name): Define via prototype.
36541 * lib/setenv.c (clearenv): Likewise.
36542 * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
36544 * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
36545 (malloc, memcpy): Remove decls.
36546 * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
36547 (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
36548 Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
36549 (memcpy): Remove macro.
36550 (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
36551 (__P): Remove. All uses removed.
36552 (PTR): Remove. All uses changed to void *.
36553 (CHAR_BIT, NULL): Remove.
36554 (spaces, zeros, memset_space, memset_zero)
36555 [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
36557 (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
36558 (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
36559 Define with prototype.
36560 Remove now-unnecessary prototype decl.
36561 (extra_args_spec): Assume ANSI C. All uses changed.
36562 (extra_args_spec_iso): Remove.
36563 (my_strftime, emacs_strftimeu): Define via prototype.
36564 * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
36566 (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
36567 * lib/strtoimax.c: Include <stdlib.h> unconditionally.
36568 (strtoul, strtol): Remove decls.
36569 * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
36571 Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
36572 (LOCALE_PARAM_DECL): Remove. All uses changed to LOCALE_PARAM_PROTO.
36573 (LOCALE_PARAM_PROTO): New macro.
36574 (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
36575 (INTERNAL (strtol), strtol): Define with a prototype.
36576 (PARAMS): Remove. All uses removed.
36577 * lib/tempname.c: Include <string.h> unconditionally.
36578 * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
36579 * lib/xgethostname.c (main): Define with a prototype.
36580 * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
36581 Include <stdlib.h> unconditionally.
36582 (calloc, malloc, realloc, free): Remove decls.
36583 * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
36584 Include <stdlib.h> unconditionally. Sort include file names.
36586 (xstrtod): Define with a prototype.
36587 * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
36588 (strtol, strtoul): Remove decls.
36590 2003-09-11 Paul Eggert <eggert@twinsun.com>
36592 More patches to assume C89 or better.
36593 * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
36594 * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
36595 string.h, memchr, STDC_HEADERS.
36597 2003-09-11 Paul Eggert <eggert@twinsun.com>
36599 * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
36600 Include <stdlib.h>, <string.h> unconditionally.
36601 Remove now-unnecessary cast to char *.
36602 * lib/strnlen.c: Include <string.h> unconditionally.
36603 * lib/yesno.c (yesno): Define with a prototype.
36605 2003-09-11 Bruno Haible <bruno@clisp.org>
36607 * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
36609 2003-09-10 Jim Meyering <jim@meyering.net>
36611 * lib/error.c: Correct indentation of cpp directives.
36613 2003-09-10 Bruno Haible <bruno@clisp.org>
36615 * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
36616 * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
36617 * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
36618 * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
36619 * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
36620 <stdlib.h> and <string.h> checks.
36621 * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
36622 * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
36624 2003-09-10 Bruno Haible <bruno@clisp.org>
36626 * lib/strcspn.c: Include <string.h> unconditionally.
36627 * lib/strpbrk.c: Include <string.h> unconditionally.
36628 * lib/strstr.c: Include <string.h> unconditionally.
36629 * lib/unicodeio.c: Include <string.h> unconditionally.
36630 * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
36631 * lib/unsetenv.c: Likewise.
36632 * lib/xreadlink.c: Include <stdlib.h> unconditionally.
36633 * lib/yesno.c: Include <stdlib.h> unconditionally.
36634 (rpmatch): Add prototype.
36636 2003-09-09 Paul Eggert <eggert@twinsun.com>
36638 More patches to assume C89 or better.
36639 * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
36640 * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
36641 * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
36643 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
36645 * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
36647 * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
36649 * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
36650 * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
36651 * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
36653 * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
36654 * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
36656 * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
36658 * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
36659 * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
36660 * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
36661 * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
36662 * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
36663 * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
36665 * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
36666 * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
36667 * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
36668 C headers, or for string.h.
36669 * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
36670 (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
36671 * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
36672 headers, memory.h, stdlib.h, string.h, strings.h.
36673 * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
36674 * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
36675 * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
36677 * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
36678 headers, memory.h, string.h.
36679 * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
36680 * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
36682 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
36684 * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
36685 * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
36686 * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
36687 * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
36688 * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
36690 2003-09-09 Paul Eggert <eggert@twinsun.com>
36694 * lib/acosl.c (main): Use a prototype.
36695 * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
36698 * lib/getloadavg.c (getloadavg, main): Define via prototypes.
36700 * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
36701 (getopt, etopt_long, getopt_long_only, _getopt_internal)
36702 [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
36704 * lib/getopt.c (const): Remove macro.
36705 Include <string.h> unconditionally.
36706 (my_index): Remove; all uses changed to strchr.
36707 (strlen): Remove decl.
36708 (exchange): Remove forward decl; no longer needed.
36709 (exchange, _getopt_initialize, _getopt_internal, getopt, main):
36710 Define with prototype.
36711 * lib/getopt1.c (const): Remove macro.
36712 (getopt_long, getopt_long_only, main): Define with prototype.
36714 * lib/getugroups.c: Include <string.h> unconditionally.
36716 * lib/getusershell.c: Include <stdlib.h> unconditionally.
36717 (getusershell, setusershell, endusershell, readname, main):
36718 Define with prototypes.
36720 * lib/group-member.c: Include group-member.h first.
36721 Include <stdlib.h> unconditionally.
36723 * lib/hard-locale.c: Include hard-locale.h first.
36724 Include <stdlib.h>, <string.h> unconditionally.
36726 * lib/hash.c (free, malloc): Remove decls.
36727 Include <stdlib.h> unconditionally.
36729 * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
36730 (getenv): Do not declare.
36732 * lib/idcache.c: Include <string.h> unconditionally.
36734 * lib/long-options.c: Include long-options.h first, to test interface.
36735 Include <stdlib.h> unconditionally.
36737 * lib/makepath.c: Include makepath.h first, to test interface.
36738 Include <stdlib.h> and <string.h> unconditionally.
36740 * lib/linebuffer.c: Include <stdlib.h>.
36741 (free): Remove decl.
36743 * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
36744 stddef.h. rpl_malloc returns void *, not char *.
36745 * lib/realloc.c (rpl_realloc): Likewise. Also, define with a
36748 * lib/md5.h: Include <limits.h> unconditionally.
36749 (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
36750 (__P): Remove; all uses removed.
36751 * lib/md5.c: Include "md5.h" first.
36752 (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
36753 md5_buffer, md5_process_bytes, md5_process_block):
36754 Define with prototypes.
36755 * lib/sha.h (__P): Remove all uses. (It wasn't defined??)
36756 * lib/sha.c: Include "sha.h" first.
36757 Include <stdlib.h>, <string.h> unconditionally.
36759 * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
36760 * lib/memcmp.c (__ptr_t): Likewise.
36761 * lib/memrchr.c (__ptr_t): Likewise.
36762 * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
36763 Include <string.h> unconditionally.
36764 * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
36765 * lib/memchr.c: Include <stdlib.h> unconditionally.
36766 * lib/memchr.c (LONG_MAX): Remove.
36767 * lib/memrchr.c (LONG_MAX): Likewise.
36768 * lib/memchr.c (__memchr): Define via a prototype.
36769 * lib/memrchr.c (__memrchr): Likewise.
36770 * lib/memcmp.c (__P): Remove, and remove all uses.
36771 (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
36772 Remove forward decls; no longer needed.
36773 * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
36774 Use types required by C89 in prototype.
36776 * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
36777 * lib/savedir.c: Likewise.
36778 * lib/mkdir.c (free): Remove decl.
36779 * lib/rmdir.c (rmdir): Define with a prototype.
36780 * lib/savedir.c: Include savedir.h first, to test interface.
36782 * lib/mktime.c (STDC_HEADERS): Remove.
36783 Include <stdlib.h>, <string.h> unconditionally.
36785 * lib/modechange.c: Include <stdlib.h> unconditionally.
36786 (malloc): Remove decl.
36788 * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
36789 (free): Remove decl.
36791 * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
36792 Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
36793 (This type really should be intptr_t, but that's a C99ism.)
36794 (_obstack_memcpy): Remove: all uses changed to memcpy.
36795 Include <string.h> unconditionally.
36796 (struct obstack): Assume __STDC__ for types of members
36797 chunkfun, freefun, extra_arg.
36798 (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
36799 _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
36800 obstack_begin, obstack_specify_allocation,
36801 obstack_specify_allocation_with_arg, obstack_chunkfun,
36802 obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
36803 Remove unprototyped decls and the macros that use them.
36804 * lib/obstack.c (POINTER): Remove. All uses changed to void *.
36805 (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
36806 _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
36807 (defined __STDC__ && __STDC__)]:
36808 Remove nonprototyped code.
36809 Include <stdlib.h> unconditionally.
36810 (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
36811 _obstack_allocated_p, _obstack_free, obstack_free,
36812 _obstack_memory_used, print_and_abort):
36813 Define using prototypes.
36814 (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
36815 obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
36816 obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
36817 obstack_next_free, obstack_object_size, obstack_room) [0]:
36818 Remove unused, unprototyped code.
36820 * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
36822 * lib/physmem.c (physmem_total, physmem_available, main): Define
36825 * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
36826 (main): Define with a prototype.
36828 * lib/posixver.c (getenv): Remove decl.
36830 * lib/putenv.c (malloc): Returns void *, not char *.
36831 Include <string.h> unconditionally.
36832 (strchr, memcpy, NULL): Do not define.
36834 * lib/readtokens.c: Include readtokens.h first, to test interface.
36835 Include <stdlib.h>, <string.h> unconditionally.
36836 (init_tokenbuffer): Define with a prototype.
36838 * lib/regex.c (PARAMS): Remove. All uses removed.
36839 All uses of _RE_ARGS removed, too.
36840 Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
36842 (bzero): Assume memset exists.
36843 (memcmp, memcpy, NULL): Remove.
36844 (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
36845 char, or assignments to local vars of type signed char.
36846 (init_syntax_once, PREFIX(extract_number_and_incr),
36847 PREFIX(print_partial_compiled_pattern),
36848 PREFIX(print_compiled_pattern), PREFIX(print_double_string),
36849 convert_mbs_to_wcs, print_fastmap, re_set_syntax,
36850 PREFIX(regex_grow_registers), PREFIX(regex_compile),
36851 PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
36852 PREFIX(insert_op2), PREFIX(at_begline_loc_p),
36853 PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
36854 wcs_compile_range, byte_compile_range, truncate_wchar,
36855 PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
36856 re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
36857 count_mbs_length, wcs_re_match_2_internal,
36858 byte_re_match_2_internal, PREFIX(group_match_null_string_p),
36859 PREFIX(alt_match_null_string_p),
36860 PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
36861 re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
36862 regfree, PREFIX(extract_number)): Define with prototype. Remove
36863 now-unnecessary declaration, if any.
36864 (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
36866 Remove now-unnecessary casts among pointer types.
36867 * lib/regex.h (_RE_ARGS): Remove. All uses removed.
36869 * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
36870 (free): Remove decl.
36872 * lib/rpmatch.c: Include <stdlib.h> unconditionally.
36874 * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
36875 (free): Remove decl.
36877 * lib/save-cwd.c: Include <stdlib.h> unconditionally.
36878 * lib/xgetcwd.c: Likewise.
36880 * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
36881 (free): Remove decl.
36883 * lib/strchrnul.c (strchrnul): Define with a prototype.
36884 Fix bug: c_in was not converted to char before searching.
36886 The following changes are not K&R related:
36888 * lib/group-member.h: Include <sys/types.h>, so that this file is
36890 * lib/makepath.h: Likewise.
36892 * lib/getusershell.c (readname, default_index, line_size, readname):
36893 Use size_t, not int, for sizes.
36894 (readname): If the size overflows, report an error instead of
36897 2003-09-09 Paul Eggert <eggert@twinsun.com>
36899 * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
36902 2003-09-09 Paul Eggert <eggert@twinsun.com>
36904 * README: New section: portability guidelines.
36906 2003-09-09 Derek Robert Price <derek@ximbiot.com>
36908 * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
36911 2003-09-09 Derek Robert Price <derek@ximbiot.com>
36913 * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
36915 2003-09-08 Paul Eggert <eggert@twinsun.com>
36917 Assume C89 or better; remove K&R cruft.
36918 A few of these changes were first proposed by Derek Robert Price
36919 in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
36921 * lib/addext.c: Include <string.h> unconditionally.
36922 * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
36923 Don't declare getenv or malloc.
36925 * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
36926 (POINTER_TYPE, pointer): Remove; all uses changed to void *.
36928 (find_stack_direction, alloca): Use prototypes.
36930 * lib/atexit.c (atexit): Define using a prototype.
36932 * lib/basename.c, dirname.c, stripslash.c:
36933 Include <string.h> unconditionally.
36935 * lib/bcopy.c: Include <stddef.h>.
36936 (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
36938 * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
36940 * lib/error.h (error, error_at_line, error_print_progname)
36941 [! (defined (__STDC__) && __STDC__)]: Remove decls.
36942 * lib/error.c: Include error.h first, to check interface.
36943 Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
36944 (VA_START): Remove; all uses changeed to va_start.
36945 (exit, strerror): Remove decls.
36946 (error_print_progname): Prototype uncondionally.
36947 Don't include <errno.h>; no longer needed.
36948 (private_strerror): Remove.
36949 (error_tail): Always define.
36950 (error, error_at_line): Assume C89 or better; always use prototypes.
36951 * lib/fatal.c: Include "fatal.h" first, to test interface.
36952 Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
36953 (VA_START): Remove; all uses changed to va_start.
36954 [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
36956 (exit): Remove decl.
36957 (fatal): Prototype unconditionally. Assume va_start works.
36958 Abort at end, to pacify gcc.
36960 * lib/euidaccess.c (main): Define with a prototype.
36962 * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
36964 * lib/exitfail.c: Include <stdlib.h> unconditionally.
36966 * lib/fnmatch_.h (__P): Remove. All uses changed to assume
36968 * lib/fnmatch.c: Include fnmatch.h first, to test interface.
36969 Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
36970 (getenv): Remove decl.
36971 (fnmatch): Define using a prototype.
36972 * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
36973 (FCT): Define using a prototype.
36975 * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
36977 * lib/gethostname.c: Include <stddef.h>.
36978 (gethostname): Define with prototype. Length is size_t, not int.
36980 2003-09-08 Paul Eggert <eggert@twinsun.com>
36982 Assume C89 or better; remove K&R cruft.
36983 * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
36984 * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
36985 string.h, getenv, malloc.
36986 * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
36988 * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
36989 * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
36990 do not check for strerror.
36991 * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
36992 * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
36993 * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
36994 do not check for doprnt or vprintf.
36995 * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove. All uses removed.
36996 * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
36998 2003-09-08 Paul Eggert <eggert@twinsun.com>
37000 * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
37001 getversion.c should have been removed then, but was accidentally
37004 * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
37005 (utime_null): Fix typo: 'st' was sometimes called 'sb'.
37007 2003-09-08 Karl Berry <karl@gnu.org>
37009 * config/config.sub, config.guess, srclistvars.sh: update from savannah
37010 config, forget about prep.
37012 * config/depcomp, missing: update from automake.
37014 2003-09-07 Paul Eggert <eggert@twinsun.com>
37016 * modules/time_r: Depend on 'restrict'. Fix from Simon Josefsson in
37017 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
37019 2003-09-07 Paul Eggert <eggert@twinsun.com>
37021 * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
37022 copy_tm_result. Bug reported by Simon Josefsson in
37023 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
37025 2003-09-06 Paul Eggert <eggert@twinsun.com>
37027 * m4/time_r.m4: New file.
37028 * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
37029 * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
37030 is. Check for timegm declaration.
37031 (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
37032 Do not check for gmtime_r.
37033 Replace mktime if __mktime_internal does not exist and if mktime
37034 hasn't been replaced already.
37036 2003-09-06 Paul Eggert <eggert@twinsun.com>
37038 * lib/time_r.c, lib/time_r.h: New files.
37040 * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
37042 (__localtime_r) [!defined _LIBC]: New macro. Include <time_r.h>.
37043 (__mktime_internal) [!defined _LIBC]: Now extern, not static.
37045 * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
37047 (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
37048 (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
37049 Include <time_r.h>.
37051 * lib/timegm.c: Switch to glibc implementation, with the following
37053 [defined HAVE_CONFIG_H]: Include <config.h>.
37054 [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
37055 (__mktime_internal) [!defined _LIBC]: New decl.
37056 (__gmtime_r) [!defined _LIBC]: New macro and function.
37057 (timegm): Use a prototype, since gnulib assumes C89.
37058 Do not bother declaring tmp to be const, as it's not really usefu.
37059 * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
37060 (timegm): Declare only if HAVE_DECL_TIMEGM.
37062 2003-09-06 Paul Eggert <eggert@twinsun.com>
37064 * MODULES.html.sh (func_all_modules): Add time_r.
37065 * modules/time_r: New file.
37066 * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
37067 * modules/timegm: Depend on mktime. Change maintainer to "all, glibc".
37069 2003-09-03 Paul Eggert <eggert@twinsun.com>
37071 * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
37072 Bug reported by Lute Kamstra in
37073 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
37075 * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
37076 "yesterday", "today", and "now" rather than tMINUTE_UNIT. Of
37077 course with correspondingly smaller numbers for tomorrow and
37078 yesterday. From Tadayoshi Funaba. Originally installed into
37079 sh-utils on 1999-08-07, but the patch got lost (I guess during the
37082 2003-08-31 Simon Josefsson <jas@extundo.com>
37084 * modules/timegm: New file.
37085 * MODULES.html.sh (func_all_modules): Add timegm.
37087 2003-08-31 Simon Josefsson <jas@extundo.com>
37089 * m4/timegm.m4: New file.
37091 2003-08-31 Simon Josefsson <jas@extundo.com>
37093 * lib/timegm.h: New file.
37094 * lib/timegm.c: New file. Based on
37095 wget-1.8.2/src/http.c:mktime_from_utc.
37097 2003-08-31 Karl Berry <karl@gnu.org>
37099 * lib/argp.h: update from libc.
37101 2003-08-28 Bruno Haible <bruno@clisp.org>
37103 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
37104 This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
37105 followed by '#define fnmatch fnmatch_posix' gives an error.
37107 2003-08-28 Bruno Haible <bruno@clisp.org>
37109 * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
37110 warning on QNX, which defines O_BINARY to 000000.
37112 2003-08-27 Jim Meyering <jim@meyering.net>
37114 * m4/mkstemp.m4: Require that the system mkstemp be able to create
37115 70 temporary files, not just 30. Tru64 V4.0F's mkstemp function
37116 would fail after 32. Reported by Danny Levinson. Details here:
37117 http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
37119 2003-08-24 Bruno Haible <bruno@clisp.org>
37121 * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
37122 MSVC7 <stdio.h> is included later.
37124 2003-08-22 Simon Josefsson <jas@extundo.com>
37126 * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
37128 2003-08-20 Karl Berry <karl@gnu.org>
37130 * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
37132 2003-08-20 Bruno Haible <bruno@clisp.org>
37134 * modules/progname: New file.
37135 * MODULES.html.sh (func_all_modules): Add progname.
37137 2003-08-20 Bruno Haible <bruno@clisp.org>
37139 * lib/progname.h: New file, from GNU gettext.
37140 * lib/progname.c: New file, from GNU gettext.
37141 * lib/progreloc.c: New file, from GNU gettext.
37143 2003-08-19 Jim Meyering <jim@meyering.net>
37145 * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
37146 http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
37148 2003-08-19 Bruno Haible <bruno@clisp.org>
37150 * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
37153 2003-08-19 Bruno Haible <bruno@clisp.org>
37155 * lib/xstrdup.c: Assume <string.h> exists.
37157 2003-08-18 Paul Eggert <eggert@twinsun.com>
37159 * modules/stdbool: Add BUILT_SOURCES. Prefer $@ to target name
37162 2003-08-18 Jim Meyering <jim@meyering.net>
37164 * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
37165 * m4/lib-ld.m4: Likewise.
37167 2003-08-18 Jim Meyering <jim@meyering.net>
37169 * lib/setenv.h: Indent nested cpp directive.
37170 * lib/vasnprintf.c: Remove trailing blanks.
37172 2003-08-17 Simon Josefsson <jas@extundo.com>
37174 * modules/xstrndup: New file.
37175 * MODULES.html.sh (func_all_modules): Add xstrndup.
37177 2003-08-17 Simon Josefsson <jas@extundo.com>
37179 * modules/argp: Fix autoconf macro name. Add more dependencies.
37181 2003-08-17 Simon Josefsson <jas@extundo.com>
37183 * m4/xstrndup.m4: New file.
37185 2003-08-17 Simon Josefsson <jas@extundo.com>
37187 * m4/argp.m4: New file.
37189 2003-08-17 Simon Josefsson <jas@extundo.com>
37190 Bruno Haible <bruno@clisp.org>
37192 * lib/xstrndup.h: New file.
37193 * lib/xstrndup.c: New file.
37195 2003-08-17 Bruno Haible <bruno@clisp.org>
37197 * modules/strndup (Files, Include): Add lib/strndup.h.
37199 2003-08-17 Bruno Haible <bruno@clisp.org>
37201 * modules/euidaccess (Files): Add lib/euidaccess.h.
37203 2003-08-17 Bruno Haible <bruno@clisp.org>
37205 * lib/strndup.h: New file.
37207 2003-08-17 Bruno Haible <bruno@clisp.org>
37209 * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
37210 like AC_GNU_SOURCE.
37211 * modules/extensions (configure.ac): Comment out the invocation of
37212 gl_USE_SYSTEM_EXTENSIONS.
37214 2003-08-16 Paul Eggert <eggert@twinsun.com>
37216 Merges from coreutils, etc.
37217 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
37218 error in gl_FUNC_MATCH. This fixes a bug I introduced on 2003-05-28.
37219 * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
37221 * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
37222 * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
37224 2003-08-16 Paul Eggert <eggert@twinsun.com>
37226 Document merge from coreutils.
37227 * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
37228 * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
37229 * modules/utime: Add m4/utimes-null.m4.
37231 2003-08-16 Paul Eggert <eggert@twinsun.com>
37233 * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
37234 space, undoing this 2003-08-12 change:
37235 <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
37237 2003-08-16 Paul Eggert <eggert@twinsun.com>
37239 * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
37240 strtoul.c from libc, undoing this 2003-08-12 change:
37241 <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
37243 2003-08-16 Jim Meyering <jim@meyering.net>
37245 Merges from coreutils.
37246 * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
37247 prefix. Adjust cache variables similarly. Create 500 rather than
37248 just 300 files, to exercise bug on Darwin6.5, too.
37249 * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
37251 * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
37252 AM_SYS_POSIX_TERMIOS.
37253 Reported by mkc@mathdogs.com.
37254 Also change use of $am_cv_sys_posix_termios
37255 to $ac_cv_sys_posix_termios. Reported by Andreas Schwab.
37256 * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
37257 and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
37258 * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
37259 in /proc/mounts until it finds one with matching device number. This
37260 is unnecessary when the FILE argument *is* a mount point. No stat call
37261 is necessary in that case. So, disable the statvfs-testing code on
37262 systems with GNU libc. Reported by Andrei Gaponenko via Tim Waugh
37263 as RedHat bug# 84846.
37264 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
37265 to 1MB, so as not to render systems with no stack size limit (e.g.,
37266 linux-2.2.x) unusable. Suggestion and code from Bruno Haible.
37267 Include <unistd.h>. On some systems,
37268 it is required for the definition of _SC_PAGESIZE.
37270 2003-08-16 Jim Meyering <jim@meyering.net>
37272 Merge from coreutils.
37273 * lib/xstrtoimax.c: #else #if -> #elif.
37274 * lib/xstrtoumax.c: Likewise.
37276 2003-08-16 Jim Meyering <jim@meyering.net>
37278 * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
37279 * m4/utimes.m4: Removed.
37280 * m4/utimes-null.m4: Renamed from utimes.m4.
37282 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
37283 to 1MB, so as not to render systems with no stack size limit (e.g.,
37284 linux-2.2.x) unusable. Suggestion and code from Bruno Haible.
37285 Include <unistd.h>. On some systems,
37286 it is required for the definition of _SC_PAGESIZE.
37288 2003-08-16 Jim Meyering <jim@meyering.net>
37289 and Paul Eggert <eggert@cs.ucla.edu>
37291 Merges from coreutils, etc.
37293 * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
37294 using the latest version from cvs. This avoids problems with #line
37295 directives using a vendor (Sun) compiler.
37296 (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
37297 Don't set GETGROUPS_LIB here; now it's
37298 done via getgroups.m4's wrapper function.
37299 AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
37300 rather than just in sh-util/configure.in, so that the
37301 now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
37303 Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
37304 AC_FUNC_GETLOADAVG where to find getloadavg.c.
37305 Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
37306 UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
37307 gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
37308 Remove code that is now done by the newly-required macros.
37309 Append $(EXEEXT) to DF_PROG.
37310 AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
37311 Do not invoke or require the following here,
37312 since prereq.m4 or some gnulib .m4 now does this for us:
37313 gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
37314 jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
37315 jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
37316 jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
37317 jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
37318 AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
37319 vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
37321 Do not replace the following functions, as this is now the job
37322 of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
37323 getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
37324 strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
37325 atexit getpass, strdup, getpagesize.
37327 Do not check for the following functions, as this is now the job
37328 of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
37329 getcwd, getmntinfo, resolvepath. But check for sysctl, setreuid,
37331 (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
37332 Check for sys/sysctl.h.
37333 (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
37334 jm_CHECK_TYPE_STRUCT_TIMESPEC. Invoke gt_TYPE_SSIZE_T instead
37335 of checking for ssize_t ourselves.
37337 * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
37338 Require every macro that gnulib/modules/* suggests for us.
37339 (jm_PREREQ_ADDEXT): New macro.
37340 (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
37341 Require jm_AC_TYPE_LONG_LONG instead of invoking it.
37343 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
37344 (gl_PHYSMEM): Use it.
37345 Also check for `table' function.
37346 Check for new headers and functions.
37347 Add check for sys/sysmp.h.
37348 With suggestions from Kaveh Ghazi.
37349 Ignore headers that are present but cannot be compiled. This
37350 avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
37353 2003-08-15 Paul Eggert <eggert@twinsun.com>
37355 Document merge from coreutils.
37356 * modules/userspec: Depend on posixver.
37357 * modules/strftime: Depend on tzset.
37359 2003-08-15 Paul Eggert <eggert@twinsun.com>
37361 * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
37362 rather than tab, after '#' in shell-script copyright notices.
37363 Suggested by Bruno Haible.
37365 2003-08-15 Paul Eggert <eggert@twinsun.com>
37367 * config/srclist-update: Use three spaces, rather than tab, after '#'
37368 in shell-script copyright notices. Suggested by Bruno Haible.
37369 Remove unnecessary parenthesization in regular expression.
37371 2003-08-15 Jim Meyering <jim@meyering.net>
37373 Merge from coreutils.
37374 * lib/xgethostname.c: Include <stdlib.h>.
37375 (xghostname): Don't exit for anything other than memory-related
37376 failure; just return NULL.
37377 * lib/userspec.c: Include "posixver.h".
37378 (parse_user_spec): Accept `.' as a separator only
37379 in pre-POSIX-200112 mode.
37380 * lib/strtoimax.c: Use #elif rather than #else #if.
37381 * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
37382 Remove function, now that we can rely on a working tzset function.
37383 [!_LIBC]: Ensure that the required autoconf test has been run.
37384 [!defined _NL_CURRENT && HAVE_STRFTIME]:
37385 Use underlying_strftime for %r.
37386 * lib/sha.c: Merge in some clean-up and optimization changes from
37388 * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
37389 Ensure that it is a multiple of 64.
37390 Rearrange loop exit tests so as to avoid performing an
37391 additional fread after encountering an error or EOF.
37392 * lib/realloc.c: Update copyright date.
37394 2003-08-15 Jim Meyering <jim@meyering.net>
37395 and Paul Eggert <eggert@twinsun.com>
37397 Merge from coreutils.
37398 * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
37399 member but strut utmpx does not. Needed for AIX 4.3.3.
37400 (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
37402 2003-08-15 Jim Meyering <jim@meyering.net>
37403 and Paul Eggert <eggert@cs.ucla.edu>
37405 Merges from coreutils, etc.
37406 * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
37407 Require gl_FUNC_TZSET_CLOBBER.
37408 * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
37409 ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
37412 2003-08-14 Paul Eggert <eggert@twinsun.com>
37414 Help the merge from coreutils.
37415 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
37416 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
37417 * m4/tzset.m4: Use it too.
37419 2003-08-14 Paul Eggert <eggert@twinsun.com>
37421 * modules/tzset: New file.
37423 2003-08-14 Jim Meyering <jim@meyering.net>
37425 Merges from coreutils.
37426 * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
37427 variable names, rather than @FNMATCH_H@.
37428 * modules/alloca: Likewise for $(ALLOCA_H).
37430 * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
37431 the three copies of the literal target, `fnmatch.h'.
37432 * modules/alloca (alloca.h): Likewise.
37434 2003-08-14 Jim Meyering <jim@meyering.net>
37436 Merge from coreutils.
37437 * m4/tzset.m4: New file.
37438 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
37439 MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
37440 otherwise, AIX 5.1 systems would end up using the latter.
37441 MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
37442 whether a file system is remote doesn't work 2) the MOUNTED_VMOUNT
37443 code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
37444 code reports merely /MOUNT_POINT. Reported by Mike Jetzer.
37446 2003-08-14 Jim Meyering <jim@meyering.net>
37448 Merge from coreutils.
37449 * lib/obstack.h: Whitespace changes.
37450 * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
37451 and xcalloc return values.
37452 (read_filesystem_list) [MOUNTED_GETFSSTAT]:
37453 Use MNT_NOWAIT, rather than MNT_WAIT. Otherwise, `df DIR' could
37454 hang on OSF/1 5.1 for DIR on both local and remote file systems.
37455 Reported by (and fix confirmed by) Nelson H. F. Beebe.
37456 (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
37458 Use mntctl's return value to drive the entry-processing loop, since
37459 we can't rely on the value of the vmt_length member in the last
37460 entry. On some systems doing so could result in exhausting
37461 virtual memory. Based in part on a patch from Mike Jetzer.
37463 2003-08-14 Jim Meyering <jim@meyering.net>
37464 and Paul Eggert <eggert@twinsun.com>
37466 Merges from coreutils, plus other fixes.
37467 * lib/physmem.c: Merge in portability changes from gcc/libiberty
37468 to support AIX, IRIX, Tru64, and Windows. See the ChangeLog there
37469 for credits and details. Thanks to Kaveh Ghazi for helping
37470 to keep these files in sync.
37471 (ARRAY_SIZE): Define it.
37472 (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
37473 * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
37474 (memcasecmp): Don't assume size_t fits in unsigned int.
37475 Remove casts and duplicate code.
37476 * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
37477 (memcpy): Remove definition.
37478 Merge in some clean-up and optimization changes from glibc.
37479 [BLOCKSIZE]: Move definition to top of file.
37480 Ensure that it is a multiple of 64.
37481 Rearrange loop exit tests so as to avoid performing an
37482 additional fread after encountering an error or EOF.
37483 * lib/md5.h (md5_uintptr): Define.
37484 * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
37485 return to the initial working directory. Preserve errno
37487 * lib/idcache.c: Include "xalloc.h".
37488 (xmalloc, xrealloc): Remove decls.
37489 (getuser): Remove casts no longer required in C89.
37490 * lib/human.c: Include stdio.h, for sprintf.
37491 * lib/group-member.c: Include "xalloc.h".
37492 (xmalloc, xrealloc): Remove decls.
37493 (get_group_info): Remove casts no longer required in C89.
37494 * lib/getusershell.c (readname): Remove casts no longer required in
37496 * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
37497 * lib/getline.c: Whitespace fix, from coreutils.
37499 2003-08-13 Paul Eggert <eggert@twinsun.com>
37501 * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
37504 * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
37505 lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
37506 Undo previous (whitespace-only) change.
37508 2003-08-13 Paul Eggert <eggert@twinsun.com>
37510 * lib/exclude.c: Include <ctype.h>
37511 (IN_CTYPE_DOMAIN): New macro.
37512 (is_space): New fn.
37513 (add_exclude_file): If LINE_END is a space, ignore trailing spaces
37516 * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
37517 Undo previous (whitespace-only) change.
37519 2003-08-13 Paul Eggert <eggert@twinsun.com>
37521 * config/srclist-update: Change update back to the old behavior,
37522 leaving whitespace alone. Use one 'sed' command rather than a
37524 (fixlicense): Now a variable, not a function.
37525 (remove_trailing_blanks): Remove.
37526 (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
37527 * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
37528 Undo previous (whitespace-only) change.
37530 2003-08-12 Paul Eggert <eggert@twinsun.com>
37532 Merge from coreutils.
37533 * modules/euidaccess: Add lib_SOURCES, include for new
37536 2003-08-12 Paul Eggert <eggert@twinsun.com>
37538 * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
37539 lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
37540 Normalize leading white space and remove trailing white space.
37542 Merge from coreutils
37543 * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
37545 * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
37546 0.12.1. These files are now being upgraded automatically by
37547 ../config/srclist-update.
37549 2003-08-12 Paul Eggert <eggert@twinsun.com>
37551 * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
37552 Normalize leading white space and remove trailing white space.
37553 * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
37554 notice, as per ../config/srclist-update.
37556 Merge from coreutils.
37557 * lib/euidaccess.h: New file.
37558 * lib/euidaccess.c: Include it.
37559 * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
37560 vasnprintf.h, vasprintf.h. Remove strdup.c, gettext.h.
37561 * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
37563 2003-08-12 Paul Eggert <eggert@twinsun.com>
37565 * config/srclist-update: Add copyright notice.
37566 (remove_id_lines, remove_trailing_blanks): New constants.
37567 (fixfile): Use them to normalize spacing a bit in copied files.
37568 * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
37569 Normalize leading white space and remove trailing white space.
37571 * config/texinfo.tex: Sync with texinfo.
37573 * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
37574 strtoul.c from libc, to merge coreutils whitespace changes.
37576 * config/srclist.txt: Get the following m4 files from gettext:
37577 codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
37578 inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
37579 longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
37582 2003-08-12 Karl Berry <karl@gnu.org>
37584 * config/srclist.txt: can't sync vasnprintf.c any more, changes have
37587 2003-08-11 Paul Eggert <eggert@twinsun.com>
37589 * modules/gnu-source, m4/gnu-source.m4:
37590 Remove; we're assuming Autoconf 2.54 or later now.
37591 Suggested by Bruno Haible.
37592 * MODULES.html.sh (func_all_modules): Remove gnu-source.
37594 2003-08-11 Bruno Haible <bruno@clisp.org>
37596 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
37598 2003-08-11 Bruno Haible <bruno@clisp.org>
37600 * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
37601 (vasnprintf): Use it instead of wcslen.
37603 2003-08-11 Bruno Haible <bruno@clisp.org>
37605 * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
37606 value to ensure that _Bool promotes to int. Use #define for _Bool when
37607 using the Solaris C compiler. Adds comments suggested by Paul Eggert.
37609 2003-08-10 Karl Berry <karl@gnu.org>
37611 * lib/regex.h: update from libc (whitespace fix).
37613 2003-08-09 Paul Eggert <eggert@twinsun.com>
37615 Merge some files from coreutils. These changes were
37616 originally made by Jim Meyering.
37617 * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
37618 many older Unixes require this.
37619 * lib/alloca.c (alloca): Remove cast to argument of free;
37620 no longer needed in C89.
37621 * lib/alloca_.h, regex.h: Fix white space to match
37622 what GNU indent does.
37624 2003-08-09 Paul Eggert <eggert@twinsun.com>
37626 * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
37627 apparently Emacs's Unicode mode got confused before my 2003-08-05
37630 2003-08-08 Paul Eggert <eggert@twinsun.com>
37632 * m4/extensions.m4: New file.
37633 * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
37634 Require gl_USE_SYSTEM_EXTENSIONS.
37635 * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
37636 Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
37638 2003-08-08 Paul Eggert <eggert@twinsun.com>
37640 * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
37641 * modules/extensions, modules/gnu-source: New files.
37642 * modules/timespec, modules/unlocked-io: Depend on extensions.
37644 2003-08-07 Paul Eggert <eggert@twinsun.com>
37646 * modules/restrict: New file.
37647 * MODULES.html.sh (func_all_modules): Add restrict.
37648 * modules/regex: Depend on restrict.
37650 2003-08-07 Paul Eggert <eggert@twinsun.com>
37652 * m4/restrict.m4: New file.
37653 * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
37655 2003-08-07 Bruno Haible <bruno@clisp.org>
37657 * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
37658 lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
37660 2003-08-07 Bruno Haible <bruno@clisp.org>
37662 * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
37663 makes the module 'getndelim2' compatible with the module 'getline'.
37665 2003-08-05 Paul Eggert <eggert@twinsun.com>
37667 * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
37668 byte with "\201" to avoid glitches when editing that source file
37669 with multi-gnome-terminal.
37671 2003-08-05 Paul Eggert <eggert@twinsun.com>
37673 * lib/bumpalloc.h: Remove.
37675 2003-08-05 Paul Eggert <eggert@twinsun.com>
37677 * MODULES.html.sh (func_all_modules): Remove bumpalloc.
37678 * modules/bumpalloc: Remove.
37680 2003-08-04 Paul Eggert <eggert@twinsun.com>
37682 * lib/getloadavg.c: Change copyright notice and spacing to conform to
37685 Merge from coreutils.
37686 * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
37688 * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
37689 from Karl Berry, implemented by Jim Meyering.
37690 * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
37691 from Dmitry V. Levin.
37692 Remove anachronistic cast of xrealloc.
37693 * lib/fnmatch_.h (__const): Remove. Use 'const'.
37694 * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
37695 type. Otherwise, it wouldn't compile with at least /bin/cc on
37696 ymp-cray-unicos9.0.2.X.
37697 Combine two mostly-identical uses of alloca into one.
37698 Thanks to the Cray-Cyber project for access to a Cray Y-MP.
37700 2003-08-04 Dave Love <d.love@dl.ac.uk>
37704 * lib/getloadavg.c: Check `__unix' as well as `unix'. Use #ifdef, not
37705 #if. Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE. Check
37706 F_SETFD, not FD_SETFD. Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
37707 obsolete NLIST_NAME_UNION.
37708 [__GNU__]: Undef BSD and FSCALE.
37709 [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
37711 2003-08-03 Paul Eggert <eggert@twinsun.com>
37713 * lib/stdbool_.h (_Bool): Make it signed char, instead of
37714 an enum type, so that it's guaranteed to promote to int. See:
37715 <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
37717 2003-08-03 Karl Berry <karl@gnu.org>
37719 * config/depcomp: update from automake.
37721 2003-07-31 Paul Eggert <eggert@twinsun.com>
37723 * lib/strerror.c: Include config.h, limits.h. Declare sprintf.
37724 (strerror): Don't assume that a printable int fits in 14 bytes.
37726 2003-07-31 Bruno Haible <bruno@clisp.org>
37728 * modules/getpass-gnu: New file.
37729 * MODULES.html.sh (func_all_modules): Add getpass-gnu.
37731 2003-07-31 Bruno Haible <bruno@clisp.org>
37733 * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
37735 2003-07-24 Karl Berry <karl@gnu.org>
37737 * config/missing: update from automake.
37739 2003-07-24 Derek Robert Price <derek@ximbiot.com>
37740 Bruno Haible <bruno@clisp.org>
37742 * lib/getline.h (getline, getdelim): Change return type to ssize_t.
37743 * lib/getline.c (getline, getdelim): Likewise.
37744 Remove _GNU_SOURCE define; now it's defined in config.h through
37747 2003-07-23 Karl Berry <karl@gnu.org>
37749 * config/config.sub: update from prep.
37751 2003-07-22 Paul Eggert <eggert@twinsun.com>
37753 * modules/xalloc (Depends-on): Add exitfail.
37754 * modules/xmemcoll: Likewise.
37756 2003-07-22 Paul Eggert <eggert@twinsun.com>
37758 * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
37759 over-parenthesization in macros.
37761 Sync with coreutils.
37763 * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
37766 Use `exit_failure' for xalloc and xmemcoll instead of their own
37767 private exit-failure variables.
37768 * lib/xalloc.h (xalloc_exit_failure): Remove.
37769 * lib/xmalloc.c: Likewise. Include exitfail.h.
37770 (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
37771 * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
37772 * lib/xmemcoll.c: Likewise. Include exitfail.h.
37773 (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
37775 2003-07-20 Jim Meyering <jim@meyering.net>
37777 * modules/closeout (Depends-on): Add exitfail.
37778 Suggestion from Bruno Haible.
37780 2003-07-19 Karl Berry <karl@gnu.org>
37782 * config/config.sub: update from prep.
37784 2003-07-18 Paul Eggert <eggert@twinsun.com>
37786 * lib/closeout.h (close_stdout_set_status, close_stdout_status):
37788 * lib/closeout.c: Likewise. Include "closeout.h" right after config.h,
37789 to test that it can stand by itself. Include "exitfail.h".
37790 Clients should set exit_failure instead.
37791 (EXIT_FAILURE): Remove; no longer needed. Do not include <stdlib.h>.
37793 2003-07-18 Bruno Haible <bruno@clisp.org>
37795 * modules/getndelim2: New file.
37796 * modules/getline: Share files with module getndelim2.
37797 * modules/getnline: Depend on getndelim2 instead of sharing files with
37798 it. Add getnline.c to lib_SOURCES.
37799 * MODULES.html.sh (func_all_modules): Add getndelim2.
37801 2003-07-18 Bruno Haible <bruno@clisp.org>
37803 * m4/getndelim2.m4: New file.
37804 * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
37805 invoke gl_PREREQ_GETNDELIM2.
37806 (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
37807 gl_PREREQ_GETNDELIM2.
37808 * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
37811 2003-07-18 Bruno Haible <bruno@clisp.org>
37813 * lib/getndelim2.h: New file.
37814 * lib/getndelim2.c: Make into a module of its own. Include config.h,
37816 (getndelim2): Make non-static. Change return type to ssize_t.
37817 * lib/getline.h: Change argument names.
37818 * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
37819 * lib/getnline.c: Include getndelim2.h.
37821 2003-07-18 Andreas Schwab <schwab@suse.de>
37823 * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
37825 2003-07-17 Karl Berry <karl@gnu.org>
37827 * config/config.sub: update from prep.
37829 2003-07-17 Bruno Haible <bruno@clisp.org>
37831 * modules/getnline: New file.
37832 * modules/getline: Add lib/getndelim2.c to source file list.
37833 * MODULES.html.sh (func_all_modules): Add getnline.
37835 2003-07-17 Bruno Haible <bruno@clisp.org>
37837 * m4/getnline.m4: New file.
37839 2003-07-17 Bruno Haible <bruno@clisp.org>
37841 * m4/Makefile.am.in: Remove file.
37842 * m4/Makefile.am: Remove file.
37843 * m4/Makefile.in: Remove file.
37845 2003-07-17 Bruno Haible <bruno@clisp.org>
37847 * lib/getnline.h: New file.
37848 * lib/getnline.c: New file.
37849 * lib/getndelim2.c: New file, extracted from getline.c.
37850 (getndelim2): Renamed from getdelim2, with added nmax argument.
37851 * lib/getline.c: Include getndelim2.c.
37852 (getdelim2): Moved out to getndelim2.c.
37853 (getline, getdelim): Update.
37855 2003-07-17 Bruno Haible <bruno@clisp.org>
37857 * lib/Makefile.am: Remove file.
37858 * lib/Makefile.in: Remove file.
37860 2003-07-17 Bruno Haible <bruno@clisp.org>
37862 * configure.in: Remove file.
37863 * Makefile.in: Remove file.
37865 2003-07-17 Bruno Haible <bruno@clisp.org>
37867 * MODULES.html.sh: Put the </BODY> right before </HTML>.
37869 2003-07-16 Karl Berry <karl@gnu.org>
37871 * config/srclist-update: was running fixlicense twice, which caused
37872 texinfo.tex to be nullified for some reason. Simplify,
37873 $gplsrc is no longer needed as far as I can see?
37875 2003-07-16 Jim Meyering <jim@meyering.net>
37877 * modules/save-cwd: Depend on xgetcwd. From Derek Price.
37879 2003-07-15 Paul Eggert <eggert@twinsun.com>
37881 * config/srclist.txt: Get the following files from gettext-runtime/intl
37882 instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
37883 ref-del.sin. From Bruno Haible.
37884 * config/srclist-update (fixfile): Change grep pattern again, since the
37885 previous fix didn't work (there was another trailing $). Use
37886 '[$]' to escape the $s.
37888 2003-07-15 Karl Berry <karl@gnu.org>
37890 * lib/vasnprintf.c: update from gettext.
37892 2003-07-15 Karl Berry <karl@gnu.org>
37894 * config/srclist-update (fixfile): Change grep pattern, since 'Id'
37895 gets expanded when surrounded by '$'.
37897 2003-07-15 Jim Meyering <jim@meyering.net>
37899 * modules/save-cwd: Don't depend on error. From Derek Price.
37901 2003-07-15 Jim Meyering <jim@meyering.net>
37903 * lib/makepath.c (make_path): Enclose diagnostic in _(...).
37905 2003-07-14 Simon Josefsson <jas@extundo.com>
37907 * modules/mempcpy: New file.
37908 * MODULES.html.sh (func_all_modules): Add mempcpy.
37910 2003-07-14 Simon Josefsson <jas@extundo.com>
37912 * m4/mempcpy.m4: New file.
37914 2003-07-14 Simon Josefsson <jas@extundo.com>
37916 * lib/mempcpy.h: New file.
37917 * lib/mempcpy.c: New file.
37919 2003-07-14 Paul Eggert <eggert@twinsun.com>
37921 * modules/getdate, modules/posixtm: Depend on mktime.
37923 2003-07-14 Paul Eggert <eggert@twinsun.com>
37925 * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
37926 sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
37927 unicodeio.c, unicodeio.h, unlocked-io.h:
37928 Switch from LGPL to GPL.
37930 2003-07-14 Paul Eggert <eggert@twinsun.com>
37932 * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
37933 localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
37934 printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
37935 ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
37936 vasprintf.c, vasprintf.h: Regenerate. These files are now being
37937 updated automatically by ../config/srclist-update. This changes
37938 their license from LPGL to GPL.
37940 2003-07-14 Paul Eggert <eggert@twinsun.com>
37942 * config/srclist.txt: Add tons more gettext files. $GETTEXT is now
37943 assumed to refer to the root of the most recent stable gettext version.
37944 * config/srclistvars.sh: Add defaults for eggert.
37945 * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
37946 Match "This program" as well as "The program". This is needed
37949 2003-07-14 Jim Meyering <jim@meyering.net>
37951 Don't emit diagnostics. Let callers do that.
37952 * lib/save-cwd.c: Don't include "error.h".
37953 (save_cwd): Don't call error. Ensure that errno is valid
37954 when returning nonzero.
37956 * lib/save-cwd.h (restore_cwd): Update prototype.
37957 * lib/save-cwd.c (restore_cwd): Remove two parameters.
37958 Simplify. Don't call error upon failure. Let callers do that.
37959 (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
37960 when auditing is enabled. But don't bother updating the #if.
37962 2003-07-11 Alexandre Duret-Lutz <adl@gnu.org>
37964 * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
37965 it breaks C++ compilation.
37966 [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
37968 2003-07-10 Simon Josefsson <jas@extundo.com>
37970 * modules/strchrnul (Makefile.am): Add strchrnul.h.
37972 2003-07-10 Jim Meyering <jim@meyering.net>
37974 * m4/clock_time.m4: Remove trailing blank.
37975 * m4/intmax_t.m4: Likewise.
37977 2003-07-10 Jim Meyering <jim@meyering.net>
37979 * lib/vasnprintf.c: Remove trailing blanks.
37980 Make cpp indentation consistent.
37982 2003-07-09 Paul Eggert <eggert@twinsun.com>
37984 * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
37985 posixver.c, strftime.c, strnlen.c, strverscmp.c:
37986 Switch from LGPL to GPL.
37988 2003-07-09 Paul Eggert <eggert@twinsun.com>
37990 * config/srclist.txt: Sort sublists. Add
37991 $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
37992 that differ from gnulib for one reason or another; we'd like this list
37993 to be smaller but for now let's document what we have.
37995 2003-07-08 Paul Eggert <eggert@twinsun.com>
37997 * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
37998 the use of GNU extensions. Change "x=`eval echo $x`" to the shorter
37999 and sweeter "eval x=$x".
38000 * config/srclist.txt: Get lib/argp* from glibc.
38002 2003-07-07 Paul Eggert <eggert@twinsun.com>
38004 * lib/mktime.c: Fix some boundary cases and remove need for floating
38007 Issue a compile-time diagnostic if time_t is floating point, or if
38008 two's complement arithmetic is not in effect, or if arithmetic
38009 right shift does not propagate the sign. These assumptions were
38010 all in the original code but they weren't checked.
38012 (TIME_T_MIDPOINT, verify): New macros.
38013 (__isleap): Remove; it has integer overflow problems.
38014 (leapyear): New function, without those problems.
38015 (ydhms_tm_diff): Remove; splitting into two parts.
38016 (ydhms_diff): New function, containing the arithmetic part of
38017 the old ydhms_tm_diff function. Issue a compile-time
38018 diagnostic if we are not using C99 integer division.
38019 Avoid casts when possible.
38020 (guess_time_tm): New function, containing the checking part of
38021 the old ydhms_tm_diff function. Return the new value, rather than
38022 the difference between it and the old. Accept a new argument T
38023 so that *T specifies the old value. Check for overflow in the result.
38025 (__mktime_internal): Use a time_t offset, not a long int offset.
38026 This undoes the 2003-06-04 change, which is no longer needed now
38027 that we have better overflow checking.
38028 (localtime_offset): Likewise.
38030 (__mktime_internal): Avoid harmful overflow on hosts where time_t
38031 and long are 64-bit but int is only 32-bit.
38032 (ydhms_diff): Use long int to store year1 and yday1.
38033 Issue a compile-time diagnostic if long int is not wide enough.
38035 (__mktime_internal): Use long int to store adjusted year and yday.
38036 Use plain C rather than preprocessor commands, if that doesn't
38038 Check for overflow (and try to repair) after each probe
38039 rather than checking only at the very end. This avoids some bugs
38040 (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
38041 does not equal GMT offset at maximum time).
38042 Use integer to check for overflow rather than floating point; this
38043 is more portable to non-IEEE hosts, and is a tad faster.
38044 When we detect that we are oscillating between two values,
38045 don't check whether tm_isdst has the requested value, since
38046 we already know the answer. When tm_isdst has the wrong value,
38047 use a different heuristic to find the right one, based on the
38048 extreme values actually observed in practice in tz2003a,
38049 rather than the (overly optimistic) "previous 3 calendar quarters".
38051 (not_equal_tm, print_tm, check_result): Use "const T" rather than
38052 "T const" to accommodate glibc style.
38053 (check_result): Use less-confusing report format. "long" -> "long int.
38055 Don't loop if the iteration overflows time_t.
38056 Allow a negative step in the iteration.
38058 2003-07-06 Karl Berry <karl@gnu.org>
38060 * config/depcomp: update from automake.
38061 * config/config.sub: update from prep.
38063 2003-07-03 Karl Berry <karl@gnu.org>
38065 * config/config.guess: update from prep.
38067 2003-07-01 Paul Eggert <eggert@twinsun.com>
38069 * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
38070 xreadlink.c now includes it unconditionally.
38072 2003-07-01 Paul Eggert <eggert@twinsun.com>
38074 * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
38075 having it depend on HAVE_SYS_TYPES_H.
38077 2003-07-01 Bruno Haible <bruno@clisp.org>
38079 * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
38080 <sys/types.h> should be sufficient.
38081 Reported by Paul Eggert.
38083 2003-06-26 Karl Berry <karl@gnu.org>
38085 * config/depcomp: update from automake.
38087 2003-06-26 Bruno Haible <bruno@clisp.org>
38089 * modules/human: Depend on module stdbool.
38091 2003-06-25 Bruno Haible <bruno@clisp.org>
38093 * modules/readlink: New file.
38094 * modules/xreadlink: Depend on it.
38095 * MODULES.html.sh (func_all_modules): Add readlink.
38097 2003-06-25 Bruno Haible <bruno@clisp.org>
38099 * m4/readlink.m4: New file.
38101 2003-06-25 Bruno Haible <bruno@clisp.org>
38103 * lib/readlink.c: New file.
38105 2003-06-22 Karl Berry <karl@gnu.org>
38107 * config/srclist.txt: update mkinstalldirs from automake.
38108 * config/mkinstalldirs: update.
38110 2003-06-22 Bruno Haible <bruno@clisp.org>
38112 Portability to mingw32.
38113 * m4/ssize_t.m4: New file, from GNU gettext.
38114 * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
38115 * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
38117 2003-06-22 Bruno Haible <bruno@clisp.org>
38119 * modules/safe-read: Add m4/ssize_t.m4.
38120 * modules/xreadlink: Add m4/ssize_t.m4.
38122 2003-06-20 Bruno Haible <bruno@clisp.org>
38124 Assume C89, so PARAMS isn't needed.
38125 * lib/unicodeio.h (PARAMS): Remove.
38126 * lib/unicodeio.c: Don't use PARAMS.
38128 2003-06-18 Karl Berry <karl@gnu.org>
38130 * config/config.{guess,sub}: update from prep.
38132 2003-06-18 Jim Meyering <jim@meyering.net>
38134 Merge changes from coreutils.
38135 * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
38136 Remove explicit declarations of xmalloc and realloc.
38138 (read_utmp): Remove anachronistic cast of xmalloc.
38140 2003-06-17 Paul Eggert <eggert@twinsun.com>
38142 Assume C89, so PARAMS isn't needed.
38143 * lib/backupfile.h (PARAMS): Remove. All uses removed.
38144 * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
38145 lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
38146 lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
38147 lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
38148 lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
38149 lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
38150 lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
38151 lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
38152 lib/xstrtod.h, lib/xstrtol.h: Likewise.
38153 * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
38154 lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
38155 no longer needed. Anyway, config.h should always be included before any
38158 2003-06-11 Simon Josefsson <jas@extundo.com>
38160 * modules/sysexits: New file.
38161 * MODULES.html.sh (func_all_modules): Add sysexits.
38163 2003-06-11 Simon Josefsson <jas@extundo.com>
38165 * lib/sysexit_.h: New file.
38167 2003-06-11 Derek Price <derek@ximbiot.com>
38169 * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
38172 2003-06-11 Bruno Haible <bruno@clisp.org>
38174 * m4/sysexits.m4: New file.
38176 2003-06-10 Simon Josefsson <jas@extundo.com>
38178 * lib/argp.h: New file, from glibc.
38179 * lib/argp-ba.c: New file, from glibc.
38180 * lib/argp-eexst.c: New file, from glibc.
38181 * lib/argp-fmtstream.c: New file, from glibc.
38182 * lib/argp-fmtstream.h: New file, from glibc.
38183 * lib/argp-fs-xinl.c: New file, from glibc.
38184 * lib/argp-help.c: New file, from glibc.
38185 * lib/argp-namefrob.h: New file, from glibc.
38186 * lib/argp-parse.c: New file, from glibc.
38187 * lib/argp-pv.c: New file, from glibc.
38188 * lib/argp-pvh.c: New file, from glibc.
38189 * lib/argp-xinl.c: New file, from glibc.
38191 2003-06-10 Simon Josefsson <jas@extundo.com>
38193 * modules/strchrnul: New file.
38195 2003-06-10 Simon Josefsson <jas@extundo.com>
38197 * modules/argp: New file.
38199 2003-06-10 Simon Josefsson <jas@extundo.com>
38201 * m4/strchrnul.m4: New file.
38203 2003-06-10 Simon Josefsson <jas@extundo.com>
38205 * lib/strchrnul.h: New file.
38206 * lib/strchrnul.c: New file.
38208 2003-06-10 Bruno Haible <bruno@clisp.org>
38210 * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
38212 2003-06-07 Karl Berry <karl@gnu.org>
38214 * config/config.{guess,sub}: update from prep.
38216 2003-06-07 Jim Meyering <jim@meyering.net>
38218 * modules/strtod: Use $(...) notation, not @...@ for
38219 AC_REPLACE'd variables.
38220 * modules/localcharset: Likewise.
38222 2003-06-07 Jim Meyering <jim@meyering.net>
38224 * lib/readtokens.h: Put `Free Software Foundation, Inc.'
38225 in place of my name in the copyright comment.
38226 Remove definition and uses of __P.
38229 * lib/stat.c: Don't declare xmalloc explicitly.
38230 Instead, include "xalloc.h".
38231 * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
38232 xrealloc, and xcalloc return values.
38233 * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
38235 * lib/xgetcwd.h: Remove definition/uses of PARAMS.
38237 2003-06-07 Bruno Haible <bruno@clisp.org>
38239 * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
38240 avoid AC_CONFIG_LINKS.
38241 * modules/fnmatch (Makefile.am): Use explicit creation rule for
38242 fnmatch.h, to avoid AC_CONFIG_LINKS.
38243 * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
38245 2003-06-07 Bruno Haible <bruno@clisp.org>
38247 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
38248 gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
38249 AC_CONFIG_LINKS. Needed to allow for a different name of the lib
38251 * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
38252 AC_CONFIG_LINKS. Needed to allow for a different name of the lib
38255 2003-06-06 Jim Meyering <jim@meyering.net>
38257 Merge from coreutils.
38258 * lib/same.c: (same_name): Declare *_basename locals to be `const'.
38259 Consolidate declarations and initializations of *_base* locals.
38261 Merge from coreutils.
38262 This avoids a core dump on systems without GNU putenv,
38263 when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
38264 * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
38265 (unsetenv): New static function, from GNU libc.
38266 (rpl_putenv): Use it.
38268 * lib/modechange.c: Remove trailing blanks.
38270 Merge from coreutils.
38271 * lib/fsusage.c: Remove declaration of statfs.
38272 It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
38274 * lib/posixtm.c: Include <stdbool.h> unconditionally.
38276 2003-06-06 Jim Meyering <jim@meyering.net>
38278 * lib/stdbool_.h: Renamed from stdbool.h.in.
38280 2003-06-06 Jim Meyering <jim@meyering.net>
38281 Bruno Haible <bruno@clisp.org>
38283 * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
38284 Adjust Makefile.am snippet not to redirect directly to target.
38285 Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
38287 2003-06-05 Paul Eggert <eggert@twinsun.com>
38289 * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
38290 mismatch, look in future quarters as well as past. This fixes a
38291 bug when processing fall-backwards gaps immediately after a long
38292 period of daylight-saving time.
38294 * lib/mktime.c: Assume freestanding C89 or better.
38295 (HAVE_LIMITS_H): Remove. Assume it's 1.
38296 (__P): Remove; not used.
38297 (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
38298 (mktime, not_equal_tm, print_tm, check_result,
38299 main): Use prototypes. Use const * where appropriate.
38300 (main): Fix typo in testing code that uncovered by above changes.
38301 (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
38303 2003-06-04 Paul Eggert <eggert@twinsun.com>
38305 * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H. Check for
38306 locale.h, localeconv. This merges changes from coreutils.
38308 * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
38309 It can be removed after the next Autoconf is released.
38310 * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
38313 2003-06-04 Paul Eggert <eggert@twinsun.com>
38315 * lib/mktime.c: Fix Debian bug 177940
38316 <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
38317 (localtime_offset): Now long int, not time_t, because we want it
38318 to be guaranteed to be signed. All uses changed.
38319 (__mktime_internal): If overflow would occur when adding offset,
38322 Merge 'human' changes from coreutils. Rewrite to support
38323 locale-specific notations like thousands separators.
38324 * lib/human.c: Simplify authorship notice.
38325 Include human.h immediately after config.h.
38326 <sys/types.h>, <stdio.h>: Do not include; no longer needed.
38327 <limits.h>: Do not include, since human.h does.
38328 (SIZE_MAX, UINTMAX_MAX): New macros.
38329 <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
38330 <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
38331 (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
38332 (power_letter): Renamed from suffixes.
38333 (generate_suffix_backwards): Remove.
38334 (adjust_value): Now takes int style (because of human.h changes)
38335 and long double value (for greater precision on some platforms).
38336 (group_number): New function.
38337 (human_readable): Use it. Use integer options, not enum.
38338 Put the options before the sizes in the arg list.
38339 Support all the new options.
38340 The old human_readable function has been removed;
38341 use inttostr.h instead.
38342 (human_readable, default_block_size, humblock):
38343 Use uintmax_t, not int, for block sizes.
38344 (human_readable_inexact, block_size_types): Remove.
38345 (block_size_opts): New constant.
38346 (human_options): Renamed from human_block_size, with new signature
38347 that allows block sizes up to UINTMAX_MAX. All callers changed.
38348 * lib/human.h: Add copyright and authorship notice.
38349 Include <limits.h> and <stdbool.h> unconditionally.
38350 (PARAMS): Remove. All uses removed.
38351 (LONGEST_HUMAN_READABLE): Add support for thousands separator.
38352 (enum human_inexact_style): Remove tag; now a nameless enum.
38353 (human_floor, human_ceiling, human_round_to_even): Now have
38354 values 2, 0, 1 rather than -1, 1, 0.
38355 (human_group_digits, human_suppress_point_zero, human_autoscale,
38356 human_base_1024, human_SI, human_B): New constants.
38357 (human_readable_inexact, human_block_size): Remove.
38358 (human_readable): Size args are now uintmax_t, not int.
38359 (human_options): New decl.
38361 * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
38362 unnecessary now that we assume C89 or better. This change
38363 imported from coreutils.
38365 * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
38366 arbitrarily. This is the same patch as 2003-05-28, but it got lost
38367 in the 2003-05-30 sync from glibc.
38369 .h files should stand alone, but we shouldn't include <sys/types.h>
38370 if we can get away with just <stddef.h>.
38372 * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
38373 malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
38374 rather than <sys/types.h>, as we merely need size_t.
38375 * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
38377 * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
38378 Include <stdio.h>, to get FILE.
38379 * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
38380 memcasecmp.h has included <stddef.h> and all we need is size_t.
38381 * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
38382 our interface, instead of including <sys/types.h>
38384 2003-06-04 Paul Eggert <eggert@twinsun.com>
38386 * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
38387 now, as glibc mktime is buggy on non-glibc systems.
38389 2003-06-03 Karl Berry <karl@gnu.org>
38391 * config/config.sub: update from prep.
38393 2003-06-02 Paul Eggert <eggert@twinsun.com>
38396 Fix some minor time-related bugs with POSIX time arguments.
38397 Some valid time stamps were being rejected (notably -1, and
38398 time stamps before 1900 on 64-bit hosts). And some invalid
38399 time stamps were being accepted, e.g. September 31.
38401 * lib/posixtm.h (posixtime): Return bool instead of time_t, so
38402 that we can return (time_t) -1 successfully.
38403 * lib/posixtm.c: Likewise.
38404 [HAVE_STDBOOL_H]: Include <stdbool.h>.
38405 (bool, false, true) [!HAVE_STDBOOL_H]: New type.
38406 (t): Remove static var.
38407 (year, posix_time_parse): Now takes struct tm * arg to modify, instead
38408 of static var. All uses changed.
38409 (year): Do not reject years before 1900; they can occur with
38411 (posix_time_parse): Do not check for out-of-range components;
38412 that is now the caller's responsibility, since our checks were
38413 only approximations.
38414 (posixtime): Use mktime to check for out-of-range components,
38415 since it knows them exactly.
38416 If mktime returns (time_t) -1, check whether an error actually occurred
38417 by invoking localtime on -1.
38418 (main) [TEST_POSIXTIME]: Check for input data errors, and report
38419 posixtime failures better.
38420 Improve the test data (in comments only).
38422 2003-06-02 Karl Berry <karl@gnu.org>
38424 * config/mkinstalldirs (version): new variable.
38425 (--version): new option.
38426 (usage): improve message.
38428 2003-05-30 Karl Berry <karl@gnu.org>
38430 * lib/mktime.c: update from libc.
38432 2003-05-30 Bruno Haible <bruno@clisp.org>
38434 * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
38435 * config/config.rpath: Upgrade to gettext-0.12.1.
38437 2003-05-30 Bruno Haible <bruno@clisp.org>
38439 * m4/gettext.m4: Upgrade to gettext-0.12.1.
38440 * m4/nls.m4: New file, from gettext-0.12.1.
38441 * m4/po.m4: New file, from gettext-0.12.1.
38442 * m4/progtest.m4: Upgrade to gettext-0.12.1.
38444 2003-05-30 Bruno Haible <bruno@clisp.org>
38446 * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
38447 * lib/localcharset.h: Likewise.
38448 * lib/localcharset.c: Likewise.
38450 2003-05-29 Karl Berry <karl@gnu.org>
38452 * config/config.rpath: update from gettext.
38454 2003-05-28 Paul Eggert <eggert@twinsun.com>
38456 Assume the headers required for C89 freestanding compilers.
38457 * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
38458 * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
38459 * m4/human.m4 (gl_HUMAN): Likewise.
38460 * m4/pathmax.m4 (gl_PATHMAX): Likewise.
38461 * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
38462 * m4/userspec.m4 (gl_USERSPEC): Likewise.
38463 * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
38464 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
38465 * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
38467 2003-05-28 Paul Eggert <eggert@twinsun.com>
38469 Assume the headers required for C89 freestanding compilers.
38470 * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
38471 lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
38472 lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
38473 * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
38474 lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
38475 define, since <limits.h> is guaranteed to do that.
38476 * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
38477 * lib/exclude.c: Include <stdbool.h> unconditionally.
38478 * lib/tempname.c: Include <stddef.h> unconditionally.
38479 * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
38480 * lib/modechange.c, rpmatch.c (NULL): Don't define, since
38481 <stddef.h> does that.
38482 * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
38483 * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
38484 * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
38486 * lib/xstrtol.c: Likewise.
38487 * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
38488 * lib/savedir.c: Include <stddef.h> instead of defining NULL.
38490 * lib/addext.c (addext): Use assignment rather than cast, to avoid
38491 warnings on some platforms.
38493 * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
38496 2003-05-26 Jim Meyering <jim@meyering.net>
38498 Merge in a change from coreutils:
38499 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
38500 that is guaranteed to be `no'. Use `no_such_member' to indicate
38501 that condition, rather than `-1' which is slightly misleading.
38502 Change the name of the cache variable to have the gl_ prefix.
38503 Prompted by a patch from Richard Dawe for DJGPP.
38505 2003-05-24 Karl Berry <karl@gnu.org>
38507 * config/config.guess: update from prep.
38509 2003-05-22 Karl Berry <karl@gnu.org>
38511 * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
38513 2003-05-20 Karl Berry <karl@gnu.org>
38515 * config/config.guess: update from prep.
38517 2003-05-18 Karl Berry <karl@gnu.org>
38519 * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
38520 might actually be set by the user.
38522 * config/depcomp, install-sh, mdate-sh: update from automake.
38524 2003-05-17 Bruno Haible <bruno@clisp.org>
38526 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
38527 invalid expansion for AC_EGREP_CPP.
38528 * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
38529 * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
38530 Suggested by Akim Demaille <akim@epita.fr> in
38531 http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
38533 2003-05-12 Jim Meyering <jim@meyering.net>
38535 * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
38536 the space-padded-by-default conversion specifiers, %e, %k, %l.
38538 2003-05-12 Bruno Haible <bruno@clisp.org>
38540 * lib/linebreak.c (iconv_string_length): Don't return -1 just because
38541 the string is longer than 4 KB.
38543 2003-05-11 Karl Berry <karl@gnu.org>
38545 * config/config.{guess,sub}: update from prep.
38547 2003-05-09 Bruno Haible <bruno@clisp.org>
38549 * modules/error: Add m4/strerror_r.m4 to file list.
38551 2003-05-03 Bruno Haible <bruno@clisp.org>
38553 Upgrade to Unicode-4.0.
38554 * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
38555 U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
38556 U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
38557 U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
38558 from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
38559 (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
38560 of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
38561 Change width of U+E0100..U+E01EF from 1 to 0.
38563 2003-04-25 Jim Meyering <jim@meyering.net>
38565 * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
38566 of type size_t, not int.
38568 2003-04-25 Bruno Haible <bruno@clisp.org>
38570 * lib/copy-file.c: Include <stddef.h>, for size_t.
38572 2003-04-21 Paul Eggert <eggert@twinsun.com>
38574 * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
38575 code which expansion is under static control. Patch imported from
38576 Akim Demaille's patch to Bison; see
38577 <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
38579 2003-04-14 Bruno Haible <bruno@clisp.org>
38581 * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
38583 2003-04-11 Jim Meyering <jim@meyering.net>
38585 Merge changes from Coreutils.
38587 2003-03-22 Jim Meyering <jim@meyering.net>
38589 * lib/strftime.c (widen): Cast alloca return value to proper type.
38591 2003-01-19 Ulrich Drepper <drepper@redhat.com>
38594 * lib/strftime.c (my_strftime): Handle very large width
38595 specifications for numeric values correctly. Improve checks for
38598 2003-01-19 Jim Meyering <jim@meyering.net>
38600 * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
38602 (nl_get_alt_digit) [! defined my_strftime]: Define.
38603 (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
38604 _nl_get_alt_digit and _nl_get_walt_digit.
38606 * lib/strftime.c (my_strftime): Merge in locale-related changes from
38607 libc. These changes have no effect outside of _LIBC.
38609 2003-04-10 Bruno Haible <bruno@clisp.org>
38611 * modules/findprog: New file.
38612 * MODULES.html.sh (func_all_modules): Add it.
38614 2003-04-10 Bruno Haible <bruno@clisp.org>
38616 * m4/findprog.m4: New file.
38617 * m4/eaccess.m4: New file.
38619 2003-04-10 Bruno Haible <bruno@clisp.org>
38621 * lib/findprog.h: New file, from GNU gettext.
38622 * lib/findprog.c: New file, from GNU gettext.
38624 2003-04-05 Jim Meyering <jim@meyering.net>
38626 Merge changes from Coreutils.
38628 * lib/exclude.h (PARAMS): Remove definition and uses.
38629 * lib/exclude.c: Remove uses of `PARAMS'.
38631 * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
38632 Add test-cases for DOS filenames. Declare program_name.
38633 (main): Set up program_name. Patch by Rich Dawe.
38635 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
38637 Use mntctl's return value to drive the entry-processing loop, since
38638 we can't rely on the value of the vmt_length member in the last
38639 entry. On some systems doing so could result in exhausting
38640 virtual memory. Based in part on a patch from Mike Jetzer.
38642 2003-04-04 Bruno Haible <bruno@clisp.org>
38644 * modules/linebreak: New file.
38645 * MODULES.html.sh (func_all_modules): Add it.
38647 2003-04-04 Bruno Haible <bruno@clisp.org>
38649 * m4/linebreak.m4: New file.
38651 2003-04-04 Bruno Haible <bruno@clisp.org>
38653 * lib/linebreak.h: New file, from GNU gettext.
38654 * lib/linebreak.c: New file, from GNU gettext with slight
38656 * lib/lbrkprop.h: New file, from GNU gettext.
38658 2003-04-03 Bruno Haible <bruno@clisp.org>
38660 * modules/utf8-ucs4: New file.
38661 * modules/utf16-ucs4: New file.
38662 * modules/ucs4-utf8: New file.
38663 * modules/ucs4-utf16: New file.
38664 * MODULES.html.sh (func_all_modules): Add them.
38666 2003-04-03 Bruno Haible <bruno@clisp.org>
38668 * m4/utf-ucs4.m4: New file.
38669 * m4/ucs4-utf.m4: New file.
38671 2003-04-03 Bruno Haible <bruno@clisp.org>
38673 * lib/utf8-ucs4.h: New file, from GNU gettext.
38674 * lib/utf16-ucs4.h: New file, from GNU gettext.
38675 * lib/ucs4-utf8.h: New file, from GNU gettext.
38676 * lib/ucs4-utf16.h: New file, from GNU gettext.
38678 2003-04-02 Bruno Haible <bruno@clisp.org>
38680 * modules/binary-io: New file.
38681 * MODULES.html.sh (func_all_modules): Add it.
38683 2003-04-02 Bruno Haible <bruno@clisp.org>
38685 * lib/binary-io.h: New file, from GNU gettext.
38687 2003-04-01 Bruno Haible <bruno@clisp.org>
38689 * modules/pathname: New file.
38690 * MODULES.html.sh (func_all_modules): Add it.
38692 2003-04-01 Bruno Haible <bruno@clisp.org>
38694 * lib/pathname.h: New file, from GNU gettext.
38695 * lib/concatpath.c: New file, from GNU gettext.
38697 2003-03-30 Bruno Haible <bruno@clisp.org>
38699 * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
38701 2003-03-30 Bruno Haible <bruno@clisp.org>
38703 * lib/copy-file.c (copy_file_preserving): Don't set owner if the
38704 function chown() doesn't exist.
38706 2003-03-28 Bruno Haible <bruno@clisp.org>
38708 * modules/copy-file: New file.
38709 * MODULES.html.sh (func_all_modules): Add it.
38711 2003-03-28 Bruno Haible <bruno@clisp.org>
38713 * m4/copy-file.m4: New file.
38715 2003-03-28 Bruno Haible <bruno@clisp.org>
38717 * lib/copy-file.h: New file, from GNU gettext.
38718 * lib/copy-file.c: New file, from GNU gettext.
38720 2003-03-18 Jim Meyering <jim@meyering.net>
38722 * lib/quote.c (quote_n): Fix typo in comment.
38724 2003-03-18 Bruno Haible <bruno@clisp.org>
38726 * m4/onceonly.m4: Use m4_defn instead of defn, for better error
38728 * m4/onceonly_2_57.m4: Likewise.
38730 2003-03-17 Bruno Haible <bruno@clisp.org>
38732 * m4/onceonly.m4: Require autoconf 2.54 or newer.
38733 (m4_quote): Remove macro.
38734 * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
38736 2003-03-14 Jim Meyering <jim@meyering.net>
38738 Merge changes from Coreutils.
38739 * lib/obstack.h (obstack_object_size): Declare temporary, __o,
38740 to be const, in order to avoid warnings.
38741 (obstack_room): Likewise.
38742 (obstack_empty_p): Likewise.
38744 2003-03-14 Bruno Haible <bruno@clisp.org>
38746 * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
38747 AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
38749 2003-03-13 Paul Eggert <eggert@twinsun.com>
38751 Merge changes from Bison.
38752 * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
38753 (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
38754 when compiling Bison 1.875's `bitset bset = obstack_alloc
38755 (bobstack, bytes);'. Problem reported by Nelson H. F. Beebe.
38756 * lib/hash.c: Include <stdbool.h> unconditionally.
38758 2003-03-13 Paul Eggert <eggert@twinsun.com>
38760 * m4/onceonly.m4 (m4_quote): New macro.
38761 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
38762 Quote AC_FOREACH variable-expansions properly.
38764 2003-03-13 Paul Eggert <eggert@twinsun.com>
38766 * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
38768 2003-03-09 Paul Eggert <eggert@twinsun.com>
38770 * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
38771 Reported by Bruce Becker; see:
38772 http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
38774 2003-03-03 Paul Eggert <eggert@twinsun.com>
38775 Bruno Haible <bruno@clisp.org>
38777 * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
38778 Reported by John Hughes, see
38779 http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
38781 2003-02-20 Bruno Haible <bruno@clisp.org>
38783 * MODULES.html.sh (func_all_modules): Add poll.
38785 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
38787 * modules/poll: New file.
38789 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
38791 * lib/poll_.h: New file.
38792 * lib/poll.c: New file.
38794 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
38796 * m4/poll.m4: New file.
38798 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
38800 * modules/mathl: New file.
38802 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
38804 * lib/mathl.h: New file.
38805 * lib/acosl.c: New file.
38806 * lib/asinl.c: New file.
38807 * lib/atanl.c: New file.
38808 * lib/ceill.c: New file.
38809 * lib/cosl.c: New file.
38810 * lib/expl.c: New file.
38811 * lib/floorl.c: New file.
38812 * lib/frexpl.c: New file.
38813 * lib/ldexpl.c: New file.
38814 * lib/logl.c: New file.
38815 * lib/sincosl.c: New file.
38816 * lib/sinl.c: New file.
38817 * lib/sqrtl.c: New file.
38818 * lib/tanl.c: New file.
38819 * lib/trigl.c: New file.
38820 * lib/trigl.h: New file.
38822 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
38824 * m4/mathl.m4: New file.
38826 2003-02-18 Bruno Haible <bruno@clisp.org>
38828 * MODULES.html.sh (func_all_modules): Add mathl.
38830 2003-02-17 Bruno Haible <bruno@clisp.org>
38832 * modules/mkdtemp: New module.
38833 * MODULES.html.sh (func_all_modules): Add it.
38835 2003-02-17 Bruno Haible <bruno@clisp.org>
38837 * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
38839 2003-02-17 Bruno Haible <bruno@clisp.org>
38841 * lib/mkdtemp.h: New file, from GNU gettext.
38842 * lib/mkdtemp.c: New file, from GNU gettext.
38844 2003-02-02 Jim Meyering <jim@meyering.net>
38846 * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
38849 2003-01-31 Bruno Haible <bruno@clisp.org>
38851 * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
38853 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
38855 * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
38857 * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
38860 2003-01-31 Bruno Haible <bruno@clisp.org>
38862 * lib/rename.c: #undef rename before defining rpl_rename.
38863 * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
38865 2003-01-30 Bruno Haible <bruno@clisp.org>
38867 * modules/vasnprintf, modules/vasprintf: New modules.
38868 * MODULES.html.sh (func_all_modules): Add them.
38870 2003-01-30 Bruno Haible <bruno@clisp.org>
38872 * m4/signed.m4: New file, from GNU gettext.
38873 * m4/longdouble.m4: New file, from GNU gettext.
38874 * m4/wchar_t.m4: New file, from GNU gettext.
38875 * m4/wint_t.m4: New file, from GNU gettext.
38876 * m4/vasnprintf.m4: New file.
38877 * m4/vasprintf.m4: New file.
38879 2003-01-30 Bruno Haible <bruno@clisp.org>
38881 * lib/printf-args.h: New file, from GNU gettext.
38882 * lib/printf-args.c: New file, from GNU gettext.
38883 * lib/printf-parse.h: New file, from GNU gettext.
38884 * lib/printf-parse.c: New file, from GNU gettext.
38885 * lib/vasnprintf.h: New file, from GNU gettext.
38886 * lib/vasnprintf.c: New file, from GNU gettext.
38887 * lib/asnprintf.c: New file, from GNU gettext.
38888 * lib/vasprintf.h: New file, from GNU gettext with modifications.
38889 * lib/vasprintf.c: New file, from GNU gettext.
38890 * lib/asprintf.c: New file, from GNU gettext.
38892 2003-01-29 Bruno Haible <bruno@clisp.org>
38894 * modules/stpncpy: New module.
38895 * MODULES.html.sh (func_all_modules): Add it.
38897 2003-01-29 Bruno Haible <bruno@clisp.org>
38899 * m4/stpncpy.m4: New file.
38901 2003-01-29 Bruno Haible <bruno@clisp.org>
38903 * lib/stpncpy.h: New file, from GNU gettext with modifications.
38904 * lib/stpncpy.c: New file, from GNU gettext with modifications.
38906 2003-01-28 Bruno Haible <bruno@clisp.org>
38908 * modules/c-ctype: New module.
38909 * MODULES.html.sh (func_all_modules): Add it.
38911 2003-01-28 Bruno Haible <bruno@clisp.org>
38913 * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
38915 * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
38918 2003-01-27 Bruno Haible <bruno@clisp.org>
38920 * modules/xsetenv: New module.
38921 * MODULES.html.sh (func_all_modules): Add it.
38923 2003-01-27 Bruno Haible <bruno@clisp.org>
38925 * lib/xsetenv.h: New file, from GNU gettext.
38926 * lib/xsetenv.c: New file, from GNU gettext.
38928 2003-01-23 Jim Meyering <jim@meyering.net>
38930 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
38931 from working on systems without dirfd (at least Irix and OSF1/Tru64).
38933 2003-01-23 Bruno Haible <bruno@clisp.org>
38935 * modules/minmax: New module.
38936 * MODULES.html.sh (func_all_modules): Add it.
38938 2003-01-23 Bruno Haible <bruno@clisp.org>
38940 * lib/minmax.h: New file, from GNU gettext, with comments from Paul
38943 2003-01-22 Bruno Haible <bruno@clisp.org>
38945 * modules/exit: New module.
38946 * MODULES.html.sh (func_all_modules): Add it.
38948 2003-01-22 Bruno Haible <bruno@clisp.org>
38950 * lib/exit.h: New file, from GNU gettext.
38952 2003-01-19 Bruno Haible <bruno@clisp.org>
38954 * gnulib-tool: Recognize option --extract-maintainer.
38955 (func_get_maintainer): New function.
38956 * modules/*: Add Maintainer entry.
38958 2003-01-16 Jim Meyering <jim@meyering.net>
38960 * m4/regex.m4: The `regex' struct is both input and output.
38961 Initialize it before each use. Patch by Tim Waugh.
38963 2003-01-16 Bruno Haible <bruno@clisp.org>
38965 * MODULES.html.sh: Add a table of contents. Add the module name as
38966 leftmost column. Add hyperlinks.
38968 2003-01-15 Bruno Haible <bruno@clisp.org>
38970 * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
38972 2003-01-15 Bruno Haible <bruno@clisp.org>
38974 * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
38975 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
38978 2003-01-15 Bruno Haible <bruno@clisp.org>
38980 * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
38982 2003-01-15 Bruno Haible <bruno@clisp.org>
38984 * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
38985 * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
38987 2003-01-14 Jim Meyering <jim@meyering.net>
38989 * lib/same.c (same_name): Tweak a comment.
38991 2003-01-14 Bruno Haible <bruno@clisp.org>
38993 * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
38994 when a string comparison is sufficient.
38996 2003-01-14 Bruno Haible <bruno@clisp.org>
38998 * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
39001 2003-01-14 Bruno Haible <bruno@clisp.org>
39003 * lib/hash-pjw.c: Add comment about low quality of this function.
39005 2003-01-13 Bruno Haible <bruno@clisp.org>
39007 * modules/stpcpy: Distribute lib/stpcpy.h.
39008 * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
39010 2003-01-13 Bruno Haible <bruno@clisp.org>
39012 * modules/*: Add a description.
39013 * modules/strpbrk: Fix Makefile.am snippet.
39014 * modules/strtoimax: Fix dependencies.
39015 * modules/strtoumax: Likewise.
39017 2003-01-13 Bruno Haible <bruno@clisp.org>
39019 * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
39020 * modules/alloca (Makefile.am): All object files depend on alloca.h.
39021 * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
39023 2003-01-13 Bruno Haible <bruno@clisp.org>
39025 * gnulib-tool (func_create_testdir): Store config/* files in the main
39027 * config.rpath: Move to ...
39028 * config/config.rpath: ... here.
39029 * modules/gettext: Contains config/config.rpath, not config.rpath.
39030 * modules/iconv: Likewise.
39032 2003-01-12 Paul Eggert <eggert@twinsun.com>
39034 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
39035 to avoid collisions with libcurses and libreadline.
39037 * m4/getstr.m4: Remove.
39038 * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
39040 2003-01-12 Paul Eggert <eggert@twinsun.com>
39042 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
39043 to avoid collisions with libcurses and libreadline.
39045 * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
39046 * lib/getstr.h, getstr.c: Remove.
39047 * lib/getline.c: Include "getline.h", to check interface.
39048 Move body of old getstr.c here: this defines MIN_CHUNK and
39049 declares getdelim2, which is renamed from getstr.
39050 (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
39052 * lib/linebuffer.c (readlinebuffer): Renamed from readline.
39054 * lib/linebuffer.h: Likewise.
39055 (readline): Remove backward-compatibility macro.
39057 2003-01-12 Paul Eggert <eggert@twinsun.com>
39059 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
39060 to avoid collisions with libcurses and libreadline.
39062 * MODULES.html.sh: Remove getstr.
39063 * modules/getline: Depend on unlocked-io, not getstr.
39065 2003-01-12 Jim Meyering <jim@meyering.net>
39067 * lib/makepath.c: Don't test HAVE_ERRNO_H. It's not necessary.
39069 2003-01-10 Bruno Haible <bruno@clisp.org>
39071 * modules/alloca: Change Makefile.am requirements. Simplify Include
39072 requirements. Add lib/alloca_.h to file list.
39074 2003-01-10 Bruno Haible <bruno@clisp.org>
39076 * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
39078 2003-01-10 Bruno Haible <bruno@clisp.org>
39080 * lib/alloca_.h: New file.
39081 * lib/getdate.y: Unconditionally include alloca.h.
39082 * lib/makepath.c: Likewise.
39083 * lib/setenv.c: Likewise.
39084 * lib/userspec.c: Likewise.
39086 2003-01-09 Karl Berry <karl@gnu.org>
39088 * MODULES.html.sh: include `dirname $0` in PATH, to find
39091 2003-01-09 Bruno Haible <bruno@clisp.org>
39093 * modules/stdbool: Change configure.ac, Makefile.am requirements.
39094 Simplify Include requirements. Add lib/stdbool.h.in to file list.
39096 2003-01-09 Bruno Haible <bruno@clisp.org>
39098 * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
39100 2003-01-09 Bruno Haible <bruno@clisp.org>
39102 * lib/stdbool.h.in: New file.
39104 2003-01-09 Bruno Haible <bruno@clisp.org>
39106 * gnulib-tool (func_all_modules): Ignore files ending in ~.
39107 * MODULES.html.sh: Likewise.
39109 2003-01-08 Jim Meyering <jim@meyering.net>
39111 * lib/full-write.c: Undefine and define-away `const' after inclusion
39112 of errno.h, not before. Suggestion from Bruno Haible.
39114 2003-01-08 Bruno Haible <bruno@clisp.org>
39116 * modules/full-read: Depend on full-write.
39118 2003-01-08 Bruno Haible <bruno@clisp.org>
39120 * lib/safe-read.c: Include specification header first, to ensure its
39122 * lib/full-write.c: Likewise.
39124 2003-01-07 Jim Meyering <jim@meyering.net>
39126 * lib/full-write.c: Rework so that it may serve to define full_read,
39128 * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
39130 2003-01-07 Bruno Haible <bruno@clisp.org>
39132 * lib/strtoimax.c: Include <stdint.h> as an alternative to
39134 * lib/xstrtol.h: Likewise.
39135 * lib/xstrtoimax.c: Likewise.
39136 * lib/xstrtoumax.c: Likewise.
39137 * lib/human.h: Likewise.
39139 * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
39140 on systems that have <inttypes.h> but not <stdint.h>.
39142 2003-01-07 Bruno Haible <bruno@clisp.org>
39144 * MODULES.html.sh: Add copyright notice.
39145 (missed_files): Omit CVS directory entries.
39146 (func_module): Make it work with sed-3.02.
39147 * MODULES.txt: Remove file.
39149 2003-01-06 Jim Meyering <jim@meyering.net>
39151 * lib/version-etc.c: Update year in translatable copyright string.
39153 2003-01-03 Karl Berry <karl@gnu.org>
39155 * config/config.{guess,sub}: update from prep.
39157 2003-01-02 Karl Berry <karl@gnu.org>
39159 * doc/COPYING.DOC: belatedly updated to 1.2.
39161 2003-01-01 Karl Berry <karl@gnu.org>
39163 * gnulib-tool (func_verify_module): report module name $module in
39164 error message, not $1.
39165 * gnulib-tool (create-testdir): don't complain if destdir couldn't
39166 be created, only if it doesn't exist.
39167 * gnulib-tool (last_checkin_date): don't expand the $Date here.
39169 2002-12-31 Paul Eggert <eggert@twinsun.com>
39171 * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
39173 2002-12-31 Paul Eggert <eggert@twinsun.com>
39175 * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
39176 memcmp if strcoll doesn't work.
39178 2002-12-31 Bruno Haible <bruno@clisp.org>
39180 * lib/utime.c (utime_null): No need to call ftruncate if the file was
39183 2002-12-31 Bruno Haible <bruno@clisp.org>
39185 * lib/memcoll.c (STRCOLL): New macro.
39188 2002-12-31 Bruno Haible <bruno@clisp.org>
39190 * lib/localcharset.h: New file.
39191 * lib/localcharset.c: Include it.
39192 * lib/unicodeio.c: Likewise.
39194 2002-12-31 Bruno Haible <bruno@clisp.org>
39196 * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
39197 * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
39199 2002-12-31 Bruno Haible <bruno@clisp.org>
39201 * lib/getline.h: Include <stddef.h>, for size_t.
39203 * lib/unicodeio.h: Include <stddef.h>, for size_t.
39204 * lib/unicodeio.c: Don't include <stddef.h>.
39206 2002-12-31 Bruno Haible <bruno@clisp.org>
39208 * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
39211 2002-12-24 Karl Berry <karl@gnu.org>
39213 * config/config.guess: update from prep.
39215 2002-12-24 Bruno Haible <bruno@clisp.org>
39217 General infrasructure.
39218 * m4/README: Rewritten.
39219 * m4/onceonly.m4: New file.
39220 * m4/onceonly_2_57.m4: New file.
39223 * m4/atexit.m4: New file.
39226 * m4/strtod.m4: New file.
39229 * m4/strtol.m4: New file.
39232 * m4/strtoul.m4: New file.
39235 * m4/memchr.m4: New file.
39238 * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
39239 (jm_FUNC_MEMCMP): Invoke it.
39242 * m4/memcpy.m4: New file.
39245 * m4/memmove.m4: New file.
39248 * m4/memset.m4: New file.
39251 * m4/strcspn.m4: New file.
39254 * m4/strpbrk.m4: New file.
39257 * m4/strstr.m4: New file.
39260 * m4/strerror.m4: New file.
39263 * m4/mktime.m4: Renamed from jm-mktime.m4.
39264 (gl_PREREQ_MKTIME): New macro.
39265 (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
39268 * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
39269 (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
39270 Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
39273 * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
39274 (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
39275 Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
39278 * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
39279 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
39280 Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
39282 (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
39285 * m4/xalloc.m4: New file.
39288 * m4/alloca.m4: New file.
39291 * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
39292 (jm_FUNC_PUTENV): Invoke it.
39295 * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
39296 (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
39297 when invoked twice.
39298 (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
39302 * m4/memrchr.m4: New file.
39305 * m4/stpcpy.m4: New file.
39308 * m4/strcase.m4: New file.
39311 * m4/strdup.m4: New file.
39314 * m4/strnlen.m4: New file.
39317 * m4/strndup.m4: New file.
39320 * m4/xstrtod.m4: New file.
39323 * m4/xstrtol.m4: New file.
39326 * m4/getdate.m4: New file.
39328 Module unlocked-io.
39329 * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
39330 (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
39331 * m4/jm-glibc-io.m4n: Remove file.
39333 Module long-options.
39334 * m4/long-options.m4: New file.
39337 * m4/md5.m4: New file.
39340 * m4/sha.m4: New file.
39343 * m4/getstr.m4: New file.
39346 * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
39347 (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
39348 <sys/types.h>, for size_t. Use the function name gnu_getline, not
39349 simply getline. Infoke gl_PREREQ_GETLINE.
39352 * m4/obstack.m4: New file.
39355 * m4/hash.m4: New file.
39358 * m4/readtokens.m4: New file.
39361 * m4/strverscmp.m4: New file.
39364 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
39368 * m4/strtoll.m4: New file.
39371 * m4/strtoull.m4: New file.
39374 * m4/strtoimax.m4: New file.
39377 * m4/strtoumax.m4: New file.
39380 * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
39381 jm_AC_PREREQ_XSTRTOIMAX.
39382 Moved the strtol prerequisites to strtol.m4.
39383 Moved the strtoll prerequisites to strtoll.m4.
39384 Moved the strtoimax prerequisites to strtoimax.m4.
39387 * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
39388 jm_AC_PREREQ_XSTRTOUMAX.
39389 Moved the strtoul prerequisites to strtoul.m4.
39390 Moved the strtoull prerequisites to strtoull.m4.
39391 Moved the strtoumax prerequisites to strtoumax.m4.
39394 * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
39395 (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
39398 * m4/dup2.m4: New file.
39401 * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
39402 (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
39405 * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
39406 (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
39408 Module gettimeofday.
39409 * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
39410 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
39411 gl_PREREQ_GETTIMEOFDAY.
39414 * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
39415 (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
39418 * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
39419 (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
39420 jm_AC_TYPE_UINTMAX_T.
39421 (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
39424 * m4/stat.m4 (gl_PREREQ_STAT): New macro.
39425 (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
39428 * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
39429 (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
39432 * m4/timespec.m4 (gl_TIMESPEC): New macro.
39433 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
39434 * m4/st_mtim.m4: Indentation.
39437 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
39438 (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
39439 gl_PREREQ_NANOSLEEP.
39442 * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
39443 (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
39444 (gl_REGEX): New macro.
39447 * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
39448 (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
39451 * m4/rmdir.m4: New file.
39454 * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
39455 * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
39456 (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
39459 * m4/dirname.m4: New file.
39462 * m4/getopt.m4: New file.
39464 Module unistd-safer.
39465 * m4/unistd-safer.m4: New file.
39468 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
39470 (gl_PREREQ_FNMATCH_EXTRA): New macro.
39471 (gl_FUNC_FNMATCH_POSIX): New macro.
39472 (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
39473 gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
39477 * m4/exclude.m4: New file.
39480 * m4/human.m4: New file.
39486 * m4/backupfile.m4: New file.
39487 * m4/d-ino.m4: Indentation.
39490 * m4/fsusage.m4 (gl_FSUSAGE): New macro.
39491 (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
39492 (gl_PREREQ_FSUSAGE_EXTRA): New macro.
39495 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
39499 * m4/euidaccess.m4: New file.
39502 * m4/file-type.m4: New file.
39505 * m4/fileblocks.m4: New file.
39508 * m4/filemode.m4: New file.
39511 * m4/isdir.m4: New file.
39514 * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
39515 (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
39518 * m4/makepath.m4: New file.
39521 * m4/modechange.m4: New file.
39524 * m4/mountlist.m4: New file.
39525 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
39528 Module path-concat.
39529 * m4/path-concat.m4: New file.
39532 * m4/pathmax.m4: New file.
39535 * m4/same.m4: New file.
39538 * m4/save-cwd.m4: New file.
39541 * m4/savedir.m4: New file.
39544 * m4/xgetcwd.m4: New file.
39545 * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
39548 * m4/xreadlink.m4: New file.
39551 * m4/safe-read.m4: New file.
39554 * m4/safe-write.m4: New file.
39557 * m4/closeout.m4: New file.
39559 Module stdio-safer.
39560 * m4/stdio-safer.m4: New file.
39563 * m4/getpass.m4: New file.
39566 * m4/getugroups.m4: New file.
39568 Module group-member.
39569 * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
39570 (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
39573 * m4/idcache.m4: New file.
39576 * m4/userspec.m4: New file.
39579 * m4/clock_time.m4: New file.
39580 * m4/gettime.m4: New file.
39583 * m4/settime.m4: New file.
39586 * m4/posixtm.m4: New file.
39588 Module gethostname.
39589 * m4/gethostname.m4: New file.
39592 * m4/canon-host.m4: New file.
39595 * m4/codeset.m4: New file, from gettext-0.11.5.
39596 * m4/gettext.m4: New file, from gettext-0.11.5.
39597 * m4/glibc21.m4: New file, from gettext-0.11.5.
39598 * m4/iconv.m4: New file, from gettext-0.11.5.
39599 * m4/intdiv0.m4: New file, from gettext-0.11.5.
39600 * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
39601 * m4/inttypes.m4: New file, from gettext-0.11.5.
39602 * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
39603 * m4/isc-posix.m4: New file, from gettext-0.11.5.
39604 * m4/lcmessage.m4: New file, from gettext-0.11.5.
39605 * m4/lib-ld.m4: New file, from gettext-0.11.5.
39606 * m4/lib-link.m4: New file, from gettext-0.11.5.
39607 * m4/lib-prefix.m4: New file, from gettext-0.11.5.
39608 * m4/progtest.m4: New file, from gettext-0.11.5.
39609 * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
39610 * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
39611 * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
39613 Module localcharset.
39614 * m4/localcharset.m4: New file.
39616 Module hard-locale.
39617 * m4/hard-locale.m4: New file.
39620 * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
39622 * m4/mbrtowc.m4: Add comment.
39625 * m4/memcasecmp.m4: New file.
39628 * m4/memcoll.m4: New file.
39631 * m4/unicodeio.m4: New file.
39634 * m4/rpmatch.m4: New file.
39637 * m4/yesno.m4: New file.
39640 * m4/exitfail.m4: New file.
39643 * m4/c-stack.m4 (gl_C_STACK): New macro.
39644 (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
39647 * m4/error.m4 (gl_ERROR): New macro.
39648 (jm_PREREQ_ERROR): Use onceonly macros.
39651 * m4/fatal.m4: New file.
39654 * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
39655 (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
39657 Module getpagesize.
39658 * m4/getpagesize.m4: New file.
39660 Module getusershell.
39661 * m4/getusershell.m4: New file.
39664 * m4/physmem.m4: New file.
39667 * m4/posixver.m4: New file.
39670 * m4/quotearg.m4: New file.
39673 * m4/quote.m4: New file.
39676 * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
39679 * m4/sig2str.m4: New file.
39682 * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
39684 * m4/intmax_t.m4: New file.
39685 * m4/d-type.m4: Indentation.
39686 * m4/jm-macros.m4: Update.
39687 * m4/prereq.m4 (jm_PREREQ): Update.
39688 (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
39689 (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
39690 (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
39691 (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
39692 (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
39693 (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
39694 (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
39695 (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
39696 (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
39697 (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
39698 (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
39699 (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
39700 (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
39701 (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
39702 (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
39703 (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
39704 (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
39705 (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
39706 * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
39708 2002-12-24 Bruno Haible <bruno@clisp.org>
39710 * MODULES.txt: Update according to m4/ changes.
39713 * config.rpath: New file, from gettext-0.11.5.
39715 * modules/*: New module descriptions.
39716 * gnulib-tool: New file.
39717 * MODULES.html.sh: New file.
39719 2002-12-21 Karl Berry <karl@gnu.org>
39721 * doc/fdl.texi: update to version 1.2.
39723 2002-12-19 Karl Berry <karl@gnu.org>
39725 * config/config.guess: update from prep.
39727 2002-12-18 Bruno Haible <bruno@clisp.org>
39729 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
39730 * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
39732 2002-12-17 Bruno Haible <bruno@clisp.org>
39734 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
39735 stdlib.h, string.h.
39737 2002-12-17 Bruno Haible <bruno@clisp.org>
39739 * lib/canon-host.c (strdup): Remove unused declaration.
39741 * lib/fsusage.c: Include full_read.h.
39742 (get_fs_usage): Use full_read instead of safe_read.
39744 * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
39746 2002-12-12 Karl Berry <karl@gnu.org>
39748 * config/config.guess: update from prep.
39750 2002-12-11 Bruno Haible <bruno@clisp.org>
39752 * m4/setenv.m4: New file, from gettext-0.11.5.
39754 2002-12-11 Bruno Haible <bruno@clisp.org>
39756 * lib/setenv.h: Rewritten to cope with systems that have setenv() but
39758 * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
39761 2002-12-11 Bruno Haible <bruno@clisp.org>
39763 * setenv.c (alloca): Fall back to malloc.
39764 (freea): New macro.
39765 (setenv): Use freea() to free memory allocated with alloca().
39767 2002-11-13 Bruno Haible <bruno@clisp.org>
39769 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
39770 function declarations.
39771 * unsetenv.c (unsetenv): Likewise.
39773 2002-03-04 Bruno Haible <bruno@clisp.org>
39775 Portability to AIX 4.3.3.
39776 * unsetenv.c: New file, extracted from setenv.c.
39777 * setenv.c: Move the unsetenv() function to unsetenv.c.
39779 2001-12-20 Bruno Haible <bruno@clisp.org>
39781 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
39782 use malloc instead. For SunOS 4.
39784 2001-12-11 Bruno Haible <bruno@clisp.org>
39786 * setenv.c: Declare alloca.
39787 (compar_fn_t): New typedef.
39788 (KNOWN_VALUE, STORE_VALUE): Use it.
39790 * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
39793 2002-12-10 Paul Eggert <eggert@twinsun.com>
39795 Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
39796 * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
39797 Choose values that are less likely to collide with system fnmatch
39799 * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
39800 defined (e.g., a pure POSIX system).
39801 (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
39802 instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
39804 2002-12-06 Paul Eggert <eggert@twinsun.com>
39806 Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
39807 a pain in practice to deal with generated m4 files. This change
39808 goes together with the 2002-12-04 unlocked-io.h change in ../lib.
39810 * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
39811 and jm-glibc-io.m4, as they are no longer a special case.
39812 * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
39813 kludge and the auto-generation stuff. Check only whether the
39814 functions are declared, not whether they exist, since older hosts
39815 that don't declare the functions can't use the optimization anyway.
39817 2002-12-06 Jim Meyering <jim@meyering.net>
39819 * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
39821 Merge in changes from libc's misc/error.c, in preparation
39822 for the merge of gnulib's changes back into libc.
39824 * lib/error.c (_): Define only if not already defined.
39825 Move definition to follow all #include directives.
39826 Include unlocked-io.h only if !_LIBC.
39827 [_LIBC]: Include <libio/libioP.h>.
39828 [USE_IN_LIBIO]: Include <libio/iolibio.h>
39829 (fflush): Tweak definition to use INTUSE.
39832 2002-12-05 Paul Eggert <eggert@twinsun.com>
39834 * lib/alloca.c [defined emacs]: Include "lisp.h".
39835 (xalloc_die) [defined emacs]: New macro.
39836 (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
39837 [! defined emacs]: Include <xalloc.h>.
39838 (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
39839 (pointer): Typedef to POINTER_TYPE *.
39840 (malloc): Remove decl; we now always use xmalloc.
39841 (alloca): Use old-style definition, since Emacs needs this.
39842 Check for arithmetic overflow when computing combined size.
39844 2002-12-04 Paul Eggert <eggert@twinsun.com>
39846 Do not generate unlocked-io.h automatically, since it's easier to
39847 maintain it by hand.
39849 * lib/unlocked-io.h: New file, from GNU diffutils,
39850 but with proper copyright notice and attribution.
39851 * lib/gen-uio: Remove.
39852 * lib/Makefile.am: Add copyright notice.
39853 (libfetish_a_SOURCES): Add unlocked-io.h.
39854 (BUILT_SOURCES, all-local): Remove unlocked-io.h.
39855 (DISTCLEANFILES, io_functions): Remove macros.
39856 (EXTRA_DIST): Remove gen_uio.
39857 (unlocked-io.h): Remove rule.
39859 2002-12-04 Jim Meyering <jim@meyering.net>
39861 Reflect the fact that stat.c and lstat.c are no longer generated.
39862 * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
39863 (DISTCLEANFILES): Likewise.
39864 (EXTRA_DIST): Likewise.
39865 (all_local): Don't depend on stat.c or lstat.c.
39866 (stat.c, lstat.c): Remove rules.
39867 (EXTRA_DIST): Remove xstat.in.
39869 * lib/xstat.in: Remove file. Contents moved into stat.c.
39870 * lib/stat.c: New file. Contents mostly from xstat.in.
39871 * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
39872 * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
39874 * lib/safe-read.c: Rework so that it may serve to define safe_write,
39876 * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
39878 2002-12-03 Jim Meyering <jim@meyering.net>
39880 * lib/safe-read.c, safe-write.c: Change variable names and comments,
39881 but not semantics, to minimize the differences between these two files.
39882 (safe_read): Change comment to mention SAFE_READ_ERROR.
39884 * lib/safe-read.c (IS_EINTR): Define.
39885 (safe_read): Use IS_EINTR in place of in-function cpp directives.
39887 2002-12-02 Jim Meyering <jim@meyering.net>
39889 * lib/safe-read.c (EINTR): Define.
39890 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
39891 (INT_MAX): Provide fallback.
39892 (safe_read): Rewrite to iterate IFF the read fails with EINTR.
39894 * lib/safe-read.h (SAFE_READ_ERROR): Define.
39896 2002-12-02 Bruno Haible <bruno@clisp.org>
39898 * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
39899 Define, taken from safe-read.c.
39900 (INT_MAX): Provide fallback.
39901 (safe_write): Rewrite to iterate IFF the write fails with EINTR.
39902 * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
39904 * lib/safe-read.c (EINTR): Remove definition.
39905 (safe_read): Don't use EINTR if it is absent.
39907 2002-12-01 Jim Meyering <jim@meyering.net>
39909 * lib/safe-read.c: (safe_read): Also exit the loop when read returns
39911 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
39913 2002-11-27 Paul Eggert <eggert@twinsun.com>
39915 * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
39916 hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
39917 with `if (! (value < limit)) abort ();', for readability.
39919 2002-11-26 Karl Berry <karl@gnu.org>
39921 * lib/strdup.c: copy from libc again, with jim's ok.
39922 * lib/.cppi-disable: re-add strdup.c
39924 2002-11-25 Karl Berry <karl@gnu.org>
39926 * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
39927 instead of "strtol.c".
39929 2002-11-25 Karl Berry <karl@gnu.org>
39931 * config/install-sh: update from automake for variable quoting, $0 in
39934 * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
39935 * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
39938 2002-11-25 Jim Meyering <jim@meyering.net>
39940 * lib/mktime.c: Sync from libc, now that it has the latest fix.
39942 2002-11-24 Karl Berry <karl@gnu.org>
39944 * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
39945 regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
39947 2002-11-24 Jim Meyering <jim@meyering.net>
39949 Update from coreutils:
39951 * lib/mktime.c: Merge in changes from libc.
39953 Avoid a link-time failure on some Linux systems.
39954 * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
39956 (__mon_yday): Declare with the STATIC attribute.
39957 (__mktime_internal): Likewise.
39958 Based on a report from Greg Schafer.
39960 2002-11-23 Jim Meyering <jim@meyering.net>
39962 * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
39963 Use `unsigned', not `int', as type of index.
39965 * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
39967 * lib/fsusage.c: Remove unneeded parentheses around operands of
39970 2002-11-22 Paul Eggert <eggert@twinsun.com>
39972 * lib/quotearg.h: Allow multiple inclusion by surrounding with
39973 "#ifndef QUOTEARG_H_". Include <stddef.h>, for size_t,
39974 so that we can be included first.
39975 (PARAMS): Remove; we now assume C89 or later. All uses removed.
39976 * lib/quotearg.c: Include quotearg.h immediately after config.h.
39977 No need to include stddef.h or sys/types.h any more.
39978 Surround local include files with "", not "<>".
39979 Assume HAVE_LIMITS_H unconditionally, as we assume C89.
39980 Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
39981 HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
39982 (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
39983 (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
39984 (ISPRINT): Remove; no longer needed now that we assume C89.
39986 (clone_quoting_options, quotearg_buffer, quotearg_n_options):
39989 (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
39990 quotearg_char): Use SIZE_MAX rather than
39991 (size_t) -1 when we are talking about "infinity".
39993 (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
39995 2002-11-22 Paul Eggert <eggert@twinsun.com>
39997 * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
39998 hint that one should use `if (! x) abort ();' rather than `assert
39999 (x);', and anyway it's one less thing to worry about configuring.
40000 (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
40001 hash_rehash, hash_insert): Use abort rather than assert.
40003 2002-11-22 Bruno Haible <bruno@clisp.org>
40005 * lib/safe-read.h: Assume C89. Add comments.
40006 (safe_read): Change return type to size_t.
40007 * lib/safe-read.c (safe_read): Change return type to size_t. Handle
40008 byte counts > SSIZE_MAX correctly.
40009 * lib/safe-write.h: New file.
40010 * lib/safe-write.c: New file.
40011 * lib/full-read.h: New file.
40012 * lib/full-read.c: New file.
40013 * lib/full-write.h: Assume C89. Add comments.
40014 * lib/full-write.c: Include safe-write.h.
40015 (full_write): Rewritten to use safe_write.
40016 Suggested by Jim Meyering and Paul Eggert.
40018 2002-11-21 Jim Meyering <jim@meyering.net>
40020 * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
40022 Merge in changes from the coreutils.
40024 2002-09-25 Paul Eggert <eggert@twinsun.com>
40025 * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
40027 (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
40028 (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
40029 int. Work more efficiently if X is the same width as uintmax_t.
40030 Do not compare X to -1, to avoid bogus compiler warning.
40031 (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
40032 Don't assume that f_frsize and f_bsize are the same type.
40034 * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
40035 warning on FreeBSD.
40037 * lib/makepath.c (make_path): Restore umask *before* creating the final
40039 (make_path): Minor reformatting.
40041 * lib/xmalloc.c: Adjust to work with new autoconf macros,
40042 AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
40043 HAVE_MALLOC/HAVE_REALLOC.
40045 * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
40046 dummy ones. At least on GNU/Linux systems, `auto' means something
40048 From Michael Stone.
40050 2002-11-21 Bruno Haible <bruno@clisp.org>
40052 Remove case insensitive option matching.
40053 * lib/argmatch.h (argcasematch): Remove declaration.
40054 (ARGCASEMATCH): Remove macro.
40055 (__xargmatch_internal): Remove case_sensitive argument.
40056 (XARGMATCH): Update.
40057 (XARGCASEMATCH): Remove macro.
40058 * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
40059 case_sensitive argument.
40060 (argcasematch): Remove function.
40061 (__xargmatch_internal): Remove case_sensitive argument.
40062 (main): Use XARGMATCH instead of XARGCASEMATCH.
40064 * lib/xmalloc.c: Change compile-time error message. Add comment about
40065 required autoconf version.
40067 2002-11-20 Paul Eggert <eggert@twinsun.com>
40069 Merge argmatch cleanups from Bison. Assume C89.
40071 * lib/argmatch.c: Include config.h here, not in argmatch.h.
40072 Include stdlib.h, for EXIT_FAILURE.
40073 Always include <string.h>, since we assume C89.
40074 (EXIT_FAILURE): Remove pre-C89 bug workaround.
40075 * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
40076 Include <stddef.h> instead, since it's all we need for size_t.
40077 (PARAMS): Remove. All uses removed.
40078 (ARRAY_CARDINALITY): Do not bother to #undef.
40079 (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
40080 ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
40081 Remove unnecessary parentheses.
40082 (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
40083 Insert necessary parentheses.
40084 (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
40085 (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
40087 2002-11-19 Bruno Haible <bruno@clisp.org>
40089 * lib/mbswidth.c: Include mbswidth.h right at the beginning.
40090 * lib/mbswidth.h: Include <stddef.h>, for size_t.
40092 * lib/mbswidth.h (PARAMS): Remove macro.
40093 (mbswidth, mbsnwidth): Use ANSI C function declarations.
40094 * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
40096 * lib/gcd.h (PARAMS): Remove macro.
40097 (gcd): Use ANSI C function declarations.
40098 * lib/gcd.c (gcd): Likewise.
40100 2002-11-15 Bruno Haible <bruno@clisp.org>
40102 * lib/strcspn.c: Include <stddef.h>.
40103 (strcspn): Use ANSI C function declaration. Change return type to
40105 * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
40106 (strpbrk): Use NULL.
40107 * lib/strpbrk.h (PARAMS): Remove macro.
40108 (strpbrk): Use ANSI C function declaration.
40109 * lib/strstr.c: Don't include <sys/types.h>.
40110 * lib/strstr.h (PARAMS): Remove macro.
40111 (strstr): Use ANSI C function declarations.
40113 2002-11-14 Karl Berry <karl@gnu.org>
40115 * config/mkinstalldirs: `do' on separate line, instead of
40118 2002-11-06 Bruno Haible <bruno@clisp.org>
40120 * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
40121 * lib/gcd.c (gcd): Likewise.
40123 2002-11-05 Bruno Haible <bruno@clisp.org>
40125 * lib/gcd.h: New file, from gettext-0.11.5.
40126 * lib/gcd.c: New file, from gettext-0.11.5.
40128 2002-11-05 Bruno Haible <bruno@clisp.org>
40130 * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
40131 * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
40132 * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
40133 * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
40135 * lib/argmatch.c: Include gettext.h instead of <locale.h> and
40137 * lib/makepath.c: Include gettext.h instead of <locale.h> and
40140 * lib/closeout.c: Include gettext.h instead of <libintl.h>.
40141 * lib/human.c: Include gettext.h instead of <libintl.h>.
40142 * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
40143 * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
40144 * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
40145 * lib/userspec.c: Include gettext.h instead of <libintl.h>.
40146 * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
40147 * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
40148 (textdomain): Remove definition.
40149 * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
40151 * lib/long-options.c: Remove include of <libintl.h> and definition of
40153 * lib/same.c: Remove include of <libintl.h> and definition of _.
40155 2002-11-04 Owen Taylor <otaylor@redhat.com>
40157 * lib/config.charset: A few additions for Solaris.
40159 2002-11-04 Bruno Haible <haible@clisp.cons.org>
40161 Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
40162 * lib/localcharset.c (locale_charset): Declare as extern "C".
40164 2002-11-04 Bruno Haible <haible@clisp.cons.org>
40166 * lib/config.charset: msdos in uk_UA uses CP1125.
40168 2002-11-04 Bruno Haible <bruno@clisp.org>
40170 * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
40171 * lib/strcase.h: New file, from GNU gettext-0.11.5.
40172 * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
40173 * lib/strstr.h: New file, from GNU gettext-0.11.5.
40174 * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
40176 2002-11-04 Bruno Haible <bruno@clisp.org>
40178 * lib/localcharset.c (locale_charset): Don't return an empty string.
40180 2002-11-04 Bruno Haible <bruno@clisp.org>
40182 * lib/localcharset.c (get_charset_aliases): Add more Windows specific
40185 2002-11-04 Bruno Haible <bruno@clisp.org>
40187 * lib/config.charset: Update for newest glibc. Add canonical names
40188 ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
40190 2002-11-04 Bruno Haible <bruno@clisp.org>
40192 * lib/config.charset: Add support for NetBSD.
40194 2002-11-04 Bruno Haible <bruno@clisp.org>
40196 * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
40198 2002-11-01 Bruno Haible <bruno@clisp.org>
40200 * configure.in: Add AC_CONFIG_AUX_DIR call.
40201 (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
40203 * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
40205 2002-09-28 Karl Berry <karl@gnu.org>
40207 * config/srclist.txt: can't copy install-sh/mkinstalldirs from
40208 installed automake until the next release, since changes have been
40211 2002-09-25 Karl Berry <karl@gnu.org>
40213 * lib/strdup.c: copy from libc/string (via ../config/srclist*).
40214 * lib/getopt*: copy from libc/posix.
40215 * lib/gettext.h: copy from gettext.
40216 * lib/.cppi-disable: add strdup.c, gettext.h.
40218 2002-09-25 Karl Berry <karl@gnu.org>
40220 * config/srclist.txt: enable gettext.h check.
40221 * config/config.{guess,sub}: update from prep.
40222 * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
40223 from automake 1.6.3.
40226 2002-08-23 Stefan Monnier <monnier@cs.yale.edu>
40228 * regex.c (PATFETCH): Remove the translating fetch.
40229 (PATFETCH_RAW): Rename to PATFETCH.
40230 (set_image_of_range): New fun.
40231 (SET_RANGE_TABLE_WORK_AREA): Use it.
40232 (regex_compile): Don't translate the pattern chars so eagerly.
40233 Only do it when inserting an `exactn' bytecode or when handling
40235 (mutually_exclusive_p): Avoid empty statement.
40237 2002-07-06 Jim Meyering <meyering@lucent.com>
40239 * m4/README: Don't mention Makefile.am.in.
40240 Outline how I've tested changes to .m4 files. Yep, it's a pain.
40242 2002-07-01 Jim Meyering <meyering@lucent.com>
40244 * lib/c-stack.c: Include sys/time.h.
40245 From Volker Borchert.
40247 2002-06-26 Paul Eggert <eggert@twinsun.com>
40249 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
40251 2002-06-26 Paul Eggert <eggert@twinsun.com>
40253 * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
40254 New macro. Use it uniformly instead of
40255 (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
40256 It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
40257 reported by Vin Shelton.
40259 2002-06-22 Paul Eggert <eggert@twinsun.com>
40261 * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
40262 Do not assume SA_SIGINFO behavior.
40263 Bug reported by Jim Meyering on NetBSD 1.5.2.
40265 2002-06-22 Jim Meyering <meyering@lucent.com>
40267 * m4/c-stack.m4: New file, from diffutils-2.8.2.
40268 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
40270 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
40271 now that configure.ac uses AC_GNU_SOURCE.
40272 (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
40273 * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
40275 Update to latest tools. Suggestions from Paul Eggert.
40276 * m4/stdbool.m4: New file, from diffutils-2.8.2.
40277 * m4/gnu-source.m4: Update from diffutils-2.8.2.
40278 * m4/fnmatch.m4: Likewise.
40279 * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
40280 to AC_HEADER_STDBOOL
40282 2002-06-22 Jim Meyering <meyering@lucent.com>
40284 * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
40285 redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
40287 2002-06-22 Jim Meyering <meyering@lucent.com>
40289 * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
40291 * lib/exitfail.c, exitfail.h: Likewise.
40292 * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
40294 * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
40296 (EXTRA_DIST): Add fnmatch_loop.c.
40297 (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
40299 * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
40300 * lib/fnmatch.c: Update from diffutils-2.8.2.
40301 * lib/fnmatch_.h: New file. From diffutils-2.8.2.
40302 * lib/fnmatch.h: Remove file.
40304 2002-06-21 Jim Meyering <meyering@lucent.com>
40306 * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
40307 * m4/mbrtowc.m4: Likewise.
40309 * m4/mbstate_t.m4: Update from diffutils-2.8.2.
40310 * m4/mbswidth.m4: Reflect name change:
40311 s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
40312 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
40314 * m4/lib-link.m4: Update from gettext-0.11.2.
40315 * m4/gettext.m4: Likewise.
40317 * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
40318 From Alfred M. Szmidt.
40320 2002-06-18 Paul Eggert <eggert@twinsun.com>
40322 * lib/file-type.h: Report an error if neither S_ISREG nor
40323 S_IFREG is defined, instead of using a test specific to glibc
40324 2.2. This should be safe, since POSIX requires S_ISREG and
40325 Unix Version 7 had S_IFREG. We don't need to check for
40326 <sys/types.h> since we don't use any symbols that it defines.
40328 2002-06-15 Richard Dawe <richdawe@bigfoot.com>
40330 * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
40331 $@-t, so that each temporary file name is unique and valid in the first
40332 8 characters, for operation under DOS.
40334 2002-06-15 Paul Eggert <eggert@twinsun.com>
40336 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
40338 2002-06-15 Jim Meyering <meyering@lucent.com>
40340 Work even with DJGPP 2.03, which lacks support for symlinks.
40342 * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
40344 * lib/lchown.c (S_ISLNK): Likewise.
40346 2002-06-15 Jim Meyering <meyering@lucent.com>
40348 * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
40349 For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
40350 have been included before this file.
40352 2002-06-14 Jim Meyering <meyering@lucent.com>
40354 * lib/file-type.h: Use the version from diffutils-2.8.2.
40355 * lib/file-type.c: Likewise.
40357 2002-06-07 Jim Meyering <meyering@lucent.com>
40359 * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
40360 They're needed at least for NetBSD 1.5.2.
40361 ($statxfs_includes): Include those same headers.
40362 ($statxfs_includes): Include sys/vfs.h if available.
40363 ($statxfs_includes): Likewise for sys/statvfs.h.
40364 Check for the following members in both structs statfs and statvfs:
40365 f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
40367 2002-06-01 Jim Meyering <meyering@lucent.com>
40369 * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
40370 s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
40372 2002-05-28 Jim Meyering <meyering@lucent.com>
40374 * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
40375 Reported by Volker Borchert.
40377 2002-05-27 Jim Meyering <meyering@lucent.com>
40379 Fix a problem seen only on nonconforming systems whereby ls.c's
40380 use of localtime, and then of gettimeofday would cause trouble:
40381 the localtime call used to initialize rpl_gettimeofday's save
40382 mechanism would clobber ls's current local time information so
40383 that in any long listing the first file would always be listed
40384 with date 1970-01-01. Analysis by Volker Borchert.
40386 * lib/gettimeofday.c (localtime): Undefine.
40387 (rpl_localtime): New function.
40389 2002-05-27 Jim Meyering <meyering@lucent.com>
40391 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
40394 * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
40395 use the replacement function; it wouldn't resolve at link time.
40396 Reported by Volker Borchert.
40398 2002-05-22 Jim Meyering <meyering@lucent.com>
40400 * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
40402 * lib/file-type.h: New file.
40403 * lib/file-type.c (file_type): New file/function. Extracted from
40406 2002-04-30 Jim Meyering <meyering@lucent.com>
40408 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
40410 2002-04-29 Paul Eggert <eggert@twinsun.com>
40412 * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
40414 2002-04-29 Paul Eggert <eggert@twinsun.com>
40416 * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
40417 Do not check for alloca.h (no longer used) or stdbool.h (was never
40418 used?). Add AM_C_PROTOTYPES since hard-locale.h uses it.
40420 2002-04-29 Paul Eggert <eggert@twinsun.com>
40422 * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
40424 2002-04-29 Jim Meyering <meyering@lucent.com>
40426 * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
40427 * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
40428 Use AC_FUNC_STRNLEN here instead.
40430 * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
40431 With autoconf-2.53a, it's part of AC_PROG_CC.
40433 2002-04-28 Paul Eggert <eggert@twinsun.com>
40435 * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
40436 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
40438 2002-04-28 Paul Eggert <eggert@twinsun.com>
40440 * lib/sig2str.h, lib/sig2str.c: New files.
40441 * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
40443 2002-04-28 Paul Eggert <eggert@twinsun.com>
40445 * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
40446 depending on <sys/wait.h> and WTERMSIG. Default to 64 instead
40447 of 127, since 64 is the largest conceivable number for ancient
40449 * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
40451 2002-04-28 Jim Meyering <meyering@lucent.com>
40453 * lib/sig2str.c (WTERMSIG): Remove definition (unused).
40455 2002-04-24 Jim Meyering <meyering@lucent.com>
40457 * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
40458 (jm_PREREQ): Use it.
40460 * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
40461 mach/mach.h fcntl.h.
40462 Check for this function: setlocale.
40464 2002-04-24 Jim Meyering <meyering@lucent.com>
40466 * lib/gettext.h: New file, from Gettext.
40467 * lib/Makefile.am (INCLUDES): Remove -I../intl.
40468 (libfetish_a_SOURCES): Add gettext.h.
40470 2002-04-16 Jim Meyering <meyering@lucent.com>
40472 * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
40473 ut_pid, ut_id, ut_exit.
40475 2002-04-16 Jim Meyering <meyering@lucent.com>
40477 * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
40478 (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
40479 (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
40481 2002-04-12 Jim Meyering <meyering@lucent.com>
40483 * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
40484 now-bogus check for f_type in sys/mount.h. Instead, just test for the
40485 existence of the getmntinfo function. Needed for Darwin 5.3.
40487 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
40488 This is necessary at least on Darwin 5.3.
40490 * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
40491 AC_FUNC_STRNLEN. Otherwise, we'd end up putting two copies of
40492 strnlen.o in the library, and that makes some versions of ranlib
40495 2002-04-12 Jim Meyering <meyering@lucent.com>
40497 * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
40499 2002-04-09 Jim Meyering <meyering@lucent.com>
40501 * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
40502 to be more precise. Rather than saying we're checking whether the
40503 function `works', say what we're testing.
40504 * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
40505 Reported by Bruno Haible.
40507 2002-03-10 Jim Meyering <meyering@lucent.com>
40509 * lib/makepath.c (make_path): Remove a comma from a diagnostic.
40510 Suggestion from Santiago Vila.
40512 2002-03-08 Jim Meyering <meyering@lucent.com>
40514 * lib/rename.c: Mention that this wrapper is needed also on
40515 mips-dec-ultrix4.4 systems.
40517 2002-03-02 Jim Meyering <meyering@lucent.com>
40519 * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
40520 not HAVE_CLOCK_SETTIME.
40522 2002-02-27 Paul Eggert <eggert@twinsun.com>
40524 * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
40525 Check for clock_settime.
40527 2002-02-27 Paul Eggert <eggert@twinsun.com>
40529 * lib/nanosleep.h: Rename to....
40530 * lib/timespec.h: New name for nanosleep.h. All uses changed.
40532 * lib/gettime.c: New file.
40533 * lib/settime.c: New file.
40534 * lib/stime.c: Remove.
40536 * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
40537 timespec.h. Remove nanosleep.h.
40539 2002-02-25 Paul Eggert <eggert@twinsun.com>
40541 * m4/acl.m4: New file.
40542 * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
40543 Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
40545 2002-02-25 Paul Eggert <eggert@twinsun.com>
40547 * lib/acl.c, lib/acl.h: New files.
40548 * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
40550 2002-02-24 Jim Meyering <meyering@lucent.com>
40552 * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
40553 prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
40554 cause trouble. Reported by Nelson Beebe.
40556 2002-02-23 Paul Eggert <eggert@twinsun.com>
40558 * lib/path-concat.c (xpath_concat): Reorder code to pacify
40559 compilers that don't know that xalloc_die never returns.
40561 2002-02-20 Jim Meyering <meyering@lucent.com>
40563 * lib/getdate.c: Regenerate using bison-1.33.
40565 2002-02-17 Jim Meyering <meyering@lucent.com>
40567 * config/config.guess (main): Don't use `head -1'; it's no longer
40568 portable. Use `sed 1q' instead.
40570 2002-02-16 gettextize <bug-gnu-gettext@gnu.org>
40572 * m4/codeset.m4: Upgrade to gettext-0.11.
40573 * m4/gettext.m4: Upgrade to gettext-0.11.
40574 * m4/glibc21.m4: Upgrade to gettext-0.11.
40575 * m4/iconv.m4: Upgrade to gettext-0.11.
40576 * m4/isc-posix.m4: Upgrade to gettext-0.11.
40577 * m4/lcmessage.m4: Upgrade to gettext-0.11.
40578 * m4/lib-ld.m4: New file, from gettext-0.11.
40579 * m4/lib-link.m4: New file, from gettext-0.11.
40580 * m4/lib-prefix.m4: New file, from gettext-0.11.
40581 * m4/progtest.m4: Upgrade to gettext-0.11.
40583 2002-02-15 Paul Eggert <eggert@twinsun.com>
40585 * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
40586 (jm_PREREQ): Use it.
40588 2002-02-15 Paul Eggert <eggert@twinsun.com>
40590 * lib/posixver.c, lib/posixver.h: New files.
40591 * lib/Makefile.am (libfetish_a_SOURCES): Add them.
40593 2002-02-02 Paul Eggert <eggert@twinsun.com>
40594 Bruno Haible <bruno@clisp.org>
40596 * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
40597 (fwrite_success_callback): New declaration.
40598 * lib/unicodeio.c (unicode_to_mb): New function, extracted from
40599 print_unicode_char. Call failure callback instead of error.
40600 (fwrite_success_callback): New function.
40601 (exit_failure_callback): New function.
40602 (fallback_failure_callback): New function.
40603 (print_unicode_char): Call unicode_to_mb.
40605 2002-01-26 Jim Meyering <meyering@lucent.com>
40607 * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
40608 * m4/strnlen.m4: Remove file, now that it's part of autoconf.
40610 2002-01-26 Jim Meyering <meyering@lucent.com>
40612 * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
40614 2002-01-22 Paul Eggert <eggert@twinsun.com>
40616 * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
40618 2002-01-22 Jim Meyering <meyering@lucent.com>
40620 * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
40621 Otherwise, some versions of automake would omit the rule that makes
40622 Makefile from Makefile.in.
40624 2002-01-21 Paul Eggert <eggert@twinsun.com>
40626 * lib/xmemcoll.h, lib/xmemcoll.c: New files.
40627 * lib/Makefile.am (libfetish_a_SOURCES): Add them.
40628 * lib/memcoll.c: Include errno.h, and declare errno if not defined.
40629 (memcoll): Set errno to zero if there is no error.
40631 * lib/quotearg.c (quotearg_buffer_restyled):
40632 Fix bug with quoting buffers containing NUL when backslashing escapes.
40633 This bug was exposed by the other changes in this patch.
40634 (quotearg_n_options): New arg ARGSIZE.
40635 All callers changed.
40636 (quoting_options_from_style): New function.
40637 (quotearg_n_style): Use it.
40638 (quotearg_n_style_mem): New function.
40640 * lib/quotearg.h (quotearg_n_style_mem): New function.
40642 2002-01-19 Jim Meyering <meyering@lucent.com>
40644 * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
40645 Remove useless quotes: DF_PROG="df".
40646 * m4/strnlen.m4: New file.
40648 2002-01-16 Paul Eggert <eggert@twinsun.com>
40650 * lib/backupfile.c (ISDIGIT): Comment fix.
40651 * lib/getdate.y (ISDIGIT): Likewise.
40652 * lib/posixtm.c (ISDIGIT, year): Likewise.
40653 * lib/strverscmp.c (ISDIGIT): Likewise.
40654 * lib/userspec.c (ISDIGIT): Likewise.
40656 2002-01-16 Jim Meyering <meyering@lucent.com>
40658 * lib/getdate.y: Add three semicolons, each just before a closing
40659 brace. Bison (as of version 1.31) no longer papers over that mistake.
40661 2002-01-05 Jim Meyering <meyering@lucent.com>
40663 * lib/version-etc.c (version_etc_copyright): Update copyright year.
40665 2001-12-19 Paul Eggert <eggert@twinsun.com>
40667 * lib/closeout.c (close_stdout_status): If ferror (stdout), do
40668 not silently exit merely because the output buffer happens to
40669 have nothing pending.
40671 2001-12-18 Paul Eggert <eggert@twinsun.com>
40673 See the big note in ../ChangeLog.
40674 * lib/human.c (suffixes): Prefer K to k for 1024.
40675 (generate_suffix_backwards): New function.
40676 (human_readable_inexact): Use it.
40677 * lib/xstrtol.c (__xstrtol): If there is no number but there
40678 is a valid suffix, assume 1. "MB" now means decimal, "MiB" binary.
40679 Accept 'K' as well as 'k'.
40681 2001-12-15 Jim Meyering <meyering@lucent.com>
40683 * lib/regex.h (__restrict_arr): Update from libc.
40685 * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
40686 as `remote' if the name starts with `//'. Suggested by Michael Stone.
40689 2001-12-14 Jim Meyering <meyering@lucent.com>
40691 * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
40692 Suggestion from Bruno Haible.
40694 2001-12-10 Jim Meyering <meyering@lucent.com>
40696 * lib/linebuffer.c: Remove explicit declarations of xmalloc and
40697 xrealloc, Instead, include "xalloc.h".
40698 (initbuffer): Don't cast xmalloc return value to char*.
40699 (readline): Reword comment.
40700 Don't cast xrealloc return value to char*
40701 Return NULL, not 0.
40703 2001-12-09 Jim Meyering <meyering@lucent.com>
40705 * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
40706 about `signed and unsigned type in conditional expression'.
40707 * lib/posixtm.c (posix_time_parse): Likewise.
40709 * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
40711 * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
40712 to avoid a pedantic warning.
40714 * lib/getstr.c: Don't include assert.h.
40715 (getstr): Remove warning-evoking assertions.
40716 Return -1 if offset parameter is out of bounds.
40717 Change the type of a local from int to size_t.
40719 * lib/strftime.c (my_strftime_localtime_r): Include this function
40720 definition in the `#if ! HAVE_TM_GMTOFF' block.
40722 * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
40723 Include xalloc.h instead.
40725 2001-12-02 Jim Meyering <meyering@lucent.com>
40727 * lib/tempname.c: Don't declare getenv, thus reverting the change of
40728 2001-11-18. It's no longer necessary, now that stdlib.h is always
40731 * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
40732 __unbounded, and __ptrvalue. Reported by Uwe H. Steinfeld.
40734 2001-11-30 Akim Demaille <akim@epita.fr>
40736 * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
40737 before being defined.
40739 2001-11-27 Paul Eggert <eggert@twinsun.com>
40741 * lib/quotearg.h (quotearg_n, quotearg_n_style):
40742 First arg is int, not unsigned.
40743 * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
40744 (SIZE_MAX, UINT_MAX): New macros.
40745 (quotearg_n_options): Abort if N is negative.
40746 Avoid overflow check on hosts where size_t is 64 bits and int
40747 is 32 bits, as overflow is impossible there.
40748 Fix off-by-one typo that caused unnecessary reallocation.
40750 2001-11-27 Jim Meyering <meyering@lucent.com>
40752 * lib/tempname.c: Merge with version from libc.
40753 * lib/regex.c: Likewise.
40755 * lib/tempname.c: Include stdlib.h unconditionally. On some old
40756 systems for which STDC_HEADERS is 0, it was not included, resulting in
40757 a warning about an integer-to-pointer conversion problem with getenv.
40758 Reported by Volker Borchert.
40760 2001-11-26 Jim Meyering <meyering@lucent.com>
40762 * lib/gtod.h: Remove file.
40763 * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
40764 * lib/gettimeofday.c: Don't include gtod.h.
40765 (GTOD_init): Remove function.
40766 (rpl_gettimeofday): Do its job here instead, rather than aborting.
40767 Suggestion from Volker Borchert.
40769 2001-11-23 Jim Meyering <meyering@lucent.com>
40771 * lib/hash.h (struct hash_table): Don't define here. Merely declare
40773 * lib/hash.c (struct hash_table): Define it here instead.
40775 2001-11-22 Jim Meyering <meyering@lucent.com>
40777 * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
40779 2001-11-20 Jim Meyering <meyering@lucent.com>
40781 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
40782 SunOS 4.1.4 and Solaris 2.5.1 lose, too.
40784 2001-11-19 Jim Meyering <meyering@lucent.com>
40786 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
40787 directory. Use "conftestXXXXXX" as the template.
40788 Suggestion from Paul Eggert.
40790 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
40791 immediately, so the test doesn't mistakenly hit the max-open-files
40794 2001-11-18 Paul Eggert <eggert@twinsun.com>
40796 * lib/tempname.c (TMP_MAX): Remove; no longer needed.
40797 (TEMPORARIES): New macro.
40798 (__gen_tempname): Use TEMPORARIES rather than TMP_MAX. This
40799 removes an artificial limitation (e.g. HP-UX 10.20, where
40802 2001-11-18 Jim Meyering <meyering@lucent.com>
40804 * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
40806 2001-11-18 Jim Meyering <meyering@lucent.com>
40808 * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
40811 * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
40812 files will be created before anything else.
40814 2001-11-17 Paul Eggert <eggert@twinsun.com>
40816 * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
40817 WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
40819 2001-11-17 Jim Meyering <meyering@lucent.com>
40821 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
40822 Prompted by a report from Bob Proulx.
40824 * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
40825 Instead, require UTILS_FUNC_MKSTEMP.
40827 2001-11-17 Jim Meyering <meyering@lucent.com>
40829 * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
40830 Now, that's done as part of AC_FUNC_STRTOD.
40832 2001-11-17 Jim Meyering <meyering@lucent.com>
40834 * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
40835 that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
40836 rather than group writable. Patch by Juan F. Codagnone.
40838 * lib/readtokens.c: Remove explicit declarations of xmalloc and
40839 xrealloc, Instead, include "xalloc.h".
40841 * lib/mountlist.c: Include unlocked-io.h after all system headers.
40842 Remove explicit declarations of xmalloc, xrealloc,
40843 and xstrdup. Instead, include "xalloc.h".
40845 * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
40847 * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
40849 * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
40851 * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
40852 Reported by Padraig Brady.
40854 * lib/mkstemp.c: #undef mkstemp.
40856 (rpl_mkstemp): Rename from mkstemp.
40859 2001-11-16 Jim Meyering <meyering@lucent.com>
40861 * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
40862 (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
40863 determine the amount of total physical memory, use pstat_getstatic.
40864 HPUX-11 doesn't define _SC_PHYS_PAGES.
40865 (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
40866 If sysconf couldn't be used to determine the amount of available
40867 physical memory, use both pstat_getstatic and pstat_getdynamic.
40868 Based on a patch from Bob Proulx.
40870 2001-11-10 Jim Meyering <meyering@lucent.com>
40872 * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
40873 (jm_PREREQ): Use it.
40875 2001-11-09 Jim Meyering <meyering@lucent.com>
40877 * m4/jm-macros.m4: Require autoconf-2.52f.
40878 (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
40879 Use these AC_-prefixed names, not the AM_-prefixed ones.
40881 * m4/afs.m4 (jm_AFS): Quote the body. Patch by Akim Demaille.
40883 2001-11-05 Jim Meyering <meyering@lucent.com>
40885 * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
40887 2001-11-04 Jim Meyering <meyering@lucent.com>
40889 * m4/fpending.m4: Remove unused cruft that saved, set, and restored
40892 2001-11-03 Jim Meyering <meyering@lucent.com>
40894 * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
40897 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
40898 know the name of the variable in the macro definition.
40900 2001-11-03 Jim Meyering <meyering@lucent.com>
40902 * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
40903 in argmatch_to_argument call.
40905 * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
40908 * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
40909 e.g., a fault due to an attempt to free a NULL pointer.
40911 2001-11-01 Jim Meyering <meyering@lucent.com>
40913 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
40914 * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
40916 2001-11-01 Jim Meyering <meyering@lucent.com>
40918 * lib/dirfd.c, lib/dirfd.h: New files.
40919 * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
40921 * lib/hash.c (hash_print) [TESTING]: Clean up.
40923 2001-10-22 Paul Eggert <eggert@twinsun.com>
40925 * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
40926 to avoid a warning if -Wall.
40928 2001-10-22 Jeff Bailey <jbailey@outpost.dnsalias.org>
40931 * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
40932 (per RMS's instructions, this is now the canonical source)
40933 * lgpl/, gpl/: New directories.
40935 2001-10-21 Paul Eggert <eggert@twinsun.com>
40937 * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
40939 2001-10-21 Jim Meyering <meyering@lucent.com>
40941 * lib/obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
40942 this code would end up calling gettext even in packages built
40943 with --disable-nls.
40944 * lib/getopt.c (_): Likewise.
40945 * lib/regex.c (_): Likewise.
40947 2001-10-20 Paul Eggert <eggert@twinsun.com>
40949 * m4/error.m4 (jm_PREREQ_ERROR):
40950 Do not invoke AC_CHECK_FUNCS with strerror_r, as
40951 AC_FUNC_STRERROR_R does that.
40952 Check for strerror declaration.
40954 * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
40955 are supposed to have them these days.
40956 (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
40957 Merge changes from latest Autoconf CVS.
40958 Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
40959 and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
40960 POSIX decided to standardize on the int flavor of strerror_r.
40962 2001-10-20 Paul Eggert <eggert@twinsun.com>
40964 * lib/error.c (strerror_r): Do not declare unless !_LIBC.
40965 Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
40966 Use strerror_r that is only a macro, even if it is not a function.
40967 (strerror): Check for HAVE_DECL_STRERROR before declaring.
40968 (private_strerror): Use prototypes, not old-style function definition.
40969 (print_errno_message): New function.
40970 Support the POSIX 'int'-flavored strerror_r, as well as the traditional
40971 char*-flavored one.
40972 (error_tail, error, error_at_line): Use it.
40974 2001-10-11 Jim Meyering <meyering@lucent.com>
40976 * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
40977 and quote_n (1, ... to avoid clobbering a buffer.
40979 2001-10-05 Jim Meyering <meyering@lucent.com>
40981 * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
40983 * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
40984 * lib/hash-pjw.h: New file.
40986 2001-09-30 Jim Meyering <meyering@lucent.com>
40988 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
40989 `struct fsstat' has the `f_fstypename' member.
40990 Use that to define FS_TYPE, which is now used to make
40991 the getfsstat link test tighter.
40993 2001-09-30 Jim Meyering <meyering@lucent.com>
40995 * lib/mountlist.c [MOUNTED_GETFSSTAT]:
40996 Include <sys/ucred.h>, for Apple Darwin.
40997 Include sys/mount.h and sys/fs_types.h only if available.
40999 (read_filesystem_list): Use FS_TYPE.
41001 2001-09-29 Paul Eggert <eggert@twinsun.com>
41003 * lib/exclude.c (excluded_filename): 0 -> false, since it's
41006 2001-09-29 Jim Meyering <meyering@lucent.com>
41008 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
41009 [one-argument getmntent function]): Include stdio.h before mntent.h.
41010 SunOS 4.1.x needs it for the declaration of `FILE'.
41011 Patch by Volker Borchert.
41013 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
41014 Check for these headers: sys/param.h sys/ucred.h sys/mount.h
41015 sys/fs_types.h, and make the link-test for getfsstat guard #include
41016 directives with appropriate #if HAVE_*_H tests so that we can
41017 detect getfsstat on Apple Darwin1.3.7 systems.
41018 Reported by Nelson Beebe.
41019 Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
41021 2001-09-28 Paul Eggert <eggert@twinsun.com>
41023 Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
41024 #defines strtoimax. Also treat the other strto* functions
41027 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
41028 Check for strtoul and strtoumax,
41029 as those declarations are made even in the signed case.
41030 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
41031 Likewise, for strtol and strtoimax.
41033 2001-09-28 Paul Eggert <eggert@twinsun.com>
41035 Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
41036 #defines strtoimax. Also treat the other strto* functions
41039 * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
41040 (strtoul): Do not declare if HAVE_DECL_STRTOUL.
41041 (strtoimax, strtoumax): Do not declare if already defined as a macro.
41043 2001-09-26 Jim Meyering <meyering@lucent.com>
41045 Most macros in unlocked-io.h had the wrong number of arguments.
41046 * lib/gen-uio: New script.
41047 (USE_UNLOCKED_IO): Define to 1 if not already defined.
41048 * lib/unlocked-io.hin: Remove file.
41049 * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
41050 rather than trying to embed it here.
41051 (EXTRA_DIST): Add gen-uio. Remove unlocked-io.hin
41052 Reported by Padraig Brady.
41054 2001-09-25 Volker Borchert <bt@teknon.de>
41056 * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
41059 2001-09-24 Jim Meyering <meyering@lucent.com>
41061 * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
41063 2001-09-23 Jim Meyering <meyering@lucent.com>
41065 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
41066 instead of the mere test for existence of mntent.h. The latter
41067 would get a false-positive on AIX 3.4 systems.
41068 In the outer getmntent if-block, don't die if neither of the getmntent
41069 tests succeeds. Instead, just fall through and continue with the
41072 2001-09-23 Jim Meyering <meyering@lucent.com>
41074 * lib/mountlist.c: Remove useless parentheses in #if directives.
41075 (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
41076 the deprecated MOUNTED symbol is no longer defined in mntent.h.
41078 2001-09-22 Jim Meyering <meyering@lucent.com>
41080 * m4/gettext.m4: New file. From gettext.
41081 * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
41082 * m4/progtest.m4: Likewise
41083 * m4/isc-posix.m4: Decrement serial number to sync with gettext.
41084 * m4/glibc21.m4: Likewise.
41086 * m4/libintl.m4: Remove. No longer used.
41088 2001-09-22 Jim Meyering <meyering@lucent.com>
41090 * lib/localcharset.c: Update from latest gettext.
41091 * lib/config.charset: Likewise.
41093 2001-09-20 Jim Meyering <meyering@lucent.com>
41095 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
41097 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
41100 2001-09-20 Jim Meyering <meyering@lucent.com>
41102 * lib/xstrtol.c (strtoimax): Guard declaration with
41103 `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
41104 The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
41105 have their own, conflicting declaration of strtoimax in sys/inttypes.h.
41106 (strtoumax): Likewise, for completeness (it wasn't necessary).
41108 2001-09-17 Paul Eggert <eggert@twinsun.com>
41110 * lib/strtoimax.c (HAVE_LONG_LONG):
41111 Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
41112 (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
41113 to work around bug in IBM C compiler.
41115 2001-09-17 Jim Meyering <meyering@lucent.com>
41117 * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
41118 * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
41119 * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
41120 * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
41121 * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
41122 whenever the right hand side need not be expanded by the shell.
41124 2001-09-16 Paul Eggert <eggert@twinsun.com>
41126 * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
41127 library. It's not correct, as some older glibcs are buggy.
41128 fnmatch wasn't fixed until glibc 2.2.
41130 Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
41131 special shell magic here.
41133 2001-09-16 Jim Meyering <meyering@lucent.com>
41135 * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
41136 * m4/jm-macros.m4: Require it.
41138 2001-09-16 Jim Meyering <meyering@lucent.com>
41140 * lib/mkdir.c: New file.
41142 2001-09-15 Jim Meyering <meyering@lucent.com>
41144 * m4/jm-macros.m4: Check for help2man.
41146 2001-09-11 Jim Meyering <meyering@lucent.com>
41148 * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
41149 The body, by Paul Eggert, was moved here from configure.in.
41150 * m4/jm-macros.m4: Require UTILS_HOST_OS.
41152 2001-09-04 Paul Eggert <eggert@twinsun.com>
41154 * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
41155 (jm_PREREQ): Use it.
41157 2001-09-04 Paul Eggert <eggert@twinsun.com>
41159 * lib/xreadlink.c (xreadlink): Omit size_t* arg. All uses changed.
41160 Use ssize_t, not int, to store result of readlink.
41161 Check for ssize_t overflow as well as size_t overflow,
41162 as POSIX says the result of readlink is implementation-defined
41163 when ssize_t overflows.
41164 Remove unnecessary cast to char*.
41165 Use free+malloc instead of realloc, as the storage doesn't need
41166 to be preserved and it's clearer and can be more efficient that way.
41167 (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
41168 * lib/xreadlink.h (xreadlink): Update prototype.
41170 2001-09-04 Paul Eggert <eggert@twinsun.com>
41172 * lib/xgetcwd.c: Revert some of the previous change; intead,
41173 fix the HAVE_GETCWD_NULL code to behave more like the
41174 !HAVE_GETCWD_NULL code used to.
41176 Include "xalloc.h".
41177 (xgetcwd): Do not return NULL when memory is exhausted; instead,
41180 2001-09-03 Paul Eggert <eggert@twinsun.com>
41182 * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
41183 sys/param.h, as pathmax.h includes them.
41185 2001-09-03 Paul Eggert <eggert@twinsun.com>
41187 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
41188 (jm_PREREQ_XGETCWD): New macro.
41190 * m4/getcwd.m4: New file.
41192 2001-09-03 Paul Eggert <eggert@twinsun.com>
41194 * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
41195 like the HAVE_GETCWD_NULL code.
41196 Include pathmax.h if not HAVE_GETCWD.
41197 Do not include xalloc.h.
41198 (INITIAL_BUFFER_SIZE): New symbol.
41199 Do not use xmalloc / xrealloc, since the caller is responsible for
41200 handling errors. Preserve errno around `free' during failure.
41201 Do not overrun buffer when using getwd.
41203 2001-09-03 Paul Eggert <eggert@twinsun.com>
41205 * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
41206 __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
41209 2001-09-03 Paul Eggert <eggert@twinsun.com>
41211 * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
41212 usage of FNM_CASEFOLD and FNM_LEADING_DIR. The bug was
41213 spotted by Jim Meyering.
41215 2001-09-03 Jim Meyering <meyering@lucent.com>
41217 * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
41220 2001-09-02 Jim Meyering <meyering@lucent.com>
41222 * lib/error.c: Update from GNU libc.
41224 2001-09-01 Jim Meyering <meyering@lucent.com>
41226 * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
41229 2001-09-01 Jim Meyering <meyering@lucent.com>
41231 * lib/xreadlink.c: New file.
41232 * lib/xreadlink.h: New file.
41233 * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
41236 * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
41237 doesn't conflict with sparc Solaris 7's definition in
41238 /usr/include/sys/int_types.h.
41240 * lib/exclude.c: Use `""', not `<>' to #include non-system header
41242 (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
41243 and strncasecmp as r-values. Unixware didn't have declarations.
41245 2001-08-31 Paul Eggert <eggert@twinsun.com>
41247 * lib/xstrtol.h: Add copyright notice.
41248 (_DECLARE_XSTRTOL): Improve quality of diagnostic for
41249 LONGINT_INVALID_SUFFIX_CHAR.
41251 2001-08-31 Paul Eggert <eggert@twinsun.com>
41253 * lib/xstrtol.c (strtoimax): New decl.
41255 2001-08-31 Paul Eggert <eggert@twinsun.com>
41257 * lib/xgetcwd.c: Don't include pathmax.h.
41258 Include stdlib.h and unistd.h if available.
41260 (xmalloc, xstrdup, free): Remove decls.
41261 (xgetcwd): Don't assume sizes fit in unsigned.
41262 Check for overflow when computing sizes.
41263 Simplify reallocation code.
41265 2001-08-31 Paul Eggert <eggert@twinsun.com>
41267 * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
41268 a directory's st_size can have an arbitrary value, so the old
41269 usage could waste an arbitrary amount of memory. All uses
41271 * lib/savedir.h: Update prototype.
41273 2001-08-31 Paul Eggert <eggert@twinsun.com>
41275 * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
41277 * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
41280 Also, make the following further changes to make this file's
41281 configuration more similar to that of strtol.c:
41282 (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED. All uses changed.
41283 (strtoumax, uintmax_t, strtoull, strtol): Remove.
41284 (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
41285 (strtoimax): Renamed from strtoumax. All uses of unsigned values
41286 changed to signed values.
41288 And make the following changes as well:
41289 Fix copyright notice, as 1999 was missing.
41290 (verify): New macro.
41291 (strtoimax): Check sizes at compile-time, not run-time.
41292 Prefer strtol to strtoll if both work.
41293 (main): Remove; it was not that useful and was a pain to maintain.
41295 * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
41297 2001-08-31 Jim Meyering <meyering@lucent.com>
41299 * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
41300 Use an initial, malloc'd, buffer of length 128 rather than
41301 a statically allocated one of length 1024.
41303 2001-08-30 Paul Eggert <eggert@twinsun.com>
41305 Simplify code, partly by assuming autoconf 2.52 semantics.
41307 * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
41309 * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
41310 (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
41312 (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
41313 Move AC_REQUIRE to next-to-top level, to avoid confusion.
41314 Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
41315 * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
41316 jm_AC_HEADER_INTTYPES_H.
41317 * m4/jm-macros.m4 (jm_MACROS): Likewise.
41319 * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
41321 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
41322 Quote first arg of AC_DEFUN.
41323 Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
41324 since they are needed to parse the include file even if we need
41325 only xstrtoimax. Simplify logic behind the args to AC_REPLACE.
41326 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
41327 but with opposite signedness.
41329 2001-08-30 Paul Eggert <eggert@twinsun.com>
41331 Merge 'exclude' changes from tar 1.13.22.
41332 This fixes one or two unlikely storage allocation overflow bugs,
41333 but doesn't change user-visible behavior otherwise.
41335 2001-08-30 Paul Eggert <eggert@twinsun.com>
41337 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
41338 (jm_PREREQ_EXCLUDE): New macro.
41340 2001-08-30 Paul Eggert <eggert@twinsun.com>
41342 * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
41345 2001-08-30 Paul Eggert <eggert@twinsun.com>
41347 * lib/hash.c: Remove '2001' from copyright notice.
41349 2001-08-30 Paul Eggert <eggert@twinsun.com>
41351 * lib/full-write.h: New file.
41352 * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
41353 * lib/full-write.c: Correct credits, as cccp.c no longer
41354 exists and anyway it was so heavily changed from the old cccp
41355 code as to be unrecognizable. Include full-write.h.
41356 (full_write) Return size_t, with short writes meaning failure.
41357 All callers changed. This fixes a bug with large buffers
41359 * lib/utime.c: Include full-write.h.
41361 2001-08-30 Paul Eggert <eggert@twinsun.com>
41363 * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
41364 (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
41365 (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
41366 Include if available.
41367 (<xalloc.h>): Include
41368 (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
41369 (verify): New macro. Use it to verify that EXCLUDE macros do not
41370 collide with FNM macros.
41371 (struct patopts): New struct.
41372 (struct exclude): Use it, as exclude patterns now come with options.
41373 (new_exclude): Support above changes.
41374 (new_exclude, add_exclude_file):
41375 Initial size must now be a power of two to simplify overflow checking.
41376 (free_exclude, fnmatch_no_wildcards): New function.
41377 (excluded_filename): No longer requires options arg, as the options
41378 are determined by add_exclude. Now returns bool, not int.
41379 (excluded_filename, add_exclude):
41380 Add support for the fancy new exclusion options.
41381 (add_exclude, add_exclude_file): Now takes int options arg.
41382 Check for arithmetic overflow when computing sizes.
41383 (add_exclude_file): xrealloc might modify errno, so don't
41384 realloc until after errno might be used.
41386 * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
41388 (free_exclude): New decl.
41389 (add_exclude, add_exclude_file): Now takes int options arg.
41390 (excluded_filename): No longer requires options arg, as the options
41391 are determined by add_exclude. Now returns bool, not int.
41393 2001-08-30 Paul Eggert <eggert@twinsun.com>
41395 * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
41397 2001-08-27 Jim Meyering <meyering@lucent.com>
41399 * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
41401 * lib/version-etc.c (N_): Remove definition.
41402 Revert most of last change.
41403 Instead, simply don't mark the `Copyright...' string for translation.
41404 Based on advice from Paul Eggert.
41406 * lib/strtoxmax.c: Tweak comment.
41408 2001-08-26 Jim Meyering <meyering@lucent.com>
41410 * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
41412 * m4/xstrtoimax.m4: New file.
41413 * m4/xstrtoumax.m4: Add comments explaining why we
41414 AC_REPLACE_FUNCS(strtol).
41416 2001-08-26 Jim Meyering <meyering@lucent.com>
41418 * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
41419 of copyright with `%s' so translators don't get an untranslated
41421 (COPYRIGHT_YEAR): Define.
41422 (version_etc): Use fprintf rather than fputs.
41423 Suggestion from Ulrich Drepper.
41425 * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
41427 * lib/strtoll.c: New file, from GNU libc.
41428 * lib/xstrtoimax.c: New file.
41430 * lib/xstrtol.h: Add xstrtoimax.
41431 * lib/strtoumax.c: New file. Simply include "strtoumax.c".
41432 * lib/strtoimax.c: New file. Likewise, but first define
41435 * lib/strtoumax.c: Factor to work both for unsigned and signed types,
41437 * lib/strtoxmax.c: ... then renamed to this.
41439 2001-08-18 Paul Eggert <eggert@twinsun.com>
41441 * m4/inttypes.m4: Add AC_PREREQ(2.13).
41442 (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
41443 (jm_AC_TYPE_INTMAX_T): New macro.
41444 (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
41446 * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
41448 * m4/longlong.m4: Renamed from ulonglong.m4.
41449 * m4/inttypes.m4: Renamed from inttypes_h.m4.
41450 * m4/uintmax_t.m4: Removed.
41452 2001-08-13 Paul Eggert <eggert@twinsun.com>
41454 * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
41455 Port to Solaris 8, where 'sed' requires a space after the 'r'
41456 command, and where sh dislikes "$/". Clean up the spacing a bit.
41457 Redirect output to $tmp just once.
41459 2001-08-12 Paul Eggert <eggert@sic.twinsun.com>
41461 * lib/addext.c (<errno.h>): Include.
41462 (errno): Declare if not defined.
41463 (addext): Work correctly when pathconf returns -1 and leaves
41464 errno alone because there is no limit. Also, work even if
41465 pathconf returns a value greater than SIZE_MAX.
41467 2001-08-12 Jim Meyering <meyering@lucent.com>
41469 * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
41470 d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
41471 fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
41472 group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
41473 jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
41474 link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
41475 mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
41476 prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
41477 rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
41478 strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
41479 utime.m4, utimes.m4, xstrtoumax.m4:
41480 Quote the first argument in each use of AC_DEFUN.
41482 2001-08-12 Jim Meyering <meyering@lucent.com>
41484 * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
41485 Simply `return getcwd (NULL, 0);'.
41486 [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
41487 Use 1300 as initial value for length, not PATH_MAX.
41489 * lib/pathmax.h: Clean up cpp syntax.
41491 2001-08-12 Jim Meyering <meyering@lucent.com>
41493 * lib/gettimeofday.c: New file.
41494 * lib/gtod.h: New file.
41495 * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
41497 2001-08-05 Jim Meyering <meyering@lucent.com>
41499 * m4/jm-macros.m4: Require autoconf-2.52.
41501 2001-08-04 Jim Meyering <meyering@lucent.com>
41503 * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
41504 stmt, to get in sync with glibc.
41506 2001-08-03 Paul Eggert <eggert@twinsun.com>
41508 The following changes are from gettext 0.10.39 as maintained by
41511 * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
41512 Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
41513 with inverted sense. All uses changed.
41515 * lib/mbswidth.c: Don't include <limits.h>.
41516 Include <stdlib.h> and <string.h> unconditionally.
41517 (iswcntrl, mbsinit, ISCNTRL): New macros.
41518 (mbsnwidth): Use K&R style function declarations.
41519 Don't bother checking for MB_LEN_MAX == 1, since the compiler
41520 can optimize it when MB_CUR_MAX == 1.
41521 The width of control characters is zero, not 1.
41523 2001-08-03 Paul Eggert <eggert@twinsun.com>
41525 The following changes are from gettext 0.10.39 as maintained by
41526 Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
41528 * m4/codeset.m4: Upgrade to serial AM1.
41529 (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
41530 all uses changed. Quote first arg of AC_DEFUN.
41531 (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
41533 * m4/iconv.m4: Upgrade to serial AM2.
41534 (AM_ICONV): Renamed from jm_ICONV; all uses changed.
41535 Add --with-libconv-prefix.
41536 Quote first arg of AC_DEFUN. Add description for ICONV_CONST.
41537 (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
41538 (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
41539 (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
41540 * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
41542 * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
41543 * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
41544 * m4/glibc21.m4 (jm_GLIBC21): Likewise.
41545 * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
41546 * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
41547 * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
41548 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
41549 * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
41550 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
41552 * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
41555 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
41556 not the default value.
41558 2001-06-25 Bruno Haible <haible@clisp.cons.org>
41559 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
41560 Also check for mbsinit. Needed for SCO 3.2v5.0.2.
41561 Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
41562 Also check for iswcntrl, used for wcwidth fallback.
41563 Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
41566 2001-08-03 Jim Meyering <meyering@lucent.com>
41568 * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
41569 as it was in the original. Reported by Paul Eggert.
41571 2001-07-16 Jim Meyering <meyering@lucent.com>
41573 * m4/gettimeofday.m4: New file.
41574 Prompted by a report from Bernhard Baehr.
41576 2001-07-15 Jim Meyering <meyering@lucent.com>
41578 * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
41579 stuff. Now it's in ../Makefile.cfg.
41581 2001-07-15 Jim Meyering <meyering@lucent.com>
41583 * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
41584 (BUILT_SOURCES): Add unlocked-io.h.
41585 (io_functions): Define.
41586 (unlocked-io.h): New rule.
41587 (DISTCLEANFILES): Add unlocked-io.h.
41588 (all-local): Depend on unlocked-io.h, to ensure it is created.
41590 * lib/unlocked-io.hin: New file
41592 * lib/regex.c: Update from glibc.
41594 2001-07-05 Jim Meyering <meyering@lucent.com>
41596 * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
41598 (libfetish_a_SOURCES): Put all .h files here instead.
41599 Remove a thus-exposed (better checks in automake) duplicate and
41600 two unnecessary .h files.
41602 2001-07-04 Jim Meyering <meyering@lucent.com>
41604 * m4/Makefile.am.in (glibc-io.struct): New target. Rework the code
41605 that generates jm-glibc-io.m4 so that it doesn't trigger any make
41608 2001-07-02 Jim Meyering <meyering@lucent.com>
41610 The following changes were prompted by suggestions from Bruno Haible.
41612 * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
41614 * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
41615 definition of EXTRA_DIST.
41616 (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
41617 ensure that the generated file is created/updated whenever the list
41618 of $(unlocked_functions) is changed.
41619 (jm-glibc-io.m4): New rule.
41620 (unlocked-io.h): New rule -- currently unused.
41622 2001-06-24 Jim Meyering <meyering@lucent.com>
41624 * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
41625 unmatched right bracket, rather than kludging it with an extra,
41626 falsely-matching quote in a comment. Patch by Akim Demaille.
41628 2001-06-11 Jim Meyering <meyering@lucent.com>
41630 * lib/regex.c: Update from GNU libc.
41632 2001-05-27 Jim Meyering <meyering@lucent.com>
41634 * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
41635 Check for ut_type in struct utmp.
41637 2001-05-27 Jim Meyering <meyering@lucent.com>
41639 * lib/readutmp.h (UT_TYPE): Define.
41641 2001-05-24 Jim Meyering <meyering@lucent.com>
41643 * lib/argmatch.c: Include "quote.h".
41644 (argmatch_invalid): Remove explicit `' quotes. Instead, use the
41645 quote function. Reported by Göran Uddeborg.
41647 2001-05-22 Jim Meyering <meyering@lucent.com>
41649 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
41650 now that we use the package-supplied version unconditionally.
41651 (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
41653 2001-05-21 Jim Meyering <meyering@lucent.com>
41655 * m4/regex.m4: Change a couple backticks to single quotes to avoid
41656 shell syntax errors.
41658 2001-05-21 Alexandre Duret-Lutz <duret_g@epita.fr>
41660 * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
41662 2001-05-20 Paul Eggert <eggert@twinsun.com>
41664 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
41665 Don't bother to check library strftime, since
41666 we'll be using our own my_strftime function anyway.
41667 Define my_strftime instead of strftime.
41669 2001-05-20 Alexandre Duret-Lutz <duret_g@epita.fr>
41671 * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
41672 which is not yet declared.
41674 2001-05-15 Jim Meyering <meyering@lucent.com>
41676 * m4/regex.m4: Use proper quoting so brackets appear in the test
41678 Reported by, and with help from, Bruno Haible.
41680 2001-05-13 Jim Meyering <meyering@lucent.com>
41682 * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
41685 2001-05-11 Paul Eggert <eggert@twinsun.com>
41687 dirname code cleanup. base_name now behaves more compatibly
41688 with POSIX basename when given file names that have trailing
41689 slashes, and similarly for dir_name. Add new primitives
41690 base_len and dir_len. Put the directory-name-related decls
41693 * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
41694 * lib/backupfile.c (base_name): Likewise.
41695 * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
41696 * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
41697 * lib/makepath.c (strip_trailing_slashes): Likewise.
41698 * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
41699 ISSLASH): Likewise.
41700 * lib/rename.c (strip_trailing_slashes): Likewise.
41701 * lib/same.c (base_name): Likewise.
41702 * lib/stripslash.c (ISSLASH): Likewise.
41704 * lib/addext.c: Include <dirname.h> after size_t is defined.
41705 * lib/backupfile.c: Likewise.
41707 * lib/addext.c (addext): Use base_len to trim redundant
41708 trailing slashes instead of doing it ourselves.
41709 But do not trim the last slash if it is not redundant.
41711 * lib/backupfile.c (find_backup_file_name,
41712 max_backup_version): Use base_len instead of rolling it ourselves.
41713 Handle the case of "" and (on DOS) "C:" correctly.
41715 * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
41716 needed. Include <string.h>, <dirname.h>.
41717 (base_name): Allow file names ending in slashes, other than names
41718 that are all slashes. In this case, return the basename followed
41719 by the slashes. This is more general, and can be used in places
41720 where the original base_name purposely had an assertion failure.
41721 (base_len): New function.
41723 * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
41724 Do not include <assert.h>; no longer needed.
41726 (memrchr): Remove decl.
41727 (dir_name_r): Remove.
41728 (dir_len): Renamed from dirlen. All callers changed.
41729 Rewrite in terms of base_name, for simplicity and consistency.
41730 (dir_name): Never return NULL. All callers changed.
41731 Do not include <stdlib.h> in test program; no longer needed.
41732 return 0; is fine for test program.
41734 * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
41736 (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
41738 * lib/path-concat.c (path_concat): Use base_len to compute
41739 base length, not strlen; this means we cannot rely on memcpy
41742 * lib/same.c (STREQ): Remove.
41743 (same_name): Handle the case where the basename ends in trailing '/'.
41745 * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
41746 a slash was stripped. Do not strip the last slash after a
41747 file system prefix.
41749 2001-05-11 Paul Eggert <eggert@twinsun.com>
41751 * lib/Makefile.am (libfetish_a_SOURCES):
41752 Add strftime.c, since we now compile it on all hosts.
41754 * lib/strftime.c (my_strftime):
41755 Define to nstrftime if emacs, but only if my_strftime is not defined.
41756 (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
41757 ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
41758 Add one more extra argument: a nanoseconds value.
41761 (my_strftime function): Add %N format.
41762 (emacs_strftimeu): Renamed from emacs_strftime,
41763 with extra ut argument.
41765 2001-05-09 Paul Eggert <eggert@twinsun.com>
41767 * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
41769 2001-04-21 Jim Meyering <meyering@lucent.com>
41771 * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
41774 2001-04-21 Alexandre Duret-Lutz <duret_g@epita.fr>
41776 * m4/ftruncate.m4: Check for chsize.
41777 Link with ftruncate.o unconditionally if ftruncate is missing.
41778 This was required when cross-compiling to i586-mingw32msvc.
41780 2001-04-08 Jim Meyering <meyering@lucent.com>
41782 * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
41783 recomputed; that's necessary when the offset spans a DST transition.
41784 Patch by David J. MacKenzie. Reported by Hon-Yin Kok.
41786 2001-04-02 Jim Meyering <meyering@lucent.com>
41788 * lib/regex.h, regex.c: Update from GNU libc.
41790 2001-03-24 Jim Meyering <meyering@lucent.com>
41792 * m4/jm-macros.m4: Require autoconf-2.49d.
41794 2001-03-20 Bruno Haible <haible@clisp.cons.org>
41796 * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
41798 2001-03-19 Paul Eggert <eggert@twinsun.com>
41800 * lib/version-etc.c (version_etc_copyright): Update to 2001.
41802 2001-03-17 Jim Meyering <meyering@lucent.com>
41804 * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
41805 now that the version in autoconf is equivalent.
41806 (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
41808 * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
41809 Suggestion from Akim Demaille.
41811 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
41812 (jm_PREREQ_TEMPNAME): New function.
41814 2001-03-16 Paul Eggert <eggert@twinsun.com>
41816 * lib/tempname.c (uint64_t): Define to uintmax_t if
41817 not defined, and if UINT64_MAX is not defined.
41818 Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
41819 Reported by John David Anglin.
41821 2001-03-15 Bruno Haible <haible@clisp.cons.org>
41823 * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
41824 resolve alias if codeset is empty.
41825 * lib/config.charset (BeOS): Use wildcard syntax.
41827 2001-03-13 Jim Meyering <meyering@lucent.com>
41829 * lib/path-concat.c (path_concat)
41830 [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
41831 concatenating e.g., `C:' and `foo'.
41834 2001-03-06 Bruno Haible <haible@clisp.cons.org>
41836 * lib/localcharset.c (locale_charset): Don't use
41837 setlocale(LC_CTYPE,NULL). Don't return NULL.
41838 * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
41840 2001-03-06 Bruno Haible <haible@clisp.cons.org>
41842 * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
41843 support for DOS/DJGPP.
41845 2001-03-01 Paul Eggert <eggert@twinsun.com>
41847 * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
41848 lacks mkstemp. Compile our own tempname.c if we compile our own
41849 mkstemp.c, as mkstemp relies on tempname.
41851 2001-03-01 Jim Meyering <meyering@lucent.com>
41853 * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
41854 AH_VERBATIM really does output its argument verbatim.
41856 2001-02-28 Paul Eggert <eggert@twinsun.com>
41858 * lib/Makefile.am (libfetish_a_SOURCES):
41859 Add dup-safer.c, fopen-safer.c.
41860 (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
41862 * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
41863 * lib/unistd-safer.h: New files.
41865 2001-02-25 Paul Eggert <eggert@twinsun.com>
41867 The mkstemp replacement is taken from glibc 2.2.2, with some
41868 portability fixes for use outside glibc, as follows:
41870 * lib/tempname.c (struct_stat64): New macro.
41871 (direxists, __gen_tempname): Use it.
41872 This avoids a portability problem with Solaris 8.
41874 * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
41875 (<stddef.h>, <stdint.h>, <string.h>):
41876 Include only if STDC_HEADERS || _LIBC.
41877 (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
41878 (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
41879 (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
41880 (__set_errno): Define this macro if <errno.h> doesn't.
41881 (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
41882 Define these macros if <stdio.h> doesn't.
41883 (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
41884 Define these macros if <sys/stat.h>
41885 doesn't. Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
41886 (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
41887 __xstat64): Define if not _LIBC.
41888 (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
41889 (__gen_tempname): Invoke gettimeofday only if
41890 HAVE_GETTIMEOFDAY || _LIBC;
41891 otherwise, fall back on plain "time".
41892 Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
41894 * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
41896 * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
41898 2001-02-18 Paul Eggert <eggert@twinsun.com>
41900 * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
41902 2001-02-17 Paul Eggert <eggert@twinsun.com>
41904 * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
41905 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
41906 Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
41907 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
41909 2001-02-17 Paul Eggert <eggert@twinsun.com>
41911 * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
41912 Remove workaround macros for hosts that have mbrtowc but not
41913 mbstate_t, as we now insist on proper declarations for both
41914 before using mbrtowc.
41916 2001-02-17 Jim Meyering <meyering@lucent.com>
41918 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
41919 getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
41920 further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
41923 * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
41924 rather than AC_CACHE_VAL.
41926 2001-02-17 Jim Meyering <meyering@lucent.com>
41928 * lib/strtoul.c: Sync from GNU libc. Use double quotes, not <...>
41929 around included file name.
41931 * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
41933 * lib/strftime.c: Update from GNU libc (the only changes were to
41936 2001-02-17 Jim Meyering <meyering@lucent.com>
41938 * lib/regex.c: Update from libc.
41940 2001-02-17 Bruno Haible <haible@clisp.cons.org>
41942 * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
41945 2001-02-16 Paul Eggert <eggert@twinsun.com>
41947 * lib/alloca.c (malloc): Undef before defining, since stdlib.h
41948 may have defined it. Needed for Encore Umax-3.0.9.16b systems.
41949 Reported by Mark Hounschell via Paul Eggert.
41951 2001-02-07 Jim Meyering <meyering@lucent.com>
41953 * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
41955 2001-02-05 Jim Meyering <meyering@lucent.com>
41957 * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
41958 it includes the patch required for `large file' support with at least
41959 HP-UX's 10.20 /bin/cc.
41961 2001-02-03 Jim Meyering <meyering@lucent.com>
41963 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
41964 AS_IF, now that it works once again (mysteriously).
41965 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
41967 2001-01-30 Jim Meyering <meyering@lucent.com>
41969 Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
41970 * m4/chown.m4: Rename conftestchown to conftest.chown.
41971 * m4/rename.m4: s/conftestdir/conftest.d1/ and
41972 s/conftestdir2/conftest.d2/.
41973 * m4/utimes.m4: s/conftestdata/conftest.data/
41974 Inspired by Pavel Roskin's change in autoconf.
41976 2001-01-30 Bruno Haible <haible@clisp.cons.org>
41978 * lib/config.charset: Update for FreeBSD 4.2.
41980 2001-01-27 Jim Meyering <meyering@lucent.com>
41982 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
41984 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
41986 2001-01-26 Jim Meyering <meyering@lucent.com>
41988 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
41989 quotearg.c includes it.
41991 2001-01-26 Jim Meyering <meyering@lucent.com>
41993 * lib/quotearg.c: Include stddef.h.
41994 * lib/quote.c: Include stddef.h.
41995 Reported by Axel Kittenberger.
41997 * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
41998 line in double quotes so that it evokes a better diagnostic.
41999 [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
42000 Reported by Axel Kittenberger.
42002 2001-01-24 Stefan Monnier <monnier@cs.yale.edu>
42004 * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
42005 as if it was a `charset'.
42007 2001-01-21 Bruno Haible <haible@clisp.cons.org>
42009 * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
42012 2001-01-21 Bruno Haible <haible@clisp.cons.org>
42014 * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
42015 to avoid a warning. Add back 'const' to inptr.
42017 2001-01-20 Jim Meyering <meyering@lucent.com>
42019 Be sure that headers are checked before used in code compiled
42020 for the type checks.
42021 * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
42022 In place of that, invoke jm_CHECK_ALL_TYPES.
42023 (jm_CHECK_ALL_HEADERS): New functions with the above checks.
42024 (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
42025 Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
42026 The check for ssize_t was mistakenly run before the test for unistd.h.
42028 The configure-time check for stdbool.h was missing.
42029 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
42030 (jm_PREREQ_HASH): New function.
42032 2001-01-17 Jim Meyering <meyering@lucent.com>
42034 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
42035 for autoconf-2.49c.
42036 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
42038 2001-01-16 Jim Meyering <meyering@lucent.com>
42040 * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
42043 2001-01-14 Jim Meyering <meyering@lucent.com>
42045 * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
42046 foo and bar. Create conftestdir/ in the script, not in the C code.
42047 Remove directories in the script, not in the C code.
42048 Remove conftestdir{,2} before trying to create the directory.
42049 Make the entire configure script fail if the mkdir fails.
42051 2001-01-14 Jim Meyering <meyering@lucent.com>
42053 * lib/rename.c: New file. From Volker Borchert.
42054 Include stdlib.h, string.h or strings.h, and xalloc.h.
42055 Use strip_trailing_slashes rather than open-coding it.
42057 2001-01-03 Paul Eggert <eggert@twinsun.com>
42059 * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
42061 2001-01-03 Jim Meyering <meyering@lucent.com>
42063 * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
42064 of local `inptr' to avoid warning with some system declarations of
42067 2001-01-02 Volker Borchert <bt@teknon.de>
42069 * m4/rename.m4: New file.
42070 * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
42072 2001-01-01 Jim Meyering <meyering@lucent.com>
42074 * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
42075 even on systems with utmpx.h. It's necessary for the declaration of
42076 utmp's ut_user member. Reported by Andreas Jaeger.
42078 * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
42079 available. They are required for the declarations of getgrgid and
42081 (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
42082 Reported by Andreas Jaeger.
42084 2001-01-01 Alexandre Duret-Lutz <duret_g@epita.fr>
42086 * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
42087 expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
42088 so `make install' also works in VPATH builds.
42090 2000-12-31 Alexandre Duret-Lutz <duret_g@epita.fr>
42092 * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
42093 prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
42094 can be used in subdirectories.
42096 2000-12-29 Paul Eggert <eggert@twinsun.com>
42098 * lib/modechange.c: Do not assume that mode_t uses the
42099 traditional octal encoding. E.g. "chmod 1 FOO" should set
42100 the other-execute bit of FOO even if S_IXOTH != 1.
42102 (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
42103 WOTH, XOTH, ALLM): New macros.
42104 (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
42105 S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
42107 (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
42108 (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
42110 No need to use uintmax_t; unsigned long is long enough.
42111 Don't bother to get suffix since we don't use it.
42113 2000-12-26 Jim Meyering <meyering@lucent.com>
42115 * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
42116 better with autoheader.
42118 2000-12-24 Jim Meyering <meyering@lucent.com>
42120 * lib/hash.c (is_prime): Return explicit boolean values.
42121 (hash_get_first): Return NULL to appease Irix5.6's 89.
42122 Reported by Nelson Beebe.
42124 2000-12-19 Bruno Haible <haible@clisp.cons.org>
42126 * lib/localcharset.c (locale_charset): Add support for Win32.
42128 2000-12-18 Paul Eggert <eggert@twinsun.com>
42130 * lib/physmem.h, lib/physmem.c: New files.
42132 * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
42133 (noinst_HEADERS): Add physmem.h.
42135 * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
42136 't' for compatibility with Solaris 8 sort.
42138 2000-12-18 Bruno Haible <haible@clisp.cons.org>
42140 * lib/config.charset: Add support for BeOS.
42142 2000-12-17 Jim Meyering <meyering@lucent.com>
42144 * m4/dos.m4 (jm_AC_DOS): New file and macro.
42145 * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
42147 2000-12-16 Jim Meyering <meyering@lucent.com>
42149 This bug had a serious impact on chown: `chown N:M FILE' (for integer
42150 N and M) would have treated it like `chown N:N FILE'.
42152 * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
42154 2000-12-16 Jim Meyering <meyering@lucent.com>
42156 * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
42157 SHELLS_FILE to a file name that's useful on djgpp systems.
42159 (ADDITIONAL_DEFAULT_SHELLS): Define.
42160 (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
42161 Based mostly on a patch from Prashant TR.
42163 2000-12-16 Bruno Haible <haible@clisp.cons.org>
42165 * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
42166 VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
42167 CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
42169 2000-12-08 Andreas Schwab <schwab@suse.de>
42171 * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
42172 invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
42174 2000-12-07 Jim Meyering <meyering@lucent.com>
42176 * lib/stripslash.c (ISSLASH): Define.
42177 (strip_trailing_slashes): Use ISSLASH rather than comparing against
42181 * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
42182 (dir_name_r): Declare this function as static.
42183 [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
42184 manifest itself on a name containing a mix of slashes and
42186 Make this function work with names starting with a DOS-style
42187 drive letter and colon prefix.
42188 (dir_name): Append `.' if necessary.
42189 Based mostly on patches from Prashant TR and Eli Zaretskii.
42191 * lib/dirname.h (dir_name_r): Remove prototype.
42193 2000-12-06 Paul Eggert <eggert@twinsun.com>
42195 * m4/off_t-format.m4: Remove this file.
42196 * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
42198 2000-12-06 Jim Meyering <meyering@lucent.com>
42200 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
42201 replacement strtoull, we may well need the replacement strtoul, too.
42202 Check for declarations of strtoul and strtoull.
42203 Check for strtol. Mainly as a cue to cause automake to include
42204 strtol.c -- that file is included by each of strtoul.c and strtoull.c.
42205 Check for limits.h -- strtol.c needs it.
42207 2000-12-05 Jim Meyering <meyering@lucent.com>
42209 * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
42211 2000-12-04 Jim Meyering <meyering@lucent.com>
42213 * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
42214 Also include memory.h, stdlib.h, unistd.h if appropriate.
42215 Reported by Andreas Jaeger (conflicting declaration of malloc).
42217 2000-12-02 Jim Meyering <meyering@lucent.com>
42219 * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
42220 * m4/jm-macros.m4 (jm_MACROS): require it.
42222 2000-12-02 Jim Meyering <meyering@lucent.com>
42224 * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
42226 2000-12-01 Paul Eggert <eggert@twinsun.com>
42228 * lib/memrchr.c: Include <config.h> before any system include file.
42230 2000-11-30 Jim Meyering <meyering@lucent.com>
42232 * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
42234 2000-11-30 Jim Meyering <meyering@lucent.com>
42236 * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
42238 2000-11-29 Paul Eggert <eggert@twinsun.com>
42240 * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
42242 2000-11-26 Jim Meyering <meyering@lucent.com>
42244 * lib/memcoll.c: Include sys/types.h. From Werner Almesberger.
42246 2000-11-22 Paul Eggert <eggert@twinsun.com>
42248 * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
42249 size of (size_t) -1; it's not portable.
42251 2000-11-17 Jim Meyering <meyering@lucent.com>
42253 * lib/strstr.c: Update from GNU libc.
42255 2000-11-17 Akim Demaille <akim@epita.fr>
42257 * lib/obstack.h: Formatting changes.
42258 (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
42259 prevent type checking.
42260 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
42261 cast the value to (void *): assigning a `foo *' to a `void *'
42263 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
42265 2000-11-16 Jim Meyering <meyering@lucent.com>
42267 * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
42269 2000-11-11 Jim Meyering <meyering@lucent.com>
42271 * lib/error.c: Add a couple #includes, merging from GNU libc version.
42273 2000-11-10 Jim Meyering <meyering@lucent.com>
42275 * lib/obstack.h: Update from GNU libc.
42276 * lib/obstack.c: Likewise.
42278 2000-11-08 Bruno Haible <haible@clisp.cons.org>
42280 * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
42282 2000-11-06 Paul Eggert <eggert@twinsun.com>
42284 * lib/getusershell.c (setusershell): Use rewind rather than
42285 fseek/fseeko, to avoid configuration hassles with fseeko.
42286 Don't bother opening SHELLS_FILE if shellstream is NULL;
42287 it's not necessary.
42289 2000-11-05 Jim Meyering <meyering@lucent.com>
42291 * lib/makepath.h (make_dir): Declare.
42292 * lib/makepath.c (make_dir): Remove `static' attribute.
42295 2000-11-04 Jim Meyering <meyering@lucent.com>
42297 * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
42299 2000-11-04 Alexandre Duret-Lutz <duret_g@epita.fr>
42301 * lib/hash.c (hash_get_next): Fix a thinko: when ENTRY is the
42302 last one in a bucket, advance to the next bucket.
42304 2000-11-02 Vesselin Atanasov <vesselin@bgnet.bg>
42306 * lib/fnmatch.c: Do not comment out all the code if we are using
42307 the GNU C library, because in some cases we are replacing buggy
42308 code in the GNU C library itself.
42310 2000-10-30 Stefan Monnier <monnier@cs.yale.edu>
42312 * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
42313 (regex_compile): Catch bogus \(\1\).
42315 2000-10-30 Paul Eggert <eggert@twinsun.com>
42317 * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
42318 (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
42319 e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
42321 2000-10-30 Paul Eggert <eggert@twinsun.com>
42323 * lib/error.h, getline.h, modechange.h:
42324 Remove "2000" from Copyright line, as the file hasn't been
42325 changed this year other than in the copyright notice.
42327 * lib/xalloc.h: Add "2000" to Copyright line, as this file
42328 was changed this year.
42330 2000-10-29 Jim Meyering <meyering@lucent.com>
42332 * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
42334 * m4/ls-mntd-fs.m4: Likewise
42336 2000-10-29 Jim Meyering <meyering@lucent.com>
42338 * lib/xstat.in: Fix grammar in comment.
42340 2000-10-29 Greg Louis <glouis@dynamicro.on.ca>
42342 * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
42343 Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
42344 doesn't define __restrict_arr.
42346 2000-10-28 Jim Meyering <meyering@lucent.com>
42348 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
42349 (jm_PREREQ_MEMCHR): New function.
42351 2000-10-28 Jim Meyering <meyering@lucent.com>
42353 * lib/memchr.c: Update from libc.
42354 Adjust for portability:
42355 [HAVE_STDLIB_H]: Include stdlib.h.
42356 [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
42357 Undef __memchr, too.
42358 [!weak_alias]: Define __memchr to memchr.
42360 * lib/regex.c: Update from libc.
42361 * lib/regex.h: Likewise.
42362 * lib/getopt1.c: Likewise.
42363 * lib/memcmp.c: Likewise.
42365 * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
42366 Avoid using fseek, when possible -- it's broken by design.
42367 Patch by Ulrich Drepper.
42369 2000-10-27 Stefan Monnier <monnier@cs.yale.edu>
42371 * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
42372 (re_match_2_internal, re_match_2_internal, re_match_2_internal):
42373 Giving in to popular pressure to shut up the compiler with casts.
42375 2000-10-26 Jim Meyering <meyering@lucent.com>
42377 * lib/strftime.c: Update from libc.
42379 2000-10-25 Stefan Monnier <monnier@cs.yale.edu>
42381 * regex.c: More `unsigned char' -> `re_char' changes.
42382 Also change several `int' into `re_wchar_t'.
42383 (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
42384 (PUSH_FAILURE_POINTER): Don't cast any more.
42385 (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
42386 We want GCC to complain, since this piece of code makes
42387 re_match non-reentrant, which *should* be fixed.
42388 (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
42389 (EXTEND_BUFFER): Use RETALLOC.
42390 (SET_LIST_BIT): Don't cast.
42391 (re_wchar_t): New type.
42392 (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
42393 that those two functions will always properly return.
42394 (IMMEDIATE_QUIT_CHECK): Cast to void.
42395 (analyse_first): Use recursion rather than an explicit stack.
42396 (re_compile_fastmap): Can't fail anymore.
42397 (re_search_2): Don't check re_compile_fastmap for failure.
42398 (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
42399 Now also sets the new value (passed in a new argument).
42400 (re_match_2_internal): Use it.
42401 Also, use a new var `reg' of type size_t when looping through regs
42402 rather than reuse the inappropriate `mcnt'.
42404 2000-10-25 Jim Meyering <meyering@lucent.com>
42406 * lib/obstack.c: Update from libc.
42408 2000-10-24 Kenichi Handa <handa@etl.go.jp>
42410 * regex.c (regex_compile): Change the way of handling a range from
42411 a char less than 256 to a char not less than 256.
42413 2000-10-24 Andrew Innes <andrewi@gnu.org>
42415 * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
42417 (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
42418 so that re_search functions only quit when callers expect them to.
42420 2000-10-23 Jim Meyering <meyering@lucent.com>
42422 * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
42423 wrong. That set_locale call must not have any side effects.
42426 2000-10-22 Jim Meyering <meyering@lucent.com>
42428 * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
42429 [CYCLIC]: Remove now-unused definition.
42431 * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
42432 (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
42433 Suggestion from Ulrich Drepper.
42435 2000-10-21 Jim Meyering <meyering@lucent.com>
42437 * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
42438 * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
42439 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
42441 2000-10-21 Jim Meyering <meyering@lucent.com>
42443 * lib/dirname.c (memrchr): Declare if necessary.
42444 (dir_name): Remove the restriction that there be no
42445 trailing slashes. Now, this code skips past them, effectively
42447 [TEST_DIRNAME] (main): New unit tests.
42449 * lib/memrchr.c: New file from GNU libc.
42450 Undef __memrchr, too.
42451 [!weak_alias]: Define __memrchr to memrchr.
42452 Guard weak_alias use with `#ifdef weak_alias'.
42454 2000-10-21 Jim Meyering <meyering@lucent.com>
42456 * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
42457 (dir_name): Use dir_name_r.
42458 * lib/dirname.h (dir_name_r): Declare it.
42460 2000-10-17 Jim Meyering <meyering@lucent.com>
42462 * lib/quote.h (PARAMS): Define and use.
42463 Reported by Akim Demaille.
42465 * lib/getopt.c: Update from libc.
42467 2000-10-16 Jim Meyering <meyering@lucent.com>
42469 * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
42473 2000-10-15 Stefan Monnier <monnier@cs.yale.edu>
42475 * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
42477 2000-09-25 Jim Meyering <meyering@lucent.com>
42479 * lib/md5.h (rol): Define (from GnuPG).
42481 * lib/sha.c: Give credit (GnuPG) where due.
42482 (M): Use rol rather than open-coding it.
42483 Add a FIXME comment.
42485 2000-09-21 Jim Meyering <meyering@lucent.com>
42487 * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
42488 Reported by Michael Stone.
42490 2000-09-20 Jim Meyering <meyering@lucent.com>
42492 * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
42493 (noinst_HEADERS): Add sha.h.
42494 Based on code from Scott G. Miller and from GnuPG.
42496 2000-09-18 Jim Meyering <meyering@lucent.com>
42498 * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
42499 LIBS. Otherwise, everyone ends up linking with -lelf for some
42501 Reported by Mike Stone.
42503 2000-09-15 Jim Meyering <meyering@lucent.com>
42505 * lib/regex.c: Update from libc.
42507 2000-09-10 Jim Meyering <meyering@lucent.com>
42509 * lib/getopt.c (_getopt_internal): Update from glibc.
42511 2000-09-09 Jim Meyering <meyering@lucent.com>
42513 * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
42514 think it should be used as a general replacement for isascii.
42515 * lib/fnmatch.c: Likewise.
42516 * lib/mbswidth.c: Likewise
42517 * lib/regex.c: Likewise.
42520 * lib/userspec.c: Include sys/param.h and limits.h.
42522 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
42523 (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
42524 (parse_user_spec): Use xstrtoul, not atoi when converting numeric
42525 UID, GID. Check range.
42527 2000-09-06 Jim Meyering <meyering@lucent.com>
42529 * lib/getopt.c (_getopt_internal): Update from glibc.
42531 2000-08-30 Jim Meyering <meyering@lucent.com>
42533 * lib/strftime.c: Merge in changes from GNU libc.
42535 2000-08-26 Jim Meyering <meyering@lucent.com>
42537 * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
42538 * m4/fpending.m4: New file.
42540 2000-08-26 Jim Meyering <meyering@lucent.com>
42542 * lib/closeout.c: Include "__fpending.h".
42543 (close_stdout_status): Return right away if there's nothing to flush.
42545 * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
42546 * lib/__fpending.c: New file.
42547 * lib/__fpending.h: New file.
42549 2000-08-20 Jim Meyering <meyering@lucent.com>
42551 * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
42552 `#if !HAVE_UTMPX_H'. The latter would lose on systems with neither
42553 utmp.h nor utmpx.h. Reported by Eli Zaretskii.
42555 2000-08-11 J. David Anglin <dave@hiauly1.hia.nrc.ca>
42557 Improve fileutils installation on systems where running
42558 programs (like install) can't be unlinked.
42559 * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
42560 * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
42562 2000-08-07 Paul Eggert <eggert@twinsun.com>
42564 Standardize on "memory exhausted" instead of "Memory exhausted"
42565 or "virtual memory exhausted".
42566 * lib/obstack.c (print_and_abort): Use "memory exhausted", not
42567 "virtual memory exhausted".
42568 * lib/same.c (same_name): Invoke xalloc_die instead of printing
42570 * lib/userspec.c (parse_user_spec): Likewise.
42571 * lib/bumpalloc.h: comment fix
42572 * lib/same.c, userspec.c: Include xalloc.h.
42574 * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
42575 not char *const and pointing to a constant array.
42576 * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
42577 (xrealloc): Comment fix.
42579 * lib/userspec.c (parse_user_spec):
42580 Don't translate a message until just before returning,
42581 to avoid unnecessary translation.
42583 2000-08-07 Jim Meyering <meyering@lucent.com>
42585 * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
42586 chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
42587 fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
42588 getgroups.c, gethostname.c, getopt.h, group-member.c,
42589 hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
42590 linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
42591 memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
42592 pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
42593 stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
42594 strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
42595 utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
42596 yesno.c: Back out Copyright date changes for each file with no change
42597 this year. This eases coordination with other programs using the same
42598 source code modules. From Paul Eggert.
42600 2000-08-06 Paul Eggert <eggert@twinsun.com>
42602 * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
42603 not char, for compatibility with glibc 2.1.3 strftime.c.
42605 2000-08-03 Greg McGary <greg@mcgary.org>
42607 * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
42608 ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
42609 (EXTEND_BUFFER): Use them.
42611 2000-08-01 Jim Meyering <meyering@lucent.com>
42613 * lib/dirname.c (ISSLASH): Define.
42614 (BACKSLASH_IS_PATH_SEPARATOR): Define.
42615 (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
42616 both `\' and `/' may be use as path separators.
42617 Based on a patch from Prashant TR.
42619 2000-07-31 Paul Eggert <eggert@twinsun.com>
42621 * lib/quotearg.c (quotearg_n_options): Don't make the initial
42622 slot vector a constant, since it might get modified.
42624 2000-07-31 Jim Meyering <meyering@lucent.com>
42626 * lib/xmalloc.c: Use `virtual memory exhausted', not
42627 `Memory exhausted'.
42628 * lib/obstack.c (print_and_abort): Likewise.
42630 2000-07-30 Paul Eggert <eggert@twinsun.com>
42632 * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
42633 buffer, so that the caller can always quote one small
42634 component of a "memory exhausted" message in slot 0.
42635 From a suggestion by Jim Meyering.
42637 2000-07-30 Jim Meyering <meyering@lucent.com>
42639 * lib/makepath.c (make_path): Quote the other instance, too.
42641 * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
42642 (STATIC_BUF_SIZE): Define.
42643 (quotearg_n_options): Use only statically allocated storage when
42644 N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
42645 than STATIC_BUF_SIZE.
42647 2000-07-29 Jim Meyering <meyering@lucent.com>
42649 * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
42650 * lib/dirname.c (dir_name): Likewise.
42652 * lib/basename.c (base_name): Use ISSLASH rather than comparing against
42655 * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
42656 (dir_name): Assert that there are no trailing slashes.
42658 2000-07-29 Bruno Haible <haible@clisp.cons.org>
42660 * lib/mbswidth.h (mbswidth): Add a flags argument.
42661 (mbswidth): New declaration.
42662 (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
42663 * lib/mbswidth.c (mbswidth): Add a flags argument.
42664 (mbsnwidth): New function.
42666 2000-07-24 Jim Meyering <meyering@lucent.com>
42668 * lib/mbswidth.c: Remove useless #else. From Bruno Haible.
42670 2000-07-23 Paul Eggert <eggert@twinsun.com>
42672 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
42674 2000-07-23 Paul Eggert <eggert@twinsun.com>
42676 * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
42677 <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
42678 (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
42679 (quotearg_buffer_restyled): If a unibyte locale, don't bother to
42680 invoke multibyte primitives.
42682 2000-07-23 Paul Eggert <eggert@twinsun.com>
42685 Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
42686 so that mbstate_t is always defined.
42688 Do not inspect MB_LEN_MAX, since it's incorrectly defined to
42689 be 1 in at least one GCC installation, and this configuration
42690 error is likely to be common. Ignoring MB_LEN_MAX hurts
42691 performance on hosts that have mbrtowc but have only unibyte
42692 locales, but I assume these hosts are rare.
42694 2000-07-23 Paul Eggert <eggert@twinsun.com>
42696 * lib/mbswidth.c (_XOPEN_SOURCE):
42697 Don't define; this causes problems on Solaris 7.
42698 (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
42700 2000-07-23 Jim Meyering <meyering@lucent.com>
42702 * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
42703 too: getgrgid, getpwuid, getuid.
42705 2000-07-23 Jim Meyering <meyering@lucent.com>
42707 * lib/basename.c (base_name): Add an assertion.
42709 2000-07-23 Bruno Haible <haible@clisp.cons.org>
42711 * lib/quotearg.c: When the system forces us to redefine mbstate_t,
42712 shadow its mbsinit function.
42714 2000-07-17 Bruno Haible <haible@clisp.cons.org>
42716 * lib/mbswidth.h: New file.
42717 * lib/mbswidth.c: New file.
42718 * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
42719 (noinst_HEADERS): Add mbswidth.h.
42721 2000-07-17 Bruno Haible <haible@clisp.cons.org>
42723 * lib/config.charset: Add support for FreeBSD. Improve support for
42726 2000-07-16 Bruno Haible <haible@clisp.cons.org>
42728 * m4/mbswidth.m4: New file.
42729 * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
42731 2000-07-15 Jim Meyering <meyering@lucent.com>
42733 * lib/makepath.c: Include quote.h.
42734 (make_path): Convert "`%s'" in format strings to "%s", and wrap each
42735 corresponding argument in a `quote (...)' call.
42736 Give better diagnostics.
42738 * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
42739 (noinst_HEADERS): Add quote.h.
42741 * lib/quote.c (quote, quote_n): New file. Two functions taken verbatim
42742 from tar's src/misc.c.
42743 * lib/quote.h: New file. Prototypes for same.
42745 2000-07-14 Paul Eggert <eggert@twinsun.com>
42747 From a suggestion by Bruno Haible.
42748 * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
42749 Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
42750 to decide whether to define the BeOS workaround macro;
42751 this adjusts to the change to AC_MBSTATE_T.
42753 2000-07-14 Jim Meyering <meyering@lucent.com>
42755 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
42756 jm_AC_TYPE_UINTMAX_T.
42758 2000-07-13 Paul Eggert <eggert@twinsun.com>
42760 * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
42762 * lib/quotearg.c (quoting_style_args, quoting_style_vals,
42763 quotearg_buffer_restyled): Add support for
42764 clocale_quoting_style. Undo previous change to
42765 locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
42766 and "{RIGHT QUOTATION MARK}" msgids.
42768 2000-07-10 Paul Eggert <eggert@twinsun.com>
42770 From a suggestion by Bruno Haible.
42771 * m4/mbstate_t.m4 (AC_MBSTATE_T):
42772 Renamed from AC_MBSTATE_T_OBJECT. All uses changed.
42773 Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
42774 and mbstate_t, to a single-part test that simply defines mbstate_t.
42775 * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
42776 s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
42778 2000-07-10 Jim Meyering <meyering@lucent.com>
42780 * m4/strerror_r.m4: Mirror the correction made in autoconf.
42782 * m4/gnu-source.m4: Output to confdefs.h directly.
42783 Suggestion from Akim Demaille.
42785 2000-07-09 Paul Eggert <eggert@twinsun.com>
42787 The old behavior of quoting `like this' doesn't look good with
42788 newer, ISO-style fonts. See:
42789 http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
42791 Instead, quote "like this" by default. Let the translator
42792 tailor the locale-specific quoting behavior by providing
42793 translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
42795 * lib/quotearg.c (N_): New macro.
42796 (gettext_default): New function.
42797 (quotearg_buffer_restyled): Use
42798 gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
42799 gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
42801 2000-07-09 Jim Meyering <meyering@lucent.com>
42803 * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
42804 to link seq. If so, set SEQ_LIBM to -lm. From Bruno Haible.
42806 * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
42807 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
42809 2000-07-09 Jim Meyering <meyering@lucent.com>
42811 * lib/Most files: Update copyright dates to include 2000.
42813 2000-07-08 Jim Meyering <meyering@lucent.com>
42815 * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
42817 (xgethostname): Remove now-unnecessary #ifdef.
42818 Move declaration of `err' into loop where it's used.
42820 2000-07-05 Paul Eggert <eggert@twinsun.com>
42821 and Bruno Haible <haible@clisp.cons.org>
42823 * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
42824 only if the test for an object-type mbstate_t fails. This
42825 prevents us from mistakenly reporting that mbstate_t is a
42826 system object type after we "#define mbstate_t int" to work
42829 2000-07-05 Paul Eggert <eggert@twinsun.com>
42830 and Bruno Haible <haible@clisp.cons.org>
42832 * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
42834 2000-07-05 Bruno Haible <haible@clisp.cons.org>
42836 * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
42838 Include <ctype.h> for use of isalpha.
42840 2000-07-05 Bruno Haible <haible@clisp.cons.org>
42842 * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
42843 by allocating a larger buffer. Test the gethostname return value for
42844 being >= 0, not == 0, for BeOS. Don't exhaust memory if gethostname
42845 returns an error and ENAMETOOLONG isn't defined.
42847 2000-07-05 Bruno Haible <haible@clisp.cons.org>
42849 * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
42852 2000-07-04 Jim Meyering <meyering@lucent.com>
42854 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
42855 of the deprecated AC_CHECKING.
42857 2000-07-04 Jim Meyering <meyering@lucent.com>
42859 * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
42860 Reported by Bruno Haible.
42862 2000-07-04 Jim Meyering <meyering@lucent.com>
42864 * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
42865 HAVE_MBRTOWC is set. Required at least for irix-5.6, which
42868 2000-07-03 Paul Eggert <eggert@twinsun.com>
42870 * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
42871 Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
42873 2000-07-03 Paul Eggert <eggert@twinsun.com>
42874 and Bruno Haible <haible@clisp.cons.org>
42876 * lib/quotearg.c (mbrtowc):
42877 Assign to *pwc, and return 1 only if result is nonzero.
42878 (iswprint): Use ISPRINT when substituting our own mbrtowc.
42880 2000-07-03 Jim Meyering <meyering@lucent.com>
42882 * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
42884 2000-07-03 Jim Meyering <meyering@lucent.com>
42886 * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
42887 This is necessary to get a definition of e.g., UTMP_FILE on
42891 2000-07-02 Jim Meyering <meyering@lucent.com>
42893 * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
42895 * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
42896 AC_LIBOBJ(function_name).
42897 * m4/chown.m4: Likewise.
42898 * m4/fnmatch.m4: Likewise.
42899 * m4/ftruncate.m4: Likewise.
42900 * m4/getgroups.m4: Likewise.
42901 * m4/getline.m4: Likewise.
42902 * m4/group-member.m4: Likewise.
42903 * m4/jm-macros.m4: Likewise.
42904 * m4/lstat.m4: Likewise.
42905 * m4/malloc.m4: Likewise.
42906 * m4/memcmp.m4: Likewise.
42907 * m4/nanosleep.m4: Likewise.
42908 * m4/putenv.m4: Likewise.
42909 * m4/realloc.m4: Likewise.
42910 * m4/regex.m4: Likewise.
42911 * m4/stat.m4: Likewise.
42912 * m4/strftime.m4: Likewise.
42914 2000-07-02 Jim Meyering <meyering@lucent.com>
42916 * lib/quotearg.c (mbstate_t): Don't define here.
42918 2000-07-02 Jim Meyering <meyering@lucent.com>
42920 * lib/nanosleep.c (SIGCONT): Define if not already defined.
42922 2000-07-01 Jim Meyering <meyering@lucent.com>
42924 * m4/uptime.m4: Put double quotes around use of $cross_compiling.
42926 2000-07-01 Jim Meyering <meyering@lucent.com>
42928 * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
42931 2000-07-01 Bruno Haible <haible@clisp.cons.org>
42933 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
42934 macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
42936 2000-07-01 Bruno Haible <haible@clisp.cons.org>
42938 * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
42939 per change in ../m4/ls-mntd-fs.m4.
42940 (read_filesystem_list): Ignore symbolic links.
42942 2000-06-29 Jim Meyering <meyering@lucent.com>
42944 * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
42945 for declaration of strcmp.
42947 * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
42949 * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
42950 Avoid warning by casting result to `char *' to remove `const'.
42952 2000-06-28 Jim Meyering <meyering@lucent.com>
42954 * m4/mbstate_t.m4: Use stdlib.h, not stdio.h. The latter is not
42955 included by quotearg.c, for which we perform this test. From
42958 2000-06-27 Bruno Haible <haible@clisp.cons.org>
42960 * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
42961 * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
42962 <utmpx.h> exists, put readutmp.o into LIBOBJS.
42964 2000-06-27 Bruno Haible <haible@clisp.cons.org>
42966 * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
42968 2000-06-26 Paul Eggert <eggert@twinsun.com>
42970 savedir now sets errno on failure and invokes xmalloc to get memory.
42971 Fix a couple of other minor bugs while we're at it.
42973 * lib/savedir.c (<unistd.h>): Do not include; there's no need.
42974 (NAMLEN): Remove macro.
42975 (malloc, realloc): Remove decls.
42976 (stpcpy): Likewise.
42977 ("xalloc.h"): Include.
42978 (NAME_SIZE_DEFAULT): New macro.
42979 (savedir): Use xmalloc / xrealloc to allocate memory.
42980 Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
42981 Skip "" directory entries.
42982 Use strlen to calculate directory entry length, since the old method
42983 is rarely used these days and isn't worth supporting.
42984 Don't use a pointer after freeing it.
42985 Check for integer overflow when calculating allocation size.
42986 Use memcpy to copy entries, instead of stpcpy.
42987 Set errno properly when returning NULL.
42988 Check for readdir error.
42990 2000-06-26 Jim Meyering <meyering@lucent.com>
42992 * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
42994 2000-06-25 Jim Meyering <meyering@lucent.com>
42996 * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
42997 Linux header bug when _XOPEN_SOURCE is defined to 500.
42999 2000-06-25 Bruno Haible <haible@clisp.cons.org>
43001 * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
43004 2000-06-25 Bruno Haible <haible@clisp.cons.org>
43006 * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
43008 Don't include <stdlib.h>. Don't declare malloc, realloc.
43010 2000-06-24 Jim Meyering <meyering@lucent.com>
43012 * m4/strerror_r.m4: Revive this file -- to try out an experimental
43013 version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
43014 for which strerror does return char*, but which lacks a conveniently
43015 accessible declaration of the function. If the compile-test says
43016 strerror_r doesn't work, then resort to a `run'-test that works on
43017 BeOS and segfaults on DEC Unix.
43019 2000-06-24 Jim Meyering <meyering@lucent.com>
43021 * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
43023 2000-06-23 Paul Eggert <eggert@twinsun.com>
43025 * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
43026 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it. Add check for iswprint.
43028 2000-06-23 Paul Eggert <eggert@twinsun.com>
43030 * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
43031 (mbrtowc, mbstate_t): Define substitutes if
43032 HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
43033 (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
43034 not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
43036 2000-06-23 Jim Meyering <meyering@lucent.com>
43038 * m4/afs.m4: Add missing AC_MSG_RESULT.
43039 Reported by Bruno Haible.
43041 * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
43042 Suggestion from Bruno Haible.
43044 2000-06-23 Jim Meyering <meyering@lucent.com>
43046 * lib/getpass.c: New file, from Bruno Haible. Required for BeOS.
43048 2000-06-21 Jim Meyering <meyering@lucent.com>
43050 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
43052 2000-06-21 Jim Meyering <meyering@lucent.com>
43054 * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
43055 (noinst_HEADERS): Add getstr.h.
43057 * lib/getline.c (getstr): Move into a separate file.
43058 * lib/getstr.c (getstr): New file, extracted from getline.c, with
43059 the following changes: new parameter, delim2; both delim[12]
43060 parameters have type `int', not `char'. The latter would lose
43061 with 8-bit delimiters.
43062 * lib/getstr.h: New file.
43064 2000-06-21 Bruno Haible <haible@clisp.cons.org>
43066 * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
43067 than 1024, return a memory chunk of least possible size, instead
43068 of size PATH_MAX + 2. In the loop, increment the size proportionally.
43069 Use free/xmalloc instead of xrealloc to avoid copying for very long
43072 2000-06-21 Bruno Haible <haible@clisp.cons.org>
43074 * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
43077 2000-06-21 Bruno Haible <haible@clisp.cons.org>
43079 * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
43080 address, not strdup. Include <stdlib.h> and don't declare free().
43082 2000-06-19 Jim Meyering <meyering@lucent.com>
43084 * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
43086 2000-06-18 Jim Meyering <meyering@lucent.com>
43088 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
43090 * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
43091 `checking whether...' message to be consistent with that of the
43094 2000-06-18 Jim Meyering <meyering@lucent.com>
43096 * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
43097 Besides, these days every porting target provides a mkdir function.
43099 * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
43100 needed. (this snippet comes from src/system.h).
43102 2000-06-16 Bruno Haible <haible@clisp.cons.org>
43104 * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
43106 2000-06-15 Paul Eggert <eggert@twinsun.com>
43108 * lib/human.c (adjust_value): New function.
43109 (human_readable_inexact): Apply rounding style even when
43110 printing approximate values.
43112 2000-06-14 Paul Eggert <eggert@twinsun.com>
43114 * lib/human.c (human_readable_inexact): Allow an input block
43115 size that is not a multiple of the output block size, and vice versa.
43116 Reported by Piergiorgio Sartor.
43118 2000-06-14 Paul Eggert <eggert@twinsun.com>
43120 * lib/getdate.y (get_date): Apply relative times after time
43121 zone indicator, not before. Reported by Todd A. Jacobs.
43123 2000-06-13 Jim Meyering <meyering@lucent.com>
43125 * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
43127 * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
43129 2000-06-12 Paul Eggert <eggert@twinsun.com>
43131 * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
43133 2000-06-12 Jim Meyering <meyering@lucent.com>
43135 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
43136 AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
43138 * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
43139 the optional argument, `lib'.
43141 2000-06-08 Jim Meyering <meyering@lucent.com>
43143 * m4/largefile.m4: Remove file (now that it's part of autoconf).
43145 2000-06-04 Paul Eggert <eggert@twinsun.com>
43147 Rewrite largefile configuration so that we don't need to run
43148 getconf and don't need AC_CANONICAL_HOST. [I'm leaving the use of
43149 AC_CANONICAL_HOST in configure.in -- jmm]
43151 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
43152 AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
43153 (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
43154 (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
43155 CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
43157 Instead of inspecting the output of getconf, try to compile the
43158 test program without and with the macro definition.
43159 (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
43160 for getconf. Instead, check for the needed flags by compiling
43163 2000-06-04 Paul Eggert <eggert@twinsun.com>
43165 * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
43167 2000-06-04 Jim Meyering <meyering@lucent.com>
43169 * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
43170 SunOS 4.1.4 for which gid_t is an unsigned type.
43172 2000-06-03 Jim Meyering <meyering@lucent.com>
43174 * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
43175 now that autoconf requires that.
43177 * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
43178 #undefs. E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
43179 Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
43181 2000-06-03 Jim Meyering <meyering@lucent.com>
43183 * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
43185 2000-06-03 Bruno Haible <haible@clisp.cons.org>
43187 * m4/glibc21.m4: New file.
43188 * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
43190 2000-06-03 Bruno Haible <haible@clisp.cons.org>
43192 * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
43193 newer, don't install charset.alias.
43194 * lib/config.charset: Change the Linux/glibc rules so they become empty
43195 on glibc-2.1 or newer.
43197 2000-06-02 Jim Meyering <meyering@lucent.com>
43199 * lib/mountlist.c: Back out last change. Instead, do this...
43200 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
43201 me_dummy member using the same `ignore'-testing code.
43202 * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
43206 2000-05-29 Jim Meyering <meyering@lucent.com>
43208 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
43209 mounts with the `ignore' attribute. Based on a patch from
43212 2000-05-28 Jim Meyering <meyering@lucent.com>
43214 * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
43215 jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
43216 * m4/stat.m4: Likewise.
43217 * m4/lstat.m4: Likewise.
43218 * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
43220 * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
43221 * m4/strerror_r.m4: Remove file (absorbed into autoconf).
43223 2000-05-26 Jim Meyering <meyering@lucent.com>
43225 * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
43227 2000-05-24 Jim Meyering <meyering@lucent.com>
43229 * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
43230 autoconf requires that.
43231 * m4/lib-check.m4: Likewise.
43232 * m4/jm-macros.m4: Likewise.
43233 * m4/strftime.m4: Likewise.
43235 * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
43236 AC_CHECK_DECLS, now that autoconf requires that.
43238 2000-05-22 Jim Meyering <meyering@lucent.com>
43240 * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
43241 * m4/lstat.m4: Likewise.
43243 2000-05-22 Jim Meyering <meyering@lucent.com>
43245 * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
43247 2000-05-20 Jim Meyering <meyering@lucent.com>
43249 * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
43250 (jm_PREREQ): Use it.
43252 2000-05-18 Jim Meyering <meyering@lucent.com>
43254 * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
43255 back, too, since it may have been modified by allocate_entry.
43256 (hash_delete): Rewrite to use neither the assignment operator
43257 nor the comma operator in an if-expression.
43259 2000-05-15 Paul Eggert <eggert@twinsun.com>
43262 <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
43263 Remove; no longer needed.
43264 "quotearg.h": Add include.
43265 (file_name): Do not bother to explicitly initialize to NULL; it's less
43266 efficient on some hosts.
43267 (close_stdout_status): Remove test as to whether stdout was already
43268 closed; it breaks for the case "echo x | sort >&-".
43269 Quote file name colons.
43270 Do not assume that _("write error") lacks format strings.
43272 2000-05-15 Jim Meyering <meyering@lucent.com>
43274 * lib/version-etc.c (version_etc_copyright): Update the copyright
43275 string used in all --version output.
43277 2000-05-14 Jim Meyering <meyering@lucent.com>
43279 * lib/closeout.c (close_stdout_set_file_name): New function.
43280 (close_stdout_status): Use new file-scoped global.
43281 Return right away if fstat says the stdout file descriptor is invalid.
43282 * lib/closeout.h (close_stdout_set_file_name): Declare.
43284 2000-05-10 Jim Meyering <meyering@lucent.com>
43286 * lib/closeout.c [default_exit_status]: New file-scoped variable.
43287 (close_stdout_set_status): New function.
43288 * lib/closeout.h (close_stdout_set_status): Declare.
43290 2000-05-09 Jim Meyering <meyering@lucent.com>
43292 * m4/gettext.m4: Rename this...
43293 * m4/libintl.m4: ...to this.
43295 2000-05-08 Jim Meyering <meyering@lucent.com>
43297 * lib/long-options.c: Don't include closeout.h.
43298 (parse_long_options): Don't call close_stdout for --version.
43300 2000-05-06 Paul Eggert <eggert@twinsun.com>
43302 * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
43303 be 500, instead of _GNU_SOURCE to be 1, to work around glibc
43304 2.1.3 bug. This avoids a clash when files like regex.c define
43307 2000-05-06 Jim Meyering <meyering@lucent.com>
43309 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
43310 (AC_REPLACE_FUNCS): Add strnlen.
43312 * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
43313 * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
43315 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
43316 AC_SEARCH_LIBS call for nanosleep.
43317 (LIB_NANOSLEEP): Set and AC_SUBST.
43319 2000-05-06 Jim Meyering <meyering@lucent.com>
43321 * lib/strnlen.c: Undefine __strnlen and strnlen.
43322 [!weak_alias]: Define __strnlen to strnlen.
43324 * lib/atexit.c: New file, from libiberty.
43326 2000-05-06 Jim Meyering <meyering@lucent.com>
43328 * lib/closeout.c (close_stdout_status): Also check for errors on the
43331 2000-05-05 Jim Meyering <meyering@lucent.com>
43333 * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
43334 AC_SEARCH_LIBS call for clock_gettime.
43335 (LIB_CLOCK_GETTIME): Set and AC_SUBST.
43337 * m4/search-libs.m4: Update from autoconf.
43339 su doesn't work on Solaris 2.6.
43340 * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
43341 <shadow.h>. Reported by Dragos Harabor.
43343 2000-05-05 Bruno Haible <haible@clisp.cons.org>
43345 * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
43346 memcpy instead of xmalloc, xrealloc, path_concat.
43347 (locale_charset): Treat empty environment variables as absent.
43348 (DIRECTORY_SEPARATOR, ISSLASH): New macros.
43350 2000-05-04 Jim Meyering <meyering@lucent.com>
43352 * lib/getopt.c: Update from glibc.
43353 * lib/obstack.c: Likewise.
43354 * lib/obstack.h: Likewise.
43355 * lib/regex.c: Likewise. NB: K&R compiler support is dropped for this
43358 * lib/regex.h: Likewise.
43359 * lib/strndup.c: Likewise.
43360 * lib/strnlen.c: New file, from glibc.
43362 2000-05-03 Jim Meyering <meyering@lucent.com>
43364 * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
43366 2000-05-02 Paul Eggert <eggert@twinsun.com>
43368 * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
43369 this is needed to make ftello visible (e.g. glibc 2.1.3). Use
43370 compile-time test, rather than inspecting host and OS, to
43371 decide whether to define _LARGEFILE_SOURCE.
43373 2000-05-01 Jim Meyering <meyering@lucent.com>
43375 * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
43377 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
43378 Based on a patch from Bruno Haible.
43380 2000-05-01 Jim Meyering <meyering@lucent.com>
43382 * lib/full-write.c (full_write): Remove `FIXME' part of comment.
43384 2000-04-29 Jim Meyering <meyering@lucent.com>
43386 * lib/path-concat.c: Declare strdup only if it's not defined.
43387 * lib/canon-host.c: Likewise.
43389 2000-04-28 Jim Meyering <meyering@lucent.com>
43391 * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
43392 avoid redefinition warning on some systems (HPUX). Otherwise, regex.h
43393 is included first, then limits.h is included by locale.h by libintl.h.
43394 From John David Anglin.
43396 2000-04-25 Jim Meyering <meyering@lucent.com>
43398 * lib/makepath.c (S_IRWXUGO): Define.
43399 (make_path): Always perform explicit chmod if MODE specifies any
43400 of the `special' permission bits. Prompted by a bug report against
43401 install from Mate Wierdl and Joost van Baal.
43403 2000-04-18 Jim Meyering <meyering@lucent.com>
43405 * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
43406 (jm_PREREQ): Use it.
43408 2000-04-18 Jim Meyering <meyering@lucent.com>
43410 * lib/README: New file.
43412 * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
43413 getpagesize. For BeOS. Based on a patch from Bruno Haible.
43415 2000-04-17 Jim Meyering <meyering@lucent.com>
43418 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
43419 actual #define via AH_VERBATIM. Don't need separate AC_DEFINE.
43420 Suggestion from Akim Demaille.
43422 2000-04-17 Jim Meyering <meyering@lucent.com>
43424 * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
43425 the definition of it to rpl_strftime also defined-away the system's
43428 2000-04-15 Jim Meyering <meyering@lucent.com>
43430 Use `C' to denote so-called `contiguous' files, the same way
43432 * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
43433 (ftypelet): Use S_ISCTG.
43434 From Michael Deutschmann.
43436 2000-04-14 Jim Meyering <meyering@lucent.com>
43438 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
43439 form of AC_DEFINE. Otherwise, the #ifndef in AH_VERBATIM gets
43442 2000-04-14 Jim Meyering <meyering@lucent.com>
43444 * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
43446 2000-04-13 Jim Meyering <meyering@lucent.com>
43448 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
43449 AH_VERBATIM to insert required #ifndef into config.h.in.
43450 Suggestion from Akim Demaille.
43452 2000-04-12 Jim Meyering <meyering@lucent.com>
43454 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
43455 `AC_CHECK_HEADER' to check for locale.h. Thanks to a report from
43456 Christian Krackowizer.
43458 More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
43459 * m4/jm-macros.m4 (_GNU_SOURCE): Define.
43460 (AC_SYS_LARGEFILE): Require.
43461 (AM_C_PROTOTYPES): Require.
43463 2000-04-08 Jim Meyering <meyering@lucent.com>
43465 * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
43466 names don't conflict. Reported by Eli Zaretskii.
43468 2000-04-07 Jim Meyering <meyering@lucent.com>
43470 * lib/putenv.c: Move inclusion of errno.h so it follows that of
43471 sys/types.h, to work around system header problems on AIX 3.2.5.
43474 2000-04-07 Bruno Haible <haible@clisp.cons.org>
43476 * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
43477 bug. Deal with the different error behavior of Irix iconv.
43479 2000-04-05 Paul Eggert <eggert@twinsun.com>
43481 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
43482 IRIX if the installer said otherwise.
43484 2000-04-05 Jim Meyering <meyering@lucent.com>
43486 Portability tweaks required for ultrix4.3.
43487 * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
43488 (jm_CHECK_DECLS): Add getutent to the list of functions.
43489 (_jm_DECL_HEADERS): Add utmpx.h.
43490 From John David Anglin.
43492 * m4/strftime.m4: Back out the 2000-04-02 change.
43493 Instead of that change, simply undefine putenv in the test program.
43495 2000-04-05 Jim Meyering <meyering@lucent.com>
43497 Portability tweaks required for ultrix4.3.
43498 * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
43500 * lib/readutmp.c: Include sys/types.h before sys/stat.h.
43501 * lib/canon-host.c: Declare strdup.
43502 * lib/path-concat.c: Likewise.
43503 From John David Anglin.
43505 2000-04-04 Jim Meyering <meyering@lucent.com>
43507 Be more DOS 8.3-friendly.
43508 * lib/ref-add.sin: Renamed from ref-add.sed.in.
43509 * lib/ref-del.sin: Renamed from ref-del.sed.in.
43510 * lib/Makefile.am: Reflect renaming.
43511 Reported by Eli Zaretskii.
43513 Use a temporary file name that won't clash with `charset.alias'
43514 in the DOS 8.3 name space.
43515 * lib/Makefile.am (charset_tmp): Define.
43516 (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
43517 (uninstall-local): Likewise.
43518 Reported by Eli Zaretskii.
43520 2000-04-03 Jim Meyering <meyering@lucent.com>
43522 * m4/gettext.m4: Fix typo in comment.
43524 * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
43525 textutils/configure.in). Suggestion from Paul Eggert.
43526 (AC_CHECK_FUNCS): Add nl_langinfo. (also from textutils/configure.in)
43528 2000-04-02 Paul Eggert <eggert@twinsun.com>
43530 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
43531 variable in the shell rather than using putenv, which isn't
43532 portable. This avoids the configure-time inter-test dependency
43533 on the potentially-renamed putenv function.
43535 2000-03-30 Paul Eggert <eggert@twinsun.com>
43537 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
43538 before checking struct stat.st_blksize, so that
43539 HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
43541 2000-03-29 Paul Eggert <eggert@twinsun.com>
43543 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
43544 since strftime.c uses HAVE_STRFTIME to decide whether to use
43545 the underlying strftime.
43547 2000-03-29 Paul Eggert <eggert@twinsun.com>
43549 * lib/time/strftime.c (my_strftime): Make sure we call the system
43550 strftime, not ourselves, when invoking the underlying strftime.
43552 2000-03-24 Jim Meyering <meyering@lucent.com>
43554 * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
43555 (charset_alias): Define.
43556 (install-exec-local): Factor out common code.
43557 (uninstall-local): Split lines longer than 80.
43558 (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
43559 (SUFFIXES): Define.
43560 (.sed.in.sed): New rule. Don't redirect directly to $@.
43561 (CLEANFILES): Add ref-add.sed and ref-del.sed.
43563 2000-03-19 Bruno Haible <haible@clisp.cons.org>
43565 * lib/config.charset: Output a line containing "Packages using this
43567 * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
43568 * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
43569 ref-del.sed): New rules.
43571 2000-03-17 Jim Meyering <meyering@lucent.com>
43573 * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
43574 Otherwise, include <strings.h>
43576 2000-03-17 Bruno Haible <haible@clisp.cons.org>
43578 * lib/unicodeio.c (utf8_wctomb): New function.
43579 (print_unicode_char): Pass the Unicode character to iconv in UTF-8
43580 format instead of in UCS-4 with platform dependent endianness.
43582 2000-03-10 Jim Meyering <meyering@lucent.com>
43584 * m4/lib-check.m4: Look for getspnam in -lgen, too.
43585 From Marco Franzen.
43587 2000-03-07 Paul Eggert <eggert@twinsun.com>
43589 * lib/savedir.c (savedir): Work even if directory size is
43590 negative; this can happen with some screwy NFS configurations.
43592 2000-03-06 Jim Meyering <meyering@lucent.com>
43594 * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
43595 if it's NULL (because we ran out of memory). From Bruno Haible.
43597 2000-03-05 Jim Meyering <meyering@lucent.com>
43599 * lib/localcharset.c ("path-concat.h"): Include.
43600 (get_charset_aliases): Use path_concat instead of ANSI string
43603 * lib/unicodeio.h (PARAMS): Define.
43604 Use it to guard prototype.
43606 2000-03-04 Jim Meyering <meyering@lucent.com>
43608 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
43609 for lib/localcharset.c.
43611 2000-03-04 Jim Meyering <meyering@lucent.com>
43613 * lib/Makefile.am (install-exec-local): Create $(libdir) before
43614 installing into it.
43615 (uninstall-local): Uncomment this rule so `make distcheck' works
43618 * lib/unicodeio.c (<errno.h>): Include it.
43619 (errno): Declare if not defined.
43621 * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
43623 * lib/config.charset: New version, incorporating remarks from a linux
43624 i18n mailing list. From Bruno Haible.
43626 2000-03-04 Bruno Haible <haible@clisp.cons.org>
43628 * m4/codeset.m4: New file.
43629 * m4/iconv.m4: New file.
43630 * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
43632 2000-03-03 Jim Meyering <meyering@lucent.com>
43634 * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
43636 2000-03-02 Jim Meyering <meyering@lucent.com>
43638 * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
43639 the messages come out on separate lines.
43641 * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
43642 rather than jm_CHECK_DECLARATIONS.
43643 * m4/decl.m4: Remove now-unused file.
43645 * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
43648 2000-03-02 Jim Meyering <meyering@lucent.com>
43650 * lib/Makefile.am (EXTRA_DIST): Add config.charset.
43652 2000-03-01 Jim Meyering <meyering@lucent.com>
43654 * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
43655 * lib/unicodeio.c: Likewise.
43657 2000-03-01 Bruno Haible <haible@clisp.cons.org>
43659 * lib/config.charset: New file.
43660 * lib/localcharset.c: New file.
43661 * lib/unicodeio.h, lib/unicodeio.c: New files.
43662 * lib/Makefile.am (DEFS): Add -DLIBDIR=...
43663 (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
43664 (noinst_HEADERS): Add unicodeio.h.
43665 (all-local, install-exec-local, charset.alias): New targets.
43667 2000-02-28 Paul Eggert <eggert@twinsun.com>
43669 * lib/quotearg.c (ALERT_CHAR): New macro.
43670 (quotearg_buffer_restyled): Use it.
43672 2000-02-27 Jim Meyering <meyering@lucent.com>
43674 * m4/check-decl.m4: Add getenv to the list.
43676 2000-02-27 Jim Meyering <meyering@lucent.com>
43678 * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
43679 Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
43681 * lib/backupfile.c: Guard inclusion of stdlib.h with
43682 `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
43683 Declare malloc if needed.
43685 * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
43686 `#ifndef HAVE_DECL..'
43687 now that autoconf always defines the HAVE_DECL_ symbols.
43688 * lib/human.c: Likewise.
43689 * lib/same.c: Likewise.
43690 * lib/strtoumax.c: Likewise.
43692 * lib/backupfile.c: Arrange for cpp to fail if the configure-time
43693 declaration check was not run.
43694 * lib/hash.c: Likewise.
43695 * lib/human.c: Likewise.
43696 * lib/same.c: Likewise.
43697 * lib/strtoumax.c: Likewise.
43699 * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
43700 `.', then first look up the entire `.'-containing string as a login
43703 2000-02-23 Jim Meyering <meyering@lucent.com>
43705 * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
43706 in place of my hack.
43708 2000-02-18 Paul Eggert <eggert@twinsun.com>
43710 * lib/getdate.y: Handle two-digit years with leading zeros correctly.
43711 (textint): New typedef.
43712 (parser_control): Member year changed from int to textint.
43714 (YYSTYPE): Removed; replaced by %union with int and textint members.
43715 (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
43716 tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
43717 tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
43718 (tSNUMBER, tUNUMBER): Now of type <textintval>.
43719 (date, number, to_year): Use width of number in digits, not its value,
43720 to determine whether it's a 2-digit year, or a 2-digit time.
43721 (yylex): Store number of digits of numeric tokens.
43722 Reported by John Kendall.
43724 (parser_control): Changed from struct parser_control to typedef (for
43725 consistency). All uses changed.
43727 (tID): Removed; not used.
43728 (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
43730 2000-02-14 Paul Eggert <eggert@twinsun.com>
43732 * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
43733 adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
43735 2000-02-12 Jim Meyering <meyering@lucent.com>
43737 * lib/userspec.c (ISDIGIT): Define it.
43738 (isdigit): Remove definition.
43739 (is_number): Use ISDIGIT, not isdigit.
43740 <libintl.h>: Include.
43741 (_ and N_): Define.
43742 (parse_user_spec): Mark translatable strings.
43744 2000-02-10 Jim Meyering <meyering@lucent.com>
43746 With these changes, nanosleep.[ch] are finally enough like the other
43747 lib/* replacement files to compile on a few more losing systems.
43749 * lib/nanosleep.h: Don't include config.h.
43750 Remove prototype from declaration of nanosleep.
43751 (PARAMS): Remove now-unneeded definition.
43752 * lib/nanosleep.c: #undef nanosleep.
43753 (rpl_nanosleep): Rename from nanosleep.
43755 2000-02-10 Jim Meyering <meyering@lucent.com>
43757 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
43758 gnu_nanosleep to rpl_nanosleep.
43760 2000-02-09 Jim Meyering <meyering@lucent.com>
43762 * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
43763 struct spwd, rather than in struct passwd. Reported by Gaël Quéri.
43765 2000-02-08 Akim Demaille <akim@epita.fr>
43767 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
43768 `[' and `]' and remove uses of `changequote'.
43769 (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
43770 (AC_SYS_LARGEFILE): Likewise.
43771 * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
43772 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
43774 * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
43775 * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
43776 * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
43777 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
43779 2000-02-05 Jim Meyering <meyering@lucent.com>
43781 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
43782 Remove explicit use of AC_HEADER_TIME. It is required by
43783 jm_CHECK_TYPE_STRUCT_TIMESPEC. Using AC_HEADER_TIME and
43784 `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
43785 in autoconf whereby the expansion of the latter ended up preceding
43786 the expansion of its prerequisite, AC_HEADER_TIME.
43787 Reported by Volker Borchert.
43789 2000-02-03 Jim Meyering <meyering@lucent.com>
43791 * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
43793 2000-02-03 Jim Meyering <meyering@lucent.com>
43795 * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
43796 rather than with `#if HAVE_UTMPNAME'.
43798 2000-02-02 Jim Meyering <meyering@lucent.com>
43800 * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
43801 definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
43802 Reported by Eli Zaretskii.
43804 2000-02-01 Jim Meyering <meyering@lucent.com>
43806 * lib/readutmp.h (UT_USER): Add parens. From Andreas Schwab.
43808 2000-01-31 Jim Meyering <meyering@lucent.com>
43810 * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
43811 functions. Add the time.h and sys/time.h headers along with the
43812 AC_REQUIRE'ment of AC_HEADER_TIME.
43814 2000-01-31 Jim Meyering <meyering@lucent.com>
43816 * lib/nanosleep.h (nanosleep): Guard declaration with
43817 `#if ! HAVE_DECL_NANOSLEEP'.
43818 Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
43819 the declaration in that vendor's sys/timers.h.
43820 Reported by Christian Krackowizer.
43822 * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
43823 inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
43824 (ISPRINT): Likewise.
43825 Reported by Tom Tromey.
43827 2000-01-30 Jim Meyering <meyering@lucent.com>
43829 * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
43831 * m4/prereq.m4 (utmp_includes): Define.
43832 Check for ut_user and ut_name members in both struct utmpx
43835 2000-01-30 Jim Meyering <meyering@lucent.com>
43837 * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
43838 hard-coding uses of ->ut_name. The latter doesn't work with new Linux
43839 header files where only utmpx.ut_user is declared.
43841 * lib/readutmp.h (UT_USER): Define.
43843 2000-01-29 Jim Meyering <meyering@lucent.com>
43845 * m4/lib-check.m4: New file containing library-related checks from
43846 fileutils and sh-utils (textutils had none).
43848 2000-01-28 Jim Meyering <meyering@lucent.com>
43850 * m4/perl.m4: Change format of warning message to look more like that
43851 from the missing script. Suggestion from François Pinard.
43853 2000-01-25 Jim Meyering <meyering@lucent.com>
43855 * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
43856 well as time.h in the compile check.
43857 * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
43858 Fix typo in cross-compiling case: s/yes/no/.
43860 2000-01-23 Jim Meyering <meyering@lucent.com>
43862 * m4/jm-macros.m4: Move df-related tests here from
43863 fileutils/configure.in
43865 * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
43866 (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
43868 * m4/fsusage.m4: New file. Extracted from fileutils/configure.in.
43869 s/space/ac_fsusage_space/.
43870 (jm_FILE_SYSTEM_USAGE): Take two parameters.
43872 * m4/ftruncate.m4: New file (derived from part of
43873 fileutils/configure.in).
43874 * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
43875 (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
43877 * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
43878 AC_SUBST these here, rather than just in sh-util/configure.in, so
43879 that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
43881 (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
43882 (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
43883 (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
43884 (AC_SUBST(POW_LIBM)): Likewise.
43885 (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
43887 2000-01-23 Jim Meyering <meyering@lucent.com>
43889 * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
43892 2000-01-22 Jim Meyering <meyering@lucent.com>
43894 * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
43896 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
43898 * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
43900 (AC_CHECK_HEADERS): Likewise for sh-utils.
43901 (AC_CHECK_HEADERS): Likewise for textutils.
43902 Merge the three lists of headers.
43904 * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro. Parts moved here
43905 from fileutils' configure.in.
43907 * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
43908 code. Moved tests into their own function (_jm_DECL_HEADERS) in
43911 * m4/check-decl.m4: Use #if rather than #ifdef.
43912 Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
43913 (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
43914 (_jm_DECL_HEADERS): Define new function.
43915 (jm_CHECK_DECLARATIONS): Require it.
43917 2000-01-22 Jim Meyering <meyering@lucent.com>
43919 * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
43920 [! HAVE_DECL_STRTOULL]: Declare strtoull.
43921 Required for some AIX systems. Reported by Christian Krackowizer.
43922 [TESTING] (main): New function.
43924 1997-10-17 Eli Zaretskii <eliz@is.elta.co.il>
43925 * lib/dirname.c (dir_name): Support for DOS-style file names with drive
43928 * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
43931 * lib/strverscmp.c (ISDIGIT): Define.
43932 (strverscmp): Use ISDIGIT, not isdigit.
43934 2000-01-19 Jim Meyering <meyering@lucent.com>
43936 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
43937 Use AC_HEADER_TIME. Volker Borchert reported that OpenBSD-2.3/sparc
43938 defines `struct timespec' in <sys/time.h>
43940 * m4/c-bs-a.m4: Remove uses of changequote altogether.
43941 Thanks to Akim for explaining.
43943 2000-01-17 Paul Eggert <eggert@twinsun.com>
43945 * lib/nanosleep.c (nanosleep):
43946 Don't use SA_INTERRUPT to decide whether to call sigaction, as
43947 POSIX.1 doesn't require SA_INTERRUPT and some systems
43948 (e.g. Solaris 7) don't define it. Use SA_NOCLDSTOP instead;
43949 it's been part of POSIX.1 since day 1 (in 1988).
43951 2000-01-17 Jim Meyering <meyering@lucent.com>
43953 * lib/interlock: Remove unused file. Reported by François Pinard.
43955 2000-01-16 Paul Eggert <eggert@twinsun.com>
43957 * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
43958 alert, backslash, formfeed, and vertical tab unnecessarily in
43959 shell quoting style.
43961 2000-01-16 Jim Meyering <meyering@lucent.com>
43963 * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
43964 AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
43965 jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
43966 AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
43968 2000-01-16 Jim Meyering <meyering@lucent.com>
43970 * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
43971 because the latter didn't work.
43973 2000-01-15 Jim Meyering <meyering@lucent.com>
43975 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
43976 (AC_REPLACE_FUNCS): Add memcpy and memset.
43977 Add these, too: stime strcspn stpcpy strstr strtol strtoul.
43979 Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
43981 2000-01-12 Jim Meyering <meyering@lucent.com>
43983 * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
43984 (jm_PREREQ): Use it.
43985 (jm_PREREQ_READUTMP): New macro.
43986 (jm_PREREQ): Use it.
43988 2000-01-11 Paul Eggert <eggert@twinsun.com>
43990 Quote multibyte characters correctly.
43991 * m4/c-bs-a.m4: New file.
43992 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
43993 (jm_PREREQ): Use it.
43995 2000-01-11 Paul Eggert <eggert@twinsun.com>
43997 * m4/uintmax_t.m4: Port to autoconf 2.13.
43999 2000-01-08 Jim Meyering <meyering@ascend.com>
44001 * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
44002 * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
44004 2000-01-04 Jim Meyering <meyering@ascend.com>
44006 * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
44007 jm_STRUCT_DIRENT_D_TYPE.
44008 * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
44009 jm_STRUCT_DIRENT_D_INO.
44010 * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
44012 * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
44014 * m4/utime.m4: Likewise.
44016 * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
44017 * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
44019 2000-01-03 Paul Eggert <eggert@twinsun.com>
44021 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
44022 (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
44024 2000-01-02 Jim Meyering <meyering@ascend.com>
44026 * m4/search-libs.m4: Escape `$' in $3 of dnl comment. I no longer
44027 remember if this is necessary.
44029 1999-12-26 Jim Meyering <meyering@ascend.com>
44031 * m4/jm-macros.m4: Use it here.
44032 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
44034 1999-12-23 Jim Meyering <meyering@ascend.com>
44036 * m4/jm-macros.m4: Check for clock_gettime (moved from
44037 fileutils/configure.in)
44038 Check for gettimeofday.
44040 1999-12-20 Jim Meyering <meyering@ascend.com>
44042 * m4/strftime.m4: Remove kludge, now that I'm using the fixed
44043 autoconf-2.14a-1999-12-20.
44045 1999-12-19 Jim Meyering <meyering@ascend.com>
44047 * m4/lstat-slash.m4: New file.
44048 * m4/jm-macros.m4: Use the new macro:
44049 jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
44051 1999-12-07 Jim Meyering <meyering@ascend.com>
44053 * m4/perl.m4: Require that File::Compare be available, too.
44054 Too many systems seem to lack it.
44056 * m4/strftime.m4: Add checks for most of the cpp macros tested in
44057 GNU's strftime.c. Prompted by a patch from Paul Eggert.
44059 1999-11-18 Paul Eggert <eggert@twinsun.com>
44061 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
44062 problem with the QNX 4.25 shell, which doesn't propagate exit
44063 status of failed commands inside shell assignments.
44065 1999-11-17 Jim Meyering <meyering@ascend.com>
44067 * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
44069 1999-11-07 Jim Meyering <meyering@ascend.com>
44071 * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
44073 1999-11-06 Jim Meyering <meyering@ascend.com>
44075 * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
44076 * m4/jm-macros.m4 (jm_MACROS): Use it here.
44078 1999-11-05 Jim Meyering <meyering@ascend.com>
44080 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
44081 configure.in of textutils, fileutils, and sh-utils into this one
44082 (shared between those packages) file.
44083 Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
44084 AC_STRUCT_ST_BLKSIZE.
44086 1999-11-03 Jim Meyering <meyering@ascend.com>
44088 * m4/ssize_t.m4: Remove file. No longer needed since the new version
44089 of AC_CHECK_TYPE checks includes unistd.h.
44090 * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
44091 Suggestion from Akim Demaille.
44093 1999-10-30 Jim Meyering <meyering@ascend.com>
44095 * m4/uintmax_t.m4: Require 2.14a. Remove backslash before backtick in
44097 * m4/ls-mntd-fs.m4: Likewise.
44098 * m4/jm-macros.m4: Likewise. Also, use AC_TYPE_SSIZE_T instead
44099 * m4/jm-winsz1.m4: Likewise.
44101 * m4/const.m4: Remove file, since the fix made it into the experimental
44102 version of autoconf.
44103 * m4/mktime.m4: Likewise.
44105 * m4/check-type.m4: Remove file, now that the latest version of
44106 AC_CHECK_TYPE takes a third arg to specify additional #includes.
44108 * m4/ssize_t.m4: New file, requires experimental version of autoconf.
44109 * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
44112 1999-10-04 Jim Meyering <meyering@ascend.com>
44114 * m4/jm-macros.m4: Don't require autoconf-2.14.1.
44116 1999-09-22 Paul Eggert <eggert@twinsun.com>
44118 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
44119 2.95.1 bug with HP-UX 10.20.
44121 1999-09-17 Jim Meyering <meyering@ascend.com>
44123 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
44124 Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
44125 due to missing strdup (against sh-utils-2.0).
44127 1999-08-29 Jim Meyering <meyering@ascend.com>
44129 * m4/jm-macros.m4: Require jm_BISON.
44130 * m4/bison.m4: New file.
44132 1999-08-17 Paul Eggert <eggert@twinsun.com>
44134 * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
44135 in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
44137 1999-08-05 Jim Meyering <meyering@ascend.com>
44139 * m4/getline.m4: Rename test file from conftestdata to conftest.data
44140 to avoid conflicts with `conftest' on 8+3 filesystems.
44141 Suggestion from Eli Zaretskii.
44143 1999-08-04 Jim Meyering <meyering@ascend.com>
44145 * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
44146 fileutils and sh-utils (textutils's getline test was inadequate).
44147 (AM_FUNC_GETLINE): Run this test.
44148 (AC_CHECK_FUNCS): Check for getdelim.
44149 Reported by Bob Proulx.
44151 1999-08-02 Jim Meyering <meyering@ascend.com>
44153 * m4/jm-macros.m4: Add a comment.
44155 1999-08-01 Paul Eggert <eggert@twinsun.com>
44157 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
44158 <inttypes.h> defines strtoumax as a macro (and not as a
44161 1999-08-01 Paul Eggert <eggert@twinsun.com>
44163 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
44164 that we can shift, multiply and divide unsigned long long
44165 values; Ultrix cc can't do it.
44167 1999-08-01 Paul Eggert <eggert@twinsun.com>
44169 * m4/mktime.m4: New file, which is a preview of what should appear
44170 in the next public autoconf release.
44172 1999-08-01 Paul Eggert <eggert@twinsun.com>
44174 * m4/lfs.m4: Remove this file.
44175 * m4/largefile.m4: New file. It contains the old contents of
44176 lfs.m4, except that all names with prefix AC_LFS have been
44177 changed to use the prefix AC_SYS_LARGEFILE instead, to be
44178 compatible with future autoconf versions. Also, some minor m4
44179 quoting problems have been fixed.
44181 1999-08-01 Paul Eggert <eggert@twinsun.com>
44183 * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
44184 Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
44185 (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
44186 and simplify the shell code.
44188 1999-08-01 Jim Meyering <meyering@ascend.com>
44190 * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
44193 1999-07-20 Jim Meyering <meyering@ascend.com>
44195 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
44197 1999-07-15 Jim Meyering <meyering@ascend.com>
44199 * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
44201 1999-05-22 Jim Meyering <meyering@ascend.com>
44203 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
44205 1999-05-20 Jim Meyering <meyering@ascend.com>
44207 * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
44208 Add a colon after each `then' in case $4 is empty.
44210 1999-05-16 Jim Meyering <meyering@ascend.com>
44212 * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
44214 1999-05-10 Jim Meyering <meyering@ascend.com>
44216 * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
44218 * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
44221 1999-05-10 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
44223 * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
44225 1999-05-04 Paul Eggert <eggert@twinsun.com>
44227 * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
44228 not CPPFLAGS, so that linking works correctly in IRIX.
44230 1999-04-30 Paul Eggert <eggert@twinsun.com>
44232 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
44234 1999-04-20 Paul Eggert <eggert@twinsun.com>
44236 * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
44237 long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
44238 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
44239 jm_AC_TYPE_UNSIGNED_LONG_LONG.
44240 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
44242 * m4/lfs.m4: Port to AIX and HP-UX. Support cross-compilation.
44244 1999-04-20 Jim Meyering <meyering@ascend.com>
44246 * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
44247 AC_REPLACE xstroull if necessary. From Paul Eggert.
44248 (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
44250 1999-04-18 Jim Meyering <meyering@ascend.com>
44252 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
44253 * m4/jm-macros.m4: Use it.
44255 1999-04-06 Jim Meyering <meyering@ascend.com>
44257 * m4/strftime.m4: Remove test for %f.
44259 1999-03-29 Jim Meyering <meyering@ascend.com>
44261 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
44262 superset of the AC_TYPE_* checks in the textutils, fileutils,
44263 and sh-utils, plus AC_TYPE_PID_T. Paul Eggert suggested adding
44266 1999-03-28 Jim Meyering <meyering@ascend.com>
44268 * m4/jm-macros.m4: Define GNU_PACKAGE here.
44269 Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
44270 replaced e.g., in the *.sh files of the sh-utils.
44272 1999-03-20 Jim Meyering <meyering@ascend.com>
44274 * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
44275 * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
44276 Don't depend on AM_GLIBC. Suggestions from Alain Magloire.
44278 1999-03-19 Jim Meyering <meyering@ascend.com>
44280 * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
44282 1999-03-12 Jim Meyering <meyering@ascend.com>
44284 * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
44286 1999-03-07 Jim Meyering <meyering@ascend.com>
44288 * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
44291 1999-02-17 Jim Meyering <meyering@ascend.com>
44293 * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
44294 brackets in macro definition. From Eli Zaretskii and Alain Magloire.
44296 1999-02-07 Jim Meyering <meyering@ascend.com>
44298 * m4/group-member.m4: New file -- extracted from sh-utils'
44301 1999-02-05 Eli Zaretskii <eliz@is.elta.co.il>
44302 * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
44304 1999-02-06 Jim Meyering <meyering@ascend.com>
44306 * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
44307 * m4/fnmatch.m4: Likewise.
44308 * m4/getgroups.m4: Likewise.
44309 * m4/lstat.m4: Likewise.
44310 * m4/malloc.m4: Likewise.
44311 * m4/putenv.m4: Likewise.
44312 * m4/realloc.m4: Likewise.
44313 * m4/regex.m4: Likewise.
44314 * m4/stat.m4: Likewise.
44315 * m4/strftime.m4: Likewise.
44316 Suggestion from Alain Magloire.
44318 * m4/chown.m4: Use `.$ac_objext', not `.o'.
44319 * m4/fnmatch.m4: Likewise.
44320 * m4/getgroups.m4: Likewise.
44321 * m4/getline.m4: Likewise.
44322 * m4/lstat.m4: Likewise.
44323 * m4/malloc.m4: Likewise.
44324 * m4/memcmp.m4: Likewise.
44325 * m4/putenv.m4: Likewise.
44326 * m4/realloc.m4: Likewise.
44327 * m4/regex.m4: Likewise.
44328 * m4/stat.m4: Likewise.
44329 * m4/strftime.m4: Likewise.
44330 Suggestion from Alain Magloire.
44332 * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
44335 * m4/regex.m4: Add a run-time Test for proper operation of
44336 re_compile_pattern.
44338 1999-01-31 Jim Meyering <meyering@ascend.com>
44340 * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
44342 1999-01-30 Jim Meyering <meyering@ascend.com>
44344 * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
44346 * m4/jm-mktime.m4: Make this a wrapper around the official
44347 AM_FUNC_MKTIME rather than my private copy, now that the official one
44349 * m4/mktime.m4: Remove file.
44351 * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
44352 * m4/uptime.m4: Likewise.
44353 * m4/uintmax_t.m4: Likewise.
44355 1999-01-28 Jim Meyering <meyering@ascend.com>
44357 * m4/jm-macros.m4: Use jm_AFS.
44358 * m4/afs.m4: New file (from fileutils' configure.in).
44360 * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
44361 * m4/chown.m4: Likewise.
44362 * m4/d-ino.m4: Likewise.
44363 * m4/d-type.m4: Likewise.
44364 * m4/fnmatch.m4: Likewise.
44365 * m4/getgroups.m4: Likewise.
44366 * m4/gettext.m4: Likewise.
44367 * m4/jm-mktime.m4: Likewise.
44368 * m4/jm-winsz2.m4: Likewise.
44369 * m4/lcmessage.m4: Likewise.
44370 * m4/ls-mntd-fs.m4: Likewise.
44371 * m4/malloc.m4: Likewise.
44372 * m4/memcmp.m4: Likewise.
44373 * m4/putenv.m4: Likewise.
44374 * m4/realloc.m4: Likewise.
44375 * m4/st_mtim.m4: Likewise.
44376 * m4/strftime.m4: Likewise.
44378 1999-01-16 Jim Meyering <meyering@ascend.com>
44380 * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
44381 (ARGMATCH_DIE_DECL): Define.
44383 1999-01-12 Jim Meyering <meyering@ascend.com>
44385 * m4/Makefile.am.in: Rewrite to avoid using fmt.
44386 Reported by Lars Hecking.
44388 1999-01-10 Jim Meyering <meyering@ascend.com>
44390 * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
44392 * m4/inttypes_h.m4: Likewise.
44393 * m4/lstat.m4: Likewise.
44394 * m4/malloc.m4: Likewise.
44395 * m4/readdir.m4: Likewise.
44396 * m4/realloc.m4: Likewise.
44397 * m4/st_dm_mode.m4: Likewise.
44398 * m4/stat.m4: Likewise.
44399 * m4/utimbuf.m4: Likewise.
44400 * m4/utimes.m4: Likewise.
44402 * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
44403 AC_CHECK_FUNCS hack. Now, it's still a hack, but at least the
44404 comments in config.h.in are meaningful.
44406 * m4/jm-macros.m4: Require autoconf-2.13 here.
44408 * m4/regex.m4: By default, don't use the included regex.c on systems
44409 with glibc 2. Suggestion from Uli Drepper.
44411 1999-01-02 Jim Meyering <meyering@ascend.com>
44413 * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
44415 1998-12-18 Jim Meyering <meyering@ascend.com>
44417 * m4/Makefile.am.in (Makefile.am): Simplify rule.
44418 Based on a suggestion from Lars Hecking.
44420 1998-11-16 Paul Eggert <eggert@twinsun.com>
44422 * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
44424 1998-11-16 Jim Meyering <meyering@ascend.com>
44426 * m4/lfs.m4: Double-quote the `uname...` expression.
44428 1998-11-14 Jim Meyering <meyering@ascend.com>
44430 * m4/lstat.m4: Correct comment. POSIX does not permit it to succeed.
44431 * m4/stat.m4: Likewise.
44433 1998-11-03 Jim Meyering <meyering@ascend.com>
44435 * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
44436 * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
44438 1998-10-18 Jim Meyering <meyering@ascend.com>
44440 * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
44442 1998-10-17 Jim Meyering <meyering@ascend.com>
44444 * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
44445 include, though we still hard-code the `require'-like AC_CHECK_HEADERS
44446 calls for those previously hard-coded headers. Instead, take a new
44448 (jm_CHECK_DECLARATIONS): Reflect interface change.
44449 * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
44450 (jm_CHECK_DECL_LOCALTIME_R): New macro.
44452 * m4/mktime.m4: Test for spring-forward gap before long-running test.
44454 1998-10-14 Jim Meyering <meyering@ascend.com>
44456 * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
44457 instead of "TZ=America/Vancouver". From Paul Eggert.
44459 1998-10-11 Jim Meyering <meyering@ascend.com>
44461 * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
44462 This adds a test for a recently added compatibility fix for mktime.c.
44463 * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
44465 1998-09-27 Jim Meyering <meyering@ascend.com>
44467 * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
44469 * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro. Extracted from
44470 ../configure.in, including a change from Gordon Matzigkeit to allow
44471 cross-compiling for the Hurd.
44473 * m4/glibc.m4: New file/macro to test for the GNU C Library
44474 versions 1 and 2. From Gordon Matzigkeit.
44477 1998-09-21 Jim Meyering <meyering@ascend.com>
44479 * m4/chown.m4: Declare locals: before, after. From Andries Brouwer.
44481 1998-08-18 Paul Eggert <eggert@twinsun.com>
44483 Port nanosecond-resolution times to UnixWare 2.1.2 and
44484 pedantic Solaris 2.6.
44486 * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
44488 * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
44489 Generate name of ns member, instead of just 1 or undef.
44490 Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
44492 1998-08-15 Jim Meyering <meyering@ascend.com>
44494 * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
44495 * m4/check-type.m4: New file. Replacement for AC_CHECK_TYPE.
44496 * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
44497 instead of jm_TYPE_SSIZE_T.
44499 1998-08-12 Jim Meyering <meyering@ascend.com>
44501 * m4/st_dm_mode.m4: New file. From Johan Danielsson.
44503 1998-08-02 Jim Meyering <meyering@ascend.com>
44505 * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
44506 in acconfig.h manually.
44508 1998-07-31 Paul Eggert <eggert@twinsun.com>
44510 * m4/st_mtim.m4: New file.
44512 1998-07-28 Jim Meyering <meyering@ascend.com>
44514 * m4/utimes.m4: Undef stat.
44516 1998-07-25 Jim Meyering <meyering@ascend.com>
44518 * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
44519 * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
44521 1998-07-09 Manfred Hollstein <manfred@s-direktnet.de>
44523 * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
44524 uid and gid actually remain unchanged.
44526 1998-07-07 Jim Meyering <meyering@ascend.com>
44528 * m4/jm-glibc-io.m4: Remove fclose_unlocked.
44530 1998-07-04 Jim Meyering <meyering@ascend.com>
44532 * m4/regex.m4: Use syscmd, ifelse, and sysval. Mainly as an exercise
44533 to prove that this macro can be used in packages without regex.c.
44535 1998-07-04 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
44537 * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
44540 1998-07-03 Jim Meyering <meyering@ascend.com>
44542 * m4/gettext.m4: Add -lintl if it's found to be necessary.
44544 * m4/gettext.m4: New file -- from gettext-0.10.35.
44545 * m4/lcmessage.m4: Likewise.
44546 * m4/progtest.m4: Likewise.
44548 * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
44549 * m4/jm-macros.m4: Require the new macro.
44551 1998-06-29 Jim Meyering <meyering@ascend.com>
44553 * m4/fstypename.m4: Include sys/param.h. NetBSD 1.3.1 requires this
44554 for the definition of NGROUPS (used in a system header included
44557 1998-06-28 Jim Meyering <meyering@ascend.com>
44559 * m4/ls-mntd-fs.m4: New file.
44560 * m4/fstypename.m4: New file.
44562 * m4/jm-macros.m4: Require the new macro.
44563 * m4/jm-glibc-io.m4: New file.
44565 1998-05-19 Jim Meyering <meyering@ascend.com>
44567 * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
44568 * m4/lchown.m4: New file.
44570 * m4/Makefile.am.in: New file.
44571 * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
44573 1998-05-14 Jim Meyering <meyering@ascend.com>
44575 * m4/Makefile.am (EXTRA_DIST): Add them.
44576 * m4/jm-macros.m4: New file.
44577 * m4/utimbuf.m4: New file.
44579 1998-05-12 Jim Meyering <meyering@ascend.com>
44581 * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
44583 1998-05-11 Jim Meyering <meyering@ascend.com>
44585 * m4/isc-posix.m4: New file.
44587 1998-05-10 Jim Meyering <meyering@ascend.com>
44589 * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
44591 1998-05-09 Jim Meyering <meyering@ascend.com>
44593 * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
44594 (EXTRA_DIST): Remove mktime.m4, now that the new version is included
44597 * m4/ssize_t.m4: New file.
44598 * m4/mktime.m4: Remove file -- the new automake has this now.
44600 1998-04-26 Jim Meyering <meyering@ascend.com>
44602 * m4/assert.m4: New file.
44603 * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
44605 1998-04-05 Jim Meyering <meyering@ascend.com>
44607 * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
44608 (jm_PREREQ): Use it here.
44610 1998-03-23 Jim Meyering <meyering@eng.ascend.com>
44612 * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
44615 1998-03-15 Jim Meyering <meyering@eng.ascend.com>
44617 * m4/prereq.m4: New file.
44618 * m4/error.m4: New file.
44619 * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
44621 1998-02-07 Jim Meyering <meyering@eng.ascend.com>
44623 * m4/getline.m4: Don't set am_cv_func_working_getline before the
44624 cache-check for the same variable -- that defeated the purpose of
44625 the test; the test program was never run. This was a problem only
44626 on systems with losing getline functions -- HP-UX 10.20 is one.
44627 Reported by Bjorn Helgaas.
44629 1998-02-06 Jim Meyering <meyering@eng.ascend.com>
44631 * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
44633 1998-01-10 Jim Meyering <meyering@na-net.ornl.gov>
44635 * m4/Makefile.am (EXTRA_DIST): Add const.m4.
44637 * m4/const.m4: New file. Use an initializer in this declaration
44638 typedef int charset[2]; const charset x;
44639 Reported by Bob Glickstein.
44641 1997-12-21 Jim Meyering <meyering@na-net.ornl.gov>
44643 * m4/chown.m4: Fix reversed types on -1 args to chown.
44646 1997-12-14 Jim Meyering <meyering@na-net.ornl.gov>
44648 * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
44649 Add lseek and memchr.
44651 * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
44652 T.E.Dickey <dickey@clark.net> said that some older preprocessors
44653 have a 20-character limit on names.
44655 1997-11-30 Jim Meyering <meyering@na-net.ornl.gov>
44657 * m4/inttypes_h.m4: New file.
44658 * m4/uintmax_t.m4: New file.
44659 * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
44668 Copyright (C) 1997-2008 Free Software Foundation, Inc.
44670 Copying and distribution of this file, with or without
44671 modification, are permitted provided the copyright notice
44672 and this notice are preserved.