test-getcwd.c: avoid new set-but-not-used warning
[gnulib/ericb.git] / ChangeLog
blobdc01efd6c17947df71901b7d2457331a855fd338
1 2011-04-29  Jim Meyering  <meyering@redhat.com>
3         test-getcwd.c: avoid new set-but-not-used warning
4         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
5         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
6         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
7         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
9         test-hash.c: avoid a new shadowing warning
10         * tests/test-hash.c (main): Don't shadow "dup".
12 2011-04-28  Eric Blake  <eblake@redhat.com>
14         getaddrinfo: fix gai_strerror signature
15         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
16         and work around mingw with UNICODE defined.
17         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
18         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
19         * modules/netdb (Makefile.am): Substitute it.
20         * lib/netdb.in.h (gai_strerror): Declare replacement.
21         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
22         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
23         the fix.
25         getsockopt: avoid compiler warning
26         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
27         Reported by Matthias Bolte.
29         tests: drop unused link dependency
30         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
31         * modules/dirent-safer-tests (Makefile.am): Likewise.
32         * modules/fdopendir-tests (Makefile.am): Likewise.
33         * modules/mkfifoat-tests (Makefile.am): Likewise.
34         * modules/openat-safer-tests (Makefile.am): Likewise.
35         * modules/openat-tests (Makefile.am): Likewise.
36         * modules/readlinkat-tests (Makefile.am): Likewise.
37         * modules/symlinkat-tests (Makefile.am): Likewise.
38         * modules/linkat-tests (Makefile.am): Likewise.
39         (Depends-on): Switch to filenamecat-lgpl.
40         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
41         LIBINTL.
42         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
43         * tests/test-linkat.c (main): Don't require xalloc.
45         hash, mgetgroups: drop xalloc dependency
46         * lib/hash.c (includes): Adjust includes.
47         * lib/mgetgroups.c (includes): Likewise.
48         (xgetgroups): Move...
49         * lib/xgetgroups.c: ...to new file.
50         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
51         * modules/xgetgroups: New file, split from...
52         * modules/mgetgroups: ...here.
53         (Depends-on): Add xalloc-oversized.
54         * modules/hash (Depends-on): Likewise.
55         * modules/hash-tests (Depends-on): Drop xalloc.
56         (test_hash_LDADD): Drop unused library.
57         * tests/test-hash.c (main): Break xalloc dependency.
58         (includes): Drop unused include.
60         xalloc-oversized: new module
61         * modules/xalloc-oversized: New module.
62         * modules/xalloc (Depends-on): Add it.
63         * lib/xalloc.h (xalloc_oversized): Move...
64         * lib/xalloc-oversized.h: ...into new file.
66         utimecmp: drop dependency on xmalloc
67         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
68         due to memory pressure.
69         * modules/utimecmp (Depends-on): Drop xalloc.
71 2011-04-27  Eric Blake  <eblake@redhat.com>
73         getcwd: fix mingw bugs
74         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
75         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
76         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
78 2011-04-27  Bruno Haible  <bruno@clisp.org>
80         mkstemps: Ensure declaration on MacOS X 10.5.
81         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
82         * doc/glibc-functions/mkstemps.texi: Document header file problem on
83         MacOS X.
85 2011-04-27  Bruno Haible  <bruno@clisp.org>
87         mkstemp: More documentation.
88         * doc/posix-functions/mkstemp.texi: Document header file problem on
89         MacOS X.
91 2011-04-27  Bruno Haible  <bruno@clisp.org>
93         mkstemp: Tweak configure message when cross-compiling.
94         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
95         result as a guess.
97 2011-04-27  Bruno Haible  <bruno@clisp.org>
99         clean-temp: Clarify what it does.
100         * lib/clean-temp.h: Add more comments.
101         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
102         module.
103         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
104         * doc/glibc-functions/mkstemps.texi: Likewise.
105         * doc/glibc-functions/mkostemps.texi: Likewise.
107 2011-04-27  Eric Blake  <eblake@redhat.com>
109         fchdir: avoid extra chdir and fix test
110         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
111         getcwd-lgpl.
112         * lib/fchdir.c (get_name): Any absolute name will do; it does not
113         have to be canonical.
114         (canonicalize_file_name): Drop unused macro.
115         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
117         filenamecat-lgpl: fix licence
118         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
119         when it was first created.
121         linkat, renameat: add missing dependency
122         * modules/linkat (Depends-on): Require getcwd-lgpl.
123         * modules/renameat (Depends-on): Likewise.
125         tests: reduce dependencies
126         * tests/test-linkat.c (main): Use lighter-weight getcwd.
127         * tests/test-renameat.c (main): Likewise.
128         * modules/linkat-tests (Depends-on): Relax dependency.
129         * modules/renameat-tests (Depends-on): Likewise.
130         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
131         dependency explicit.
133         save-cwd: reduce default dependency
134         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
135         * lib/save-cwd.c: Update comments.
136         * NEWS: Document the semantic change.
138         getcwd: enhance tests
139         * tests/test-getcwd-lgpl.c: New file, taken from...
140         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
141         repeat long path stress tests from m4 probe.
142         * modules/getcwd-lgpl-tests: New module.
143         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
144         * m4/getcwd-abort-bug.m4: Update comment.
145         * m4/getcwd-path-max.m4: Likewise.
147         getcwd-lgpl: new module
148         * modules/getcwd-lgpl: New module.
149         * lib/getcwd-lgpl.c: New file.
150         * doc/posix-functions/getcwd.texi (getcwd): Document it.
151         * MODULES.html.sh (lacking POSIX:2008): Likewise.
152         * modules/getcwd (configure.ac): Set C witness.
153         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
155         getcwd: tweak comments
156         * m4/getcwd-abort-bug.m4: Fix comments.
157         * m4/getcwd-path-max.m4: Likewise.
158         * m4/getcwd.m4: Likewise.
160 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
161         and Eric Blake  <eblake@redhat.com>
163         mkstemp: replace if system version uses wrong permissions
164         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
165         read/write mode bits set in file created by mkstemp.
166         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
168 2011-04-27  Eric Blake  <eblake@redhat.com>
170         passfd: avoid compiler warning
171         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
172         Reported by Laine Stump.
174 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
176         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
177         required by the NetBSD (and perhaps other 4.4BSD derived) join.
179 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
180         and Eric Blake  <eblake@redhat.com>
182         mkstemp: mention clean-temp module
183         * lib/mkstemp.c: Add comment.
184         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
186 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
188         inttypes: also provide default values for 32-bit tests
189         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
190         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
192 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
194         strtoumax: remove dependency on strtoimax
195         This is like the strtoull change of yesterday.
196         * modules/strtoumax (Files): Add lib/strtoimax.c.
197         (Depends-on): Remove strtoimax and add verify.
199         inttypes-incomplete: new module
200         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
201         all but the PRI* and SCN* parts of gl_INTTYPES_H.
202         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
203         of gl_INTTYPES_H.
204         (gl_INTTYPES_H): Rewrite in terms of these new macros.
205         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
206         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
207         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
208         * modules/strtoumax, modules/xstrtol (Depends-on):
209         Depend on inttypes-incomplete, not inttypes.
210         * modules/inttypes-incomplete: New module, containing the contents
211         of the old modules/inttypes module, except that the Files: section
212         omits m4/inttypes-pri.m4, and the configure.ac section invokes
213         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
214         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
215         (Depends-on): Depend only on inttypes-incomplete.
216         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
218         inttypes: omit now-redundant strtoimax and strtoumax work
219         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
220         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
222         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
223         This supports apps that need pointers to strtoimax and strtoumax,
224         and ports to HP-UX 11.00 64.bit, which has macros that expand to
225         nonexistent functions.  See
226         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
227         et seq.
228         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
229         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
230         a macro.
231         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
233 2011-04-25  Simon Josefsson  <simon@josefsson.org>
235         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
237 2011-04-25  Bruno Haible  <bruno@clisp.org>
239         strtol, strtoul: Mark modules as obsolete.
240         * modules/strtol (Status, Notice): New sections.
241         * modules/strtoul (Status, Notice): New sections.
243 2011-04-25  Bruno Haible  <bruno@clisp.org>
245         strtod: Remove check for strtod, unless supporting old platforms.
246         * modules/strtod-obsolete: New file.
247         * m4/strtod-obsolete.m4: New file.
248         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
249         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
250         * modules/strtod (Depends-on): Add strtod-obsolete.
251         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
253 2011-04-25  Bruno Haible  <bruno@clisp.org>
255         strcase: Make module obsolete.
256         * modules/strcase (Status, Notice): New sections.
258 2011-04-25  Bruno Haible  <bruno@clisp.org>
260         dup2: Remove check for dup2, unless supporting old obsolete platforms.
261         * modules/dup2-obsolete: New file.
262         * m4/dup2-obsolete.m4: New file.
263         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
264         gl_FUNC_DUP2_OBSOLETE is not also defined.
265         * modules/dup2 (Depends-on): Add dup2-obsolete.
266         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
268 2011-04-25  Bruno Haible  <bruno@clisp.org>
270         strnlen: Avoid memchr related link error on old obsolete platforms.
271         * modules/memchr-obsolete: New file.
272         * m4/memchr-obsolete.m4: New file.
273         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
274         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
275         * modules/memchr (Depends-on): Add memchr-obsolete.
276         * modules/strnlen (Depends-on): Likewise.
277         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
279 2011-04-25  Jim Meyering  <meyering@redhat.com>
281         maint.mk: makefile_at_at_check extend and clean up
282         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
283         in addition to */Makefile.am.
284         Exempt legitimate uses of @VAR@ notation, e.g.,
285         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
286         Remove obsolete coreutils-specific comment.
287         Prompted by discussion here:
288         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
290 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
292         strtoul: remove dependency on strtol
293         This is so that 'configure' need not check for strtol merely because
294         the application needs strtoul.
295         * modules/strtoul (Files): Add lib/strtol.c.
296         (Depends-on): Remove strtol.
298         strtoull: remove dependency on strtoul
299         This is like the strtoll change.
300         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
301         (Depends-on): Remove strtoul.
303         strtoll: remove dependency on strtol
304         This is so that 'configure' need not check for strtol merely because
305         the application needs strtoll.
306         * modules/strtoll (Files): Add lib/strtol.c.
307         (Depends-on): Remove strtol.
309 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
311         inttypes: Move some configure check to module 'imaxdiv'.
312         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
313         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
314         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
316 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
318         inttypes: Move some configure check to module 'imaxabs'.
319         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
320         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
321         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
323 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
325         inttypes: Remove configure tests that are not needed since 2009-12-31.
326         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
327         gl_cv_header_working_inttypes_h.
329 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
331         * modules/strnlen (Depends-on): Remove memchr.
332         The strnlen implementation doesn't need the memchr module's fixes; see
333         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
335         strtol: remove dependency on wchar
336         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
337         * modules/strtol (Depends-on): Remove wchar.
339 2011-04-21  Eric Blake  <eblake@redhat.com>
341         passfd: fix test regression on Linux
342         * modules/passfd-tests (configure.ac): Correct socketpair check.
344         passfd: speed up configure and drop unused code
345         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
346         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
347         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
348         Instead of probing at configure for unix_scm_rights_bsd44_way,
349         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
350         check to a struct member probe.
351         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
352         (sendfd, recvfd): Update preprocessor checks.
353         * modules/passfd (Files): Reflect rename, and drop unused file.
354         (Depends-on): Drop unused dependency.
356         passfd: allow compilation on mingw
357         * modules/sys_socket (Depends-on): Add sys_uio.
358         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
359         iovec and a minimal struct msghdr.
360         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
361         * tests/test-sys_socket.c (main): Enhance test.
362         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
363         guaranteed to provide what we need.
364         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
365         * modules/passfd-tests (Depends-on): Add sys_wait.
366         * tests/test-passfd.c (main): Skip test on mingw, for now.
367         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
368         partial 'struct msghdr' implementation.
370         sys_uio: new module
371         * modules/sys_uio: New module.
372         * modules/sys_uio-tests: Likewise.
373         * lib/sys_uio.in.h: New file.
374         * m4/sys_uio_h.m4: Likewise.
375         * tests/test-sys_uio.c: Likewise.
376         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
377         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
379 2011-04-20  Jim Meyering  <meyering@redhat.com>
381         useless-if-before-free: avoid false-positive
382         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
383         disjunct so that it too requires a terminating ";".  Without that,
384         this script would identify as useless one statement from gcc that
385         was not:
386           if (aligned_ptr)
387             free (((void **) aligned_ptr) [-1]);
389 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
391         doc: update users.txt.
392         * users.txt: Add barcode.
394 2011-04-19  Bruno Haible  <bruno@clisp.org>
396         ioctl: Remove link dependency on native Windows.
397         * lib/fd-hook.h: Renamed from lib/close-hook.h.
398         (gl_close_fn, gl_ioctl_fn): New types.
399         (struct fd_hook): Renamed from struct close_hook. Change type of
400         private_close_fn field. Add private_ioctl_fn field.
401         (close_hook_fn): Add parameter for primary close method.
402         (execute_close_hooks, execute_all_close_hooks): Likewise.
403         (ioctl_hook_fn): New type.
404         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
405         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
406         argument.
407         (unregister_fd_hook): Renamed from unregister_close_hook.
408         * lib/fd-hook.c: Renamed from lib/close-hook.c.
409         Don't include <unistd.h>.
410         (close): Remove undef.
411         (anchor): Update.
412         (execute_close_hooks): Add argument for primary close method.
413         (execute_all_close_hooks): Likewise.
414         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
415         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
416         argument. Allow each argument to be NULL.
417         (unregister_fd_hook): Renamed from unregister_close_hook.
418         * lib/close.c (rpl_close): Pass 'close' function pointer to
419         execute_all_close_hooks.
420         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
421         (primary_ioctl): New function.
422         (ioctl): Don't call ioctlsocket here. Instead, call
423         execute_all_ioctl_hooks.
424         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
425         close method.
426         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
427         (fd_sockets_hook): Renamed from close_sockets_hook.
428         (gl_sockets_startup, gl_sockets_cleanup): Update.
429         * modules/fd-hook: Renamed from modules/close-hook. Update.
430         * modules/close (Depends-on): Add fd-hook, remove close-hook.
431         * modules/sockets (Depends-on): Likewise.
432         * modules/ioctl (Depends-on): Add fd-hook.
433         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
434         GNULIB_SOCKET.
436 2011-04-19  Bruno Haible  <bruno@clisp.org>
438         Move the support of O_NONBLOCK in open() to the 'open' module.
439         * modules/nonblocking (Depends-on): Remove 'open'.
440         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
441         gl_cv_have_open_O_NONBLOCK.
442         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
443         O_NONBLOCK support.
444         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
446 2011-04-17  Bruno Haible  <bruno@clisp.org>
448         pipe2: Simplify code.
449         * lib/pipe2.c (pipe2): Reduce code duplication.
451 2011-04-17  Bruno Haible  <bruno@clisp.org>
453         nonblocking: Add comment.
454         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
456 2011-04-17  Bruno Haible  <bruno@clisp.org>
458         nonblocking: Add tests for sockets.
459         * tests/test-nonblocking-socket.sh: New file.
460         * tests/test-nonblocking-socket-main.c: New file.
461         * tests/test-nonblocking-socket-child.c: New file.
462         * tests/test-nonblocking-socket.h: New file.
463         * tests/socket-server.h: New file.
464         * tests/socket-client.h: New file.
465         * modules/nonblocking-socket-tests: New file.
466         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
468 2011-04-17  Bruno Haible  <bruno@clisp.org>
470         nonblocking: Add tests for pipes.
471         * tests/test-nonblocking-pipe.sh: New file.
472         * tests/test-nonblocking-pipe-main.c: New file.
473         * tests/test-nonblocking-pipe-child.c: New file.
474         * tests/test-nonblocking-pipe.h: New file.
475         * tests/test-nonblocking-writer.h: New file.
476         * tests/test-nonblocking-reader.h: New file.
477         * tests/test-nonblocking-misc.h: New file.
478         * modules/nonblocking-pipe-tests: New file.
479         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
481 2011-04-16  Bruno Haible  <bruno@clisp.org>
483         gettext: Clarify the needed programmer actions.
484         * modules/gettext (Notice): New field.
485         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
487 2011-04-16  Bruno Haible  <bruno@clisp.org>
489         strchrnul: Tweak last commit.
490         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
491         bug.
492         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
493         as in _GL_FUNCDECL_SYS.
494         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
495         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
497 2011-04-15  Eric Blake  <eblake@redhat.com>
499         strchrnul: work around cygwin bug
500         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
501         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
502         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
503         * modules/string (Makefile.am): Substitute it.
504         * lib/string.in.h (strchrnul): Use it.
506 2011-04-15  Bruno Haible  <bruno@clisp.org>
508         Don't require lib/stdio-write.c when only module 'stdio' is used.
509         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
510         invocation.
511         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
513 2011-04-14  Bruno Haible  <bruno@clisp.org>
515         Support non-blocking pipe I/O in read() on native Windows.
516         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
517         (read): New declaration.
518         * lib/read.c: New file.
519         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
520         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
521         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
522         vscanf): New declarations.
523         * lib/stdio-read.c: New file.
524         * m4/read.m4: New file.
525         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
526         REPLACE_READ.
527         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
528         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
529         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
530         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
531         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
532         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
533         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
534         * modules/read: New file.
535         * modules/nonblocking (Files): Add lib/stdio-read.c.
536         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
537         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
538         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
539         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
540         * modules/pread (Depends-on): Add read.
541         * modules/safe-read (Depends-on): Likewise.
542         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
543         gets, scanf, vfscanf, vscanf): Verify signatures.
544         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
545         problem with non-blocking pipes.
546         * doc/posix-functions/fgetc.texi: Likewise.
547         * doc/posix-functions/fgets.texi: Likewise.
548         * doc/posix-functions/fread.texi: Likewise.
549         * doc/posix-functions/fscanf.texi: Likewise.
550         * doc/posix-functions/getc.texi: Likewise.
551         * doc/posix-functions/getchar.texi: Likewise.
552         * doc/posix-functions/gets.texi: Likewise.
553         * doc/posix-functions/scanf.texi: Likewise.
554         * doc/posix-functions/vfscanf.texi: Likewise.
555         * doc/posix-functions/vscanf.texi: Likewise.
557 2011-04-14  Bruno Haible  <bruno@clisp.org>
559         Support non-blocking pipe I/O in write() on native Windows.
560         * lib/write.c (rpl_write): Split a write request that failed merely
561         because the byte count was larger than the pipe buffer's size.
562         * doc/posix-functions/write.texi: Mention the problem with large byte
563         counts.
565 2011-04-14  Bruno Haible  <bruno@clisp.org>
567         wchar: Ensure that wchar_t gets defined on uClibc.
568         * lib/wchar.in.h: On uClibc, include <stddef.h>.
569         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
571 2011-04-13  Bruno Haible  <bruno@clisp.org>
573         safe-write, full-read: Avoid unnecessary compilation units.
574         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
575         (Depends-on): Remove safe-read. Add ssize_t.
576         * modules/full-read (Files): Add lib/full-write.c.
577         (Depends-on): Add full-write.
579 2011-04-13  Bruno Haible  <bruno@clisp.org>
581         Support non-blocking pipe I/O and SIGPIPE in pwrite().
582         * modules/pwrite (Depends-on): Add 'write'.
584 2011-04-13  Bruno Haible  <bruno@clisp.org>
586         Support non-blocking pipe I/O in write() on native Windows.
587         * lib/unistd.in.h (write): Enable replacement also if
588         GNULIB_UNISTD_H_NONBLOCKING is 1.
589         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
590         (rpl_write): When failing to write on a non-blocking pipe, change
591         errno from ENOSPC to EAGAIN.
592         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
593         putchar, puts, vfprintf, vprintf): Enable replacement also if
594         GNULIB_STDIO_H_NONBLOCKING is 1.
595         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
596         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
597         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
598         CALL_WITH_SIGPIPE_EMULATION.
599         (CALL_WITH_SIGPIPE_EMULATION): Use them.
600         * m4/nonblocking.m4: New file.
601         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
602         for non-blocking I/O support.
603         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
604         GNULIB_UNISTD_H_NONBLOCKING.
605         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
606         required for non-blocking I/O support.
607         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
608         * modules/nonblocking (Files): Add m4/nonblocking.m4,
609         lib/stdio-write.c, m4/asm-underscore.m4.
610         (Depends-on): Add stdio, unistd.
611         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
612         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
613         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
614         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
615         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
616         problem with non-blocking pipes.
617         * doc/posix-functions/fputc.texi: Likewise.
618         * doc/posix-functions/fputs.texi: Likewise.
619         * doc/posix-functions/fwrite.texi: Likewise.
620         * doc/posix-functions/printf.texi: Likewise.
621         * doc/posix-functions/putc.texi: Likewise.
622         * doc/posix-functions/putchar.texi: Likewise.
623         * doc/posix-functions/puts.texi: Likewise.
624         * doc/posix-functions/vfprintf.texi: Likewise.
625         * doc/posix-functions/vprintf.texi: Likewise.
626         * doc/posix-functions/write.texi: Likewise.
628 2011-04-10  Jim Meyering  <meyering@redhat.com>
630         maint.mk: prohibit doubled words
631         Detect them also when they're separated by a newline.
632         There are 3 ways to customize it:
633           - disable the test on a per file basis, as usual with rules using
634             $(VC_LIST_EXCEPT)
635           - replace the default doubled-word-selecting regexp (affects all files)
636           - ignore a particular file-vs-doubled-word match
637         I nearly used that last one to ignore the "is is" match in
638         coreutils' NEWS file, since the text was "ls -is is ..."
639         To do that, I would have added this line to cfg.mk:
640           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
641         but it would have ignored any "is is" match in NEWS.
642         Low probability, but still...
643         Instead, I changed the text, slightly:
644           -  ls -is is now consistent with ls -lis in ignoring values returned
645           +  "ls -is" is now consistent with ls -lis in ignoring values returned
646         * top/maint.mk (prohibit_double_word_RE_): Provide default.
647         (prohibit_doubled_word_): Define.
648         (sc_prohibit_doubled_word): New rule.
649         (sc_prohibit_the_the): Remove.  Subsumed by the above.
651 2011-04-10  Jim Meyering  <meyering@redhat.com>
653         maint: fix doubled-word typo in comment
654         * m4/gethostname.m4: s/is is/it is/
655         * m4/getdomainname.m4: Likewise.
657 2011-04-10  Jim Meyering  <meyering@redhat.com>
659         maint: remove doubled word: s/it it/it/
660         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
662 2011-04-10  Jim Meyering  <meyering@redhat.com>
664         maint.mk: remove useless semicolon and backslash
665         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
666         semicolon and backslash.
668 2011-04-10  Bruno Haible  <bruno@clisp.org>
670         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
671         * modules/stdint-tests (Depends-on): Add wchar.
673 2011-04-10  Jim Meyering  <meyering@redhat.com>
675         maint: remove doubled words in comments, e.g., s/a a/a/
676         * lib/strptime.c (day_of_the_week): s/the the/the/
677         * tests/test-chown.h (test_chown): s/a a/a/
679         test-chown.h: correct a cast
680         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
681         when the destination is a stat.st_gid.
683 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
685         getaddrinfo: Fix test for sa_len member.
686         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
687         include <sys/types.h> before <sys/socket.h>.
689 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
691         maint: change "can not" to "cannot"
692         * doc/posix-functions/iconv.texi (iconv): This one crossed line
693         boundaries.
695 2011-04-09  Jim Meyering  <meyering@redhat.com>
697         maint: change "a a" to "a"
698         * tests/test-lchown.h (test_lchown): s/a a/a/
700         maint.mk: prohibit \<the the\>
701         * top/maint.mk (sc_prohibit_the_the): New rule.
703         maint: fix "the the" in comment
704         * lib/count-one-bits.h: s/the the/the/
706         maint: change "can not" to "cannot"
707         But do not change the occurrences in maintain.texi or in
708         build-aux/po/Makefile.in.in, which I presume comes from gettext.
709         * doc/gnulib-tool.texi: s/can not/cannot/
710         * doc/posix-functions/accept.texi (accept): Likewise.
711         * doc/posix-functions/socket.texi (socket): Likewise.
712         * lib/mbrtowc.c: Likewise.
714         maint.mk: prohibit use of "can not"
715         * top/maint.mk (sc_prohibit_can_not): New rule.
716         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
718 2011-04-09  Bruno Haible  <bruno@clisp.org>
720         careadlinkat: Guard against misuse of careadlinkatcwd.
721         * lib/careadlinkat.c: Include <stdlib.h>.
722         (careadlinkatcwd): Check that the fd argument is as expected.
724 2011-04-09  Bruno Haible  <bruno@clisp.org>
726         careadlinkat: Use common coding style.
727         * lib/careadlinkat.c: Move gnulib includes after system includes.
729 2011-04-09  Bruno Haible  <bruno@clisp.org>
731         careadlinkat: Clarify specification.
732         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
733         (careadlinkatcwd): Add comment.
734         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
736 2011-04-09  Bruno Haible  <bruno@clisp.org>
738         areadlinkat: Avoid link error on many platforms.
739         * modules/areadlinkat (Depends-on): Add areadlink.
741 2011-04-09  Bruno Haible  <bruno@clisp.org>
743         allocator, careadlinkat: Fix double-inclusion guard.
744         * lib/allocator.h: Fix double-inclusion guard.
745         * lib/careadlinkat.h: Likewise.
747 2011-04-09  Bruno Haible  <bruno@clisp.org>
749         relocatable-prog-wrapper: Update after module 'areadlink' changed.
750         * lib/relocwrapper.c: Update dependencies hierarchy.
751         * build-aux/install-reloc: Update list of files to be compiled.
752         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
753         lib/allocator.[hc].
755 2011-04-08  Eric Blake  <eblake@redhat.com>
757         strftime: silence gnulib-tool warning
758         * modules/strftime-tests (Depends-on): Drop automatic dependency.
760 2011-04-08  Bruno Haible  <bruno@clisp.org>
762         verify: Fix syntax error with GCC 4.6 in C++ mode.
763         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
764         (HAVE_STATIC_ASSERT): New macro.
765         (verify_true, verify): Use 'static_assert' if it is supported and
766         '_Static_assert' is not supported.
768 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
770         allocator: New module.
771         * modules/allocator, lib/allocator.c: New files.
772         * lib/allocator.h (stdlib_allocator): New decl.
773         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
774         Remove.  Do not include <stdlib.h>.
775         (careadlinkat): Use stdlib_allocator instead of rolling our own.
776         * modules/careadlinkat (Files): Remove lib/allocator.h.
777         (Depends-on): Add allocator.
779         stdlib: let modules use system malloc, realloc
780         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
781         if !_GL_USE_STDLIB_ALLOC.
782         (malloc, realloc): Limit this change to a smaller scope.
784         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
785         (malloc, realloc): Don't #undef; no longer needed.
786         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
787         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
788         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
789         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
790         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
791         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
792         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
793         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
795         careadlinkat: rename members to avoid problem
796         * lib/allocator.h (struct allocator): Rename members from
797         malloc/realloc to allocate/reallocate, to avoid problems if malloc
798         and realloc are #define'd.  Reported by Eric Blake in
799         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
800         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
802 2011-04-08  Eric Blake  <eblake@redhat.com>
804         nonblocking: reduce dependency
805         * tests/test-nonblocking.c: Only test sockets when in use.
806         * modules/nonblocking-tests (Depends-on): Drop socket.
807         (Makefile.am): Link even if sockets are not present.
808         * modules/pipe2-tests (Makefile.am): Likewise.
809         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
811         pipe2: fix O_NONBLOCK support on mingw
812         * modules/pipe2 (Depends-on): Add nonblocking.
813         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
814         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
815         * tests/test-nonblocking.c (main): Likewise.
816         * modules/pipe2-tests (Makefile.am): Avoid link failure.
818         fcntl-h: fix O_ACCMODE on cygwin
819         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
820         * lib/fcntl.in.h (O_ACCMODE): Fix it.
822         pipe-filter: drop O_NONBLOCK workarounds
823         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
824         * modules/pipe-filter-ii (Depends-on): Likewise.
825         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
827         nonblocking: provide O_NONBLOCK for mingw
828         * modules/nonblocking (Depends-on): Add open.
829         (configure.ac): Set new witness macro.
830         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
831         * modules/fcntl-h (Makefile.am): Substitute it.
832         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
833         nonblocking module is in use.
834         * lib/nonblocking.c: Adjust portability test.
835         * lib/open.c (open): Don't let native open see gnulib flag.
836         * tests/test-fcntl-h.c (main): Enhance test.
837         * tests/test-open.h (test_open): Likewise.
838         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
840         careadlinkat: fix compilation error on mingw
841         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
842         within struct allocator.
844 2011-04-06  Eric Blake  <eblake@redhat.com>
846         binary-io: relicense under LGPLv2+
847         * modules/binary-io (License): Relax to LGPLv2+.
848         Requested for libvirt, and required by pipe2.
850 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
852         verify: use _Static_assert if available
853         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
854         (verify_true, verify): Use it if available.  This generates better
855         diagnostics with GCC 4.6.0 and later.
857 2011-04-05  Bruno Haible  <bruno@clisp.org>
859         Remove leftover generated .h files after config.status changed.
861         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
862         GL_GENERATE_ALLOCA_H.
863         * modules/alloca-opt (Makefile.am): Remove alloca.h if
864         GL_GENERATE_ALLOCA_H evaluates to false.
866         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
867         GL_GENERATE_ARGZ_H.
868         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
869         evaluates to false.
871         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
872         GL_GENERATE_BYTESWAP_H.
873         * modules/byteswap (Makefile.am): Remove byteswap.h if
874         GL_GENERATE_BYTESWAP_H evaluates to false.
876         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
877         GL_GENERATE_ERRNO_H.
878         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
879         evaluates to false.
881         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
882         GL_GENERATE_FLOAT_H.
883         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
884         evaluates to false.
886         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
887         GL_GENERATE_FNMATCH_H.
888         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
889         GL_GENERATE_FNMATCH_H evaluates to false.
891         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
892         GL_GENERATE_GLOB_H.
893         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
894         evaluates to false.
896         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
897         automake conditional GL_GENERATE_ICONV_H.
898         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
899         evaluates to false.
901         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
902         GL_GENERATE_NETINET_IN_H.
903         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
904         GL_GENERATE_NETINET_IN_H evaluates to false.
906         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
907         conditional GL_GENERATE_PTHREAD_H.
908         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
909         * modules/pthread (Makefile.am): Remove pthread.h if
910         GL_GENERATE_PTHREAD_H evaluates to false.
912         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
913         GL_GENERATE_SCHED_H.
914         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
915         evaluates to false.
917         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
918         conditional GL_GENERATE_SELINUX_CONTEXT_H.
919         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
920         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
922         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
923         GL_GENERATE_STDARG_H.
924         * modules/stdarg (Makefile.am): Remove stdarg.h if
925         GL_GENERATE_STDARG_H evaluates to false.
927         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
928         GL_GENERATE_STDBOOL_H.
929         * modules/stdbool (Makefile.am): Remove stdbool.h if
930         GL_GENERATE_STDBOOL_H evaluates to false.
932         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
933         conditional GL_GENERATE_STDDEF_H.
934         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
935         * modules/stddef (Makefile.am): Remove stddef.h if
936         GL_GENERATE_STDDEF_H evaluates to false.
938         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
939         GL_GENERATE_STDINT_H.
940         * modules/stdint (Makefile.am): Remove stdint.h if
941         GL_GENERATE_STDINT_H evaluates to false.
943         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
944         GL_GENERATE_SYSEXITS_H.
945         * modules/sysexits (Makefile.am): Remove sysexits.h if
946         GL_GENERATE_SYSEXITS_H evaluates to false.
948         Reported by Karl Berry and Ralf Wildenhues.
950 2011-04-05  Bruno Haible  <bruno@clisp.org>
952         Ensure to rebuild generated .h files when config.status has changed.
953         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
954         config.status.
955         * modules/ctype (Makefile.am): Likewise.
956         * modules/dirent (Makefile.am): Likewise.
957         * modules/errno (Makefile.am): Likewise.
958         * modules/fcntl-h (Makefile.am): Likewise.
959         * modules/float (Makefile.am): Likewise.
960         * modules/getopt-posix (Makefile.am): Likewise.
961         * modules/glob (Makefile.am): Likewise.
962         * modules/iconv-h (Makefile.am): Likewise.
963         * modules/inttypes (Makefile.am): Likewise.
964         * modules/langinfo (Makefile.am): Likewise.
965         * modules/locale (Makefile.am): Likewise.
966         * modules/math (Makefile.am): Likewise.
967         * modules/netdb (Makefile.am): Likewise.
968         * modules/netinet_in (Makefile.am): Likewise.
969         * modules/poll-h (Makefile.am): Likewise.
970         * modules/pthread (Makefile.am): Likewise.
971         * modules/pty (Makefile.am): Likewise.
972         * modules/sched (Makefile.am): Likewise.
973         * modules/search (Makefile.am): Likewise.
974         * modules/selinux-h (Makefile.am): Likewise.
975         * modules/signal (Makefile.am): Likewise.
976         * modules/spawn (Makefile.am): Likewise.
977         * modules/stdarg (Makefile.am): Likewise.
978         * modules/stdbool (Makefile.am): Likewise.
979         * modules/stddef (Makefile.am): Likewise.
980         * modules/stdint (Makefile.am): Likewise.
981         * modules/stdio (Makefile.am): Likewise.
982         * modules/stdlib (Makefile.am): Likewise.
983         * modules/string (Makefile.am): Likewise.
984         * modules/strings (Makefile.am): Likewise.
985         * modules/sys_file (Makefile.am): Likewise.
986         * modules/sys_ioctl (Makefile.am): Likewise.
987         * modules/sys_select (Makefile.am): Likewise.
988         * modules/sys_socket (Makefile.am): Likewise.
989         * modules/sys_stat (Makefile.am): Likewise.
990         * modules/sys_time (Makefile.am): Likewise.
991         * modules/sys_times (Makefile.am): Likewise.
992         * modules/sys_utsname (Makefile.am): Likewise.
993         * modules/sys_wait (Makefile.am): Likewise.
994         * modules/sysexits (Makefile.am): Likewise.
995         * modules/termios (Makefile.am): Likewise.
996         * modules/time (Makefile.am): Likewise.
997         * modules/unistd (Makefile.am): Likewise.
998         * modules/wchar (Makefile.am): Likewise.
999         * modules/wctype-h (Makefile.am): Likewise.
1000         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
1002 2011-04-05  Bruno Haible  <bruno@clisp.org>
1004         pipe2: Relicense under LGPLv2+.
1005         * modules/pipe2 (License): Change to LGPLv2+.
1006         Requested by Eric Blake, for libvirt.
1008 2011-04-05  Bruce Korb  <bkorb@gnu.org>
1010         bootstrap: compute gnulib_extra_files after updating build_aux
1011         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
1012         change build_aux or also supply gnulib_extra_files.  Handle correctly.
1014 2011-04-05  Eric Blake  <eblake@redhat.com>
1016         bootstrap: preserve git whitelist item sorting
1017         * build-aux/bootstrap (sort_patterns): New function.
1018         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
1020 2011-04-05  Simon Josefsson  <simon@josefsson.org>
1022         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
1023         sc_space_tab check.
1025 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
1027         areadlink, areadlinkat: rewrite in terms of careadlinkat
1028         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
1029         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
1030         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
1031         (malloc, realloc): Remove #undefs.
1032         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
1033         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
1034         readlink, ssize_t, stdint, unistd.
1035         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
1036         areadlink, stdint.
1038         careadlinkat: new module
1039         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
1040         * modules/careadlinkat: New files, written by me with
1041         a review and feedback from Ben Pfaff in
1042         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
1044 2011-04-01  Bruno Haible  <bruno@clisp.org>
1046         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
1047         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
1048         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
1049         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
1050         Reported by Bruce Korb <bruce.korb@gmail.com>.
1052 2011-04-01  Bruno Haible  <bruno@clisp.org>
1054         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
1055         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
1056         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
1057         * modules/wcpcpy (Depends-on): Add extensions.
1058         * modules/wcpncpy (Depends-on): Likewise.
1059         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
1060         systems.
1061         * doc/posix-functions/wcpncpy.texi: Likewise.
1062         * doc/posix-functions/wcwidth.texi: Likewise.
1064 2011-03-31  Eric Blake  <eblake@redhat.com>
1066         nonblocking: fix mingw test failures
1067         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
1068         non-blocking flag on regular file.
1069         (get_nonblocking_flag): Set errno on invalid fd.
1070         * tests/test-nonblocking.c (main): Avoid test failure on
1071         directories if fchdir is not active.
1072         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
1074 2011-03-31  Bruno Haible  <bruno@clisp.org>
1076         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
1077         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
1078         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
1079         Reported by Simon Josefsson <simon@josefsson.org>.
1081 2011-03-31  Bruno Haible  <bruno@clisp.org>
1082         and Eric Blake  <eblake@redhat.com>
1084         nonblocking: new module
1085         * modules/nonblocking: New module.
1086         * modules/nonblocking-tests: Likewise.
1087         * lib/nonblocking.h: New file.
1088         * lib/nonblocking.c: Likewise.
1089         * tests/test-nonblocking.c: New test.
1090         * lib/ioctl.c (ioctl) [mingw]: Update comment.
1092 2011-03-30  Bruno Haible  <bruno@clisp.org>
1094         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
1095         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
1096         instead of 'printf' format for GCC >= 4.4.
1097         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
1098         (fprintf, printf, vfprintf, vprintf): Declare with
1099         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
1100         the system's vfprintf() function.
1101         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
1103 2011-03-30  Eric Blake  <eblake@redhat.com>
1105         passfd: fix scoping bug
1106         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
1107         before sendmsg/recvmsg.
1109         passfd: standardize coding conventions
1110         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
1111         can be learned at compile time.
1112         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
1113         ifdefs.
1114         (sendfd, recvfd): Follow gnulib code conventions.
1116         passfd: fix incorrect sendmsg arguments
1117         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
1118         incorrect msg_controllen value.
1119         * modules/passfd-tests (Depends-on): Check for alarm.
1120         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
1121         Reported by Bastien ROUCARIES.
1123 2011-03-30  Bruno Haible  <bruno@clisp.org>
1125         c-strcasestr: Relicense under LGPLv2+.
1126         * modules/c-strcasestr (License): Change to LGPLv2+.
1127         Requested by Eric Blake, for libvirt.
1129 2011-03-30  Simon Josefsson  <simon@josefsson.org>
1131         * users.txt: Add libidn2.  Fix libtasn1 link.
1133 2011-03-30  Jim Meyering  <meyering@redhat.com>
1135         tests: readlink* ("",... fails with EINVAL on newer kernels
1136         readlink and readlinkat have typically failed with ENOENT for
1137         the invalid, empty file name,  "".  However, with the advent
1138         of linux-2.6.39, they fail with EINVAL.
1139         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
1140         when operating on the empty file name.
1141         * tests/test-readlink.h (test_readlink): Likewise.
1143 2011-03-29  Bruno Haible  <bruno@clisp.org>
1145         Relicense some modules under LGPLv2+, for libidn2.
1146         * modules/array-mergesort (License): Change to LGPLv2+.
1147         * modules/c-strcaseeq (License): Likewise.
1148         * modules/striconveh (License): Likewise.
1149         * modules/striconveha (License): Likewise.
1150         * modules/uniconv/base (License): Likewise.
1151         * modules/uniconv/u8-conv-from-enc (License): Likewise.
1152         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
1153         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
1154         * modules/unictype/base (License): Likewise.
1155         * modules/unictype/bidiclass-of (License): Likewise.
1156         * modules/unictype/category-M (License): Likewise.
1157         * modules/unictype/category-none (License): Likewise.
1158         * modules/unictype/category-of (License): Likewise.
1159         * modules/unictype/category-test (License): Likewise.
1160         * modules/unictype/category-test-withtable (License): Likewise.
1161         * modules/unictype/combining-class (License): Likewise.
1162         * modules/unictype/joiningtype-of (License): Likewise.
1163         * modules/unictype/scripts (License): Likewise.
1164         * modules/uninorm/base (License): Likewise.
1165         * modules/uninorm/canonical-decomposition (License): Likewise.
1166         * modules/uninorm/composition (License): Likewise.
1167         * modules/uninorm/decompose-internal (License): Likewise.
1168         * modules/uninorm/decomposition-table (License): Likewise.
1169         * modules/uninorm/nfc (License): Likewise.
1170         * modules/uninorm/nfd (License): Likewise.
1171         * modules/uninorm/u32-normalize (License): Likewise.
1172         * modules/unistr/base (License): Likewise.
1173         * modules/unistr/u32-cpy (License): Likewise.
1174         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
1175         * modules/unistr/u32-to-u8 (License): Likewise.
1176         * modules/unistr/u32-uctomb (License): Likewise.
1177         * modules/unistr/u8-check (License): Likewise.
1178         * modules/unistr/u8-mblen (License): Likewise.
1179         * modules/unistr/u8-mbtouc (License): Likewise.
1180         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
1181         * modules/unistr/u8-mbtoucr (License): Likewise.
1182         * modules/unistr/u8-prev (License): Likewise.
1183         * modules/unistr/u8-strlen (License): Likewise.
1184         * modules/unistr/u8-to-u32 (License): Likewise.
1185         * modules/unistr/u8-uctomb (License): Likewise.
1186         * modules/unitypes (License): Likewise.
1187         Requested by Simon Josefsson.
1189 2011-03-29  Simon Josefsson  <simon@josefsson.org>
1191         lib-symbol-visibility: Add a notice.
1192         * modules/lib-symbol-visibility (Notice): New field.
1194 2011-03-29  Bruno Haible  <bruno@clisp.org>
1196         getaddrinfo: Doc fix.
1197         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
1198         section "fixed in Gnulib".
1200 2011-03-28  Simon Josefsson  <simon@josefsson.org>
1202         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
1203         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
1205 2011-03-26  Bruno Haible  <bruno@clisp.org>
1207         unictype/property-byname: Reduce the number of load-time relocations.
1208         * lib/unictype/pr_byname.c: Include <stdlib.h>.
1209         (UC_PROPERTY_INDEX_*): New enumeration values.
1210         (uc_property_byname): Convert an index from the lookup table to an
1211         uc_property_t.
1212         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
1213         values.
1215 2011-03-26  Bruno Haible  <bruno@clisp.org>
1217         unictype/property-byname: Allow omitted word separators and aliases.
1218         * lib/unictype/pr_byname.gperf: Add property names without word
1219         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
1220         for 'space'.
1222 2011-03-26  Bruno Haible  <bruno@clisp.org>
1224         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
1225         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
1226         also hyphens to space.
1227         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
1228         without spaces.
1229         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
1231 2011-03-26  Bruno Haible  <bruno@clisp.org>
1233         unictype/joiningtype-byname: Recognize long names as well.
1234         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
1235         a long name.
1236         * lib/unictype/joiningtype_byname.c: Include <string.h>,
1237         unictype/joiningtype_byname.h.
1238         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
1239         * lib/unictype/joiningtype_byname.gperf: New file.
1240         * modules/unictype/joiningtype-byname (Files): Add
1241         lib/unictype/joiningtype_byname.gperf.
1242         (Depends-on): Add gperf.
1243         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
1244         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
1245         long names.
1247         Tests for module 'unictype/joiningtype-longname'.
1248         * modules/unictype/joiningtype-longname-tests: New file.
1249         * tests/unictype/test-joiningtype_longname.c: New file.
1251         New module 'unictype/joiningtype-longname'.
1252         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
1253         * lib/unictype/joiningtype_longname.c: New file.
1254         * modules/unictype/joiningtype-longname: New file.
1255         * modules/unictype/joiningtype-all (Depends-on): Add
1256         unictype/joiningtype-longname.
1258 2011-03-26  Bruno Haible  <bruno@clisp.org>
1260         unictype/bidiclass-byname: Recognize long names as well.
1261         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
1262         name.
1263         * lib/unictype/bidi_byname.c: Include <string.h>,
1264         unictype/bidi_byname.h.
1265         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
1266         * lib/unictype/bidi_byname.gperf: New file.
1267         * modules/unictype/bidiclass-byname (Files): Add
1268         lib/unictype/bidi_byname.gperf.
1269         (Depends-on): Add gperf.
1270         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
1271         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
1272         long names.
1274         Tests for module 'unictype/bidiclass-longname'.
1275         * modules/unictype/bidiclass-longname-tests: New file.
1276         * tests/unictype/test-bidi_longname.c: New file.
1278         New module 'unictype/bidiclass-longname'.
1279         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
1280         * lib/unictype/bidi_longname.c: New file.
1281         * modules/unictype/bidiclass-longname: New file.
1282         * modules/unictype/bidiclass-all (Depends-on): Add
1283         unictype/bidiclass-longname.
1285 2011-03-26  Bruno Haible  <bruno@clisp.org>
1287         unictype/bidi*: Rename modules.
1288         * modules/unictype/bidiclass-all: Renamed from
1289         modules/unictype/bidicategory-all.
1290         * modules/unictype/bidiclass-name: Renamed from
1291         modules/unictype/bidiclass-name.
1292         (Description): Update.
1293         * modules/unictype/bidiclass-name-tests: Renamed from
1294         modules/unictype/bidicategory-name-tests.
1295         * modules/unictype/bidiclass-byname: Renamed from
1296         modules/unictype/bidicategory-byname.
1297         (Description): Update.
1298         * modules/unictype/bidiclass-byname-tests: Renamed from
1299         modules/unictype/bidicategory-byname-tests.
1300         * modules/unictype/bidiclass-of: Renamed from
1301         modules/unictype/bidicategory-of.
1302         (Description): Update.
1303         * modules/unictype/bidiclass-of-tests: Renamed from
1304         modules/unictype/bidicategory-of-tests.
1305         * modules/unictype/bidiclass-test: Renamed from
1306         modules/unictype/bidicategory-test.
1307         (Description): Update.
1308         * modules/unictype/bidiclass-test-tests: Renamed from
1309         modules/unictype/bidicategory-test-tests.
1310         * modules/unictype/bidicategory-all: New file, a simple redirection.
1311         * modules/unictype/bidicategory-name: Likewise.
1312         * modules/unictype/bidicategory-byname: Likewise.
1313         * modules/unictype/bidicategory-of: Likewise.
1314         * modules/unictype/bidicategory-test: Likewise.
1315         * modules/unictype/property-bidi-* (Dependencies): Update.
1316         * lib/unictype/bidi_*.c: Update comment.
1318 2011-03-26  Bruno Haible  <bruno@clisp.org>
1320         unictype/bidi*: Rename functions, part 2.
1321         * modules/unictype/bidicategory-name (configure.ac): Update required
1322         libunistring version.
1323         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
1325 2011-03-25  Bruno Haible  <bruno@clisp.org>
1327         New module 'unictype/combining-class-all'.
1328         * modules/unictype/combining-class-all: New file.
1330         Tests for module 'unictype/combining-class-byname'.
1331         * modules/unictype/combining-class-byname-tests: New file.
1332         * tests/unictype/test-combiningclass_byname.c: New file.
1334         New module 'unictype/combining-class-byname'.
1335         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
1336         * lib/unictype/combiningclass_byname.c: New file.
1337         * lib/unictype/combiningclass_byname.gperf: New file.
1338         * modules/unictype/combining-class-byname: New file.
1340         Tests for module 'unictype/combining-class-longname'.
1341         * modules/unictype/combining-class-longname-tests: New file.
1342         * tests/unictype/test-combiningclass_longname.c: New file.
1344         New module 'unictype/combining-class-longname'.
1345         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
1346         * lib/unictype/combiningclass_longname.c: New file.
1347         * modules/unictype/combining-class-longname: New file.
1349         Tests for module 'unictype/combining-class-name'.
1350         * modules/unictype/combining-class-name-tests: New file.
1351         * tests/unictype/test-combiningclass_name.c: New file.
1353         New module 'unictype/combining-class-name'.
1354         * lib/unictype.in.h (uc_combining_class_name): New declaration.
1355         * lib/unictype/combiningclass_name.c: New file.
1356         * modules/unictype/combining-class-name: New file.
1358 2011-03-25  Bruno Haible  <bruno@clisp.org>
1360         unictype/combining-class: Rename source files.
1361         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
1362         of unictype/combining.h.
1363         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
1364         Update.
1365         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
1366         * modules/unictype/combining-class (Description): Fix.
1367         (Files, Makefile.am): Update.
1368         * tests/unictype/test-combiningclass.c: Renamed from
1369         tests/unictype/test-combining.c.
1370         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
1372 2011-03-25  Bruno Haible  <bruno@clisp.org>
1374         unictype: Update list of canonical combining classes.
1375         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
1377 2011-03-25  Bruno Haible  <bruno@clisp.org>
1379         unictype/category-byname: Recognize long names as well.
1380         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
1381         a long name.
1382         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
1383         unictype/categ_byname.h.
1384         (UC_CATEGORY_INDEX_*): New enumeration values.
1385         (uc_general_category_byname): Use uc_general_category_lookup and
1386         convert from index to value.
1387         * lib/unictype/categ_byname.gperf: New file.
1388         * modules/unictype/category-byname (Files): Add
1389         lib/unictype/categ_byname.gperf.
1390         (Depends-on): Add gperf.
1391         (Makefile.am): Add rule for generating unictype/categ_byname.h.
1392         * tests/unictype/test-categ_byname.c (main): Test the recognition of
1393         long names.
1395         Tests for module 'unictype/category-longname'.
1396         * modules/unictype/category-longname-tests: New file.
1397         * tests/unictype/test-categ_longname.c: New file.
1399         New module 'unictype/category-longname'.
1400         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
1401         * lib/unictype/categ_longname.c: New file.
1402         * modules/unictype/category-longname: New file.
1403         * modules/unictype/category-all (Depends-on): Add it.
1405 2011-03-25  Bruno Haible  <bruno@clisp.org>
1407         Tests for module 'unictype/category-LC'.
1408         * modules/unictype/category-LC-tests: New file.
1409         * tests/unictype/test-categ_LC.c: New file, automatically generated.
1411         New module 'unictype/category-LC'.
1412         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
1413         (UC_CATEGORY_LC): New declaration.
1414         (UC_CASED_LETTER): New macro.
1415         * lib/gen-uni-tables.c (is_category_LC): New function.
1416         (output_categories): Also handle category LC.
1417         (UC_CATEGORY_MASK_LC): New enumeration value.
1418         (general_category_byname): Also handle category LC.
1419         * lib/unictype/categ_LC.c: New file.
1420         * lib/unictype/categ_LC.h: New file, automatically generated.
1421         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
1422         category LC.
1423         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
1424         * modules/unictype/category-LC: New file.
1425         * modules/unictype/category-byname (Depends-on): Add
1426         unictype/category-LC.
1427         * modules/unictype/category-all (Depends-on): Likewise.
1429 2011-03-25  Eric Blake  <eblake@redhat.com>
1431         xmalloc: revert yesterday's regression
1432         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
1433         realloc's underlying behavior (allowing allocation of zero-size
1434         objects, especially if malloc-gnu is also in use).
1436 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
1438         maint.mk: add missing version to VC-tag
1439         * top/maint.mk: git tag was missing actual tag name; add it.
1441         valgrind: do leak checking, and exit with code 1 on error (not 0)
1442         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
1443         to VALGRIND.
1445 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
1447         posix-modules: say what it does.
1448         * posix-modules: Add a line to the --help output saying what it does.
1450 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
1452         xmalloc: Do not leak if underlying realloc is C99 compatible.
1453         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
1454         This avoids a leak on C99-based systems.  See
1455         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
1457 2011-03-24  Eric Blake  <eblake@redhat.com>
1459         realloc: document portability problem
1460         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
1461         passing 0 size to realloc.
1463 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
1465         doc: update users.txt
1466         * users.txt: Add cvsps, tmpwatch
1468 2011-03-23  Matt Rice  <ratmice@gmail.com>
1470         doc: update users.txt
1471         * users.txt: Add gdb.
1473 2011-03-23  Jim Meyering  <meyering@redhat.com>
1475         doc: update users.txt
1476         Looking through matches up to the following URL (there are still
1477         several more pages), I found several projects that use gnulib:
1478         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
1479         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
1480         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
1482 2011-03-22  Bruno Haible  <bruno@clisp.org>
1484         unictype/bidi*: Rename functions.
1485         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
1486         uc_bidi_class, uc_is_bidi_class): New declarations.
1487         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
1488         uc_bidi_category_byname.
1489         (uc_bidi_category_byname): New function.
1490         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
1491         u_bidi_category_name.
1492         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
1493         (uc_bidi_category_name): New function.
1494         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
1495         uc_bidi_category.
1496         (uc_bidi_category): New function.
1497         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
1498         uc_is_bidi_category. Invoke uc_bidi_class.
1499         (uc_is_bidi_category): New function.
1500         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
1501         instead of uc_bidi_category_byname.
1502         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
1503         instead of uc_bidi_category_name.
1504         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
1505         uc_bidi_category.
1506         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
1507         instead of uc_is_bidi_category.
1509 2011-03-21  Bruno Haible  <bruno@clisp.org>
1511         New module 'unictype/joininggroup-all'.
1512         * modules/unictype/joininggroup-all: New file.
1514         Tests for module 'unictype/joininggroup-of'.
1515         * modules/unictype/joininggroup-of-tests: New file.
1516         * tests/unictype/test-joininggroup_of.c: New file.
1517         * tests/unictype/test-joininggroup_of.h: New file, automatically
1518         generated by gen-uni-tables.
1520         New module 'unictype/joininggroup-of'.
1521         * modules/unictype/joininggroup-of: New file.
1522         * lib/unictype/joininggroup_of.c: New file.
1523         * lib/unictype/joininggroup_of.h: New file, automatically generated by
1524         gen-uni-tables.
1526         Tests for module 'unictype/joininggroup-byname'.
1527         * modules/unictype/joininggroup-byname-tests: New file.
1528         * tests/unictype/test-joininggroup_byname.c: New file.
1530         New module 'unictype/joininggroup-byname'.
1531         * modules/unictype/joininggroup-byname: New file.
1532         * lib/unictype/joininggroup_byname.c: New file.
1533         * lib/unictype/joininggroup_byname.gperf: New file.
1535         Tests for module 'unictype/joininggroup-name'.
1536         * modules/unictype/joininggroup-name-tests: New file.
1537         * tests/unictype/test-joininggroup_name.c: New file.
1539         New module 'unictype/joininggroup-name'.
1540         * modules/unictype/joininggroup-name: New file.
1541         * lib/unictype/joininggroup_name.c: New file.
1542         * lib/unictype/joininggroup_name.h: New file.
1544         New module 'unictype/joiningtype-all'.
1545         * modules/unictype/joiningtype-all: New file.
1547         Tests for module 'unictype/joiningtype-of'.
1548         * modules/unictype/joiningtype-of-tests: New file.
1549         * tests/unictype/test-joiningtype_of.c: New file.
1550         * tests/unictype/test-joiningtype_of.h: New file, automatically
1551         generated by gen-uni-tables.
1553         New module 'unictype/joiningtype-of'.
1554         * modules/unictype/joiningtype-of: New file.
1555         * lib/unictype/joiningtype_of.c: New file.
1556         * lib/unictype/joiningtype_of.h: New file, automatically generated by
1557         gen-uni-tables.
1559         Tests for module 'unictype/joiningtype-byname'.
1560         * modules/unictype/joiningtype-byname-tests: New file.
1561         * tests/unictype/test-joiningtype_byname.c: New file.
1563         New module 'unictype/joiningtype-byname'.
1564         * modules/unictype/joiningtype-byname: New file.
1565         * lib/unictype/joiningtype_byname.c: New file.
1567         Tests for module 'unictype/joiningtype-name'.
1568         * modules/unictype/joiningtype-name-tests: New file.
1569         * tests/unictype/test-joiningtype_name.c: New file.
1571         New module 'unictype/joiningtype-name'.
1572         * modules/unictype/joiningtype-name: New file.
1573         * lib/unictype/joiningtype_name.c: New file.
1575         unictype: Add support for Arabic shaping properties.
1576         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
1577         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
1578         declarations.
1579         (UC_JOINING_GROUP_*): New enumeration values.
1580         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
1581         declarations.
1582         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
1583         (unicode_joining_type): New variable.
1584         (UC_JOINING_GROUP_*): New enumeration values.
1585         (unicode_joining_group): New variable.
1586         (fill_arabicshaping, joining_type_as_c_identifier,
1587         output_joining_type_test, output_joining_type,
1588         joining_group_as_c_identifier, output_joining_group_test,
1589         output_joining_group): New functions.
1590         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
1591         fill_arabicshaping and output_joining_type_test, output_joining_type,
1592         output_joining_group_test, output_joining_group.
1593         Reported by Simon Josefsson.
1595 2011-03-21  Jim Meyering  <meyering@redhat.com>
1597         strftime: fix a bug in yesterday's change
1598         * lib/strftime.c (add): Accommodate width's initial value of -1.
1599         Otherwise, nstrftime would copy uninitialized data into
1600         the result buffer.
1602 2011-03-21  Jim Meyering  <meyering@redhat.com>
1604         tests: add strftime-tests module
1605         * tests/test-strftime.c: New file.
1606         * modules/strftime-tests: New module.
1608 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
1610         strftime: don't assume a byte count fits in 'int'
1611         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
1612         found this problem by static analysis, using gcc -Wstrict-overflow
1613         (GCC 4.5.2, x86-64).  This reported an optimization that depended
1614         on an integer overflow having undefined behavior, but it turns out
1615         that the argument is a size, which might not fit in 'int' anyway,
1617 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
1619         stdio: don't require ignore_value around fwrite
1621         This patch works around libc bug 11959
1622         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
1623         Without this patch, applications must often write
1624         ignore_value (fwrite (...)) even though the ignore_value is
1625         not helpful here.  It's common to write many objects, using
1626         fwrite/printf/etc., and then use ferror to detect output error.
1628         I considered making this patch optional, but decided against it,
1629         because libc is obviously being inconsistent here: there is no
1630         reason libc should insist that user code must inspect fwrite
1631         return's value without also insisting that it inspect printf's,
1632         putchar's, etc.  If user code wants to have a strict style where
1633         all these functions' values are checked (so that ferror need not
1634         be checked), we could add support for that style in a new gnulib
1635         module, but in the meantime it's better to be consistent and to
1636         support common usage.
1638         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
1639         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
1640         that we are compiling in checking mode, and if not C++, and
1641         if not already wrapping fwrite for some other reason.
1642         (fwrite): #define to rpl_fwrite if the latter is defined.
1644 2011-03-20  Bruno Haible  <bruno@clisp.org>
1646         verror: Fix compilation error introduced on 2011-02-13.
1647         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
1648         instead of __attribute__.
1649         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1651 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
1652             Bruno Haible  <bruno@clisp.org>
1654         socklen: do not depend on sys_socket
1655         While trying to modify Emacs to use gnulib's socklen module,
1656         I discovered a circular dependency: socklen depends on sys_socket
1657         and vice versa.  Emacs can use socklen, but it does not need
1658         sys_socket because it has its own substitute for sys/socket.h.
1659         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
1660         gl_TYPE_SOCKLEN_T.
1661         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
1662         gl_PREREQ_SYS_H_SOCKET.
1663         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
1664         gl_PREREQ_SYS_H_SOCKET.
1665         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
1666         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
1667         * modules/socklen (Depends-on): Do not depend on sys_socket.
1668         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
1670 2011-03-20  Jim Meyering  <meyering@redhat.com>
1672         maint.mk: sort file names *after* new transformation
1673         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
1674         prefix would have led to an unwarranted failure in GNU parted.
1675         Sort after that transformation.
1677 2011-03-19  Jim Meyering  <meyering@redhat.com>
1679         maint.mk: fix po-file syntax-check rule
1680         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
1681         Patch by Bruno Haible.
1683 2011-03-19  Bruno Haible  <bruno@clisp.org>
1685         socklen: Update comment.
1686         * m4/socklen.m4: Update comment about platforms.
1688 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
1689             Bruno Haible  <bruno@clisp.org>
1691         inet_ntop, inet_pton: Simplify.
1692         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
1693         documented to provide socklen_t and we already depend on sys_socket.
1694         * modules/inet_pton (Depends-on): Likewise.
1695         * lib/arpa_inet.in.h: Adjust comment.
1697 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
1698             Bruno Haible  <bruno@clisp.org>
1700         netdb: Simplify.
1701         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
1702         documented to provide socklen_t and we already depend on sys_socket.
1703         * lib/netdb.in.h: Adjust comment.
1705 2011-03-19  Bruno Haible  <bruno@clisp.org>
1707         sys_socket, netdb: Document problem with socklen_t.
1708         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
1709         platforms.
1710         * doc/posix-headers/netdb.texi: Likewise.
1712 2011-03-18  Eric Blake  <eblake@redhat.com>
1714         maint.mk: let po check work in VPATH build
1715         * top/maint.mk (po_file): Allow cfg.mk override.
1716         (sc_po_check): Allow VPATH use.
1717         Reported by Jiri Denemark.
1719 2011-03-16  Jim Meyering  <meyering@redhat.com>
1721         maint.mk: allow fine-grained syntax-check exclusion via Make variables
1722         Before, you would have had to create one .x-sc_ file per rule in order
1723         to exempt offending files.  Now, you may instead use a Make variable --
1724         usually defined in cfg.mk -- whose name identifies the affected rule.
1725         * top/maint.mk (_sc_excl): Define.
1726         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
1727         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
1729 2011-03-13  Bruno Haible  <bruno@clisp.org>
1731         ignore-value tests: Avoid warnings.
1732         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
1733         empty for gcc < 3.4.
1735 2011-03-13  Bruno Haible  <bruno@clisp.org>
1737         passfd: Fix link error on Solaris.
1738         * modules/passfd (Description): Correct.
1739         (Depends-on): Add socketlib.
1740         (Link): New section.
1741         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
1743 2011-03-13  Bruno Haible  <bruno@clisp.org>
1745         passfd: Fix link error on AIX 5.2.
1746         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
1748 2011-03-13  Bruno Haible  <bruno@clisp.org>
1750         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
1751         * lib/sys_socket.in.h: Include <stddef.h>.
1752         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
1753         CMSG_FIRSTHDR. Remove unused variable.
1755 2011-03-13  Bruno Haible  <bruno@clisp.org>
1757         passfd: Fix compilation error on OpenBSD.
1758         * lib/passfd.c: Include <sys/uio.h>.
1760 2011-03-13  Bruno Haible  <bruno@clisp.org>
1762         passfd test: Fix warnings.
1763         * tests/test-passfd.c: Include <sys/wait.h>.
1764         (main): Fix typo.
1766 2011-03-13  Bruno Haible  <bruno@clisp.org>
1768         passfd module, part 4, tweaks.
1769         * tests/test-passfd.c: Reorder includes.
1770         (main): Fix perror and printf calls.
1772 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
1774         passfd module, part 4.
1775         * modules/passfd-tests: New file.
1776         * tests/test-passfd.c: New file.
1778 2011-03-13  Jim Meyering  <meyering@redhat.com>
1780         Makefile: rely on GNU make; derive syntax-check rule names
1781         Rather than requiring that each sc_ rule be listed as a dependent
1782         of "check", use features of GNU make to derive the list.
1783         * Makefile (syntax-check-rules): Define.
1784         (check): Depend on the new variable, not the hard-coded list.
1786 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
1787             Bruno Haible  <bruno@clisp.org>
1789         passfd module, part 3.
1790         * lib/passfd.h (recvfd): Add a flags argument.
1791         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
1792         (recvfd): Add a flags argument.
1793         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
1794         exists.
1795         * modules/passfd (Depends-on): Add cloexec.
1796         Suggested by Eric Blake.
1798 2011-03-13  Bruno Haible  <bruno@clisp.org>
1800         passfd module, part 2, tweaks.
1801         * modules/passfd (Files): Reorder.
1802         (Depends-on): Remove errno.
1803         (Include): Remove <sys/socket.h>, <sys/un.h>.
1804         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
1805         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
1806         specification header. Include <sys/socket.h> always. Don't include
1807         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
1808         (sendfd): Clarify that it sets errno when it fails.
1809         (recvfd): Fix specification.
1811 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
1813         passfd module, part 2.
1814         * modules/passfd: New file.
1815         * lib/passfd.h: New file.
1816         * lib/passfd.c: New file.
1818 2011-03-12  Bruno Haible  <bruno@clisp.org>
1820         wcswidth, mbswidth: Avoid integer overflow.
1821         * lib/wcswidth.c: Include <limits.h>.
1822         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
1823         * lib/mbswidth.c: Include <limits.h>.
1824         (mbsnwidth): Avoid 'int' overflow.
1825         Reported by Jim Meyering.
1827 2011-03-12  Bruno Haible  <bruno@clisp.org>
1829         futimens, utimensat: Avoid endless recursion on Solaris 10.
1830         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
1831         Solaris.
1832         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
1833         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
1835 2011-03-11  Jim Meyering  <meyering@redhat.com>
1837         maint.mk: relax a regexp to accommodate other formatting styles
1838         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
1839         between "ngettext" and the following "(".
1841 2011-03-11  Pádraig Brady <P@draigBrady.com>
1843         maint.mk: suppress a false positive warning
1844         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
1845         diagnostics are marked with ngettext.
1847 2011-03-10  Eric Blake  <eblake@redhat.com>
1849         wchar: add explicit dependencies, for Tru64
1850         * modules/mbmemcasecoll (Depends-on): Add wchar.
1851         * modules/mbtowc (Depends-on): Likewise.
1852         * modules/vasnprintf (Depends-on): Likewise.
1853         * modules/unistdio/u-printf-args (Depends-on): Likewise.
1854         * modules/wctomb (Depends-on): Likewise.
1855         Reported by Peter O'Gorman.
1857 2011-03-08  Bruno Haible  <bruno@clisp.org>
1859         passfd module, part 1, tweaks.
1860         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
1861         Improve indentation. Improve AC_MSG_CHECKING messages.
1862         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
1863         gl_SOCKET_FAMILIES.
1865 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
1867         passfd module, part 1.
1868         * m4/afunix.m4: New file.
1869         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
1870         sockets.
1872 2011-03-08  Bruno Haible  <bruno@clisp.org>
1874         regex-quote: New API.
1875         * lib/regex-quote.h: Include <stdbool.h>.
1876         (struct regex_quote_spec): New type.
1877         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
1878         New declarations.
1879         (regex_quote_length, regex_quote_copy, regex_quote): Take a
1880         'const struct regex_quote_spec *' argument.
1881         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
1882         (pcre_special): New constant.
1883         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
1884         New functions.
1885         (regex_quote_length, regex_quote_copy, regex_quote): Take a
1886         'const struct regex_quote_spec *' argument.
1887         * modules/regex-quote (Depends-on): Add stdbool.
1888         * tests/test-regex-quote.c (check): Update for new API. Add test for
1889         anchored results.
1890         * NEWS: Mention the API change.
1891         Reported by Reuben Thomas and Eric Blake.
1893 2011-03-06  Bruno Haible  <bruno@clisp.org>
1895         regex-quote: Fix creation of POSIX extended regular expressions.
1896         * lib/regex-quote.c (ere_special): Add grouping and alternation
1897         operators.
1899 2011-03-05  Bruno Haible  <bruno@clisp.org>
1901         doc: Improve doc regarding autopoint vs. gnulib.
1902         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
1903         disable autopoint while running autoreconf.
1904         Suggested by Ralf Wildenhues.
1906 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1908         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
1909         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
1911 2011-03-03  Bruce Korb  <bkorb@gnu.org>
1913         parse-duration: remove xalloc.h dependency
1914         * lib/parse-duration.c (parse_period): handle NULL return from
1915         strdup instead of calling xstrdup().
1916         * modules/parse-duration: remove "xalloc" dependency
1918 2011-03-03  Matthew Booth  <mbooth@redhat.com>
1920         bootstrap: honor m4_base when running aclocal
1921         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
1923 2011-03-02  Jim Meyering  <meyering@redhat.com>
1925         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
1926         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
1927         on request from Matt Booth.
1929 2011-03-01  Eric Blake  <eblake@redhat.com>
1931         test-link: work on Hurd
1932         * tests/test-link.h (test_link): Hurd rejects linking directories
1933         with EISDIR instead of the POSIX-mandated EPERM.
1935 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
1937         stdio: simplify by moving files to printf-posix, sigpipe
1938         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
1939         since this symbol is needed only if printf is replaced.
1940         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
1941         Require gl_ASM_SYMBOL_PREFIX.
1942         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
1943         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
1944         (Depends-on): Add 'raise'.
1945         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
1946         * modules/stdio (Files): Remove lib/stdio-write.c,
1947         m4/asm-underscore.m4.
1948         (Depends-on): Remove 'raise'.
1950         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
1951         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
1952         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
1953         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
1955 2011-02-28  Bruno Haible  <bruno@clisp.org>
1957         localcharset: Assume ANSI C behaviour of free().
1958         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
1959         calling free().
1960         Suggested by Simon Josefsson <simon@josefsson.org>.
1962 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
1963             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
1964             Bruno Haible  <bruno@clisp.org>  (tiny change)
1966         On Cygwin, use /proc file system instead of win32 API.
1967         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
1968         Win32 file names.
1969         (DllMain): Simplify by removing Cygwin specific code.
1970         (find_shared_library_fullname): Use Linux specific implementation also
1971         for Cygwin.
1972         (get_shared_library_fullname): Update accordingly.
1973         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
1974         Win32 file names.
1975         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
1976         Cygwin specific code.
1978 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
1979             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
1981         Fix OpenMP flag detection for various Fortran compilers.
1982         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
1983         OpenMP-conditional compilation construct, to force compile
1984         failure with missing OpenMP flag.
1985         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
1987 2011-02-25  Eric Blake  <eblake@redhat.com>
1989         strstr: expand test coverage
1990         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
1991         compilation.
1992         * tests/test-memmem.c (main): Duplicate tests.
1993         * tests/test-strcasestr.c (main): Likewise.
1994         * tests/test-c-strcasestr.c (main): Likewise.
1996 2011-02-25  Jim Meyering  <meyering@redhat.com>
1998         maint.mk: detect missing-NL-at-EOF, too
1999         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
2000         it also detects when a file lacks a newline at EOF.
2001         (require_exactly_one_NL_at_EOF_): Renamed from
2002         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
2003         since people may well have .x-sc_... file names tied to the
2004         existing name.  Suggested by Eric Blake.
2006 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
2008         dirname: move m4/dos.m4 functionality into lib/dosname.h
2010         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
2011         extracts symbols from it, puts them into config.h; but it's much
2012         easier to use the symbols directly.  filename.h already does this,
2013         but it disagrees with dos.m4 in some respects.  This patch
2014         introduces a different include file dosname.h that packages up
2015         dos.m4, and then later we can work on merging filename.h and
2016         dosname.h.  Applications that need only the easy-to-configure
2017         symbols should consider including dosname.h rather than dirname.h.
2018         * NEWS: Mention incompatible changes.
2019         * m4/dos.m4: Remove.
2020         * lib/dosname.h, modules/dosname: New files.
2021         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
2022         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
2023         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
2024         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
2025         Include dosname.h, not dirname.h.
2026         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
2027         Include dosname.h, for definitions of symbols like ISSLASH
2028         that used to be in config.h.
2029         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
2030         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
2031         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
2032         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
2033         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
2034         * modules/rmdir (Files): Likewise.
2035         * modules/stat (Files): Likewise.
2036         * modules/unlink (Files): Likewise.
2037         * modules/dirname-lgpl (Depends-on): Add dosname.
2038         * modules/lstat (Depends-on): Likewise.
2039         * modules/openat (Depends-on): Likewise.
2040         * modules/rmdir (Depends-on): Likewise.
2041         * modules/savewd (Depends-on): Likewise.
2042         * modules/stat (Depends-on): Likewise.
2043         * modules/unlink (Depends-on): Likewise.
2044         * modules/openat (Depends-on): Remove dirname-lgpl.
2045         * modules/savewd (Depends-on): Likewise.
2046         * tests/test-dirname.c: Do not use removed symbols like
2047         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
2048         the remaining symbols, e.g., ISSLASH ('\\').
2050 2011-02-25  Eric Blake  <eblake@redhat.com>
2052         strstr: revert patches that introduced bug and pessimization
2053         * lib/str-two-way.h: Add another reference.
2054         (two_way_short_needle, two_way_long_needle): Revert changes from
2055         2011-02-24; they pessimize search speed.
2056         (critical_factorization): Partially revert changes from
2057         2010-06-22; they violate the requirement that the left half of the
2058         needle be smaller than the period of the needle.
2060 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
2062         filenamecat: remove unnecessary dependency on dirname-lgpl
2063         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
2064         is no direct dependency, just an indirect one via filenamecat-lgpl.
2066         remove: remove unnecessary use of m4/dos.m4
2067         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
2068         * modules/remove (FILES): Remove m4/dos.m4.
2070         * lib/openat-proc.c: Don't include dirname.h; not needed.
2072         backupfile: remove unnecessary use of m4/dos.m4
2073         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
2074         of its symbols are used by the backupfile code.  backupfile.c does
2075         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
2076         for the rare case of programs that want all their backup file
2077         names to live within 8+3 limits, and dos.m4 doesn't address that.
2078         * modules/backupfile (Files): Remove m4/dos.m4.
2080 2011-02-24  Jim Meyering  <meyering@redhat.com>
2082         strstr: fix a bug whereby strstr would mistakenly return NULL
2083         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
2084         in period calculation.
2085         (two_way_long_needle): Likewise.
2086         The original problem was reported by Mike Stump in
2087         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
2088         Ralf Wildenhues provided the short needle and haystack.
2089         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
2090         Add a more involved test to trigger the bug in two_way_long_needle.
2092 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
2094         gnulib-tool: remove use of bold display in help screen
2095         * gnulib-tool (func_usage): Do not use bold display anymore in the
2096         help screen.  That was just meant to be a temporary emphasis for a
2097         backward-incompatible change.
2099 2011-02-23  Bruno Haible  <bruno@clisp.org>
2101         Fix misindentation of preprocessor directives.
2102         * lib/argp-namefrob.h: Reindent preprocessor directives.
2103         * lib/getopt_int.h (struct _getopt_data): Likewise.
2104         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
2105         * lib/vasnprintf.c (decode_long_double): Likewise.
2106         * tests/test-argmatch.c: Insert blank lines, for clarity.
2107         * tests/test-exclude.c: Likewise.
2109 2011-02-22  Bruno Haible  <bruno@clisp.org>
2111         ioctl: Fix for MacOS X in 64-bit mode.
2112         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
2113         value.
2114         Suggested by Eric Blake.
2115         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
2117 2011-02-22  Jim Meyering  <meyering@redhat.com>
2119         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
2120         * Makefile (sc_cpp_indent_check): Don't limit the check to files
2121         in lib/.
2123 2011-02-22  Eric Blake  <eblake@redhat.com>
2125         maint: avoid any CDPATH issue
2126         * Makefile (sc_cpp_indent_check): Anchor cd argument.
2128         maint: adjust cpp indentation for my modules, as well
2129         * Makefile (sc_cpp_indent_check): Add my name.
2130         * lib/fbufmode.c: Filter through cppi.
2131         * lib/fpurge.c: Likewise.
2132         * lib/freadable.c: Likewise.
2133         * lib/freading.c: Likewise.
2134         * lib/fwritable.c: Likewise.
2135         * lib/fwriting.c: Likewise.
2136         * lib/sigaction.c: Likewise.
2138 2011-02-22  Jim Meyering  <meyering@redhat.com>
2140         maint: adjust cpp indentation to reflect nesting depth
2141         I.e., in a block of code that begins with an unnested "#if",
2142         put one space between the "#" in column 1 and following token.
2143         For example,
2144         -#include <sys/vfs.h>
2145         +# include <sys/vfs.h>
2146         Do this only in .c files that are part of a module I maintain.
2147         * lib/linkat.c: Filter through cppi.
2148         * lib/nanosleep.c: Likewise.
2149         * lib/openat.c: Likewise.
2150         * lib/openat-die.c: Likewise.
2151         * lib/dup3.c: Likewise.
2152         * lib/fchownat.c: Likewise.
2153         * lib/flock.c: Likewise.
2154         * lib/fsync.c: Likewise.
2155         * lib/fts.c: Likewise.
2156         * lib/getpass.c: Likewise.
2157         * lib/gettimeofday.c: Likewise.
2158         * lib/userspec.c: Likewise.
2159         * Makefile (sc_cpp_indent_check): New rule, to check this.
2161 2011-02-22  Bruno Haible  <bruno@clisp.org>
2163         New module 'wctomb'.
2164         * lib/stdlib.in.h (wctomb): New declaration.
2165         * lib/wctomb.c: New file.
2166         * lib/wctomb-impl.h: New file.
2167         * m4/wctomb.m4: New file.
2168         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
2169         REPLACE_WCTOMB.
2170         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
2171         REPLACE_WCTOMB.
2172         * modules/wctomb: New file.
2173         * tests/test-stdlib-c++.cc: Test signature of wctomb.
2174         * doc/posix-functions/wctomb.texi: Mention the new module.
2175         * modules/wctob (Depends-on): Add wctomb.
2177 2011-02-22  Bruno Haible  <bruno@clisp.org>
2179         New module 'mbtowc'.
2180         * lib/stdlib.in.h (mbtowc): New declaration.
2181         * lib/mbtowc.c: New file.
2182         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
2183         * m4/mbtowc.m4: New file.
2184         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
2185         REPLACE_MBTOWC.
2186         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
2187         REPLACE_MBTOWC.
2188         * modules/mbtowc: New file.
2189         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
2190         * doc/posix-functions/mbtowc.texi: Mention the new module.
2191         * modules/btowc (Depends-on): Add mbtowc.
2193 2011-02-22  Bruno Haible  <bruno@clisp.org>
2195         wcrtomb: Add more tests for native Windows platforms.
2196         * tests/test-wcrtomb-w32-1.sh: New file.
2197         * tests/test-wcrtomb-w32-2.sh: New file.
2198         * tests/test-wcrtomb-w32-3.sh: New file.
2199         * tests/test-wcrtomb-w32-4.sh: New file.
2200         * tests/test-wcrtomb-w32-5.sh: New file.
2201         * tests/test-wcrtomb-w32.c: New file.
2202         * modules/wcrtomb-tests (Files): Add them.
2203         (Makefile.am): Arrange to run these tests.
2204         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
2205         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
2207 2011-02-20  Bruno Haible  <bruno@clisp.org>
2209         wcrtomb: Enhance test.
2210         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
2212 2011-02-20  Bruno Haible  <bruno@clisp.org>
2214         mbrtowc: Tiny optimization.
2215         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
2217 2011-02-20  Jim Meyering  <meyering@redhat.com>
2219         test-exclude.c: remove unmatched #endif
2220         * tests/test-exclude.c: Remove stray #endif, left over from
2221         the change of a week ago.
2223 2011-02-19  Jim Meyering  <meyering@redhat.com>
2225         git-version-gen: skip "-dirty" check when appropriate
2226         * build-aux/git-version-gen: Don't run any git commands when the
2227         version string comes from .tarball-version.  Prior to this, we
2228         would run git update-index --refresh even from a just-unpacked
2229         tarball directory, and that could affect a .git/ directory in a
2230         parent of the build directory.  Reported by Mike Frysinger.
2232 2011-02-19  Bruno Haible  <bruno@clisp.org>
2234         unictype/property-byname: Reduce the size of the 'data' segment.
2235         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
2237 2011-02-19  Bruno Haible  <bruno@clisp.org>
2239         unictype/scripts: Reduce the size of the 'data' segment.
2240         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
2241         '%pic'.
2242         * lib/unictype/scripts_byname.gperf: Regenerated.
2244 2011-02-19  Bruno Haible  <bruno@clisp.org>
2246         stdint: Update documentation.
2247         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
2249 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
2251         stdint: omit redundant check for wchar.h
2252         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
2253         always tests whether wchar.h exists, so remove the now-redundant test.
2255 2011-02-18  Bruno Haible  <bruno@clisp.org>
2257         stdint: Cut dependency to module 'wchar'.
2258         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
2259         include the necessary prerequisites.
2260         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
2261         * modules/stdint (Depends-on): Remove wchar.
2262         (Makefile.am): Substitute HAVE_WCHAR_H.
2263         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
2265 2011-02-18  Eric Blake  <eblake@redhat.com>
2267         longlong: skip, rather than fail, on cross-compilation
2268         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
2269         when cross-compiling; regression from 2011-02-16.
2271 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
2273         * NEWS: Mention 2011-02-08 change to stdlib.
2275 2011-02-17  Bruno Haible  <bruno@clisp.org>
2277         getloadavg: Add comments about platforms.
2278         * m4/getloadavg.m4: Add comment.
2279         * lib/getloadavg.c: Likewise.
2281 2011-02-17  Bruno Haible  <bruno@clisp.org>
2283         getloadavg: Fix link error on Solaris 2.6.
2284         * modules/getloadavg (Link): New section.
2285         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
2286         linking test-getloadavg.
2287         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
2288         getloadavg.
2290 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
2292         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
2293         It was 'int', but this doesn't match the IRIX 6.5 manual.
2294         Suggested by Bruno Haible in
2295         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
2297 2011-02-17  Bruno Haible  <bruno@clisp.org>
2299         havelib: Fix comments.
2300         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
2301         change.
2303 2011-02-17  Bruno Haible  <bruno@clisp.org>
2305         havelib: Update config.rpath.
2306         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
2308 2011-02-17  Bruno Haible  <bruno@clisp.org>
2310         getloadavg test: Add some plausibility checks.
2311         * tests/test-getloadavg.c (check_avg): Print a warning when the value
2312         is improbable.
2314 2011-02-16  Eric Blake  <eblake@redhat.com>
2316         maintainer-makefile: make syntax-check a no-op from tarballs
2317         * top/maint.mk (no-vc-detected): New rule.
2318         (local-checks-available): Use it to avoid hanging if someone tries
2319         'make syntax-check' from a tarball.  Also append to any non-syntax
2320         checks already defined in cfg.mk.
2322 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
2324         longlong: tune, particularly for common case of c99
2326         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
2327         or running anything if c99, or if unsigned long long int does not
2328         work.  In either case, we know the answer without further tests.
2329         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
2330         it at most once, and use its results for both long long int and
2331         unsigned long long int.  This is more likely to be efficient in
2332         the common case where the program wants to check for both long
2333         long int and unsigned long long int.
2334         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
2335         since the answer is already known.
2337 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
2339         getloadavg: set errno
2340         * lib/getloadavg.c: Set errno when returning -1.  If no other
2341         error number looks appropriate, set it to ENOSYS if the getloadavg
2342         looks like it can't possibly ever work, ENOTSUP otherwise.
2343         Suggested by Bruno Haible in
2344         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
2346         getloadavg: trim unused parts and speed up 'configure'
2347         * NEWS: Document this.
2348         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
2349         always compiled if getloadavg is absent.
2350         Move test code to ...
2351         * tests/test-getloadavg.c: New file, containing previous
2352         contents of test from lib/getloadavg.c.  It also contains
2353         suggestions by Bruno Haible in
2354         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
2355         * modules/getloadavg-tests: New file.
2356         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
2357         Do tests in the same order as they're needed for getloadavg.c.
2358         Omit setgid-related tests that generate symbols KMEM_GROUP,
2359         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
2360         Do only the tests that are needed to see whether the system has
2361         getloadavg, moving the other tests into ...
2362         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
2363         NLIST_NAME_UNION; nobody should be using it.  Do not define
2364         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
2365         relevant, as the user of this module shouldn't care how getloadavg
2366         is implemented.
2368         getloadavg: omit unused var
2369         * lib/getloadavg.c (getloadavg): Omit unused local variable.
2371 2011-02-15  Jim Meyering  <meyering@redhat.com>
2373         doc: update users.txt
2374         * users.txt: Update iwhd's URL.
2376 2011-02-13  Bruno Haible  <bruno@clisp.org>
2378         Consistent macro naming for macros that use GCC __attribute__.
2379         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
2380         _ATTRIBUTE_NONNULL_.
2381         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
2382         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
2383         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
2384         ATTRIBUTE_DEPRECATED.
2385         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
2386         ATTRIBUTE_NORETURN.
2387         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
2388         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
2389         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
2390         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
2391         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
2392         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
2393         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
2394         ATTRIBUTE_SENTINEL.
2395         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
2396         ATTRIBUTE_RETURN_CHECK.
2397         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
2398         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
2399         ATTRIBUTE_NORETURN.
2400         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
2401         Reported by Paul Eggert.
2403 2011-02-13  Bruno Haible  <bruno@clisp.org>
2405         Don't interfere with a program's definition of __attribute__.
2406         * lib/argp.h (__attribute__): Remove definition.
2407         (_GL_ATTRIBUTE_FORMAT): New macro.
2408         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
2409         * lib/argp-fmtstream.h (__attribute__): Remove definition.
2410         (_GL_ATTRIBUTE_FORMAT): New macro.
2411         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
2412         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
2413         GCC 3 or newer.
2414         * lib/error.h (__attribute__): Remove definition.
2415         (_GL_ATTRIBUTE_FORMAT): New macro.
2416         (error, error_at_line): Use it.
2417         * lib/hash.h (__attribute__): Remove definition.
2418         (ATTRIBUTE_WUR): Update definition. Define always.
2419         * lib/openat.h (__attribute__): Remove definition.
2420         (ATTRIBUTE_NORETURN): Update definition. Define always.
2421         * lib/sigpipe-die.h (__attribute__): Remove definition.
2422         (ATTRIBUTE_NORETURN): Update definition. Define always.
2423         * lib/vasnprintf.h (__attribute__): Remove definition.
2424         (_GL_ATTRIBUTE_FORMAT): New macro.
2425         (asnprintf, vasnprintf): Use it.
2426         * lib/xalloc.h (__attribute__): Remove definition.
2427         (ATTRIBUTE_NORETURN): Update definition. Define always.
2428         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
2429         * lib/xmemdup0.h (__attribute__): Remove definition.
2430         (ATTRIBUTE_NORETURN): Update definition. Define always.
2431         * lib/xprintf.h (__attribute__): Remove definition.
2432         (_GL_ATTRIBUTE_FORMAT): New macro.
2433         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
2434         * lib/xstrtol.h (__attribute__): Remove definition.
2435         (ATTRIBUTE_NORETURN): Update definition. Define always.
2436         * lib/xvasprintf.h (__attribute__): Remove definition.
2437         (_GL_ATTRIBUTE_FORMAT): New macro.
2438         (xasprintf, xvasprintf): Use it.
2439         * tests/test-argmatch.c (__attribute__): Remove definition.
2440         (ATTRIBUTE_NORETURN): Update definition. Define always.
2441         * tests/test-exclude.c (__attribute__): Remove definition.
2442         (ATTRIBUTE_NORETURN): Update definition. Define always.
2443         Reported by Paul Eggert.
2445 2011-02-13  Bruno Haible  <bruno@clisp.org>
2447         mbrtowc: Add more tests for native Windows platforms.
2448         * tests/test-mbrtowc-w32-1.sh: New file.
2449         * tests/test-mbrtowc-w32-2.sh: New file.
2450         * tests/test-mbrtowc-w32-3.sh: New file.
2451         * tests/test-mbrtowc-w32-4.sh: New file.
2452         * tests/test-mbrtowc-w32-5.sh: New file.
2453         * tests/test-mbrtowc-w32.c: New file.
2454         * modules/mbrtowc-tests (Files): Add them.
2455         (Makefile.am): Arrange to run these tests.
2456         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
2457         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
2459 2011-02-13  Bruno Haible  <bruno@clisp.org>
2461         mbrtowc: Work around native Windows bug.
2462         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
2463         guess when no suitable locale for testing was found.
2464         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
2466 2011-02-13  Bruno Haible  <bruno@clisp.org>
2468         mbsinit: Work around mingw bug.
2469         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
2470         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
2471         Windows.
2472         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
2474 2011-02-13  Bruno Haible  <bruno@clisp.org>
2476         mbsinit: Don't crash for a NULL argument.
2477         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
2478         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
2480 2011-02-13  Bruno Haible  <bruno@clisp.org>
2482         Don't interfere with a program's definition of __attribute__.
2483         * lib/stdio.in.h (__attribute__): Remove definition.
2484         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
2485         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
2486         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
2487         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
2488         * lib/string.in.h (__attribute__): Remove definition.
2489         Reported by Paul Eggert.
2491 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
2493         stdlib: don't get in the way of non-GCC __attribute__
2494         See thread starting at
2495         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
2496         Revert previous stdlib change, installing the following instead:
2497         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
2498         to get in the way of a non-GCC compiler that supports __attribute__.
2499         (_GL_ATTRIBUTE_RETURN): New macro.
2500         (_Exit): Use it instead of __attribute__.
2502 2011-02-12  Bruno Haible  <bruno@clisp.org>
2504         quotearg test: Avoid test failure on mingw.
2505         * tests/test-quotearg.sh: Convert the locale identifier from native
2506         Windows syntax to Unix syntax.
2508 2011-02-12  Bruno Haible  <bruno@clisp.org>
2510         setlocale: Prefer gnulib's override over libintl's override.
2511         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
2512         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
2513         GNULIB_defined_setlocale is set.
2515 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
2517         stdlib: support non-GCC __attribute__
2519         Fix a serious and tricky problem encountered when attempting to
2520         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
2521         5.5, but it crashed due to memory corruption on Solaris 10 with
2522         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
2523         bits that are otherwise zero.  This tagging is optional inside
2524         Emacs but is preferred and is used when __attribute__ ((__aligned
2525         (8))) works, as it does with both recent-enough GCC and with Sun C
2526         5.11.  However, Sun C 5.11 is not GCC and does not #define
2527         __GNUC__ and __GNUC_MINOR__.
2529         When I added the getloadavg module to Emacs, it brought in
2530         stdlib.in.h, which contained this fragment:
2532            #ifndef __attribute__
2533            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
2534            #  define __attribute__(Spec)   /* empty */
2535            # endif
2536            #endif
2538         When files that include <stdlib.h> were compiled with Sun C 5.11,
2539         the above code disabled __attribute__ ((__aligned (8))), which
2540         caused variables to not be properly aligned, which eventually led
2541         to the pointer corruption mentioned above.  (This was a bit hard
2542         to diagnose, unfortunately.)
2544         Several "#define __attribute__(X) /* empty */" code snippets need
2545         to be eradicated from Gnulib to work with non-GCC compilers that
2546         support __attribute__.  The Autoconf way to do this is to test for
2547         each kind of attribute that we want support for, and selectively
2548         enable that in source code.
2550         Fix this problem just for stdlib.h, by adding a test for the
2551         __noreturn__ attribute, and change stdlib.in.h to use that test
2552         when needed.  This technique can be easily generalized to the
2553         other *.in.h files and attributes, and a similar technique can be
2554         used for *.h and *.c files.  This patch is enough to solve the
2555         problem for Emacs + getloadavg, and I thought I'd publish it for
2556         feedback before undertaking further, similar fixes in other
2557         modules.
2559         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
2560         because it's not needed for stdlib.h.  It merely substitutes the
2561         value directly into stdlib.h.  We may well need to #define it, or
2562         similar symbols, for other modules, but it's nice to also have an
2563         option to not #define it for applications like Emacs that do not
2564         need it.
2566         * lib/stdlib.in.h (__attribute__): Do not #define.
2567         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
2568         be defined only if the _Exit module is also used.
2569         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
2570         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
2571         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
2572         platforms.
2573         * modules/_Exit (Files): Add m4/attribute.m4.
2574         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
2575         * m4/attribute.m4: New file.
2577 2011-02-12  Bruno Haible  <bruno@clisp.org>
2579         wcsrtombs: Work around bug on native Windows.
2580         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
2581         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
2582         instead of len.
2583         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
2585 2011-02-12  Bruno Haible  <bruno@clisp.org>
2587         mbsrtowcs: Work around bug on native Windows.
2588         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
2589         against mingw bug.
2590         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
2592 2011-02-12  Bruno Haible  <bruno@clisp.org>
2594         Avoid setlocale bugs in tests.
2595         * modules/btowc (Dependencies): Add setlocale.
2596         * modules/c-strcase (Dependencies): Likewise.
2597         * modules/mbmemcasecmp (Dependencies): Likewise.
2598         * modules/mbmemcasecoll (Dependencies): Likewise.
2599         * modules/mbrtowc (Dependencies): Likewise.
2600         * modules/mbscasecmp (Dependencies): Likewise.
2601         * modules/mbscasestr (Dependencies): Likewise.
2602         * modules/mbschr (Dependencies): Likewise.
2603         * modules/mbscspn (Dependencies): Likewise.
2604         * modules/mbsinit (Dependencies): Likewise.
2605         * modules/mbsncasecmp (Dependencies): Likewise.
2606         * modules/mbsnrtowcs (Dependencies): Likewise.
2607         * modules/mbspbrk (Dependencies): Likewise.
2608         * modules/mbspcasecmp (Dependencies): Likewise.
2609         * modules/mbsrchr (Dependencies): Likewise.
2610         * modules/mbsrtowcs (Dependencies): Likewise.
2611         * modules/mbsspn (Dependencies): Likewise.
2612         * modules/mbsstr (Dependencies): Likewise.
2613         * modules/nl_langinfo (Dependencies): Likewise.
2614         * modules/quotearg (Dependencies): Likewise.
2615         * modules/unicase/locale-language (Dependencies): Likewise.
2616         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
2617         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
2618         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
2619         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
2620         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
2621         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
2622         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
2623         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
2624         * modules/vasnprintf-posix (Dependencies): Likewise.
2625         * modules/wcrtomb (Dependencies): Likewise.
2626         * modules/wcsnrtombs (Dependencies): Likewise.
2627         * modules/wcsrtombs (Dependencies): Likewise.
2629 2011-02-12  Bruno Haible  <bruno@clisp.org>
2631         setlocale: Workaround native Windows bug.
2632         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
2633         succeeds but sets LC_CTYPE to "C", report a failure.
2634         * tests/test-setlocale2.sh: New file.
2635         * tests/test-setlocale2.c: New file.
2636         * modules/setlocale-tests (Files): Add the new files.
2637         (Makefile.am): Enable test-setlocale2.sh test.
2638         * doc/posix-functions/setlocale.texi: Mention workaround.
2640 2011-02-11  Bruno Haible  <bruno@clisp.org>
2642         Tests for module 'setlocale'.
2643         * modules/setlocale-tests: New file.
2644         * tests/test-setlocale1.sh: New file.
2645         * tests/test-setlocale1.c: New file.
2647         New module 'setlocale'.
2648         * lib/locale.in.h (setlocale): New declaration.
2649         * lib/setlocale.c: New file, based on
2650         gettext/gettext-runtime/intl/setlocale.c.
2651         * m4/setlocale.m4: New file.
2652         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
2653         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
2654         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
2655         REPLACE_SETLOCALE.
2656         * modules/setlocale: New file.
2657         * tests/test-locale-c++.cc: Test the declaration of setlocale.
2658         * doc/posix-functions/setlocale.texi: Mention the new module.
2660 2011-02-11  Bruno Haible  <bruno@clisp.org>
2662         Prepare for locale dependent tests on mingw.
2663         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
2664         because it has the wrong locale encoding.
2665         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
2666         French_France.1252 instead of "fr".
2667         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
2668         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
2669         because it has the wrong locale encoding.
2670         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
2671         native Windows, try Turkish_Turkey.65001.
2672         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
2673         Chinese_China.54936.
2675         Prepare for locale dependent tests on mingw.
2676         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
2677         differently.
2678         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
2679         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
2680         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
2681         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
2683 2011-02-11  Eric Blake  <eblake@redhat.com>
2685         strptime: avoid compiler warnings
2686         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
2687         compiler warnings about dead code.
2688         Reported by Daniel P. Berrange.
2690 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
2692         doc: update users.txt
2693         * users.txt: Add rcs.
2695 2011-02-10  John W. Eaton  <jwe@gnu.org>
2697         doc: update users.txt
2698         * users.txt: Add octave.
2700 2011-02-10  Jim Meyering  <meyering@redhat.com>
2702         doc: update users.txt
2703         * users.txt: Add iwhd.
2705 2011-02-09  Bruno Haible  <bruno@clisp.org>
2707         gnulib-tool: Make copyright notice adjustment more robust.
2708         * gnulib-tool (func_import): In sed_transform_main_lib_file,
2709         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
2710         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
2711         License".
2712         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
2714 2011-02-06  Bruno Haible  <bruno@clisp.org>
2716         New module 'towctrans'.
2717         * modules/towctrans: New file.
2718         * lib/wctype.in.h (towctrans): New declaration.
2719         * lib/towctrans.c: New file.
2720         * lib/towctrans-impl.h: New file.
2721         * m4/towctrans.m4: New file.
2722         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
2723         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
2724         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
2725         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
2726         * doc/posix-functions/towctrans.texi: Mention the new module.
2728 2011-02-06  Bruno Haible  <bruno@clisp.org>
2730         New module 'wctrans'.
2731         * modules/wctrans: New file.
2732         * lib/wctype.in.h (wctrans): New declaration.
2733         * lib/wctrans.c: New file.
2734         * lib/wctrans-impl.h: New file.
2735         * m4/wctrans.m4: New file.
2736         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
2737         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
2738         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
2739         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
2740         * doc/posix-functions/wctrans.texi: Mention the new module.
2742 2011-02-06  Bruno Haible  <bruno@clisp.org>
2744         New module 'iswctype'.
2745         * modules/iswctype: New file.
2746         * lib/wctype.in.h (iswctype): New declaration.
2747         * lib/iswctype.c: New file.
2748         * lib/iswctype-impl.h: New file.
2749         * m4/iswctype.m4: New file.
2750         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
2751         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
2752         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
2753         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
2754         * doc/posix-functions/iswctype.texi: Mention the new module and the
2755         HP-UX 11.00 problem.
2757 2011-02-06  Bruno Haible  <bruno@clisp.org>
2759         New module 'wctype'.
2760         * modules/wctype: Change to represent the wctype() substitute.
2761         * lib/wctype.in.h (wctype): New declaration.
2762         * lib/wctype.c: New file.
2763         * lib/wctype-impl.h: New file.
2764         * m4/wctype.m4: New file.
2765         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
2766         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
2767         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
2768         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
2769         * doc/posix-functions/wctype.texi: Mention the new module and the
2770         HP-UX 11.00 problem.
2772 2011-02-06  Bruno Haible  <bruno@clisp.org>
2774         wctype-h: Ensure wctype_t and wctrans_t are defined.
2775         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
2776         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
2777         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
2778         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
2779         HAVE_WCTRANS_T.
2780         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
2782 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
2784         flock: fix license typo
2786         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
2787         omitted.
2789 2011-02-08  Bruno Haible  <bruno@clisp.org>
2791         Split large sed scripts, for HP-UX sed.
2792         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
2793         to avoid HP-UX limit of 99 commands, in the near future.
2794         * modules/stdlib (Makefile.am): Likewise.
2795         * modules/unistd (Makefile.am): Likewise.
2796         * modules/wchar (Makefile.am): Likewise.
2797         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
2798         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
2799         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
2801 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
2802             Bruno Haible  <bruno@clisp.org>
2804         stdlib: improve random_r modularization
2805         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
2806         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
2807         you also need the random_r module to get this material right.
2808         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
2809         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
2810         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
2812 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
2814         stdlib: don't depend on stdint
2815         * lib/stdlib.in.h: Don't include <stdint.h> merely because
2816         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
2817         be independent of whether stdint.h is needed.
2818         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
2819         here, instead of ...
2820         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
2821         struct random_data should be using the random_r module, not just
2822         the stdlib module (which wouldn't make sense: what package needs
2823         just struct random_data without also needing random_r?).
2824         * modules/stdlib (Depends-on): Remove stdint.
2826         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
2827         See the thread rooted at
2828         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
2829         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
2830         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
2831         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
2832         __VMS)); previously it was always included (via fcntl--.h).
2833         (getloadavg): Do not use c_strtod.  Instead, approximate it by
2834         hand; this is good enough for load averages.  Also, do not use
2835         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
2836         flags directly if available and don't bother otherwise.  (Packages
2837         that need the extra reliability should use the modules that define
2838         these flags on older platforms that lack them.)
2839         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
2840         fcntl-safer.
2842 2011-02-08  Jim Meyering  <meyering@redhat.com>
2844         di-set.h, ino-map.h: add multiple-inclusion guard
2845         Technically, the guard is required only for ino-map.h, due to its
2846         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
2847         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
2848         * lib/ino-map.h: Likewise.
2850 2011-02-06  Bruno Haible  <bruno@clisp.org>
2852         iswblank: Ensure declaration on glibc systems.
2853         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
2854         * modules/iswblank (Dependencies): Add 'extensions'.
2855         * doc/posix-functions/iswblank.texi: Document the glibc problem.
2857 2011-02-06  Bruno Haible  <bruno@clisp.org>
2859         New module 'iswblank'.
2860         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
2861         * modules/iswblank: New file.
2862         * modules/wctype-h (Files): Remove lib/iswblank.c.
2863         (Makefile.am): Substitute GNULIB_ISWBLANK.
2864         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
2865         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
2866         (gl_WCTYPE_H_DEFAULTS): New macro.
2867         (gl_WCTYPE_H): Require it. Remove iswblank related code.
2868         * modules/iswblank-tests: New file.
2869         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
2870         * tests/test-wctype-h.c (main): Remove iswblank tests.
2871         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
2872         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
2873         of 'wctype-h'.
2874         * NEWS: Mention the change.
2875         * modules/mbchar (Depends-on): Add iswblank.
2877 2011-02-08  Bruno Haible  <bruno@clisp.org>
2879         di-set tests: Refactor.
2880         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
2881         unnecessary includes.
2882         (ASSERT): Remove macro.
2883         (main): Make C90 compliant by avoiding variable declaration after
2884         statement.
2885         * modules/di-set-tests (Files): Add tests/macros.h.
2887 2011-02-08  Bruno Haible  <bruno@clisp.org>
2889         ino-map tests: Refactor.
2890         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
2891         unnecessary includes.
2892         (ASSERT): Remove macro.
2893         (main): Make C90 compliant by avoiding variable declaration after
2894         statement.
2895         * modules/ino-map-tests (Files): Add tests/macros.h.
2897 2011-02-08  Jim Meyering  <meyering@redhat.com>
2899         di-set: add "const" to a cast
2900         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
2901         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
2903 2011-02-06  Bruno Haible  <bruno@clisp.org>
2905         Rename module 'wctype' to 'wctype-h'.
2906         * modules/wctype-h: Renamed from modules/wctype.
2907         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
2908         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
2909         (Files, Depends-on, Makefile.am): Update.
2910         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
2911         (Files, Makefile.am): Update.
2912         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
2913         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
2914         * doc/posix-headers/wctype.texi: Update.
2915         * doc/posix-functions/iswalnum.texi: Update.
2916         * doc/posix-functions/iswalpha.texi: Update.
2917         * doc/posix-functions/iswblank.texi: Update.
2918         * doc/posix-functions/iswcntrl.texi: Update.
2919         * doc/posix-functions/iswdigit.texi: Update.
2920         * doc/posix-functions/iswgraph.texi: Update.
2921         * doc/posix-functions/iswlower.texi: Update.
2922         * doc/posix-functions/iswprint.texi: Update.
2923         * doc/posix-functions/iswpunct.texi: Update.
2924         * doc/posix-functions/iswspace.texi: Update.
2925         * doc/posix-functions/iswupper.texi: Update.
2926         * doc/posix-functions/iswxdigit.texi: Update.
2927         * doc/posix-functions/towlower.texi: Update.
2928         * doc/posix-functions/towupper.texi: Update.
2929         * NEWS: Mention the change.
2930         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
2931         * modules/mbchar (Dependencies): Likewise.
2932         * modules/mbswidth (Dependencies): Likewise.
2933         * modules/quotearg (Dependencies): Likewise.
2934         * modules/regex (Dependencies): Likewise.
2935         * modules/wcscasecmp (Dependencies): Likewise.
2936         * modules/wcsncasecmp (Dependencies): Likewise.
2937         * modules/wcwidth (Dependencies): Likewise.
2939 2011-02-06  Bruno Haible  <bruno@clisp.org>
2941         New module 'wcswidth'.
2942         * modules/wcswidth: New file.
2943         * lib/wchar.in.h (wcswidth): New declaration.
2944         * lib/wcswidth.c: New file.
2945         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
2946         * m4/wcswidth.m4: New file.
2947         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
2948         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
2949         REPLACE_WCSWIDTH.
2950         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
2951         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
2952         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
2953         * doc/posix-functions/wcswidth.texi: Mention the new module.
2955 2011-02-06  Bruno Haible  <bruno@clisp.org>
2957         New module 'wcstok'.
2958         * modules/wcstok: New file.
2959         * lib/wchar.in.h (wcstok): New declaration.
2960         * lib/wcstok.c: New file.
2961         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
2962         * m4/wcstok.m4: New file.
2963         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
2964         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
2965         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
2966         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
2967         * doc/posix-functions/wcstok.texi: Mention the new module.
2969 2011-02-06  Bruno Haible  <bruno@clisp.org>
2971         New module 'wcsstr'.
2972         * modules/wcsstr: New file.
2973         * lib/wchar.in.h (wcsstr): New declaration.
2974         * lib/wcsstr.c: New file.
2975         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
2976         * m4/wcsstr.m4: New file.
2977         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
2978         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
2979         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
2980         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
2981         * doc/posix-functions/wcsstr.texi: Mention the new module.
2983 2011-02-06  Bruno Haible  <bruno@clisp.org>
2985         New module 'wcspbrk'.
2986         * modules/wcspbrk: New file.
2987         * lib/wchar.in.h (wcspbrk): New declaration.
2988         * lib/wcspbrk.c: New file.
2989         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
2990         * m4/wcspbrk.m4: New file.
2991         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
2992         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
2993         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
2994         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
2995         * doc/posix-functions/wcspbrk.texi: Mention the new module.
2997 2011-02-06  Bruno Haible  <bruno@clisp.org>
2999         New module 'wcsspn'.
3000         * modules/wcsspn: New file.
3001         * lib/wchar.in.h (wcsspn): New declaration.
3002         * lib/wcsspn.c: New file.
3003         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
3004         * m4/wcsspn.m4: New file.
3005         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
3006         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
3007         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
3008         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
3009         * doc/posix-functions/wcsspn.texi: Mention the new module.
3011 2011-02-06  Bruno Haible  <bruno@clisp.org>
3013         New module 'wcscspn'.
3014         * modules/wcscspn: New file.
3015         * lib/wchar.in.h (wcscspn): New declaration.
3016         * lib/wcscspn.c: New file.
3017         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
3018         * m4/wcscspn.m4: New file.
3019         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
3020         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
3021         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
3022         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
3023         * doc/posix-functions/wcscspn.texi: Mention the new module.
3025 2011-02-06  Bruno Haible  <bruno@clisp.org>
3027         New module 'wcsrchr'.
3028         * modules/wcsrchr: New file.
3029         * lib/wchar.in.h (wcsrchr): New declaration.
3030         * lib/wcsrchr.c: New file.
3031         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
3032         * m4/wcsrchr.m4: New file.
3033         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
3034         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
3035         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
3036         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
3037         * doc/posix-functions/wcsrchr.texi: Mention the new module.
3039 2011-02-06  Bruno Haible  <bruno@clisp.org>
3041         New module 'wcschr'.
3042         * modules/wcschr: New file.
3043         * lib/wchar.in.h (wcschr): New declaration.
3044         * lib/wcschr.c: New file.
3045         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
3046         * m4/wcschr.m4: New file.
3047         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
3048         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
3049         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
3050         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
3051         * doc/posix-functions/wcschr.texi: Mention the new module.
3053 2011-02-06  Bruno Haible  <bruno@clisp.org>
3055         New module 'wcsdup'.
3056         * modules/wcsdup: New file.
3057         * lib/wchar.in.h (wcsdup): New declaration.
3058         * lib/wcsdup.c: New file.
3059         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
3060         * m4/wcsdup.m4: New file.
3061         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
3062         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
3063         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
3064         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
3065         * doc/posix-functions/wcsdup.texi: Mention the new module.
3067 2011-02-06  Bruno Haible  <bruno@clisp.org>
3069         New module 'wcsxfrm'.
3070         * modules/wcsxfrm: New file.
3071         * lib/wchar.in.h (wcsxfrm): New declaration.
3072         * lib/wcsxfrm.c: New file.
3073         * lib/wcsxfrm-impl.h: New file.
3074         * m4/wcsxfrm.m4: New file.
3075         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
3076         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
3077         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
3078         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
3079         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
3081 2011-02-06  Bruno Haible  <bruno@clisp.org>
3083         New module 'wcscoll'.
3084         * modules/wcscoll: New file.
3085         * lib/wchar.in.h (wcscoll): New declaration.
3086         * lib/wcscoll.c: New file.
3087         * lib/wcscoll-impl.h: New file.
3088         * m4/wcscoll.m4: New file.
3089         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
3090         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
3091         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
3092         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
3093         * doc/posix-functions/wcscoll.texi: Mention the new module.
3095 2011-02-06  Bruno Haible  <bruno@clisp.org>
3097         New module 'wcsncasecmp'.
3098         * modules/wcsncasecmp: New file.
3099         * lib/wchar.in.h (wcsncasecmp): New declaration.
3100         * lib/wcsncasecmp.c: New file.
3101         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
3102         * m4/wcsncasecmp.m4: New file.
3103         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
3104         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
3105         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
3106         HAVE_WCSNCASECMP.
3107         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
3108         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
3110 2011-02-06  Bruno Haible  <bruno@clisp.org>
3112         New module 'wcscasecmp'.
3113         * modules/wcscasecmp: New file.
3114         * lib/wchar.in.h (wcscasecmp): New declaration.
3115         * lib/wcscasecmp.c: New file.
3116         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
3117         * m4/wcscasecmp.m4: New file.
3118         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
3119         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
3120         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
3121         HAVE_WCSCASECMP.
3122         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
3123         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
3125 2011-02-05  Bruno Haible  <bruno@clisp.org>
3127         New module 'wcsncmp'.
3128         * modules/wcsncmp: New file.
3129         * lib/wchar.in.h (wcsncmp): New declaration.
3130         * lib/wcsncmp.c: New file.
3131         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
3132         * m4/wcsncmp.m4: New file.
3133         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
3134         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
3135         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
3136         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
3137         * doc/posix-functions/wcsncmp.texi: Mention the new module.
3139 2011-02-05  Bruno Haible  <bruno@clisp.org>
3141         New module 'wcscmp'.
3142         * modules/wcscmp: New file.
3143         * lib/wchar.in.h (wcscmp): New declaration.
3144         * lib/wcscmp.c: New file.
3145         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
3146         * m4/wcscmp.m4: New file.
3147         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
3148         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
3149         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
3150         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
3151         * doc/posix-functions/wcscmp.texi: Mention the new module.
3153 2011-02-05  Bruno Haible  <bruno@clisp.org>
3155         New module 'wcsncat'.
3156         * modules/wcsncat: New file.
3157         * lib/wchar.in.h (wcsncat): New declaration.
3158         * lib/wcsncat.c: New file.
3159         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
3160         * m4/wcsncat.m4: New file.
3161         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
3162         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
3163         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
3164         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
3165         * doc/posix-functions/wcsncat.texi: Mention the new module.
3167 2011-02-05  Bruno Haible  <bruno@clisp.org>
3169         New module 'wcscat'.
3170         * modules/wcscat: New file.
3171         * lib/wchar.in.h (wcscat): New declaration.
3172         * lib/wcscat.c: New file.
3173         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
3174         * m4/wcscat.m4: New file.
3175         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
3176         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
3177         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
3178         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
3179         * doc/posix-functions/wcscat.texi: Mention the new module.
3181 2011-02-05  Bruno Haible  <bruno@clisp.org>
3183         New module 'wcpncpy'.
3184         * modules/wcpncpy: New file.
3185         * lib/wchar.in.h (wcpncpy): New declaration.
3186         * lib/wcpncpy.c: New file.
3187         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
3188         * m4/wcpncpy.m4: New file.
3189         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
3190         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
3191         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
3192         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
3193         * doc/posix-functions/wcpncpy.texi: Mention the new module.
3195 2011-02-05  Bruno Haible  <bruno@clisp.org>
3197         New module 'wcsncpy'.
3198         * modules/wcsncpy: New file.
3199         * lib/wchar.in.h (wcsncpy): New declaration.
3200         * lib/wcsncpy.c: New file.
3201         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
3202         * m4/wcsncpy.m4: New file.
3203         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
3204         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
3205         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
3206         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
3207         * doc/posix-functions/wcsncpy.texi: Mention the new module.
3209 2011-02-05  Bruno Haible  <bruno@clisp.org>
3211         New module 'wcpcpy'.
3212         * modules/wcpcpy: New file.
3213         * lib/wchar.in.h (wcpcpy): New declaration.
3214         * lib/wcpcpy.c: New file.
3215         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
3216         * m4/wcpcpy.m4: New file.
3217         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
3218         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
3219         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
3220         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
3221         * doc/posix-functions/wcpcpy.texi: Mention the new module.
3223 2011-02-05  Bruno Haible  <bruno@clisp.org>
3225         New module 'wcscpy'.
3226         * modules/wcscpy: New file.
3227         * lib/wchar.in.h (wcscpy): New declaration.
3228         * lib/wcscpy.c: New file.
3229         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
3230         * m4/wcscpy.m4: New file.
3231         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
3232         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
3233         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
3234         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
3235         * doc/posix-functions/wcscpy.texi: Mention the new module.
3237 2011-02-05  Bruno Haible  <bruno@clisp.org>
3239         New module 'wcsnlen'.
3240         * modules/wcsnlen: New file.
3241         * lib/wchar.in.h (wcsnlen): New declaration.
3242         * lib/wcsnlen.c: New file.
3243         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
3244         * m4/wcsnlen.m4: New file.
3245         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
3246         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
3247         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
3248         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
3249         * doc/posix-functions/wcsnlen.texi: Mention the new module.
3251 2011-02-05  Bruno Haible  <bruno@clisp.org>
3253         New module 'wcslen'.
3254         * modules/wcslen: New file.
3255         * lib/wchar.in.h (wcslen): New declaration.
3256         * lib/wcslen.c: New file.
3257         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
3258         * m4/wcslen.m4: New file.
3259         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
3260         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
3261         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
3262         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
3263         * doc/posix-functions/wcslen.texi: Mention the new module.
3265 2011-02-05  Bruno Haible  <bruno@clisp.org>
3267         New module 'wmemset'.
3268         * modules/wmemset: New file.
3269         * lib/wchar.in.h (wmemset): New declaration.
3270         * lib/wmemset.c: New file.
3271         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
3272         * m4/wmemset.m4: New file.
3273         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
3274         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
3275         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
3276         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
3277         * doc/posix-functions/wmemset.texi: Mention the new module.
3279 2011-02-05  Bruno Haible  <bruno@clisp.org>
3281         New module 'wmemmove'.
3282         * modules/wmemmove: New file.
3283         * lib/wchar.in.h (wmemmove): New declaration.
3284         * lib/wmemmove.c: New file.
3285         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
3286         * m4/wmemmove.m4: New file.
3287         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
3288         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
3289         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
3290         HAVE_WMEMMOVE.
3291         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
3292         * doc/posix-functions/wmemmove.texi: Mention the new module.
3294 2011-02-05  Bruno Haible  <bruno@clisp.org>
3296         New module 'wmemcpy'.
3297         * modules/wmemcpy: New file.
3298         * lib/wchar.in.h (wmemcpy): New declaration.
3299         * lib/wmemcpy.c: New file.
3300         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
3301         * m4/wmemcpy.m4: New file.
3302         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
3303         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
3304         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
3305         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
3306         * doc/posix-functions/wmemcpy.texi: Mention the new module.
3308 2011-02-05  Bruno Haible  <bruno@clisp.org>
3310         New module 'wmemcmp'.
3311         * modules/wmemcmp: New file.
3312         * lib/wchar.in.h (wmemcmp): New declaration.
3313         * lib/wmemcmp.c: New file.
3314         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
3315         * m4/wmemcmp.m4: New file.
3316         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
3317         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
3318         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
3319         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
3320         * doc/posix-functions/wmemcmp.texi: Mention the new module.
3322 2011-02-07  Jim Meyering  <meyering@redhat.com>
3324         di-set, ino-map: new modules, from coreutils
3325         * lib/di-set.c: New file.
3326         * lib/di-set.h: Likewise.
3327         * lib/ino-map.c: Likewise.
3328         * lib/ino-map.h: Likewise.
3329         * modules/di-set: Likewise.
3330         * modules/di-set-tests: Likewise.
3331         * modules/ino-map: Likewise.
3332         * modules/ino-map-tests: Likewise.
3333         * tests/test-di-set.c: Likewise.
3334         * tests/test-ino-map.c: Likewise.
3336 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
3338         getloadavg: merge minor changes from Emacs
3340         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
3341         (getloadavg): Use memset, not bzero.
3343         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
3344         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
3345         clash (bug#86).
3347 2010-11-14  Bruno Haible  <bruno@clisp.org>
3349         Allow multiple gnulib generated replacements to coexist.
3350         * lib/getopt.in.h (struct option): Avoid identical redefinition.
3351         * lib/inttypes.in.h (imaxdiv_t): Likewise.
3352         * lib/langinfo.in.h (nl_item): Likewise.
3353         * lib/math.in.h (_NaN, NAN): Likewise.
3354         * lib/netdb.in.h (struct addrinfo): Likewise.
3355         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
3356         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
3357         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
3358         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
3359         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
3360         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
3361         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
3362         pthread_mutexattr_init, pthread_mutexattr_settype,
3363         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
3364         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
3365         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
3366         pthread_spin_trylock, pthread_spin_unlock): Likewise.
3367         * lib/sched.in.h (struct sched_param): Likewise.
3368         * lib/se-selinux.in.h (security_class_t, security_context_t,
3369         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
3370         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
3371         lsetfilecon, fsetfilecon, security_check_context,
3372         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
3373         Likewise.
3374         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
3375         Likewise.
3376         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
3377         _gl_function_taking_int_returning_void_t, union sigval,
3378         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
3379         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
3380         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
3381         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
3382         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
3383         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
3384         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
3385         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
3386         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
3387         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
3388         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
3389         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
3390         socklen_t, rpl_fd_isset): Likewise.
3391         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
3392         * lib/sys_time.in.h (struct timeval): Likewise.
3393         * lib/sys_times.in.h (struct tms): Likewise.
3394         * lib/sys_utsname.in.h (struct utsname):
3395         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
3396         * lib/unistd.in.h (getpagesize): Likewise.
3397         * lib/wchar.in.h (mbstate_t): Likewise.
3398         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
3399         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
3400         towlower, towupper): Likewise.
3401         Reported by Sam Steingold <sds@gnu.org>.
3403 2011-02-05  Eric Blake  <eblake@redhat.com>
3405         unsetenv: work around Haiku issues
3406         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
3407         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
3409 2010-12-30  Bruce Korb  <bkorb@gnu.org>
3411         libposix: avoid calling error() within libposix
3412         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
3413         is defined.
3415 2011-02-05  Eric Blake  <eblake@redhat.com>
3417         strerror_r-posix: port to cygwin
3418         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
3419         implementation.
3420         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
3421         * tests/test-strerror_r.c (main): Fix test.
3422         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
3423         issue.
3425 2011-02-05  Bruno Haible  <bruno@clisp.org>
3427         New module 'wmemchr'.
3428         * modules/wmemchr: New file.
3429         * lib/wchar.in.h (wmemchr): New declaration.
3430         * lib/wmemchr.c: New file.
3431         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
3432         * m4/wmemchr.m4: New file.
3433         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
3434         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
3435         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
3436         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
3437         * doc/posix-functions/wmemchr.texi: Mention the new module.
3439 2011-02-04  Eric Blake  <eblake@redhat.com>
3441         fdopendir: detect FreeBSD bug
3442         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
3443         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
3445 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
3447         stdbool: do not define HAVE_STDBOOL_H
3448         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
3449         AC_HEADER_STDBOOL.  All uses changed.  Do not define
3450         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
3451         imported from the latest Autoconf git.  It was motivated by Emacs,
3452         which uses gnulib but does not need HAVE_STDBOOL_H.
3454 2011-02-04  Bruno Haible  <bruno@clisp.org>
3456         wcsnrtombs: Prepare for new module wwcsnrtombs.
3457         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
3458         * lib/wcsnrtombs.c: Include it.
3459         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
3461         wcsrtombs: Prepare for new module wwcsrtombs.
3462         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
3463         * lib/wcsrtombs.c: Include it.
3464         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
3466         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
3467         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
3468         * lib/mbsnrtowcs.c: Include it.
3469         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
3471         mbsrtowcs: Prepare for new module mbsrtowwcs.
3472         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
3473         * lib/mbsrtowcs.c: Include it.
3474         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
3476 2011-02-04  Bruno Haible  <bruno@clisp.org>
3478         vasnprintf: Reduce use of malloc for small format strings.
3479         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
3480         (arguments): Add room for the first 7 arguments.
3481         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
3482         (char_directives, u8_directives, u16_directives, u32_directives): Add
3483         room for the first 7 directives.
3484         * lib/printf-parse.c: Include <string.h>.
3485         (PRINTF_PARSE): Change memory handling code so that it uses the first
3486         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
3487         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
3488         Reported by Pádraig Brady <P@draigbrady.com>.
3490 2011-01-31  Eric Blake  <eblake@redhat.com>
3492         dup2: work around Haiku bug
3493         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
3494         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
3495         * doc/posix-functions/dup2.texi (dup2): Document the bug.
3496         * tests/test-dup2.c (main): Enhance test.
3498 2011-01-31  Simon Josefsson  <simon@josefsson.org>
3500         doc: off_t is not available in eglibc 2.11.2 stdio.h.
3501         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
3502         declared by eglibc 2.11.2.
3503         * lib/stdio.in.h: Likewise.
3505 2011-01-31  Eric Blake  <eblake@redhat.com>
3507         ignore-value: add missing test dependency
3508         * tests/test-ignore-value.c: Revert previous change; stdio.h
3509         provides off_t.
3510         * modules/ignore-value-tests (Depends-on): Add missing dependency.
3512 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
3514         mktime: clarify long_int width checking
3515         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
3516         the top level, to make it clearer that the assumption about
3517         long_int width is being checked.  See
3518         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
3520 2011-01-30  Simon Josefsson  <simon@josefsson.org>
3522         ignore-value: Fix self-test.
3523         * tests/test-ignore-value.c: Include sys/types.h for off_t.
3525 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
3527         TYPE_MAXIMUM: avoid theoretically undefined behavior
3528         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
3529         negative number, which the C Standard says has undefined behavior.
3530         In practice this is not a problem, but might as well do it by the book.
3531         Reported by Rich Felker and Eric Blake; see
3532         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
3533         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
3534         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
3535         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
3536         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
3537         * m4/stdint.m4 (gl_STDINT_H): Likewise.
3538         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
3540         mktime: #undef mktime before #defining it
3541         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
3543         mktime: systematically normalize tm_isdst comparisons
3544         * lib/mktime.c (isdst_differ): New function.
3545         (__mktime_internal): Use it systematically for all isdst comparisons.
3546         This completes the fix for libc BZ #6723, and removes the need for
3547         normalizing tm_isdst.  See
3548         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
3549         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
3551         mktime: fix some integer overflow issues and sidestep the rest
3553         This was prompted by a bug report by Benjamin Lindner for MinGW
3554         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
3555         His bug is due to signed integer overflow (0 - INT_MIN), and I
3556         I scanned through mktime.c looking for other integer overflow
3557         problems, fixing all the bugs I found.
3559         Although the C Standard says the resulting code is still not safe
3560         in the presence of integer overflow, in practice it should be good
3561         enough for all real-world two's-complement implementations, except
3562         for debugging environments that deliberately trap on integer
3563         overflow (e.g., gcc -ftrapv).
3565         * lib/mktime.c (WRAPV): New macro.
3566         (SHR): Also check that long_int and time_t shift right in the
3567         usual way, before using the fast-but-unportable method.
3568         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
3569         used.  The code already assumed two's complement, so there's
3570         no need to test for alternatives.  All uses removed.
3571         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
3572         the C standard.  Problem reported by Rich Felker in
3573         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
3574         (twos_complement_arithmetic): Also check long_int and time_t.
3575         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
3576         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
3577         (__mktime_internal): Avoid integer overflow with unary subtraction
3578         in two instances where -1 - X is an adequate replacement for -X,
3579         since the calculations are approximate.
3581 2011-01-29  Eric Blake  <eblake@redhat.com>
3583         mktime: avoid infinite loop
3584         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
3585         type; behavior is still undefined but portable to all known targets.
3586         Reported by Rich Felker.
3588 2011-01-29  Simon Josefsson  <simon@josefsson.org>
3590         rename, unlink, same-inode: Relicense.
3591         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
3592         * modules/unlink (License): Likewise.
3593         * modules/same-inode (License): Likewise.
3595 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
3597         mktime: avoid problems on NetBSD 5 / i386
3598         * lib/mktime.c (long_int): New type.  This works around a problem
3599         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
3600         but time_t is 64 bits, and where I expect the existing code is
3601         wrong in some cases.
3602         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
3603         (ydhms_diff): Bring back the compile-time check for wide-enough
3604         year and yday.
3606         mktime: fix misspelling in comment
3607         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
3608         This merges all recent glibc changes of importance.
3610 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3612         move-if-change: cope with concurrent mv of identical file.
3613         * build-aux/move-if-change (CMPPROG): Accept environment
3614         variable as an override for `cmp'.
3615         (usage): Document CMPPROG.
3616         Adjust comparison to drop stdout.  Cope with failure of mv if
3617         the target file exists and is identical to the source, for
3618         parallel builds.
3619         Report from H.J. Lu against binutils in PR binutils/12283.
3621 2011-01-28  Bruce Korb  <bkorb@gnu.org>
3623         * users.txt: Mention sharutils.
3625 2011-01-28  Simon Josefsson  <simon@josefsson.org>
3627         * users.txt: Mention OATH Toolkit.
3629 2011-01-27  Bruno Haible  <bruno@clisp.org>
3631         Prepare for supporting FreeBSD 10.
3632         * build-aux/config.libpath: Remove handling of freebsd1*.
3634 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
3636         Prepare for supporting FreeBSD 10.
3637         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
3638         match FreeBSD 10.0.
3640 2011-01-27  Bruno Haible  <bruno@clisp.org>
3642         vma-iter, get-rusage-as: Add OpenBSD support.
3643         * modules/vma-iter (configure.ac): Test for mquery.
3644         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
3645         * lib/vma-iter.c: Include <sys/mman.h>.
3646         (vma_iterate): Add an implementation based on mquery().
3647         * lib/resource-ext.h (get_rusage_as): Update comments.
3648         * lib/get-rusage-as.c: Likewise.
3649         * lib/get-rusage-data.c: Likewise.
3651 2011-01-26  Karl Berry  <karl@gnu.org>
3653         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
3654         variables to make it easier to override the makeinfo program used.
3656 2011-01-26  Eric Blake  <eblake@redhat.com>
3658         fcntl: work around Haiku F_DUPFD bugs
3659         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
3660         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
3661         cloexec bit on duplication.
3662         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
3664 2011-01-26  Bruno Haible  <bruno@clisp.org>
3666         Enable memory leak tests on AIX.
3667         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
3668         * tests/test-fprintf-posix3.c (main): Likewise.
3670 2011-01-26  Bruno Haible  <bruno@clisp.org>
3672         Tests for module 'get-rusage-data'.
3673         * modules/get-rusage-data-tests: New file.
3674         * tests/test-get-rusage-data.c: New file.
3676         New module 'get-rusage-data'.
3677         * lib/resource-ext.h (get_rusage_data): New declaration.
3678         * lib/get-rusage-data.c: New file.
3679         * modules/get-rusage-data: New file.
3681 2011-01-25  Bruno Haible  <bruno@clisp.org>
3683         get-rusage-as: Allow for easier testing.
3684         * lib/resource-ext.h (get_rusage_as): Add comment.
3685         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
3686         (main): New function for interactive testing.
3688 2011-01-25  Bruno Haible  <bruno@clisp.org>
3690         vma-iter: Treat Haiku like BeOS.
3691         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
3692         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
3694 2011-01-25  Eric Blake  <eblake@redhat.com>
3696         c-stack: fix regression on cygwin when libsigsegv is present
3697         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
3699 2011-01-24  Bruno Haible  <bruno@clisp.org>
3701         vma-iter: Avoid empty intervals.
3702         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
3703         on an empty interval.
3705 2011-01-24  Jim Meyering  <meyering@redhat.com>
3707         u64: remove unnecessary #include
3708         * lib/u64.h: Don't include <stddef.h>.  It was not used.
3710 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
3712         Allow the user to avoid the HAVE_RAW_DECL_* macros.
3713         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
3715 2011-01-23  Bruno Haible  <bruno@clisp.org>
3717         New module 'vma-iter'.
3718         * lib/vma-iter.h: New file.
3719         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
3720         * modules/vma-iter: New file.
3721         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
3722         for get_rusage_as_via_iterator.
3723         (vma_iterate_callback): New function.
3724         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
3725         * modules/get-rusage-as (Depends-on): Add vma-iter.
3727 2011-01-23  Bruno Haible  <bruno@clisp.org>
3729         uninorm: Tweak includes.
3730         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
3731         Reported by Jim Meyering.
3733 2011-01-23  Bruno Haible  <bruno@clisp.org>
3735         get-rusage-as: Improve on NetBSD.
3736         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
3737         /proc, like on FreeBSD.
3739 2011-01-23  Jim Meyering  <meyering@redhat.com>
3741         xreadlink.h: remove unnecessary #include
3742         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
3744         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
3745         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
3747 2011-01-23  Bruno Haible  <bruno@clisp.org>
3749         get-rusage-as: Fix bug.
3750         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
3751         original limit when aborting the first loop.
3753 2011-01-23  Bruno Haible  <bruno@clisp.org>
3755         wctype: Ensure valid C syntax.
3756         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
3757         unconditionally, instead of gl_NEXT_HEADERS conditionally.
3759 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
3761         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
3762         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
3763         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
3764         as they are needed only for configure's test case.
3765         This removes two unnecessary symbols from config.h.
3767         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
3768         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
3769         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
3770         AC_CHECK_HEADERS_ONCE on a header that we also invoke
3771         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
3772         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
3773         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
3774         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
3775         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
3776         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
3777         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
3778         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
3779         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
3780         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
3781         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
3782         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
3783         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
3784         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
3786 2011-01-21  Eric Blake  <eblake@redhat.com>
3788         maintainer-makefile: work with older git for submodule check
3789         * top/maint.mk (public-submodule-commit): Rewrite to avoid
3790         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
3791         Reported by Matthias Bolte.
3793         bootstrap: minor portability fixes
3794         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
3795         (usage): Omit leading capital and trailing . on help phrases, per
3796         GNU Coding Standards.
3797         (check_versions, top level): Prefix messages with script name.
3799 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
3801         bootstrap: support --no-git option
3802         * build-aux/bootstrap: Add --no-git option, to be used when
3803         --gnulib-srcdir points to the exact desired checkout.
3805 2011-01-21  Eric Blake  <eblake@redhat.com>
3807         strerror_r-posix: work with glibc 2.13
3808         * lib/strerror_r.c (strerror_r): Fix return type.
3810 2011-01-21  Pádraig Brady  <P@draigBrady.com>
3811             Bruno Haible  <bruno@clisp.org>
3813         uN_strstr: New unit tests.
3814         * modules/unistr/u8-strstr-tests: New file.
3815         * modules/unistr/u16-strstr-tests: New file.
3816         * modules/unistr/u32-strstr-tests: New file.
3817         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
3818         * tests/unistr/test-u8-strstr.c: New file.
3819         * tests/unistr/test-u16-strstr.c: New file.
3820         * tests/unistr/test-u32-strstr.c: New file.
3822 2011-01-21  Pádraig Brady  <P@draigBrady.com>
3823             Bruno Haible  <bruno@clisp.org>
3825         Make uN_strstr functions O(n) worst-case.
3826         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
3827         16-bit and 32-bit unit cases, use the unibyte algorithm from
3828         lib/mbsstr.c.
3829         * lib/unistr/u8-strstr.c: Include <string.h>.
3830         (UNIT_IS_UINT8_T): New macro.
3831         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
3832         (U_STRLEN, U_STRNLEN): New macros.
3833         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
3834         (U_STRLEN, U_STRNLEN): New macros.
3835         * modules/unistr/u8-strstr (Depends-on): Add strstr.
3836         (configure.ac): Update required libunistring version.
3837         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
3838         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
3839         malloca.
3840         (configure.ac): Update required libunistring version.
3841         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
3842         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
3843         malloca.
3844         (configure.ac): Update required libunistring version.
3846 2011-01-21  Pádraig Brady  <P@draigBrady.com>
3847             Bruno Haible  <bruno@clisp.org>
3849         Prepare for faster uN_strstr functions.
3850         * lib/str-kmp.h: Support definable UNITs.
3851         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
3852         needle_len argument.
3853         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
3854         * lib/mbscasestr.c (mbscasestr): Likewise.
3856 2011-01-21  Pádraig Brady <P@draigBrady.com>
3858         malloca-tests: make faster by unsetting MALLOC_PERTURB_
3859         * tests/test-malloca.c (main): Unset the environment variable
3860         to greatly speed up the test.
3861         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
3862         * modules/malloca-tests: Depend on unsetenv.
3864 2011-01-21  Pádraig Brady <P@draigBrady.com>
3866         ignore-value: remove stdint dependency
3867         * lib/ignore-value.h: Remove <stdint.h>
3868         * modules/ignore-value: Remove stdint dependency.
3870 2011-01-21  Jim Meyering  <meyering@redhat.com>
3872         maint.mk: adjust variable name to be consistent with other gl_ vars
3873         * top/maint.mk (gl_public_submodule_commit): Rename the variable
3874         to be lower case.
3876 2011-01-20  Jim Meyering  <meyering@redhat.com>
3878         maint.mk: make "check" depend on public-submodule-commit by default
3879         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
3881 2011-01-20  Bruno Haible  <bruno@clisp.org>
3883         mbfile, mbiter: Complete change from 2008-12-21.
3884         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
3885         * m4/mbiter.m4 (gl_MBITER): Likewise.
3887 2011-01-20  Jim Meyering  <meyering@redhat.com>
3889         init.sh: insert space between each function name and "()"
3890         * tests/init.sh: Make it a little easier to see that a function's
3891         name is "warn_", and not "warn" when looking at the first part of
3892         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
3894 2011-01-20  Jim Meyering  <meyering@redhat.com>
3896         mountlist: clean up code formatting
3897         * lib/mountlist.c (read_file_system_list): Split a long line,
3898         correct bracing style, use NULL in place of "(struct statfs *)0",
3899         don't parenthesize return value, add spaces around "=" and after
3900         ";-in-for-stmt".
3902 2011-01-14  Markus Duft <mduft@gentoo.org>
3904         mountlist: add support for Interix
3905         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
3906         Apply statvfs to all entries of /dev/fs.
3907         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
3908         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
3910 2011-01-20  Jim Meyering  <meyering@redhat.com>
3912         maint.mk: improve the public-submodule-commit rule
3913         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
3914         to suppress printing of its commands... unless V=1.
3915         Add git submodule's --quiet option to suppress printing of e.g.,
3916         "Entering gnulib" output.
3917         "cd" into $(srcdir) before running git submodule.
3919 2011-01-20  Bruno Haible  <bruno@clisp.org>
3921         include_next: Fix bug introduced on 2011-01-18.
3922         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
3923         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
3924         ac_cv_header_... variable if the second argument is not 'check'.
3925         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
3926         gl_NEXT_HEADERS_INTERNAL.
3928 2011-01-20  Bruno Haible  <bruno@clisp.org>
3930         Allow the user to avoid the GNULIB_TEST_* macros.
3931         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
3932         Suggested by Paul Eggert.
3934 2011-01-14  Jim Meyering  <meyering@redhat.com>
3936         bootstrap: avoid failure when there is no .gitmodules file
3937         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
3938         has been assigned to, even when its value is the empty string.
3939         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
3940         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
3941         Reported by John W. Eaton <jwe@gnu.org>.
3943 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
3945         assume <ctype.h>, ..., <time.h> exist
3946         For years gnulib has been assuming the existence of the headers
3947         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
3948         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
3949         them, since they don't appear to be needed.
3950         * README (Portability guidelines): Document this.
3951         * lib/flock.c: Assume <fcntl.h> exists.
3952         * lib/regex_internal.h: Assume <locale.h> exists.
3953         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
3954         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
3955         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
3956         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
3957         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
3958         * m4/regex.m4 (gl_REGEX): Likewise.
3959         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
3960         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
3961         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
3962         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
3963         * tests/test-argp.c: Likewise.
3964         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
3966         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
3967         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
3968         AA_APPLE_UNIVERSAL_BUILD.  See
3969         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
3970         * NEWS: Document this.
3972 2011-01-19  Eric Blake  <eblake@redhat.com>
3974         c-stack: assume stack overflow if SA_SIGINFO unsupported
3975         * lib/c-stack.c (SIGACTION_WORKS): Rename...
3976         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
3977         sigaction will work.
3978         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
3979         behavior match Linux.
3980         * tests/test-c-stack.c (main): Prefer NULL for pointers.
3982         stdbool-tests: accomodate Haiku
3983         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
3985         binary-io: fix O_TEXT on Haiku
3986         * modules/binary-io (Depends-on): Add fcntl-h.
3987         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
3988         than blindly undefining O_TEXT.
3989         Reported by Scott McCreary.
3991 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
3993         include_next: do not check for standard headers like stddef.h
3995         I found this problem when modifying Emacs to use gnulib.
3996         I noticed that it added HAVE_STDDEF_H to config.h, even though
3997         gnulib always assumes <stddef.h> exists as per README and this
3998         symbol is unnecessary.
3999         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
4000         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
4001         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
4002         faster for headers like stddef.h that are known to exist.
4003         (gl_CHECK_NEXT_HEADERS): Use it.
4004         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
4005         rather than gl_CHECK_NEXT_HEADERS.
4006         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
4007         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
4009 2011-01-18  Eric Blake  <eblake@redhat.com>
4011         ansi-c++-opt: skip C++ dependency style if C++ is unused
4012         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
4013         tests when we know C++ compilation is not desired.
4014         Reported by Scott McCreary.
4016 2011-01-18  Bruno Haible  <bruno@clisp.org>
4018         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
4019         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
4020         (main): Perform test also when getrlimit and setrlimit don't exist or
4021         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
4022         limiting the address space size using setrlimit, compare the address
4023         space size before and after the the test.
4024         * tests/test-dprintf-posix2.c: Likewise.
4025         * tests/test-fprintf-posix3.sh: Update skip messages.
4026         * tests/test-dprintf-posix2.sh: Likewise.
4027         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
4028         * modules/dprintf-posix-tests (Depends-on): Likewise.
4029         Reported by Bruce Korb <bkorb@gnu.org> and
4030         Gary V. Vaughan <gary@gnu.org>.
4032 2011-01-18  Bruno Haible  <bruno@clisp.org>
4034         get-rusage-as: Improvement for Cygwin.
4035         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
4036         areas that are merely reserved.
4038 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
4040         strftime: remove dependencies on multibyte modules
4042         strftime depended on mbrlen, mbsinit, and wchar, but these modules
4043         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
4044         only if __osf__ is defined, and I suspect OSF doesn't need these
4045         other modules.  If my guess is wrong, we'll need to come up with a
4046         variant of strftime that doesn't need the multibyte modules.
4048         I discovered this problem when attempting modify Emacs to use the
4049         strftime module.  With the previous gnulib, this caused Emacs to
4050         need 31 new files, ranging from lib/config.charset to
4051         m4/wint_t.m4.  This was overkill and I expect would be offputting
4052         to the Emacs maintainers.  After this change, only 6 new files are
4053         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
4054         stdbool.m4, and tm_gmtoff.m4.
4056         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
4057         Suggested by Bruno Haible in
4058         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
4059         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
4060         and do not check for wchar.h.
4061         * modules/strftime (Files): Remove m4/mbstate_t.m4.
4062         (Depends-on): Remove mbrlen, mbsinit, wchar.
4064 2011-01-18  Bruno Haible  <bruno@clisp.org>
4066         Tests for module 'get-rusage-as'.
4067         * modules/get-rusage-as-tests: New file.
4068         * tests/test-get-rusage-as.c: New file.
4070         New module 'get-rusage-as'.
4071         * modules/get-rusage-as: New file.
4072         * lib/resource-ext.h: New file.
4073         * lib/get-rusage-as.c: New file.
4075 2011-01-17  Eric Blake  <eblake@redhat.com>
4077         sigaction: relax license from LGPLv3+ to LGPLv2+
4078         * modules/sigaction (License): Relax to LGPLv2+.
4080 2011-01-14  Bruno Haible  <bruno@clisp.org>
4082         filemode: Make function declarations usable in C++ mode.
4083         * lib/filemode.h: Enclose function declarations in extern "C" block.
4084         Reported by John W. Eaton <jwe@gnu.org>.
4086 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
4088         save-cwd: no longer include "xgetcwd.h"
4089         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
4090         This avoids a compilation failure in projects that use save-cwd
4091         without also using the xgetcwd module.
4093 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
4095         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
4096         This is so that a program like Emacs, which needs only dtoastr,
4097         does not have to bother with distributing and compiling ftoastr
4098         and ldtoastr.
4099         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
4100         * modules/dtoastr, modules/ldtoastr: New files.
4101         * modules/ftoastr: Now works just for 'float'.
4102         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
4103         (Makefile.am): Remove ftoastr.h (not needed and no effect),
4104         dtoastr.c, ldtoastr.c.
4106 2011-01-11  Jim Meyering  <meyering@redhat.com>
4108         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
4109         There is no need to work around the lack of the fchdir function,
4110         since gnulib can now provide a replacement when required.
4111         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
4112         * modules/save-cwd (Depends-on): Add fchdir.
4114 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
4116         openat, save-cwd: avoid xmalloc
4118         This removes a direct (but undocumented) dependency of openat on
4119         xalloc, along with an indirect dependency via save-cwd.  It also
4120         removes a dependency of save-cwd on xgetcwd, and thereby
4121         indirectly on xalloc.  This change causes the openat substitute
4122         to fall back on save_cwd when memory is tight, and for save_cwd to
4123         fail instead of dying when memory is tight, but that's good enough.
4124         Problem and initial idea for fix reported by Bastien Roucaries in
4125         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
4127         * lib/openat-proc.c: Include stdlib.h (for malloc), not
4128         xalloc.h (for xmalloc).
4129         (openat_proc_name): Use malloc, not xmalloc.
4130         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
4131         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
4133         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
4134         This avoids heap allocation for file names whose lengths are in
4135         the range 512..1023, with the upper bound increasing to at most
4136         4031 depending on the platform's PATH_MAX.  (We do not want
4137         pathmax.h here as it might supply a non-constant PATH_MAX.)
4138         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
4139         Perhaps they should be moved to malloca.h?
4140         (OPENAT_BUFFER_SIZE): Use them.
4142 2011-01-10  Bruno Haible  <bruno@clisp.org>
4144         doc: Update users.txt.
4145         * users.txt: Add recutils.
4147 2011-01-09  Karl Berry  <karl@gnu.org>
4149         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
4151         * doc/configmake.texi: New file.
4152         * doc/gnulib.texi: Include it.
4153         * modules/configmake: Move documentation from here.
4155 2011-01-09  Bruno Haible  <bruno@clisp.org>
4157         Update to Unicode 6.0.0.
4158         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
4159         (get_lbp): Update for Unicode 6.0.0.
4160         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
4161         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
4162         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
4163         U+11001, U+11038..U+11046. Remove U+06DE.
4164         (uc_width): Fix bounds of planes.
4165         * tests/uniwidth/test-uc_width2.sh: Same updates as in
4166         lib/uniwidth/width.c.
4167         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
4168         trailing whitespace removed.
4169         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
4170         without comments, but with the original copyright notice.
4171         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
4172         * lib/unicase/ignorable.h: Likewise.
4173         * lib/unicase/tocasefold.h: Likewise.
4174         * lib/unicase/tolower.h: Likewise.
4175         * lib/unicase/totitle.h: Likewise.
4176         * lib/unicase/toupper.h: Likewise.
4177         * lib/unictype/bidi_of.h: Likewise.
4178         * lib/unictype/blocks.h: Likewise.
4179         * lib/unictype/categ_C.h: Likewise.
4180         * lib/unictype/categ_Cn.h: Likewise.
4181         * lib/unictype/categ_L.h: Likewise.
4182         * lib/unictype/categ_Ll.h: Likewise.
4183         * lib/unictype/categ_Lm.h: Likewise.
4184         * lib/unictype/categ_Lo.h: Likewise.
4185         * lib/unictype/categ_Lu.h: Likewise.
4186         * lib/unictype/categ_M.h: Likewise.
4187         * lib/unictype/categ_Mc.h: Likewise.
4188         * lib/unictype/categ_Me.h: Likewise.
4189         * lib/unictype/categ_Mn.h: Likewise.
4190         * lib/unictype/categ_N.h: Likewise.
4191         * lib/unictype/categ_Nd.h: Likewise.
4192         * lib/unictype/categ_No.h: Likewise.
4193         * lib/unictype/categ_P.h: Likewise.
4194         * lib/unictype/categ_Po.h: Likewise.
4195         * lib/unictype/categ_S.h: Likewise.
4196         * lib/unictype/categ_Sc.h: Likewise.
4197         * lib/unictype/categ_Sk.h: Likewise.
4198         * lib/unictype/categ_Sm.h: Likewise.
4199         * lib/unictype/categ_So.h: Likewise.
4200         * lib/unictype/categ_of.h: Likewise.
4201         * lib/unictype/combining.h: Likewise.
4202         * lib/unictype/ctype_alnum.h: Likewise.
4203         * lib/unictype/ctype_alpha.h: Likewise.
4204         * lib/unictype/ctype_graph.h: Likewise.
4205         * lib/unictype/ctype_lower.h: Likewise.
4206         * lib/unictype/ctype_print.h: Likewise.
4207         * lib/unictype/ctype_punct.h: Likewise.
4208         * lib/unictype/ctype_upper.h: Likewise.
4209         * lib/unictype/decdigit.h: Likewise.
4210         * lib/unictype/digit.h: Likewise.
4211         * lib/unictype/numeric.h: Likewise.
4212         * lib/unictype/pr_alphabetic.h: Likewise.
4213         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
4214         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
4215         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
4216         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
4217         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
4218         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
4219         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
4220         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
4221         * lib/unictype/pr_case_ignorable.h: Likewise.
4222         * lib/unictype/pr_cased.h: Likewise.
4223         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
4224         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
4225         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
4226         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
4227         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
4228         * lib/unictype/pr_combining.h: Likewise.
4229         * lib/unictype/pr_composite.h: Likewise.
4230         * lib/unictype/pr_currency_symbol.h: Likewise.
4231         * lib/unictype/pr_decimal_digit.h: Likewise.
4232         * lib/unictype/pr_deprecated.h: Likewise.
4233         * lib/unictype/pr_format_control.h: Likewise.
4234         * lib/unictype/pr_grapheme_base.h: Likewise.
4235         * lib/unictype/pr_grapheme_extend.h: Likewise.
4236         * lib/unictype/pr_grapheme_link.h: Likewise.
4237         * lib/unictype/pr_id_continue.h: Likewise.
4238         * lib/unictype/pr_id_start.h: Likewise.
4239         * lib/unictype/pr_ideographic.h: Likewise.
4240         * lib/unictype/pr_lowercase.h: Likewise.
4241         * lib/unictype/pr_math.h: Likewise.
4242         * lib/unictype/pr_numeric.h: Likewise.
4243         * lib/unictype/pr_other_alphabetic.h: Likewise.
4244         * lib/unictype/pr_other_id_continue.h: Likewise.
4245         * lib/unictype/pr_other_math.h: Likewise.
4246         * lib/unictype/pr_punctuation.h: Likewise.
4247         * lib/unictype/pr_sentence_terminal.h: Likewise.
4248         * lib/unictype/pr_terminal_punctuation.h: Likewise.
4249         * lib/unictype/pr_unassigned_code_value.h: Likewise.
4250         * lib/unictype/pr_unified_ideograph.h: Likewise.
4251         * lib/unictype/pr_uppercase.h: Likewise.
4252         * lib/unictype/pr_xid_continue.h: Likewise.
4253         * lib/unictype/pr_xid_start.h: Likewise.
4254         * lib/unictype/scripts.h: Likewise.
4255         * lib/unictype/scripts_byname.gperf: Likewise.
4256         * lib/unictype/sy_java_ident.h: Likewise.
4257         * lib/unigbrk/gbrkprop.h: Likewise.
4258         * lib/unilbrk/lbrkprop1.h: Likewise.
4259         * lib/unilbrk/lbrkprop2.h: Likewise.
4260         * lib/uninorm/decomposition-table2.h: Likewise.
4261         * lib/uniwbrk/wbrkprop.h: Likewise.
4262         * tests/unicase/test-cased.c: Likewise.
4263         * tests/unicase/test-ignorable.c: Likewise.
4264         * tests/unicase/test-uc_tolower.c: Likewise.
4265         * tests/unicase/test-uc_totitle.c: Likewise.
4266         * tests/unicase/test-uc_toupper.c: Likewise.
4267         * tests/unictype/test-categ_C.c: Likewise.
4268         * tests/unictype/test-categ_Cn.c: Likewise.
4269         * tests/unictype/test-categ_L.c: Likewise.
4270         * tests/unictype/test-categ_Ll.c: Likewise.
4271         * tests/unictype/test-categ_Lm.c: Likewise.
4272         * tests/unictype/test-categ_Lo.c: Likewise.
4273         * tests/unictype/test-categ_Lu.c: Likewise.
4274         * tests/unictype/test-categ_M.c: Likewise.
4275         * tests/unictype/test-categ_Mc.c: Likewise.
4276         * tests/unictype/test-categ_Me.c: Likewise.
4277         * tests/unictype/test-categ_Mn.c: Likewise.
4278         * tests/unictype/test-categ_N.c: Likewise.
4279         * tests/unictype/test-categ_Nd.c: Likewise.
4280         * tests/unictype/test-categ_No.c: Likewise.
4281         * tests/unictype/test-categ_P.c: Likewise.
4282         * tests/unictype/test-categ_Po.c: Likewise.
4283         * tests/unictype/test-categ_S.c: Likewise.
4284         * tests/unictype/test-categ_Sc.c: Likewise.
4285         * tests/unictype/test-categ_Sk.c: Likewise.
4286         * tests/unictype/test-categ_Sm.c: Likewise.
4287         * tests/unictype/test-categ_So.c: Likewise.
4288         * tests/unictype/test-ctype_alnum.c: Likewise.
4289         * tests/unictype/test-ctype_alpha.c: Likewise.
4290         * tests/unictype/test-ctype_graph.c: Likewise.
4291         * tests/unictype/test-ctype_lower.c: Likewise.
4292         * tests/unictype/test-ctype_print.c: Likewise.
4293         * tests/unictype/test-ctype_punct.c: Likewise.
4294         * tests/unictype/test-ctype_upper.c: Likewise.
4295         * tests/unictype/test-decdigit.h: Likewise.
4296         * tests/unictype/test-digit.h: Likewise.
4297         * tests/unictype/test-numeric.h: Likewise.
4298         * tests/unictype/test-pr_alphabetic.c: Likewise.
4299         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
4300         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
4301         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
4302         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
4303         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
4304         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
4305         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
4306         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
4307         * tests/unictype/test-pr_case_ignorable.c: Likewise.
4308         * tests/unictype/test-pr_cased.c: Likewise.
4309         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
4310         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
4311         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
4312         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
4313         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
4314         * tests/unictype/test-pr_combining.c: Likewise.
4315         * tests/unictype/test-pr_composite.c: Likewise.
4316         * tests/unictype/test-pr_currency_symbol.c: Likewise.
4317         * tests/unictype/test-pr_decimal_digit.c: Likewise.
4318         * tests/unictype/test-pr_deprecated.c: Likewise.
4319         * tests/unictype/test-pr_format_control.c: Likewise.
4320         * tests/unictype/test-pr_grapheme_base.c: Likewise.
4321         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
4322         * tests/unictype/test-pr_grapheme_link.c: Likewise.
4323         * tests/unictype/test-pr_id_continue.c: Likewise.
4324         * tests/unictype/test-pr_id_start.c: Likewise.
4325         * tests/unictype/test-pr_ideographic.c: Likewise.
4326         * tests/unictype/test-pr_lowercase.c: Likewise.
4327         * tests/unictype/test-pr_math.c: Likewise.
4328         * tests/unictype/test-pr_numeric.c: Likewise.
4329         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
4330         * tests/unictype/test-pr_other_id_continue.c: Likewise.
4331         * tests/unictype/test-pr_other_math.c: Likewise.
4332         * tests/unictype/test-pr_punctuation.c: Likewise.
4333         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
4334         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
4335         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
4336         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
4337         * tests/unictype/test-pr_uppercase.c: Likewise.
4338         * tests/unictype/test-pr_xid_continue.c: Likewise.
4339         * tests/unictype/test-pr_xid_start.c: Likewise.
4340         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
4341         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
4342         changes.
4343         * lib/unictype/categ_Cc.h: Likewise.
4344         * lib/unictype/categ_Cf.h: Likewise.
4345         * lib/unictype/categ_Co.h: Likewise.
4346         * lib/unictype/categ_Cs.h: Likewise.
4347         * lib/unictype/categ_Lt.h: Likewise.
4348         * lib/unictype/categ_Nl.h: Likewise.
4349         * lib/unictype/categ_Pc.h: Likewise.
4350         * lib/unictype/categ_Pd.h: Likewise.
4351         * lib/unictype/categ_Pe.h: Likewise.
4352         * lib/unictype/categ_Pf.h: Likewise.
4353         * lib/unictype/categ_Pi.h: Likewise.
4354         * lib/unictype/categ_Ps.h: Likewise.
4355         * lib/unictype/categ_Z.h: Likewise.
4356         * lib/unictype/categ_Zl.h: Likewise.
4357         * lib/unictype/categ_Zp.h: Likewise.
4358         * lib/unictype/categ_Zs.h: Likewise.
4359         * lib/unictype/ctype_blank.h: Likewise.
4360         * lib/unictype/ctype_cntrl.h: Likewise.
4361         * lib/unictype/ctype_digit.h: Likewise.
4362         * lib/unictype/ctype_space.h: Likewise.
4363         * lib/unictype/ctype_xdigit.h: Likewise.
4364         * lib/unictype/mirror.h: Likewise.
4365         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
4366         * lib/unictype/pr_bidi_block_separator.h: Likewise.
4367         * lib/unictype/pr_bidi_common_separator.h: Likewise.
4368         * lib/unictype/pr_bidi_control.h: Likewise.
4369         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
4370         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
4371         * lib/unictype/pr_bidi_european_digit.h: Likewise.
4372         * lib/unictype/pr_bidi_pdf.h: Likewise.
4373         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
4374         * lib/unictype/pr_bidi_whitespace.h: Likewise.
4375         * lib/unictype/pr_dash.h: Likewise.
4376         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
4377         * lib/unictype/pr_diacritic.h: Likewise.
4378         * lib/unictype/pr_extender.h: Likewise.
4379         * lib/unictype/pr_hex_digit.h: Likewise.
4380         * lib/unictype/pr_hyphen.h: Likewise.
4381         * lib/unictype/pr_ids_binary_operator.h: Likewise.
4382         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
4383         * lib/unictype/pr_ignorable_control.h: Likewise.
4384         * lib/unictype/pr_iso_control.h: Likewise.
4385         * lib/unictype/pr_join_control.h: Likewise.
4386         * lib/unictype/pr_left_of_pair.h: Likewise.
4387         * lib/unictype/pr_line_separator.h: Likewise.
4388         * lib/unictype/pr_logical_order_exception.h: Likewise.
4389         * lib/unictype/pr_non_break.h: Likewise.
4390         * lib/unictype/pr_not_a_character.h: Likewise.
4391         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
4392         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
4393         * lib/unictype/pr_other_id_start.h: Likewise.
4394         * lib/unictype/pr_other_lowercase.h: Likewise.
4395         * lib/unictype/pr_other_uppercase.h: Likewise.
4396         * lib/unictype/pr_paired_punctuation.h: Likewise.
4397         * lib/unictype/pr_paragraph_separator.h: Likewise.
4398         * lib/unictype/pr_pattern_syntax.h: Likewise.
4399         * lib/unictype/pr_pattern_white_space.h: Likewise.
4400         * lib/unictype/pr_private_use.h: Likewise.
4401         * lib/unictype/pr_quotation_mark.h: Likewise.
4402         * lib/unictype/pr_radical.h: Likewise.
4403         * lib/unictype/pr_soft_dotted.h: Likewise.
4404         * lib/unictype/pr_space.h: Likewise.
4405         * lib/unictype/pr_titlecase.h: Likewise.
4406         * lib/unictype/pr_variation_selector.h: Likewise.
4407         * lib/unictype/pr_white_space.h: Likewise.
4408         * lib/unictype/pr_zero_width.h: Likewise.
4409         * lib/unictype/sy_c_ident.h: Likewise.
4410         * lib/unictype/sy_c_whitespace.h: Likewise.
4411         * lib/unictype/sy_java_whitespace.h: Likewise.
4412         * lib/uninorm/composition-table.gperf: Likewise.
4413         * lib/uninorm/decomposition-table1.h: Likewise.
4414         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
4415         LB8.
4416         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
4417         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
4418         * modules/unictype/*: Bump version number of expected libunistring
4419         version.
4421 2011-01-09  Bruno Haible  <bruno@clisp.org>
4423         Update to Unicode 5.2.0.
4424         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
4425         trailing whitespace removed.
4427 2011-01-09  Bruno Haible  <bruno@clisp.org>
4429         New Unicode character properties, from Unicode 5.2.0.
4430         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
4431         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
4432         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
4433         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
4434         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
4435         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
4436         uc_is_property_cased, uc_is_property_case_ignorable,
4437         uc_is_property_changes_when_lowercased,
4438         uc_is_property_changes_when_uppercased,
4439         uc_is_property_changes_when_titlecased,
4440         uc_is_property_changes_when_casefolded,
4441         uc_is_property_changes_when_casemapped): New declarations.
4442         * lib/unictype/pr_byname.gperf: Add the new properties.
4443         * modules/unictype/property-byname (Depends-on): Depend on the new
4444         properties modules.
4445         * modules/unictype/property-all (Depends-on): Likewise.
4446         * MODULES.html.sh (Unicode string functions): Add
4447         unictype/property-case-ignorable, unictype/property-cased,
4448         unictype/property-changes-when-casefolded,
4449         unictype/property-changes-when-casemapped,
4450         unictype/property-changes-when-lowercased,
4451         unictype/property-changes-when-titlecased,
4452         unictype/property-changes-when-uppercased.
4454         New module 'unictype/property-changes-when-casemapped'.
4455         * modules/unictype/property-changes-when-casemapped: New file.
4456         * lib/unictype/pr_changes_when_casemapped.c: New file.
4457         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
4458         generated by gen-uni-tables.
4459         * modules/unictype/property-changes-when-casemapped-tests: New file.
4460         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
4461         automatically generated by gen-uni-tables.
4463         New module 'unictype/property-changes-when-casefolded'.
4464         * modules/unictype/property-changes-when-casefolded: New file.
4465         * lib/unictype/pr_changes_when_casefolded.c: New file.
4466         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
4467         generated by gen-uni-tables.
4468         * modules/unictype/property-changes-when-casefolded-tests: New file.
4469         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
4470         automatically generated by gen-uni-tables.
4472         New module 'unictype/property-changes-when-titlecased'.
4473         * modules/unictype/property-changes-when-titlecased: New file.
4474         * lib/unictype/pr_changes_when_titlecased.c: New file.
4475         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
4476         generated by gen-uni-tables.
4477         * modules/unictype/property-changes-when-titlecased-tests: New file.
4478         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
4479         automatically generated by gen-uni-tables.
4481         New module 'unictype/property-changes-when-uppercased'.
4482         * modules/unictype/property-changes-when-uppercased: New file.
4483         * lib/unictype/pr_changes_when_uppercased.c: New file.
4484         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
4485         generated by gen-uni-tables.
4486         * modules/unictype/property-changes-when-uppercased-tests: New file.
4487         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
4488         automatically generated by gen-uni-tables.
4490         New module 'unictype/property-changes-when-lowercased'.
4491         * modules/unictype/property-changes-when-lowercased: New file.
4492         * lib/unictype/pr_changes_when_lowercased.c: New file.
4493         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
4494         generated by gen-uni-tables.
4495         * modules/unictype/property-changes-when-lowercased-tests: New file.
4496         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
4497         automatically generated by gen-uni-tables.
4499         New module 'unictype/property-case-ignorable'.
4500         * modules/unictype/property-case-ignorable: New file.
4501         * lib/unictype/pr_case_ignorable.c: New file.
4502         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
4503         by gen-uni-tables.
4504         * modules/unictype/property-case-ignorable-tests: New file.
4505         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
4506         generated by gen-uni-tables.
4508         New module 'unictype/property-cased'.
4509         * modules/unictype/property-cased: New file.
4510         * lib/unictype/pr_cased.c: New file.
4511         * lib/unictype/pr_cased.h: New file, automatically generated by
4512         gen-uni-tables.
4513         * modules/unictype/property-cased-tests: New file.
4514         * tests/unictype/test-pr_cased.c: New file, automatically generated by
4515         gen-uni-tables.
4517 2011-01-09  Bruno Haible  <bruno@clisp.org>
4519         Update to Unicode 5.2.0.
4520         * lib/gen-uni-tables.c (output_predicate, output_category,
4521         output_combclass, output_bidi_category, output_decimal_digit_test,
4522         output_decimal_digit, output_digit_test, output_digit,
4523         output_numeric_test, output_numeric, output_mirror, output_scripts,
4524         output_scripts_byname, output_blocks, output_ident_category): Fix
4525         comment header.
4526         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
4527         get_wbp.
4528         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
4529         items.
4530         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
4531         Changes_When_Lowercased, Changes_When_Uppercased,
4532         Changes_When_Titlecased, Changes_When_Casefolded,
4533         Changes_When_Casemapped.
4534         (is_property_alphabetic, is_property_default_ignorable_code_point):
4535         Update for Unicode 5.2.0.
4536         (is_property_cased, is_property_case_ignorable,
4537         is_property_changes_when_lowercased,
4538         is_property_changes_when_uppercased,
4539         is_property_changes_when_titlecased,
4540         is_property_changes_when_casefolded,
4541         is_property_changes_when_casemapped): New functions.
4542         (output_properties): Output also the properties cased, case_ignorable,
4543         changes_when_lowercased, changes_when_uppercased,
4544         changes_when_titlecased, changes_when_casefolded,
4545         changes_when_casemapped.
4546         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
4547         Unicode TR#11 revision 17 -> 19.
4548         (LBP_CP): New enumeration value.
4549         (LBP_*): Adjust values accordingly.
4550         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
4551         TR#14 revision 22 -> 24.
4552         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
4553         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
4554         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
4555         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
4556         is_WBP_MIDLETTER.
4557         (output_composition_tables): Allow for 24 bits instead of 16 bits in
4558         the code1 and code2 of each composition rule.
4559         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
4560         * lib/unicase/ignorable.h: Likewise.
4561         * lib/unicase/tocasefold.h: Likewise.
4562         * lib/unicase/tolower.h: Likewise.
4563         * lib/unicase/totitle.h: Likewise.
4564         * lib/unicase/toupper.h: Likewise.
4565         * lib/unictype/bidi_of.h: Likewise.
4566         * lib/unictype/blocks.h: Likewise.
4567         * lib/unictype/categ_C.h: Likewise.
4568         * lib/unictype/categ_Cf.h: Likewise.
4569         * lib/unictype/categ_Cn.h: Likewise.
4570         * lib/unictype/categ_L.h: Likewise.
4571         * lib/unictype/categ_Ll.h: Likewise.
4572         * lib/unictype/categ_Lm.h: Likewise.
4573         * lib/unictype/categ_Lo.h: Likewise.
4574         * lib/unictype/categ_Lu.h: Likewise.
4575         * lib/unictype/categ_M.h: Likewise.
4576         * lib/unictype/categ_Mc.h: Likewise.
4577         * lib/unictype/categ_Mn.h: Likewise.
4578         * lib/unictype/categ_N.h: Likewise.
4579         * lib/unictype/categ_Nd.h: Likewise.
4580         * lib/unictype/categ_Nl.h: Likewise.
4581         * lib/unictype/categ_No.h: Likewise.
4582         * lib/unictype/categ_P.h: Likewise.
4583         * lib/unictype/categ_Pd.h: Likewise.
4584         * lib/unictype/categ_Po.h: Likewise.
4585         * lib/unictype/categ_S.h: Likewise.
4586         * lib/unictype/categ_Sc.h: Likewise.
4587         * lib/unictype/categ_So.h: Likewise.
4588         * lib/unictype/categ_of.h: Likewise.
4589         * lib/unictype/combining.h: Likewise.
4590         * lib/unictype/ctype_alnum.h: Likewise.
4591         * lib/unictype/ctype_alpha.h: Likewise.
4592         * lib/unictype/ctype_graph.h: Likewise.
4593         * lib/unictype/ctype_lower.h: Likewise.
4594         * lib/unictype/ctype_print.h: Likewise.
4595         * lib/unictype/ctype_punct.h: Likewise.
4596         * lib/unictype/ctype_upper.h: Likewise.
4597         * lib/unictype/decdigit.h: Likewise.
4598         * lib/unictype/digit.h: Likewise.
4599         * lib/unictype/numeric.h: Likewise.
4600         * lib/unictype/pr_alphabetic.h: Likewise.
4601         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
4602         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
4603         * lib/unictype/pr_bidi_european_digit.h: Likewise.
4604         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
4605         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
4606         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
4607         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
4608         * lib/unictype/pr_combining.h: Likewise.
4609         * lib/unictype/pr_composite.h: Likewise.
4610         * lib/unictype/pr_currency_symbol.h: Likewise.
4611         * lib/unictype/pr_dash.h: Likewise.
4612         * lib/unictype/pr_decimal_digit.h: Likewise.
4613         * lib/unictype/pr_deprecated.h: Likewise.
4614         * lib/unictype/pr_diacritic.h: Likewise.
4615         * lib/unictype/pr_extender.h: Likewise.
4616         * lib/unictype/pr_grapheme_base.h: Likewise.
4617         * lib/unictype/pr_grapheme_extend.h: Likewise.
4618         * lib/unictype/pr_grapheme_link.h: Likewise.
4619         * lib/unictype/pr_id_continue.h: Likewise.
4620         * lib/unictype/pr_id_start.h: Likewise.
4621         * lib/unictype/pr_ideographic.h: Likewise.
4622         * lib/unictype/pr_ignorable_control.h: Likewise.
4623         * lib/unictype/pr_logical_order_exception.h: Likewise.
4624         * lib/unictype/pr_lowercase.h: Likewise.
4625         * lib/unictype/pr_numeric.h: Likewise.
4626         * lib/unictype/pr_other_alphabetic.h: Likewise.
4627         * lib/unictype/pr_punctuation.h: Likewise.
4628         * lib/unictype/pr_sentence_terminal.h: Likewise.
4629         * lib/unictype/pr_terminal_punctuation.h: Likewise.
4630         * lib/unictype/pr_unassigned_code_value.h: Likewise.
4631         * lib/unictype/pr_unified_ideograph.h: Likewise.
4632         * lib/unictype/pr_uppercase.h: Likewise.
4633         * lib/unictype/pr_xid_continue.h: Likewise.
4634         * lib/unictype/pr_xid_start.h: Likewise.
4635         * lib/unictype/pr_zero_width.h: Likewise.
4636         * lib/unictype/scripts.h: Likewise.
4637         * lib/unictype/scripts_byname.gperf: Likewise.
4638         * lib/unictype/sy_java_ident.h: Likewise.
4639         * lib/unigbrk/gbrkprop.h: Likewise.
4640         * lib/unilbrk/lbrkprop1.h: Likewise.
4641         * lib/unilbrk/lbrkprop2.h: Likewise.
4642         * lib/unilbrk/lbrktables.h: Likewise.
4643         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
4644         LBP_CP. Implement rule LB30.
4645         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
4646         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
4647         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
4648         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
4649         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
4650         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
4651         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
4652         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
4653         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
4654         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
4655         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
4656         bits instead of 16 bits in the code1 and code2 of each composition
4657         rule.
4658         (uc_composition): Update for Unicode 5.2.0.
4659         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
4660         * lib/uninorm/decomposition-table2.h: Likewise.
4661         * lib/uniwbrk/wbrkprop.h: Likewise.
4662         * tests/unicase/test-cased.c: Likewise.
4663         * tests/unicase/test-ignorable.c: Likewise.
4664         * tests/unicase/test-uc_tolower.c: Likewise.
4665         * tests/unicase/test-uc_totitle.c: Likewise.
4666         * tests/unicase/test-uc_toupper.c: Likewise.
4667         * tests/unictype/test-categ_C.c: Likewise.
4668         * tests/unictype/test-categ_Cf.c: Likewise.
4669         * tests/unictype/test-categ_Cn.c: Likewise.
4670         * tests/unictype/test-categ_L.c: Likewise.
4671         * tests/unictype/test-categ_Ll.c: Likewise.
4672         * tests/unictype/test-categ_Lm.c: Likewise.
4673         * tests/unictype/test-categ_Lo.c: Likewise.
4674         * tests/unictype/test-categ_Lu.c: Likewise.
4675         * tests/unictype/test-categ_M.c: Likewise.
4676         * tests/unictype/test-categ_Mc.c: Likewise.
4677         * tests/unictype/test-categ_Mn.c: Likewise.
4678         * tests/unictype/test-categ_N.c: Likewise.
4679         * tests/unictype/test-categ_Nd.c: Likewise.
4680         * tests/unictype/test-categ_Nl.c: Likewise.
4681         * tests/unictype/test-categ_No.c: Likewise.
4682         * tests/unictype/test-categ_P.c: Likewise.
4683         * tests/unictype/test-categ_Pd.c: Likewise.
4684         * tests/unictype/test-categ_Po.c: Likewise.
4685         * tests/unictype/test-categ_S.c: Likewise.
4686         * tests/unictype/test-categ_Sc.c: Likewise.
4687         * tests/unictype/test-categ_So.c: Likewise.
4688         * tests/unictype/test-ctype_alnum.c: Likewise.
4689         * tests/unictype/test-ctype_alpha.c: Likewise.
4690         * tests/unictype/test-ctype_graph.c: Likewise.
4691         * tests/unictype/test-ctype_lower.c: Likewise.
4692         * tests/unictype/test-ctype_print.c: Likewise.
4693         * tests/unictype/test-ctype_punct.c: Likewise.
4694         * tests/unictype/test-ctype_upper.c: Likewise.
4695         * tests/unictype/test-decdigit.h: Likewise.
4696         * tests/unictype/test-digit.h: Likewise.
4697         * tests/unictype/test-numeric.h: Likewise.
4698         * tests/unictype/test-pr_alphabetic.c: Likewise.
4699         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
4700         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
4701         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
4702         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
4703         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
4704         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
4705         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
4706         * tests/unictype/test-pr_combining.c: Likewise.
4707         * tests/unictype/test-pr_composite.c: Likewise.
4708         * tests/unictype/test-pr_currency_symbol.c: Likewise.
4709         * tests/unictype/test-pr_dash.c: Likewise.
4710         * tests/unictype/test-pr_decimal_digit.c: Likewise.
4711         * tests/unictype/test-pr_deprecated.c: Likewise.
4712         * tests/unictype/test-pr_diacritic.c: Likewise.
4713         * tests/unictype/test-pr_extender.c: Likewise.
4714         * tests/unictype/test-pr_grapheme_base.c: Likewise.
4715         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
4716         * tests/unictype/test-pr_grapheme_link.c: Likewise.
4717         * tests/unictype/test-pr_id_continue.c: Likewise.
4718         * tests/unictype/test-pr_id_start.c: Likewise.
4719         * tests/unictype/test-pr_ideographic.c: Likewise.
4720         * tests/unictype/test-pr_ignorable_control.c: Likewise.
4721         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
4722         * tests/unictype/test-pr_lowercase.c: Likewise.
4723         * tests/unictype/test-pr_numeric.c: Likewise.
4724         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
4725         * tests/unictype/test-pr_punctuation.c: Likewise.
4726         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
4727         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
4728         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
4729         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
4730         * tests/unictype/test-pr_uppercase.c: Likewise.
4731         * tests/unictype/test-pr_xid_continue.c: Likewise.
4732         * tests/unictype/test-pr_xid_start.c: Likewise.
4733         * tests/unictype/test-pr_zero_width.c: Likewise.
4734         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
4735         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
4736         changed behaviour: line breaking is now disallowed between a letter
4737         or '=' and '('.
4738         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
4739         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
4740         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
4741         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
4742         * tests/uniwidth/test-uc_width2.sh: Same updates as in
4743         lib/uniwidth/width.c.
4744         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
4745         without comments, but with the original copyright notice.
4746         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
4747         changes.
4748         * lib/unictype/categ_Cc.h: Likewise.
4749         * lib/unictype/categ_Co.h: Likewise.
4750         * lib/unictype/categ_Cs.h: Likewise.
4751         * lib/unictype/categ_Lt.h: Likewise.
4752         * lib/unictype/categ_Me.h: Likewise.
4753         * lib/unictype/categ_Pc.h: Likewise.
4754         * lib/unictype/categ_Pe.h: Likewise.
4755         * lib/unictype/categ_Pf.h: Likewise.
4756         * lib/unictype/categ_Pi.h: Likewise.
4757         * lib/unictype/categ_Ps.h: Likewise.
4758         * lib/unictype/categ_Sk.h: Likewise.
4759         * lib/unictype/categ_Sm.h: Likewise.
4760         * lib/unictype/categ_Z.h: Likewise.
4761         * lib/unictype/categ_Zl.h: Likewise.
4762         * lib/unictype/categ_Zp.h: Likewise.
4763         * lib/unictype/categ_Zs.h: Likewise.
4764         * lib/unictype/ctype_blank.h: Likewise.
4765         * lib/unictype/ctype_cntrl.h: Likewise.
4766         * lib/unictype/ctype_digit.h: Likewise.
4767         * lib/unictype/ctype_space.h: Likewise.
4768         * lib/unictype/ctype_xdigit.h: Likewise.
4769         * lib/unictype/mirror.h: Likewise.
4770         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
4771         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
4772         * lib/unictype/pr_bidi_block_separator.h: Likewise.
4773         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
4774         * lib/unictype/pr_bidi_common_separator.h: Likewise.
4775         * lib/unictype/pr_bidi_control.h: Likewise.
4776         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
4777         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
4778         * lib/unictype/pr_bidi_pdf.h: Likewise.
4779         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
4780         * lib/unictype/pr_bidi_whitespace.h: Likewise.
4781         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
4782         * lib/unictype/pr_format_control.h: Likewise.
4783         * lib/unictype/pr_hex_digit.h: Likewise.
4784         * lib/unictype/pr_hyphen.h: Likewise.
4785         * lib/unictype/pr_ids_binary_operator.h: Likewise.
4786         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
4787         * lib/unictype/pr_iso_control.h: Likewise.
4788         * lib/unictype/pr_join_control.h: Likewise.
4789         * lib/unictype/pr_left_of_pair.h: Likewise.
4790         * lib/unictype/pr_line_separator.h: Likewise.
4791         * lib/unictype/pr_math.h: Likewise.
4792         * lib/unictype/pr_non_break.h: Likewise.
4793         * lib/unictype/pr_not_a_character.h: Likewise.
4794         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
4795         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
4796         * lib/unictype/pr_other_id_continue.h: Likewise.
4797         * lib/unictype/pr_other_id_start.h: Likewise.
4798         * lib/unictype/pr_other_lowercase.h: Likewise.
4799         * lib/unictype/pr_other_math.h: Likewise.
4800         * lib/unictype/pr_other_uppercase.h: Likewise.
4801         * lib/unictype/pr_paired_punctuation.h: Likewise.
4802         * lib/unictype/pr_paragraph_separator.h: Likewise.
4803         * lib/unictype/pr_pattern_syntax.h: Likewise.
4804         * lib/unictype/pr_pattern_white_space.h: Likewise.
4805         * lib/unictype/pr_private_use.h: Likewise.
4806         * lib/unictype/pr_quotation_mark.h: Likewise.
4807         * lib/unictype/pr_radical.h: Likewise.
4808         * lib/unictype/pr_soft_dotted.h: Likewise.
4809         * lib/unictype/pr_space.h: Likewise.
4810         * lib/unictype/pr_titlecase.h: Likewise.
4811         * lib/unictype/pr_variation_selector.h: Likewise.
4812         * lib/unictype/pr_white_space.h: Likewise.
4813         * lib/unictype/sy_c_ident.h: Likewise.
4814         * lib/unictype/sy_c_whitespace.h: Likewise.
4815         * lib/unictype/sy_java_whitespace.h: Likewise.
4816         * modules/uni*/*: Bump version number of expected libunistring version.
4817         Reported by Simon Josefsson.
4819 2011-01-09  Karl Heuer  <kwzh@gnu.org>
4821         useless-if-before-free: fix typo in --help and make the internal,
4822         automatic version date update process work once again.
4823         --help output contained a NUL character instead of the
4824         backslash-zero that was intended.  Also, the "must lie within
4825         the first 8 lines" line is on line 9, and hence not getting
4826         automatically updated.
4827         * build-aux/useless-if-before-free: Fix the former by adding a
4828         backslash, and the latter by condensing the three lines of what-it-does
4829         to a single line, leaving one line of slack for the future.
4831 2011-01-09  Bruno Haible  <bruno@clisp.org>
4833         uniwidth/width: Fix width of U+1D173..U+1D17A.
4834         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
4835         symbolic_width, output_width_property_test): New functions.
4836         (main): Invoke output_nonspacing_property, output_width_property_test.
4837         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
4838         U+1D173..U+1D17A.
4839         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
4840         1.
4841         * modules/uniwidth/*: Bump version number of expected libunistring
4842         version.
4843         * modules/unilbrk/*: Likewise.
4845 2011-01-08  Bruno Haible  <bruno@clisp.org>
4847         uninorm tests: Preserve copyright of Unicode data file.
4848         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
4849         Mention modifications.
4851 2011-01-08  Bruno Haible  <bruno@clisp.org>
4853         gen-uni-tables: Prepare for Unicode 5.2.0.
4854         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
4855         (debug_output_lbp, output_lbp): Update.
4857 2011-01-08  Bruno Haible  <bruno@clisp.org>
4859         unilbrk: Clarify gen-uni-tables.c code.
4860         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
4861         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
4862         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
4864 2011-01-07  Bruno Haible  <bruno@clisp.org>
4866         strtod: Restore errno when successfully parsing Infinity or NaN.
4867         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
4868         restore the original errno.
4870 2011-01-07  Bruno Haible  <bruno@clisp.org>
4872         remove test: Avoid failure on HP-UX 11.
4873         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
4875 2011-01-07  Bruno Haible  <bruno@clisp.org>
4877         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
4878         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
4879         error code.
4881 2011-01-07  Pádraig Brady <P@draigBrady.com>
4883         ignore-value: fixup comments, and add Eric Blake
4884         as an author since he rewrote the macros.
4885         * lib/ignore-value.h (ignore_value):  State that
4886         we now support aggregates.  Also specify exactly
4887         when the GCC warn_unused_result feature was added.
4889 2011-01-06  Eric Blake  <eblake@redhat.com>
4891         ignore-value: support aggregate types
4892         * lib/ignore-value.h (ignore_value): Provide separate gcc
4893         definition.
4894         * modules/ignore-value-tests: New test module.
4895         * tests/test-ignore-value.c: New test.
4897         maint.mk: improve sc_prohibit_strcmp regex
4898         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
4899         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
4900         definition of STRNEQ.
4902         signal: work around Haiku issue with SIGBUS
4903         * lib/siglist.h: Add comment.
4904         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
4905         strsignal's favoring of SIGSEGV.
4906         * tests/test-signal.c (main): Avoid test failure.
4907         * doc/posix-headers/signal.texi (signal.h): Document the issue.
4908         Reported by Scott McCreary.
4910         maint.mk: add pre-release check to ensure submodule commits are public
4911         * top/maint.mk (public-submodule-commit): New rule.
4912         (submodule-checks): New variable.
4913         (alpha beta stable): Depend on the variable.
4915 2011-01-05  Pádraig Brady <P@draigBrady.com>
4916         and Jim Meyering  <meyering@redhat.com>
4918         ignore-value: make ignore_value more generic; deprecate ignore_ptr
4919         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
4920         (ATTRIBUTE_DEPRECATED): Define.
4921         (_ignore_case): New function.
4922         (ignore_value): New macro, to replace the old function.
4923         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
4924         * modules/ignore-value (Depends-on): Add stdint.
4926 2011-01-04  Eric Blake  <eblake@redhat.com>
4928         doc: regenerate INSTALL
4929         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
4930         @firstparagraphindent support, now that autoconf dropped it.
4931         (INSTALL_PRELUDE): Reinstate old macro.
4932         * doc/install.texi: Resync from autoconf.
4933         * doc/INSTALL: Reflect recent autoconf update.
4934         * doc/INSTALL.ISO: Likewise.
4935         * doc/INSTALL.UTF-8: Likewise.
4936         Reported by Karl Berry.
4938 2011-01-04  Bruce Korb  <address@hidden>
4940         git-version-gen: avoid a sub-shell
4941         * build-aux/git-version-gen: Redirect stderr in `...` via
4942         "exec 2>...", rather than via an added sub-shell.
4944 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
4946         git-version-gen: use (...) rather than sh -c '...'
4947         * build-aux/git-version-gen: Rather than hard-coding a shell's name
4948         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
4950 2011-01-03  Jim Meyering  <meyering@redhat.com>
4952         git-version-gen: convert leading TABs to spaces
4953         * build-aux/git-version-gen: Expand leading TABs.
4955         git-version-gen: handle failed "git rev-list"
4956         * build-aux/git-version-gen: Rather than leaking a "fatal" error
4957         from git and proceeding as if it had succeeded but printed no SHA1
4958         checksums, suppress the diagnostic and handle the failure.
4959         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
4961         git-version-gen: include command name in one more diagnostic
4962         * build-aux/git-version-gen: When the required .tarball-version file
4963         was missing or unreadable, you might see the diagnostic from "cat",
4964         but no trace of the name of the invoking script.  Now, you still see
4965         the diagnostic from cat, but also get one from "git-version-gen: ".
4966         Inspired by a patch from Bruce Korb.
4968         update-copyright: adjust test to match changed code
4969         * tests/test-update-copyright.sh: Change test's expected output
4970         to match new actual output.
4972 2011-01-02  Bruno Haible  <bruno@clisp.org>
4974         getlogin_r: Avoid test failure on HP-UX 11.
4975         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
4976         ERANGE when the second argument is zero.
4977         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
4978         portability problem.
4980 2011-01-02  Bruce Korb  <bkorb@gnu.org>
4982         * build-aux/update-copyright: doc Simon's changes
4984 2011-01-02  Simon Josefsson  <simon@josefsson.org>
4986         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
4987         environment variable.
4989 2011-01-02  Bruno Haible  <bruno@clisp.org>
4991         unigbrk: Avoid gcc warnings.
4992         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
4993         unused variable.
4994         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
4995         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
4996         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
4997         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
4998         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
4999         Change type of first argument to 'const char *'.
5000         (main): Remove unused variable.
5001         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
5002         type of first argument to 'const char *'.
5003         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
5004         Likewise.
5005         (main): Change type of variable 's'.
5006         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
5007         to 'int'.
5009 2011-01-02  Bruno Haible  <bruno@clisp.org>
5011         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
5012         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
5013         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
5014         bug.
5015         * lib/pwrite.c: Undo 2010-12-31 patch.
5016         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
5018 2011-01-02  Bruno Haible  <bruno@clisp.org>
5020         pread: Fix test whether it works.
5021         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
5023 2011-01-02  Bruno Haible  <bruno@clisp.org>
5025         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
5026         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
5027         ends in "6". Don't require a specific month name. Try also the locale
5028         names found on HP-UX 11 and Solaris 7.
5030 2011-01-02  Bruno Haible  <bruno@clisp.org>
5032         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
5033         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
5034         C linkage.
5035         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
5037 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
5039         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
5040         for consistency, since the "cluster" term is not used elsewhere.
5041         * lib/unigbrk.in.h: Update name.
5042         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
5043         * lib/unigbrk/u16-grapheme-next.c: Update name.
5044         * lib/unigbrk/u16-grapheme-prev.c: Update name.
5045         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
5046         * lib/unigbrk/u32-grapheme-next.c: Update name.
5047         * lib/unigbrk/u32-grapheme-prev.c: Update name.
5048         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
5049         * lib/unigbrk/u8-grapheme-next.c: Update name.
5050         * lib/unigbrk/u8-grapheme-prev.c: Update name.
5051         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
5052         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
5053         Suggested by Bruno Haible.
5055 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
5057         Remove module 'u8-grapheme-len' as too redundant with
5058         'u8-grapheme-next'.
5059         * modules/unigbrk/u8-grapheme-len: Delete file.
5060         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
5061         * lib/unigbrk.in.h: Remove prototype for deleted function.
5062         * lib/unigbrk/u8-grapheme-len.c: Delete file.
5063         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
5065         Remove module 'u16-grapheme-len' as too redundant with
5066         'u16-grapheme-next'.
5067         * modules/unigbrk/u16-grapheme-len: Delete file.
5068         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
5069         * lib/unigbrk.in.h: Remove prototype for deleted function.
5070         * lib/unigbrk/u16-grapheme-len.c: Delete file.
5071         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
5073         Remove module 'u32-grapheme-len' as too redundant with
5074         'u32-grapheme-next'.
5075         * modules/unigbrk/u32-grapheme-len: Delete file.
5076         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
5077         * lib/unigbrk.in.h: Remove prototype for deleted function.
5078         * lib/unigbrk/u32-grapheme-len.c: Delete file.
5079         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
5081         Suggested by Bruno Haible.
5083 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
5085         * unigbrk.in.h: Fix typo: "ben" => "been".
5086         Reported by Bruno Haible.
5088 2011-01-01  Jim Meyering  <meyering@redhat.com>
5090         maint: update almost all copyright ranges to include 2011
5091         Run the new "make update-copyright" rule.
5093 2011-01-01  Jim Meyering  <meyering@redhat.com>
5095         maint: update-copyright: exempt doc/INSTALL*
5096         * Makefile (update-copyright): Also exclude doc/INSTALL*,
5097         since they are generated.  Suggested by Bruno Haible.
5099 2011-01-01  Jim Meyering  <meyering@redhat.com>
5101         maint: refine the update-copyright rule
5102         * Makefile (update-copyright): Also exclude any file that includes
5103         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
5104         code that merely generates the comment.
5106 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
5108         New module 'u8-grapheme-len'.
5109         * modules/unigbrk/u8-grapheme-len: New file.
5110         * modules/unigbrk/u8-grapheme-len-tests: New file.
5111         * lib/unigbrk.in.h: Add prototype for new function.
5112         * lib/unigbrk/u8-grapheme-len.c: New file.
5113         * tests/unigbrk/test-u8-grapheme-len.c: New file.
5115         New module 'u16-grapheme-len'.
5116         * modules/unigbrk/u16-grapheme-len: New file.
5117         * modules/unigbrk/u16-grapheme-len-tests: New file.
5118         * lib/unigbrk.in.h: Add prototype for new function.
5119         * lib/unigbrk/u16-grapheme-len.c: New file.
5120         * tests/unigbrk/test-u16-grapheme-len.c: New file.
5122         New module 'u32-grapheme-len'.
5123         * modules/unigbrk/u32-grapheme-len: New file.
5124         * modules/unigbrk/u32-grapheme-len-tests: New file.
5125         * lib/unigbrk.in.h: Add prototype for new function.
5126         * lib/unigbrk/u32-grapheme-len.c: New file.
5127         * tests/unigbrk/test-u32-grapheme-len.c: New file.
5129         New module 'u8-grapheme-next'.
5130         * modules/unigbrk/u8-grapheme-next: New file.
5131         * modules/unigbrk/u8-grapheme-next-tests: New file.
5132         * lib/unigbrk.in.h: Add prototype for new function.
5133         * lib/unigbrk/u8-grapheme-next.c: New file.
5134         * tests/unigbrk/test-u8-grapheme-next.c: New file.
5136         New module 'u16-grapheme-next'.
5137         * modules/unigbrk/u16-grapheme-next: New file.
5138         * modules/unigbrk/u16-grapheme-next-tests: New file.
5139         * lib/unigbrk.in.h: Add prototype for new function.
5140         * lib/unigbrk/u16-grapheme-next.c: New file.
5141         * tests/unigbrk/test-u16-grapheme-next.c: New file.
5143         New module 'u32-grapheme-next'.
5144         * modules/unigbrk/u32-grapheme-next: New file.
5145         * modules/unigbrk/u32-grapheme-next-tests: New file.
5146         * lib/unigbrk.in.h: Add prototype for new function.
5147         * lib/unigbrk/u32-grapheme-next.c: New file.
5148         * tests/unigbrk/test-u32-grapheme-next.c: New file.
5150         New module 'u8-grapheme-prev'.
5151         * modules/unigbrk/u8-grapheme-prev: New file.
5152         * modules/unigbrk/u8-grapheme-prev-tests: New file.
5153         * lib/unigbrk.in.h: Add prototype for new function.
5154         * lib/unigbrk/u8-grapheme-prev.c: New file.
5155         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
5157         New module 'u16-grapheme-prev'.
5158         * modules/unigbrk/u16-grapheme-prev: New file.
5159         * modules/unigbrk/u16-grapheme-prev-tests: New file.
5160         * lib/unigbrk.in.h: Add prototype for new function.
5161         * lib/unigbrk/u16-grapheme-prev.c: New file.
5162         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
5164         New module 'u32-grapheme-prev'.
5165         * modules/unigbrk/u32-grapheme-prev: New file.
5166         * modules/unigbrk/u32-grapheme-prev-tests: New file.
5167         * lib/unigbrk.in.h: Add prototype for new function.
5168         * lib/unigbrk/u32-grapheme-prev.c: New file.
5169         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
5171         New module 'u8-grapheme-breaks'.
5172         * modules/unigbrk/u8-grapheme-breaks: New file.
5173         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
5174         * lib/unigbrk.in.h: Add prototype for new function.
5175         * lib/unigbrk/u8-grapheme-breaks.c: New file.
5176         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
5178         New module 'u16-grapheme-breaks'.
5179         * modules/unigbrk/u16-grapheme-breaks: New file.
5180         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
5181         * lib/unigbrk.in.h: Add prototype for new function.
5182         * lib/unigbrk/u16-grapheme-breaks.c: New file.
5183         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
5185         New module 'u32-grapheme-breaks'.
5186         * modules/unigbrk/u32-grapheme-breaks: New file.
5187         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
5188         * lib/unigbrk.in.h: Add prototype for new function.
5189         * lib/unigbrk/u32-grapheme-breaks.c: New file.
5190         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
5192         New module 'ulc-grapheme-breaks'.
5193         * modules/unigbrk/ulc-grapheme-breaks: New file.
5194         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
5195         * m4/locale-ar.m4: New file.
5196         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
5197         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
5198         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
5200 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
5202         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
5203         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
5204         modified how this file was generated before I initially submitted
5205         the module, but failed to regenerate it.  This meant that several
5206         of the level2 entries were wrong.
5207         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
5208         Remove the division-by-2 that is folded into the table now that
5209         gbrkprop.h has been regenerated properly.  Now -1 entries are
5210         handled correctly.
5212         New module 'unigbrk/uc-gbrk-prop-tests'.
5213         * modules/unigbrk/uc-gbrk-prop-tests: New file.
5214         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
5215         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
5216         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
5218 2011-01-01  Bruno Haible  <bruno@clisp.org>
5220         Avoid use of hexadecimal escapes.
5221         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
5222         instead of hexadecimal escapes.
5224 2011-01-01  Jim Meyering  <meyering@redhat.com>
5226         maint: new rule to update copyright year ranges
5227         * Makefile (update-copyright): New rule.
5229         maint: indent with TABs in Makefile
5230         * Makefile: Expand leading sequences of spaces to TABs
5232         version-etc: update the copyright year it reports
5233         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
5235 2010-12-31  Bruno Haible  <bruno@clisp.org>
5237         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
5238         * lib/isfinite.c (zerof, zerod, zerol): New variables.
5239         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
5240         zero.
5242 2010-12-31  Bruno Haible  <bruno@clisp.org>
5244         pwrite: Work around HP-UX 11.11 bug.
5245         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
5246         works and set REPLACE_PWRITE if not.
5247         * lib/pwrite.c (pwrite): Add an implementation that uses the system
5248         function.
5249         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
5251 2010-12-31  Bruno Haible  <bruno@clisp.org>
5253         pread: Work around HP-UX 11 bugs.
5254         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
5255         and set REPLACE_PREAD if not.
5256         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
5258 2010-12-31  Eric Blake  <eblake@redhat.com>
5260         nl_langinfo: fix YESEXPR on Irix 6.5
5261         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
5262         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
5263         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
5264         it.
5266 2010-12-31  Bruno Haible  <bruno@clisp.org>
5268         iconv: Document HP-UX 11 bug.
5269         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
5271 2010-12-31  Bruno Haible  <bruno@clisp.org>
5273         ldexpl: Fix link error on HP-UX 11.
5274         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
5275         LDEXPL_LIBM, using $ISNANL_LIBM.
5277 2010-12-31  Eric Blake  <eblake@redhat.com>
5279         ftello: avoid compilation failure with SunStudio c89
5280         * lib/ftello.c (ftello): Use lseek, not llseek.
5282         tests: avoid failing coreutils tests on cygwin
5283         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
5284         (create_exe_shims_): Return 0 when skipping.
5286 2010-12-31  Bruno Haible  <bruno@clisp.org>
5288         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
5289         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
5291 2010-12-31  Bruno Haible  <bruno@clisp.org>
5293         waitpid: Fix link error in C++ mode.
5294         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
5296 2010-12-31  Bruno Haible  <bruno@clisp.org>
5298         isnan: Use GCC built-ins when possible.
5299         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
5300         __builtin_isnan.
5301         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
5302         (isnan): Define using GCC built-ins for GCC >= 4.0.
5304 2010-12-31  Bruno Haible  <bruno@clisp.org>
5306         isnand: Fix mistake.
5307         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
5308         __builtin_isnand.
5310 2010-12-31  Bruno Haible  <bruno@clisp.org>
5312         open: Avoid C++ error on HP-UX 11.
5313         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
5315 2010-12-31  Bruno Haible  <bruno@clisp.org>
5317         time_r: Add missing declarations on HP-UX 11.
5318         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
5319         instead of HAVE_LOCALTIME_R.
5320         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
5321         HAVE_LOCALTIME_R always.
5322         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
5323         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
5324         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
5325         HAVE_LOCALTIME_R.
5326         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
5327         * doc/posix-functions/localtime_r.texi: Likewise.
5329 2010-12-29  Eric Blake  <eblake@redhat.com>
5331         mountlist: tweak previous commit
5332         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
5333         Reported by Paul Eggert.
5335         mountlist: fix local drive detection on cygwin
5336         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
5337         that works for cygwin.
5339 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
5341         ftoastr, snprintf: ftoastr + snprintf module
5342         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
5343         since the snprintf module now should be good enough here.
5344         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
5345         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
5346         and gl_MODULE_INDICATOR([snprintf]), but the former enables
5347         GNULIB_SNPRINTF only for the test directory, and the latter
5348         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
5349         seems to suffice by itself.
5351 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
5353         alloca: one step towards thread-safety
5354         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
5355         need for a static variable.  All callers changed.  This does not
5356         make the alloca replacement thread-safe, but it's one step.
5358         tests: minor indenting change
5359         * tests/init.sh: Sync from coreutils housekeeping patch
5360         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
5361         to keep lines within 80 columns.
5363 2010-12-28  Jim Meyering  <meyering@redhat.com>
5365         regex: don't infloop on persistent failing calloc
5366         * lib/regexec.c (build_trtable): Return failure indication upon
5367         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
5368         In glibc, this was fixed for version 2.13:
5369         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
5371 2010-12-28  Bruno Haible  <bruno@clisp.org>
5372             Paul Eggert <eggert@cs.ucla.edu>
5374         linkat: Make implementation robust against system behaviour variations.
5375         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
5376         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
5377         way, and to -2 if it needs a generic runtime test.
5378         * lib/linkat.c (solaris_optimized_link_immediate,
5379         solaris_optimized_link_follow): New functions.
5380         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
5381         (check_same_link): Use it.
5383 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
5385         New module 'unigbrk/base'.
5386         * modules/unigbrk/base: New file.
5387         * lib/unigbrk.in.h: New file.
5389         New module 'unigbrk/uc-gbrk-prop'.
5390         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
5391         * modules/unigbrk/uc-gbrk-prop: New file.
5392         * lib/unigbrk/gbrkprop.h: New file.
5393         * lib/unigbrk/uc-gbrk-prop.c: New file.
5395         New module 'unigbrk/uc-is-grapheme-break'.
5396         * modules/unigbrk/uc-is-grapheme-break: New file.
5397         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
5398         * lib/unigbrk/uc-is-grapheme-break.c: New file.
5399         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
5400         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
5401         * tests/unigbrk/GraphemeBreakTest.txt: New file.
5403         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
5405 2010-12-27  Bruno Haible  <bruno@clisp.org>
5407         linkat test: Avoid failure on Solaris 11 2010-11.
5408         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
5410 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
5412         utimens: work around glibc rounding bug on more platforms
5413         * lib/utimens.c (fdutimens): Work around rounding bug even if
5414         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
5415         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
5417 2010-12-27  Bruno Haible  <bruno@clisp.org>
5419         select tests: Improve comments.
5420         * tests/test-select.c (do_select): Add comments.
5422 2010-12-27  Bruno Haible  <bruno@clisp.org>
5424         select tests: Safer way of handling timeout.
5425         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
5426         at every invocation.
5428 2010-12-27  Bruno Haible  <bruno@clisp.org>
5430         select tests: Use 'bool' where appropriate.
5431         * tests/test-select.c (connect_to_socket): Change argument type to
5432         'bool'.
5434 2010-12-27  Bruno Haible  <bruno@clisp.org>
5436         select tests: Use existing modules.
5437         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
5438         (configure.ac): Don't test for unistd.h.
5439         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
5440         declared in <unistd.h>.
5442 2010-12-27  Bruno Haible  <bruno@clisp.org>
5444         mbrtowc: Work around a Solaris 7 bug.
5445         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
5446         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
5447         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
5448         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
5449         MBRTOWC_NULL_ARG1_BUG.
5450         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
5451         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
5452         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
5453         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
5455 2010-12-27  Jim Meyering  <meyering@redhat.com>
5457         read-file.c: tweak syntax
5458         * lib/read-file.c (fread_file): Remove space after "*" in function
5459         definitions.
5461 2010-12-27  Bruno Haible  <bruno@clisp.org>
5463         times test: Avoid gcc warnings on OSF/1.
5464         * tests/test-times.c (main): Cast printf arguments from clock_t to
5465         'long int'.
5467 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
5469         utimens: work around glibc rounding bug on older Linux kernels
5470         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
5471         on Linux with a glibc whose utimes might not work, then work
5472         around a longstanding glibc bug involving rounding rather than
5473         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
5474         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
5476 2010-12-26  Bruno Haible  <bruno@clisp.org>
5478         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
5479         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
5480         _GL_CXXALIAS_SYS.
5481         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
5483 2010-12-26  Bruno Haible  <bruno@clisp.org>
5485         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
5486         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
5487         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
5488         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
5489         looking for the declaration.
5490         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
5491         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
5492         problem.
5493         * doc/posix-functions/inet_pton.texi: Likewise.
5495 2010-12-26  Bruno Haible  <bruno@clisp.org>
5497         arpa_inet: Use the common idioms with C++ support.
5498         * lib/arpa_inet.in.h: Include c++defs.h.
5499         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
5500         support.
5501         * modules/arpa_inet (Depends-on): Add c++defs.
5502         (Makefile.am): Substitute the contents of c++defs.h.
5503         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
5504         * modules/arpa_inet-c++-tests: New file.
5505         * tests/test-arpa_inet-c++.cc: New file.
5507 2010-12-25  Bruno Haible  <bruno@clisp.org>
5509         Fix more C++ link errors on Solaris 8.
5510         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
5511         $(LIB_EACCESS).
5512         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
5513         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
5514         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
5515         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
5516         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
5518 2010-12-25  Bruno Haible  <bruno@clisp.org>
5520         printf-posix: Fix link error when a non-GCC compiler is used.
5521         * lib/stdio.in.h (printf): When not using GCC, override printf
5522         correctly.
5523         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
5525 2010-12-25  Bruno Haible  <bruno@clisp.org>
5527         strerror_r-posix: Update doc.
5528         * doc/posix-functions/strerror_r.texi: Update doc about the return
5529         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
5531 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
5533         utimens: simplify the logic of the previous change
5534         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
5535         This should not affect whether the test succeeds or fails.
5537         utimens: configure better on hosts with NFS clock skew
5538         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
5539         uses the clock of the local host.  It might use the clock of the
5540         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
5541         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
5543 2010-12-25  Bruno Haible  <bruno@clisp.org>
5545         ptsname test: Avoid failure on Solaris.
5546         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
5547         open a pseudo-terminal; don't use BSD-style ptys.
5548         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
5550 2010-12-25  Bruno Haible  <bruno@clisp.org>
5552         ptsname: Avoid ERANGE failure on some systems.
5553         * lib/ptsname.c (buffer): Increase size.
5555 2010-12-25  Bruno Haible  <bruno@clisp.org>
5557         rename, renameat: Avoid test failures at NFS mounted locations.
5558         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
5559         so that subsequent mkdir calls succeed.
5561 2010-12-25  Bruno Haible  <bruno@clisp.org>
5563         iswblank: Fix C++ link error on Solaris 8.
5564         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
5565         _GL_FUNCDECL_SYS.
5567 2010-12-25  Bruno Haible  <bruno@clisp.org>
5569         unistd: Fix C++ link error on Solaris 8.
5570         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
5572 2010-12-25  Bruno Haible  <bruno@clisp.org>
5574         readlink doc: Mention an old glibc bug.
5575         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
5577 2010-12-25  Bruno Haible  <bruno@clisp.org>
5579         fcntl-h: Fix for use of C++ on glibc systems.
5580         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
5581         also on glibc systems in C++ mode.
5582         Reported by Gary V. Vaughan <gary@gnu.org>.
5584 2010-12-25  Bruno Haible  <bruno@clisp.org>
5586         roundl-ieee: Make it work on OSF/1 5.1 with cc.
5587         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
5589 2010-12-25  Bruno Haible  <bruno@clisp.org>
5591         truncl-ieee: Make it work on OSF/1 5.1 with cc.
5592         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
5593         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
5594         test whether truncl works according to ISO C 99 with IEC 60559.
5595         * m4/truncl-ieee.m4: New file.
5596         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
5597         m4/signbit.m4.
5598         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
5600 2010-12-25  Bruno Haible  <bruno@clisp.org>
5602         ceill-ieee: Make it work on OSF/1 5.1 with cc.
5603         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
5604         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
5605         test whether ceill works according to ISO C 99 with IEC 60559.
5606         * m4/ceill-ieee.m4: New file.
5607         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
5608         m4/signbit.m4.
5609         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
5611 2010-12-25  Bruno Haible  <bruno@clisp.org>
5613         Ensure all prerequisites of <wchar.h> are included.
5614         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
5615         before <wchar.h>.
5616         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
5617         gl_MBRLEN_NUL_RETVAL): Likewise.
5618         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
5619         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
5620         AC_FUNC_MBRTOWC): Likewise.
5621         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
5622         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
5623         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
5624         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
5625         Likewise.
5626         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
5627         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
5628         (gl_WCHAR_H): Improve comments.
5629         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
5631 2010-12-25  Bruno Haible  <bruno@clisp.org>
5633         strtok_r: Fix C syntax error in autoconf macro.
5634         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
5635         characters in test program.
5637 2010-12-24  Bruno Haible  <bruno@clisp.org>
5639         ceil, trunc, round: Fix gcc warnings.
5640         * lib/ceil.c (MIN): Undefine before redefining.
5641         * lib/trunc.c (MIN): Likewise.
5642         * lib/round.c (MIN): Likewise.
5643         Include <math.h> first.
5645 2010-12-24  Bruno Haible  <bruno@clisp.org>
5647         select tests: Avoid failures on OSF/1 5.1.
5648         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
5649         failure of closing the last socket; it may fail with ECONNRESET.
5651 2010-12-24  Eric Blake  <eblake@redhat.com>
5653         stdint: avoid HP-UX 10.20 preprocessor bug
5654         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
5655         than #if.
5656         * tests/test-floor2.c (main): Likewise.
5657         Reported by Peter O'Gorman.
5659         pipe: make obsoletion transition easier
5660         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
5661         * modules/pipe (Files): Include revived file.
5662         (Include): Drop reference, to mirror getdate's behavior.
5664 2010-12-24  Bruno Haible  <bruno@clisp.org>
5666         sys_socket: Hide mismatch of declarations on NonStop Kernel.
5667         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
5668         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
5669         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
5671 2010-12-24  Bruno Haible  <bruno@clisp.org>
5673         gethostname: Ensure declaration on NonStop Kernel.
5674         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
5675         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
5677 2010-12-24  Bruno Haible  <bruno@clisp.org>
5679         sys_select: Ensure all necessary types on NonStop Kernel.
5680         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
5681         include <sys/time.h>.
5682         * doc/posix-headers/sys_select.texi: Mention that it's missing on
5683         NonStop Kernel.
5684         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
5686 2010-12-24  Bruno Haible  <bruno@clisp.org>
5688         sys_select: Remove unneeded include.
5689         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
5690         have <sys/select.h>.
5692 2010-12-24  Bruno Haible  <bruno@clisp.org>
5694         gethostname: Provide a fallback for HOST_NAME_MAX.
5695         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
5696         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
5697         instead.
5698         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
5700 2010-12-24  Bruno Haible  <bruno@clisp.org>
5702         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
5703         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
5704         (SA_RESTART): Likewise.
5705         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
5707 2010-12-24  Bruno Haible  <bruno@clisp.org>
5709         signal: Define NSIG.
5710         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
5711         * tests/test-signal.c (nsig): New variable.
5712         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
5714 2010-12-24  Bruno Haible  <bruno@clisp.org>
5716         rename, renameat: Avoid test failures on OSF/1 5.1.
5717         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
5718         alternative error codes.
5719         * tests/test-renameat.c (main): Likewise.
5721 2010-12-24  Bruno Haible  <bruno@clisp.org>
5723         *printf: Detect large precisions bug on Solaris 10/SPARC.
5724         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
5725         by Paul Eggert.
5726         * tests/test-snprintf-posix.h (test_function): Add this test code here
5727         too.
5728         * tests/test-sprintf-posix.h (test_function): Likewise.
5729         * tests/test-vasnprintf-posix.c (test_function): Likewise.
5730         * tests/test-vasprintf-posix.c (test_function): Likewise.
5731         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
5732         around by gnulib.
5733         * doc/posix-functions/printf.texi: Likewise.
5734         * doc/posix-functions/snprintf.texi: Likewise.
5735         * doc/posix-functions/sprintf.texi: Likewise.
5736         * doc/posix-functions/vfprintf.texi: Likewise.
5737         * doc/posix-functions/vprintf.texi: Likewise.
5738         * doc/posix-functions/vsnprintf.texi: Likewise.
5739         * doc/posix-functions/vsprintf.texi: Likewise.
5740         * doc/posix-functions/dprintf.texi: Undo last commit.
5741         * doc/posix-functions/vdprintf.texi: Likewise.
5743 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
5745         tests: port test-fdutimensat.c to Solaris 8
5746         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
5747         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
5748         On Solaris 8, it fails with errno == ENOSYS, because there is no
5749         futimens (so it can't use the fd), and there is no lutimens (so it
5750         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
5752         vsnprintf: make more consistent with snprintf; doc fixes
5754         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
5755         the byte count return problem was promoted from the snprintf-posix
5756         to the snprintf module.
5757         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
5758         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
5759         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
5760         * tests/test-snprintf.c (main): Check the byte count returned.
5761         * tests/test-vsnprintf.c (main): Likewise.
5763 2010-12-23  Eric Blake  <eblake@redhat.com>
5765         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
5766         * modules/sigpipe (License): Relax license.
5768 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
5770         doc: document Solaris printf bug with large float precisions
5771         * doc/posix-functions/dprintf.texi (dprintf):
5772         * doc/posix-functions/fprintf.texi (fprintf):
5773         * doc/posix-functions/printf.texi (printf):
5774         * doc/posix-functions/snprintf.texi (snprintf):
5775         * doc/posix-functions/sprintf.texi (sprintf):
5776         * doc/posix-functions/vdprintf.texi (vdprintf):
5777         * doc/posix-functions/vfprintf.texi (vfprintf):
5778         * doc/posix-functions/vprintf.texi (vprintf):
5779         * doc/posix-functions/vsnprintf.texi (vsnprintf):
5780         * doc/posix-functions/vsprintf.texi (vsprintf):
5781         Mention that these functions mishandle large floating point
5782         precisions on Solaris 10.  The same bug is also present in Solaris
5783         8, and I assume earlier.  This causes "cd gnulib-tests; make
5784         check" to fail on Solaris 8 (and I assume, later) when building
5785         the latest coreutils, in test-vasprintf-posix's call to
5786         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
5787         the wide flavors (e.g., wprintf) so this patch just updates the
5788         documentation for the narrow ones.
5790         test-posixtm.c: add two tests
5791         * tests/test-posixtm.c: Add two tests, to highlight the
5792         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
5793         around this bug; this is merely to document it.
5795 2010-12-22  Bruno Haible  <bruno@clisp.org>
5797         getlogin_r: Work around portability problem on OSF/1.
5798         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
5799         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
5800         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
5801         test for a truncated result.
5802         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
5803         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
5804         * modules/getlogin_r (Depends-on): Add memchr.
5805         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
5807 2010-12-22  Bruno Haible  <bruno@clisp.org>
5809         ptsname: Avoid test failure on OSF/1 5.1.
5810         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
5811         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
5812         (same_slave): New function.
5813         (main): Use it to compare ptsname's result with the expected file name.
5815 2010-12-22  Bruno Haible  <bruno@clisp.org>
5817         Port extended stdio modules to HP NonStop Kernel.
5818         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
5819         macros.
5820         * lib/fbufmode.c: Update comments.
5821         * lib/fflush.c: Likewise.
5822         * lib/fpurge.c: Likewise.
5823         * lib/freadable.c: Likewise.
5824         * lib/freadahead.c: Likewise.
5825         * lib/freading.c: Likewise.
5826         * lib/freadptr.c: Likewise.
5827         * lib/freadseek.c: Likewise.
5828         * lib/fseeko.c: Likewise.
5829         * lib/fseterr.c: Likewise.
5830         * lib/fwritable.c: Likewise.
5831         * lib/fwriting.c: Likewise.
5832         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
5834 2010-12-22  Bruno Haible  <bruno@clisp.org>
5836         ttyname_r: Work around bug on OSF/1 5.1.
5837         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
5838         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
5839         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
5840         present.
5841         * lib/ttyname_r.c (ttyname_r): Update comments.
5843 2010-12-22  Bruno Haible  <bruno@clisp.org>
5845         round: Implement result sign according to IEEE 754.
5846         * lib/round.c (MIN, MINUS_ZERO): New macros.
5847         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
5848         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
5849         * tests/test-round-ieee.c (main): Likewise.
5850         * tests/test-roundl-ieee.c (main): Likewise.
5852         trunc: Implement result sign according to IEEE 754.
5853         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
5854         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
5855         * tests/test-trunc2.c: Include minus-zero.h.
5856         (MINUS_ZERO): New macro.
5857         (trunc_reference): Keep in sync with lib/trunc.c.
5858         * tests/test-truncf2.c: Include minus-zero.h.
5859         (MINUS_ZERO): New macro.
5860         (truncf_reference): Keep in sync with lib/trunc.c.
5861         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
5862         * tests/test-trunc-ieee.c (main): Likewise.
5863         * tests/test-truncl-ieee.c (main): Likewise.
5865         ceil: Implement result sign according to IEEE 754.
5866         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
5867         (FUNC): Return -0.0 for -1 < x < 0.
5868         * tests/test-ceil2.c: Include minus-zero.h.
5869         (MINUS_ZERO): New macro.
5870         (ceil_reference): Keep in sync with lib/ceil.c.
5871         * tests/test-ceilf2.c: Include minus-zero.h.
5872         (MINUS_ZERO): New macro.
5873         (ceilf_reference): Keep in sync with lib/ceil.c.
5874         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
5875         * tests/test-ceil-ieee.c (main): Likewise.
5876         * tests/test-ceill-ieee.c (main): Likewise.
5878         floor: Implement result sign according to IEEE 754.
5879         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
5880         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
5881         * tests/test-floorf2.c (floorf_reference): Likewise.
5882         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
5883         * tests/test-floor-ieee.c (main): Likewise.
5884         * tests/test-floorl-ieee.c (main): Likewise.
5886 2010-12-22  Bruno Haible  <bruno@clisp.org>
5888         getaddrinfo: Update doc.
5889         * doc/posix-functions/gai_strerror.texi: Return type is also different
5890         on AIX and HP-UX.
5892 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
5894         getaddrinfo, inet_ntop: Update doc for Solaris.
5895         * doc/posix-functions/gai_strerror.texi: Return type is also an
5896         issue on Solaris 9 and earlier.
5897         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
5898         on Solaris 10 and earlier.
5900 2010-12-21  Bruno Haible  <bruno@clisp.org>
5902         New module 'roundl-ieee'.
5903         * modules/roundl-ieee: New file.
5904         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
5905         test whether roundl works according to ISO C 99 with IEC 60559.
5906         * m4/roundl-ieee.m4: New file.
5907         * modules/roundl-ieee-tests: New file.
5908         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
5909         * tests/test-roundl.c (main): Remove signbit tests.
5910         * modules/roundl-tests (Depends-on): Remove signbit.
5911         * doc/posix-functions/roundl.texi: Mention the new module.
5913 2010-12-21  Bruno Haible  <bruno@clisp.org>
5915         New module 'truncl-ieee'.
5916         * modules/truncl-ieee: New file.
5917         * modules/truncl-ieee-tests: New file.
5918         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
5919         * tests/test-truncl.c (main): Remove signbit tests.
5920         * modules/truncl-tests (Depends-on): Remove signbit.
5921         * doc/posix-functions/truncl.texi: Mention the new module.
5923 2010-12-21  Bruno Haible  <bruno@clisp.org>
5925         New module 'ceill-ieee'.
5926         * modules/ceill-ieee: New file.
5927         * modules/ceill-ieee-tests: New file.
5928         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
5929         * tests/test-ceill.c (main): Remove signbit tests.
5930         * modules/ceill-tests (Depends-on): Remove signbit.
5931         * doc/posix-functions/ceill.texi: Mention the new module.
5933 2010-12-21  Bruno Haible  <bruno@clisp.org>
5935         New module 'floorl-ieee'.
5936         * modules/floorl-ieee: New file.
5937         * modules/floorl-ieee-tests: New file.
5938         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
5939         * tests/test-floorl.c (main): Remove signbit tests.
5940         * modules/floorl-tests (Depends-on): Remove signbit.
5941         * doc/posix-functions/floorl.texi: Mention the new module.
5943 2010-12-21  Bruno Haible  <bruno@clisp.org>
5945         New module 'round-ieee'.
5946         * modules/round-ieee: New file.
5947         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
5948         whether round works according to ISO C 99 with IEC 60559.
5949         * m4/round-ieee.m4: New file.
5950         * modules/round-ieee-tests: New file.
5951         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
5952         * tests/test-round1.c (main): Remove signbit tests.
5953         * modules/round-tests (Depends-on): Remove 'signbit'.
5954         * doc/posix-functions/round.texi: Mention the new module.
5956 2010-12-21  Bruno Haible  <bruno@clisp.org>
5958         New module 'trunc-ieee'.
5959         * modules/trunc-ieee: New file.
5960         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
5961         whether trunc works according to ISO C 99 with IEC 60559.
5962         * m4/trunc-ieee.m4: New file.
5963         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
5964         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
5965         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
5966         * modules/trunc-ieee-tests: New file.
5967         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
5968         * tests/test-trunc1.c (main): Remove signbit tests.
5969         * modules/trunc-tests (Depends-on): Remove 'signbit'.
5970         * doc/posix-functions/trunc.texi: Mention the new module.
5972 2010-12-21  Bruno Haible  <bruno@clisp.org>
5974         New module 'ceil-ieee'.
5975         * modules/ceil-ieee: New file.
5976         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
5977         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
5978         ISO C 99 with IEC 60559.
5979         * m4/ceil-ieee.m4: New file.
5980         * modules/ceil (Files): Add lib/ceil.c.
5981         (Depends-on): Add 'float'.
5982         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
5983         * lib/math.in.h (ceil): New declaration.
5984         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
5985         REPLACE_CEIL.
5986         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
5987         * modules/ceil-ieee-tests: New file.
5988         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
5989         * tests/test-math-c++.cc: Check the signature of 'ceil'.
5990         * doc/posix-functions/ceil.texi: Mention the new module.
5992 2010-12-21  Bruno Haible  <bruno@clisp.org>
5994         New module 'floor-ieee'.
5995         * modules/floor-ieee: New file.
5996         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
5997         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
5998         ISO C 99 with IEC 60559.
5999         * m4/floor-ieee.m4: New file.
6000         * modules/floor (Files): Add lib/floor.c.
6001         (Depends-on): Add 'float'.
6002         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
6003         * lib/math.in.h (floor): New declaration.
6004         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
6005         REPLACE_FLOOR.
6006         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
6007         * modules/floor-ieee-tests: New file.
6008         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
6009         * tests/test-math-c++.cc: Check the signature of 'floor'.
6010         * doc/posix-functions/floor.texi: Mention the new module.
6012 2010-12-21  Bruno Haible  <bruno@clisp.org>
6014         New module 'roundf-ieee'.
6015         * modules/roundf-ieee: New file.
6016         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
6017         test whether roundf works according to ISO C 99 with IEC 60559.
6018         * m4/roundf-ieee.m4: New file.
6019         * modules/roundf-ieee-tests: New file.
6020         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
6021         * tests/test-roundf1.c (main): Remove signbit tests.
6022         * modules/roundf-tests (Depends-on): Remove 'signbit'.
6023         * doc/posix-functions/roundf.texi: Mention the new module.
6025 2010-12-21  Bruno Haible  <bruno@clisp.org>
6027         New module 'truncf-ieee'.
6028         * modules/truncf-ieee: New file.
6029         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
6030         test whether truncf works according to ISO C 99 with IEC 60559.
6031         * m4/truncf-ieee.m4: New file.
6032         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
6033         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
6034         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
6035         * modules/truncf-ieee-tests: New file.
6036         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
6037         * tests/test-truncf1.c (main): Remove signbit tests.
6038         * modules/truncf-tests (Depends-on): Remove 'signbit'.
6039         * doc/posix-functions/truncf.texi: Mention the new module.
6041 2010-12-21  Bruno Haible  <bruno@clisp.org>
6043         New module 'ceilf-ieee'.
6044         * modules/ceilf-ieee: New file.
6045         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
6046         test whether ceilf works according to ISO C 99 with IEC 60559.
6047         * m4/ceilf-ieee.m4: New file.
6048         * modules/ceilf-ieee-tests: New file.
6049         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
6050         * tests/test-ceilf1.c (main): Remove signbit tests.
6051         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
6052         * doc/posix-functions/ceilf.texi: Mention the new module.
6054 2010-12-21  Bruno Haible  <bruno@clisp.org>
6056         New module 'floorf-ieee'.
6057         * modules/floorf-ieee: New file.
6058         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
6059         test whether floorf works according to ISO C 99 with IEC 60559.
6060         * m4/floorf-ieee.m4: New file.
6061         * modules/floorf-ieee-tests: New file.
6062         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
6063         * tests/test-floorf1.c (main): Remove signbit tests.
6064         * modules/floorf-tests (Depends-on): Remove 'signbit'.
6065         * doc/posix-functions/floorf.texi: Mention the new module.
6067 2010-12-21  Bruno Haible  <bruno@clisp.org>
6069         Support for minus zero in autoconf macros.
6070         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
6071         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
6072         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
6073         * tests/minus-zero.h: Update comments.
6075 2010-12-21  Bruno Haible  <bruno@clisp.org>
6077         Tests for module 'ceil'.
6078         * modules/ceil-tests: New file.
6079         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
6080         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
6082 2010-12-21  Bruno Haible  <bruno@clisp.org>
6084         Tests for module 'floor'.
6085         * modules/floor-tests: New file.
6086         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
6087         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
6089 2010-12-21  Bruno Haible  <bruno@clisp.org>
6091         math: Fix indentation.
6092         * lib/math.in.h (floorf): Fix indentation.
6094 2010-12-21  Bruno Haible  <bruno@clisp.org>
6096         Fix cross-compilation guesses on Solaris.
6097         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
6098         not match "solaris2.10".
6099         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
6100         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
6101         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
6103 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
6105         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
6106         This fixes a problem observed with the latest coreutils snapshot
6107         that caused a test to fail on Solaris 8.  src/csplit.c's call
6108         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
6109         earlier, instead of returning the number of bytes that would have
6110         been generated; this causes csplit to incorrectly report memory
6111         exhaustion.
6112         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
6113         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
6114         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
6115         comments to match.
6116         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
6117         Fix typo in matching older versions of Solaris: "solaris2.10"
6118         is matched by the shell pattern "solaris2.[0-9]*".  This matters
6119         only for guessing while cross-compiling.
6120         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
6122 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
6124         ftoastr: fix comment again
6125         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
6126         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
6127         Also, simplify example a bit by using flags = 0.
6129 2010-12-20  Bruno Haible  <bruno@clisp.org>
6131         round*, trunc*: Update documentation regarding glibc.
6132         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
6133         * doc/posix-functions/round.texi: Likewise.
6134         * doc/posix-functions/roundl.texi: Likewise.
6135         * doc/posix-functions/truncf.texi: Likewise.
6136         * doc/posix-functions/trunc.texi: Likewise.
6137         * doc/posix-functions/truncl.texi: Likewise.
6139 2010-12-20  Bruno Haible  <bruno@clisp.org>
6141         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
6142         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
6143         * doc/posix-functions/round.texi: Likewise.
6144         * doc/posix-functions/roundl.texi: Likewise.
6146 2010-12-20  Bruno Haible  <bruno@clisp.org>
6148         ttyname_r: Add missing declaration on HP-UX 11.
6149         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
6150         HAVE_TTYNAME_R.
6151         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
6152         declared. Set HAVE_TTYNAME_R always.
6153         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
6154         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
6155         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
6156         HAVE_TTYNAME_R.
6157         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
6159 2010-12-20  Bruno Haible  <bruno@clisp.org>
6161         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
6162         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
6163         * doc/posix-functions/getlogin_r.texi: Likewise.
6164         * tests/test-getlogin.c: Include <errno.h>.
6165         (main): Avoid test failure on HP-UX 11.11.
6166         * tests/test-getlogin_r.c (main): Likewise.
6168 2010-12-20  Bruno Haible  <bruno@clisp.org>
6170         getlogin_r: Add missing declaration on HP-UX 11.
6171         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
6172         declared also when it exists as a function.
6173         * doc/posix-functions/getlogin_r.texi: Document this workaround.
6175 2010-12-20  Bruno Haible  <bruno@clisp.org>
6177         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
6178         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
6179         through wcrtomb.
6181 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
6183         ftoastr: fix comment
6184         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
6185         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
6187 2010-12-19  Bruno Haible  <bruno@clisp.org>
6189         isnan: Ensure it is a macro.
6190         * lib/math.in.h (isnan): Define as a macro if not already a macro.
6191         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
6192         Solaris.
6194 2010-12-19  Bruno Haible  <bruno@clisp.org>
6196         ldexpl test: Fix link error on OSF/1 5.1.
6197         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
6199 2010-12-19  Bruno Haible  <bruno@clisp.org>
6201         wctype: Make it work in C++ mode on OSF/1 5.1.
6202         * lib/wctype.in.h (iswblank): Declare but not define here.
6203         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
6204         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
6205         * modules/wctype (Files): Add lib/iswblank.c.
6207 2010-12-19  Bruno Haible  <bruno@clisp.org>
6209         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
6210         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
6211         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
6213 2010-12-19  Bruno Haible  <bruno@clisp.org>
6215         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
6216         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
6217         _POSIX_PII_SOCKET.
6218         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
6219         * doc/posix-functions/recvfrom.texi: Likewise.
6220         * doc/posix-functions/send.texi: Likewise.
6221         * doc/posix-functions/sendto.texi: Likewise.
6223 2010-12-19  Bruno Haible  <bruno@clisp.org>
6225         tcgetsid: Add missing declaration on OSF/1 5.1.
6226         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
6227         HAVE_TCGETSID.
6228         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
6229         Don't set HAVE_TCGETSID.
6230         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
6231         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
6232         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
6233         HAVE_TCGETSID.
6234         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
6236 2010-12-19  Bruno Haible  <bruno@clisp.org>
6238         stdio: Fix problem with popen() declaration on OSF/1 5.1.
6239         * lib/stdio.in.h: During the include_next statement, let recursive
6240         includes of this file include only the system header file.
6242 2010-12-19  Bruno Haible  <bruno@clisp.org>
6244         iconv_open: Fix regression from 2010-12-04.
6245         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
6246         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
6248 2010-12-19  Bruno Haible  <bruno@clisp.org>
6250         stdbool test: Avoid a gcc warning.
6251         * tests/test-stdbool.c (main): Fail if e1 is false.
6252         Reported by Jim Meyering.
6254 2010-12-19  Jim Meyering  <meyering@redhat.com>
6256         setenv: restore to working order
6257         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
6258         mistakenly removed.
6259         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
6260         HAVE_SETENV.
6261         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
6262         HAVE_SETENV.
6264 2010-12-19  Bruno Haible  <bruno@clisp.org>
6266         Document some different function declarations on OSF/1 5.1.
6267         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
6268         * doc/posix-functions/inet_ntop.texi: Likewise.
6269         * doc/posix-functions/gethostname.texi: Likewise.
6270         * lib/unistd.in.h (gethostname): Update comment.
6272 2010-12-19  Bruno Haible  <bruno@clisp.org>
6274         doc: Mention vasprintf-posix module.
6275         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
6276         the 'vasprintf-posix' module.
6277         * doc/glibc-functions/vasprintf.texi: Likewise.
6279 2010-12-19  Bruno Haible  <bruno@clisp.org>
6281         unsetenv: Add missing declaration on OSF/1 5.1.
6282         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
6283         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
6284         Don't set HAVE_UNSETENV. In the test program, set _BSD.
6285         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
6286         not HAVE_UNSETENV.
6287         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
6288         HAVE_UNSETENV.
6289         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
6291 2010-12-19  Bruno Haible  <bruno@clisp.org>
6293         setenv: Add missing declaration on OSF/1 5.1.
6294         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
6295         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
6296         declared. Don't set HAVE_SETENV.
6297         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
6298         not HAVE_SETENV.
6299         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
6300         HAVE_SETENV.
6301         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
6303 2010-12-19  Bruno Haible  <bruno@clisp.org>
6305         nl_langinfo tests: Avoid gcc warning.
6306         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
6308 2010-12-19  Bruno Haible  <bruno@clisp.org>
6310         mknod: Avoid error in C++ mode on OSF/1 with GCC.
6311         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
6312         _GL_CXXALIAS_SYS.
6314 2010-12-19  Bruno Haible  <bruno@clisp.org>
6316         stdbool: Relax test.
6317         * tests/test-stdbool.c (e): Don't require that casts from a variable's
6318         address to 'bool' work in static initializer, for compilers other than
6319         GCC.
6321 2010-12-19  Bruno Haible  <bruno@clisp.org>
6323         ftello: Add missing declaration on OSF/1 5.1.
6324         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
6325         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
6326         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
6327         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
6328         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
6330 2010-12-19  Bruno Haible  <bruno@clisp.org>
6332         fseeko: Add missing declaration on OSF/1 5.1.
6333         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
6334         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
6335         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
6336         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
6337         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
6339 2010-12-19  Bruno Haible  <bruno@clisp.org>
6341         fchdir: Add missing declaration on OSF/1 5.1.
6342         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
6343         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
6344         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
6345         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
6346         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
6348 2010-12-19  Bruno Haible  <bruno@clisp.org>
6350         relocatable-prog-wrapper: Separate from relocatable-prog.
6351         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
6352         uninstall-relocwrapper rule here.
6353         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
6354         Reported by Ian Beckwith <ianb@erislabs.net>.
6356 2010-12-19  Bruno Haible  <bruno@clisp.org>
6358         unistr/u8-mbsnlen: Add missing dependency.
6359         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
6360         Reported by Ian Beckwith <ianb@erislabs.net>.
6362 2010-12-19  Bruno Haible  <bruno@clisp.org>
6364         iconv: Make it possible again to use this module without 'iconv-h'.
6365         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
6366         if it is not defined.
6367         Reported by Ian Beckwith <ianb@erislabs.net>.
6369 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
6371         acl: port to Solaris 8 when copying from tmpfs to ufs
6372         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
6373         error number.  Problem observed on Solaris 8 with latest
6374         coreutils, with "mv A B", where A is on a tmpfs file system and B
6375         is on a ufs file system.  This caused coreutils' mv/part-symlink
6376         test to fail.
6378         tests: set fail=0 at start
6379         * tests/init.sh (setup_): Move fail=0 initialization here ...
6380         (mktempd_): ... from here, so that tests can rely on fail being
6381         set to 0 initially.  This fixes a problem in coreutils; see:
6382         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
6384 2010-12-18  Bruno Haible  <bruno@clisp.org>
6386         memmem-simple: Stylistic changes.
6387         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
6388         Fix preprocessor directive indentation.
6390 2010-12-15  Pádraig Brady <P@draigBrady.com>
6392         memmem, memmem-simple: reorganize and expand empty needle check
6393         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
6394         functional checks to memmem-simple so that one has a fully functional
6395         memmem by using just this module.
6396         Restrict the performance only check to the memmem module.
6397         Also expand the empty needle check to ensure the correct
6398         pointer is returned, not just a non NULL pointer.
6399         * doc/glibc-functions/memmem.texi: Rearrange the portability
6400         documentation to correlate with the rearranged checks.
6401         Clarify exactly how the memmem and memmem-simple modules
6402         relate to each other.
6404 2010-12-15  Pádraig Brady <P@draigBrady.com>
6405             Bruno Haible  <bruno@clisp.org>
6407         Improve cross-compilation guesses for uClibc.
6408         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
6409         that uClibc does not have the glibc bug.
6410         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
6411         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
6413 2010-12-14  Eric Blake  <eblake@redhat.com>
6415         configmake: provide fallbacks for oldest supported autotools
6416         * m4/configmake.m4: New file.
6417         * modules/configmake (Files): Ship it.
6418         (configure.ac): Use it to guarantee fallbacks.
6420 2010-12-13  Pádraig Brady <P@draigBrady.com>
6422         read-file: Improve handling of large files
6423         * lib/read-file.c (fread_file): Minimize realloc()s
6424         for regular files, and better manage sizes around SIZE_MAX.
6426 2010-12-13  Eric Blake  <eblake@redhat.com>
6428         cloexec, fcntl: relax license
6429         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
6430         consent from all contributors.
6431         * modules/fcntl (License): Likewise.
6433 2010-12-10  Bruno Haible  <bruno@clisp.org>
6435         Tests for module 'pipe-posix'.
6436         * modules/pipe-posix-tests: New file.
6437         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
6439 2010-12-10  Bruno Haible  <bruno@clisp.org>
6441         pipe-posix: Make it work in C++ mode.
6442         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
6443         (pipe): Use common idiom, not a macro definition.
6444         * lib/pipe.c: New file.
6445         * m4/pipe.m4: New file.
6446         * modules/pipe-posix (Description): Enhance.
6447         (Files): Add lib/pipe.c, m4/pipe.m4.
6448         (configure.ac): Invoke gl_FUNC_PIPE.
6449         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
6450         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
6451         * tests/test-unistd-c++.cc: Check the signature of pipe.
6453 2010-12-10  Bruno Haible  <bruno@clisp.org>
6455         Rename module 'pipe' to 'spawn-pipe'.
6456         * modules/spawn-pipe: New file, renamed from modules/pipe.
6457         (Files, configure.ac, Makefile.am): Update.
6458         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
6459         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
6460         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
6461         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
6462         "spawn-pipe.h" instead of "pipe.h".
6463         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
6464         to gl_SPAWN_PIPE.
6465         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
6466         (Files, Makefile.am): Update.
6467         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
6468         Update.
6469         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
6470         Include "spawn-pipe.h" instead of "pipe.h".
6471         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
6472         * lib/javacomp.c: Likewise.
6473         * lib/javaversion.c: Likewise.
6474         * lib/pipe-filter-gi.c: Likewise.
6475         * lib/pipe-filter-ii.c: Likewise.
6476         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
6477         * modules/javacomp (Depends-on): Likewise.
6478         * modules/javaversion (Depends-on): Likewise.
6479         * modules/pipe-filter-gi (Depends-on): Likewise.
6480         * modules/pipe-filter-ii (Depends-on): Likewise.
6481         * MODULES.html.sh (Executing programs): Update.
6482         * NEWS: Mention the change.
6484 2010-12-10  Eric Blake  <eblake@redhat.com>
6486         pipe-posix: new module
6487         * modules/pipe-posix: New file.
6488         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
6489         (gl_UNISTD_H): Check for declaration.
6490         * modules/unistd (Makefile.am): Substitute it.
6491         * lib/unistd.in.h (pipe): Provide it for mingw.
6492         * doc/posix-functions/pipe.texi (pipe): Update documentation.
6493         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
6495 2010-12-07  Bruno Haible  <bruno@clisp.org>
6497         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
6498         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
6499         u8_strcmp_gnu.
6500         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
6502 2010-12-06  Bruno Haible  <bruno@clisp.org>
6504         Update internal documentation.
6505         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
6507 2010-12-04  Bruno Haible  <bruno@clisp.org>
6509         Put more information about failed tests into the test return codes.
6510         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
6511         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
6512         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
6513         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
6514         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
6515         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
6516         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
6517         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
6518         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
6519         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
6520         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
6521         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
6522         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
6523         * m4/stdint.m4 (gl_STDINT_H): Likewise.
6524         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
6525         returns a bit mask.
6526         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
6527         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
6528         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
6529         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
6530         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
6531         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
6532         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
6533         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
6534         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
6535         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
6536         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
6537         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
6538         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
6539         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
6540         * m4/link.m4 (gl_FUNC_LINK): Likewise.
6541         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
6542         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
6543         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
6544         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
6545         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
6546         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
6547         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
6548         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
6549         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
6550         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
6551         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
6552         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
6553         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
6554         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
6555         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
6556         gl_PRINTF_PRECISION): Likewise.
6557         * m4/regex.m4 (gl_REGEX): Likewise.
6558         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
6559         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
6560         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
6561         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
6562         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
6563         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
6564         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
6565         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
6566         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
6567         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
6568         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
6569         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
6570         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
6571         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
6572         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
6573         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
6574         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
6575         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
6576         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
6577         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
6578         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
6579         enumerated value.
6580         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
6582 2010-12-04  Bruno Haible  <bruno@clisp.org>
6584         Update for Solaris 11 2010-11.
6585         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
6586         Express, released in November 2010.
6588 2010-12-04  Bruno Haible  <bruno@clisp.org>
6590         nproc: Relax license.
6591         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
6592         and Paul Eggert.
6593         Requested by Ludovic Courtès <ludo@gnu.org>.
6595 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
6597         utimecmp: fine-grained src to nearby coarse-grained dest
6599         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
6600         and the source is on a file system with higher-resolution time
6601         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
6602         not work, and the time stamps are close together, the algorithm to
6603         determine the exact resolution from the read-back mtime was buggy:
6604         it had a "!=" where it should have had an "==".  This bug has been
6605         in the code ever since it was introduced to gnulib.
6606         Problem reported by Dan Jacobson in
6607         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
6609 2010-11-30  Bruno Haible  <bruno@clisp.org>
6611         strerror_r-posix: Fix autoconf test.
6612         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
6614 2010-11-28  Bruno Haible  <bruno@clisp.org>
6615             Paul Eggert  <eggert@cs.ucla.edu>
6617         Tests for module 'getdomainname'.
6618         * modules/getdomainname-tests: New file.
6619         * tests/test-getdomainname.c: New file, based on
6620         tests/test-gethostname.c.
6622 2010-11-28  Bruno Haible  <bruno@clisp.org>
6623             Paul Eggert  <eggert@cs.ucla.edu>
6625         getdomainname: Use the system function when possible.
6626         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
6627         (getdomainname): Replace if needed. Provide the declaration if it is
6628         missing. Don't use _GL_CXXALIAS_SYS_CAST.
6629         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
6630         (getdomainname): When the system has getdomainname, call the system
6631         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
6632         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
6633         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
6634         found in libnsl. Look for the declaration also in <netdb.h>. Replace
6635         the function if its second argument is of type 'int' or if it is found
6636         in libnsl.
6637         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
6638         <sys/systeminfo.h> and sysinfo().
6639         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
6640         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
6641         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
6642         HAVE_GETDOMAINNAME.
6643         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
6644         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
6645         * doc/glibc-functions/getdomainname.texi: Document the problems with
6646         the getdomainname declaration.
6648 2010-11-28  Bruno Haible  <bruno@clisp.org>
6650         sys_socket: Ensure ss_family field on AIX.
6651         * lib/sys_socket.in.h (ss_family): New macro definition.
6652         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
6653         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
6654         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
6655         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
6656         * modules/sys_socket (Makefile.am): Substitute
6657         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
6658         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
6660 2010-11-27  Bruno Haible  <bruno@clisp.org>
6662         readline: Improve configure output.
6663         * m4/readline.m4 (gl_FUNC_READLINE): Make the
6664         "checking for readline..." result understandable.
6666 2010-11-27  Bruno Haible  <bruno@clisp.org>
6668         *printf-posix: Detect a bug on Solaris 10/x86.
6669         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
6670         for floating-point output.
6671         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
6672         directive.
6673         * tests/test-snprintf-posix.h (test_function): Likewise.
6674         * tests/test-sprintf-posix.h (test_function): Likewise.
6675         * tests/test-vasprintf-posix.c (test_function): Likewise.
6676         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
6677         * doc/posix-functions/printf.texi: Likewise.
6678         * doc/posix-functions/snprintf.texi: Likewise.
6679         * doc/posix-functions/sprintf.texi: Likewise.
6680         * doc/posix-functions/vfprintf.texi: Likewise.
6681         * doc/posix-functions/vprintf.texi: Likewise.
6682         * doc/posix-functions/vsnprintf.texi: Likewise.
6683         * doc/posix-functions/vsprintf.texi: Likewise.
6684         * doc/glibc-functions/obstack_printf.texi: Likewise.
6685         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
6687 2010-11-27  Bruno Haible  <bruno@clisp.org>
6689         Fix link error when module libunistring-optional is in use.
6690         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
6691         * modules/striconveha-tests (Makefile.am): Likewise.
6693 2010-11-27  Bruno Haible  <bruno@clisp.org>
6695         regex: Mention link dependencies.
6696         * modules/regex (Link): New section.
6697         * modules/rpmatch (Link): Likewise.
6698         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
6700 2010-11-27  Bruno Haible  <bruno@clisp.org>
6702         ftoastr: Fix compilation error on Solaris.
6703         * lib/ftoastr.c: Include <config.h>.
6705 2010-11-27  Bruno Haible  <bruno@clisp.org>
6707         getloadavg: Update documentation.
6708         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
6710 2010-11-27  Bruno Haible  <bruno@clisp.org>
6712         sys_socket: Fix test whether the functions are declared.
6713         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
6714         not <sys/select.h>.
6716 2010-11-27  Bruno Haible  <bruno@clisp.org>
6718         getpass: Make sure to get system declaration on some platforms.
6719         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
6720         gl_USE_SYSTEM_EXTENSIONS.
6721         * modules/getpass (Depends-on): Add extensions.
6723 2010-11-26  Bruno Haible  <bruno@clisp.org>
6725         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
6726         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
6727         'iconv' module is present.
6728         (ICONV_CONST): New macro.
6729         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
6730         ICONV_CONST.
6731         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
6732         set ICONV_CONST.
6733         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
6734         here.
6735         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
6736         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
6737         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
6738         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
6739         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
6740         present.
6742 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
6744         ftoastr: comment fix
6745         * lib/ftoastr.c: "little" -> "little or no" in comment
6747 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
6749         stdint: port to GCC 4.3 + OSX + Octave
6750         On this platform, stdint.h is buggy and defines int64_t to long
6751         long int.  The replacement defined it to long int, causing
6752         problems with C++ style name mangling.  Instead, trust the system
6753         definition if INT64_MAX is defined, and likewise for the unsigned
6754         variant.   Problem reported by Jarno Rajahalme in
6755         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
6756         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
6757         and don't mess with int64_t and INT64_MAX in this case.
6758         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
6760 2010-11-24  Bruno Haible  <bruno@clisp.org>
6762         doc: Corrections regarding MacOS X 10.4 and 10.5.
6763         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
6764         MacOS X.
6765         Reported by Simon Josefsson.
6767 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
6769         Uninstall ".bin" files installed by relocwrapper.
6770         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
6771         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
6772         unless it is already there.
6774 2010-11-21  Bruno Haible  <bruno@clisp.org>
6776         Update for NetBSD 5.0.
6777         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
6778         NetBSD; the test fails on NetBSD 5.0.
6779         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
6780         about NetBSD.
6782 2010-11-21  Bruno Haible  <bruno@clisp.org>
6784         Update for HP-UX 11.23 and HP-UX 11.31.
6785         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
6786         HP-UX.
6788 2010-11-21  Bruno Haible  <bruno@clisp.org>
6790         Update for MacOS X 10.5.
6791         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
6792         MacOS X; the test fails on MacOS X 10.5.8.
6793         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
6794         about MacOS X.
6796 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
6798         bootstrap: add bootstrap_sync option.
6799         See discussion at
6800         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
6801         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
6802         * build-aux/bootstrap: Accept --bootstrap-sync to update
6803         bootstrap if it is not identical to the local gnulib's
6804         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
6805         enable this by default.  Accept --no-bootstrap-sync to disable
6806         it.
6808 2010-11-20  Bruno Haible  <bruno@clisp.org>
6810         Ensure that <features.h> is included before __GLIBC__ is tested.
6811         * lib/printf-parse.h: Include <features.h>.
6812         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
6813         Reported by Mike Frysinger <vapier@gentoo.org>.
6815         Ensure that <features.h> is included before __GLIBC__ is tested.
6816         * lib/wchar.in.h: Include <features.h>.
6817         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
6818         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
6819         Reported by Mike Frysinger <vapier@gentoo.org>.
6821         Ensure that <features.h> is included before __GLIBC__ is tested.
6822         * lib/arpa_inet.in.h: Include <features.h>.
6823         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
6824         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
6825         Reported by Mike Frysinger <vapier@gentoo.org>.
6827         Ensure that <features.h> is included before __GLIBC__ is tested.
6828         * build-aux/link-warning.h: Include <features.h>.
6829         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
6830         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
6831         Reported by Mike Frysinger <vapier@gentoo.org>.
6833         Ensure that <features.h> is included before __GLIBC__ is tested.
6834         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
6835         Reported by Mike Frysinger <vapier@gentoo.org>.
6837 2010-11-20  Bruno Haible  <bruno@clisp.org>
6839         memmem: Fix autoconf test.
6840         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
6842 2010-11-20  Bruno Haible  <bruno@clisp.org>
6844         Port to uClibc.
6845         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
6846         * lib/fcntl.in.h: Likewise.
6847         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
6848         * lib/mbrtowc.c (mbrtowc): Likewise.
6849         * lib/relocatable.c (find_shared_library_fullname): Likewise.
6850         * lib/strerror_r.c: Likewise.
6851         * lib/unistr/u8-strnlen.c: Likewise.
6852         * lib/vasnprintf.c (decimal_point_char): Likewise.
6853         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
6854         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
6855         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
6856         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
6857         * tests/test-sigaction.c (handler, main): Likewise.
6858         * lib/freading.h: Treat uClibc like a non-glibc platform.
6859         * lib/freading.c: Likewise.
6860         * lib/gettext.h: Likewise.
6861         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
6862         Likewise.
6863         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
6864         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
6865         * lib/propername.c (proper_name_utf8): Likewise.
6866         * lib/spawn.in.h: Likewise.
6867         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
6868         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
6869         mem_cd_iconveh_internal): Likewise.
6870         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
6871         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
6872         strstr, strcasestr): Likewise.
6873         * lib/unicodeio.c (unicode_to_mb): Likewise.
6874         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
6875         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
6876         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
6877         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
6878         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
6879         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
6880         * lib/unistr/u8-stpncpy.c: Likewise.
6881         * lib/vasnprintf.c (VASNPRINTF): Likewise.
6882         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
6883         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
6884         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
6885         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
6886         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
6887         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
6888         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
6889         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
6890         Likewise.
6891         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
6892         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
6893         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
6894         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
6895         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
6896         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
6897         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
6898         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
6899         * tests/test-getopt.h (OPTIND_MIN): Likewise.
6900         * tests/test-striconveha.c (main): Likewise.
6901         * tests/test-vasnprintf-posix.c (test_function): Likewise.
6902         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
6903         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
6904         * doc/posix-functions/getline.texi: Likewise.
6905         Reported by Mike Frysinger <vapier@gentoo.org>.
6907 2010-11-20  Bruno Haible  <bruno@clisp.org>
6909         nproc: Fix condition.
6910         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
6911         HAVE_PTHREAD_AFFINITY_NP.
6913 2010-11-20  Bruno Haible  <bruno@clisp.org>
6915         Fix a comment.
6916         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
6918 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
6920         ftoastr: don't assume snprintf
6921         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
6922         Implement a subset of snprintf here, by using sprintf safely.
6923         * modules/ftoastr (Depends-on): Remove snprintf.
6925 2010-11-19  Jim Meyering  <meyering@redhat.com>
6927         test-rename.h: fix compilation failure
6928         * tests/test-rename.h (test_rename): Add omitted "}".
6930 2010-11-17  Jim Meyering  <meyering@redhat.com>
6932         maint.mk: add a URL discussing the no-@acronym policy
6933         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
6935 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
6937         ftoastr: depend on snprintf, improve comments
6938         * lib/ftoastr.c: Also mention Loitsch's draft.
6939         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
6940         needed in the current implementation, but it might simplify
6941         speeding up the code later.
6942         * modules/ftoastr: Depend on snprintf; this improves portability.
6943         Suggested by Bruno Haible in the same email.
6945         ftoastr: port to hosts lacking strtof and strtold
6946         Problem reported by Bruno Haible in
6947         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
6948         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
6949         environment and strtold (and presumably strtof) are not available.
6950         * modules/ftoastr (Files): Add m4/c-strtod.m4.
6951         (configure.ac): Require gl_C99_STRTOLD.
6953 2010-11-18  Bruno Haible  <bruno@clisp.org>
6955         c-strtold: Avoid link error on AIX 7.
6956         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
6957         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
6958         (gl_C_STRTOLD): Test whether strtold_l exists.
6959         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
6961 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
6963         intprops: new macro INT_BITS_STRLEN_BOUND
6964         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
6965         ftoastr.h.  This exposes an internal of intprops.h that was formerly
6966         not exposed.  Also, it uses a slightly tighter bound than before;
6967         though this makes no practical difference, we might as well be as
6968         tight as we easily can.
6970         ftoastr: new module, for lossless conversion of floats to short strings
6971         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
6972         * modules/ftoastr: New files.
6974 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
6976         bootstrap: port to Solaris sed
6977         * build-aux/bootstrap (get_version): Port to Solaris sed.
6978         See Ralf Wildenhues's note in
6979         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
6981 2010-11-14  Jim Meyering  <meyering@redhat.com>
6983         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
6984         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
6985         and move definition closer to sole use.
6987 2010-11-13  Jim Meyering  <meyering@redhat.com>
6989         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
6990         Now we require at least autoconf-2.59, which means the work-around
6991         is no longer needed.
6992         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
6993         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
6994         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
6995         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
6996         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
6998 2010-11-13  Bruno Haible  <bruno@clisp.org>
7000         rename, renameat: Avoid test failures at NFS mounted locations.
7001         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
7002         functions.
7003         (test_rename): Use assert_nonexistent.
7004         * tests/test-rename.c: Include <dirent.h>.
7005         * tests/test-renameat.c: Likewise.
7006         Reported by Gary V. Vaughan <gary@gnu.org>.
7008         rename, renameat: Document Linux bug with NFS
7009         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
7010         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
7011         * doc/posix-functions/renameat.texi: Likewise.
7012         Suggested by Eric Blake.
7014 2010-11-13  Bruno Haible  <bruno@clisp.org>
7016         rename test: Add comments.
7017         * tests/test-rename.h (test_rename): Add structure and comments.
7019 2010-11-13  Eric Blake  <eblake@redhat.com>
7021         maintainer-makefile: cover a few more files
7022         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
7023         scripts generated within C files, for libvirt.
7025 2010-11-13  Bruno Haible  <bruno@clisp.org>
7027         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
7028         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
7029         character, return the number of bytes that belong together, not always
7030         1.
7031         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
7032         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
7033         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
7034         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
7035         number of bytes of an invalid character.
7036         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
7037         (main): Invoke it.
7038         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
7039         results.
7040         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
7041         malformed byte sequences.
7042         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
7043         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
7044         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
7045         Reported by Ben Pfaff and Paolo Bonzini.
7047 2010-11-13  Bruno Haible  <bruno@clisp.org>
7049         openat: Work around glibc bug with fchownat() and empty file names.
7050         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
7051         (gl_FUNC_FCHOWNAT): Invoke it.
7052         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
7053         * doc/posix-functions/fchownat.texi: Document the glibc bug.
7054         Reported by Gary V. Vaughan <gary@gnu.org>.
7056 2010-11-13  Bruno Haible  <bruno@clisp.org>
7058         openat: Ensure autoconf macro ordering.
7059         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
7060         gl_USE_SYSTEM_EXTENSIONS.
7061         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
7063 2010-11-13  Bruno Haible  <bruno@clisp.org>
7065         Update comments.
7066         * lib/unistr/u8-check.c: Update file name in comments.
7067         * lib/unistr/u8-mblen.c: Likewise.
7068         * lib/unistr/u8-prev.c: Likewise.
7069         * lib/unistr/u8-strmblen.c: Likewise.
7070         * lib/unistr/u8-strmbtouc.c: Likewise.
7072 2010-11-13  Jim Meyering  <meyering@redhat.com>
7074         tests: avoid test failure on Solaris 10 due to lack of PATH export
7075         * tests/test-update-copyright.sh: Don't forget to export PATH.
7077         init.sh: ensure that IFS is defined, just in case...
7078         * tests/init.sh (setup_): Ensure that IFS is defined,
7079         so that saving and restoring it works as expected.  This
7080         appears to be useful at least for an old version of dash
7081         from a long time ago (RH 6).  See here for details:
7082         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
7084         maint.mk: tighten "test a == b" check
7085         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
7086         test to files that contain something like #!/bin/sh.
7087         Without this, coreutils would get two false positives in
7088         the comments of C source files.
7090 2010-11-12  Eric Blake  <eblake@redhat.com>
7092         bootstrap: fix typo in previous attempt
7093         * build-aux/bootstrap (buildreq): Correct the grouping.
7094         Reported by Paul Eggert.
7096         maintainer-makefile: prohibit test x == x
7097         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
7098         Based on a report by Matthias Bolte.
7100         bootstrap: allow FreeBSD gzip
7101         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
7102         which has no '.' and goes to stderr.
7103         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
7104         Reported by Matthias Bolte.
7106         maintainer-makefile: check for i18n setup
7107         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
7108         will likely work.
7110 2010-11-12  Bruno Haible  <bruno@clisp.org>
7112         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
7113         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
7114         * lib/nanosleep.c (nanosleep): Likewise.
7116 2010-11-11  Bruno Haible  <bruno@clisp.org>
7118         fcntl-h: Fix for use of C++ on glibc systems.
7119         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
7120         also on glibc systems in C++ mode.
7121         Reported by Gary V. Vaughan <gary@gnu.org>.
7123 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
7125         mknod: avoid false failure with dash
7126         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
7128 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
7130         unlink: Fix "is it should" typo in diagnostic.
7131         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
7132         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
7134 2010-11-11  Bruno Haible  <bruno@clisp.org>
7136         Tests for module 'strerror_r-posix'.
7137         * modules/strerror_r-posix-tests: New file.
7138         * tests/test-strerror_r.c: New file.
7139         * tests/test-string-c++.cc: Check the signature of strerror_r.
7141         New module 'strerror_r-posix'.
7142         * lib/string.in.h (strerror_r): New declaration.
7143         * lib/strerror_r.c: New file.
7144         * m4/strerror_r.m4: New file.
7145         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
7146         of strerror_r.
7147         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
7148         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
7149         * modules/strerror_r-posix: New file.
7150         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
7151         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
7152         * doc/posix-functions/strerror_r.texi: Mention the new module and the
7153         portability problems.
7155 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
7157         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
7158         line is also considered for output. Quoted function name in shell
7159         command, so temporary files for functions like MyClass::operator()
7160         are removed correctly without errors.
7162 2010-11-09  Bruno Haible  <bruno@clisp.org>
7164         * doc/posix-functions/strerror.texi: List more failing platforms.
7166         * doc/posix-functions/strerror.texi: Add a comment.
7168 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
7170         fdopendir: fix bug on MacOS X when low on file descriptors
7172         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
7173         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
7174         All callers changed.
7175         (fdopendir): Invoke save_cwd at the top level, not after using
7176         multiple dup() calls to use up file descriptors.  Then retry
7177         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
7178         less than the maximum number of open file descriptors, because
7179         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
7180         on Mac OS X 10.6.4 for tar 1.24
7181         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
7182         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
7183         and for tar 1.25
7184         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
7186 2010-11-07  Bruno Haible  <bruno@clisp.org>
7188         vasnprintf: Support I flag on glibc systems.
7189         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
7190         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
7191         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
7192         snprintf function.
7193         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
7194         glibc systems.
7195         * tests/test-vasnprintf-posix3.c: New file.
7196         * modules/vasnprintf-posix-tests (Files): Add it.
7197         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
7199 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
7201         [html] Fix copy/paste bug: Use unique name for compiler warnings.
7202         * MODULES.html.sh: For compiler warnings, use name
7203         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
7205 2010-11-05  Eric Blake  <eblake@redhat.com>
7207         ceil, floor: avoid spurious failure with icc
7208         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
7209         [denormals-as-zero] when optimizing without -mieee-fp option.
7210         * tests/test-floorf2.c (floorf_reference): Likewise.
7211         * tests/test-ceilf1.c (dummy): New function.
7212         (main): Use it to outsmart icc's optimization.
7213         * tests/test-floorf1.c (dummy, main): Likewise.
7215         tests: require working signbit
7216         * modules/ceilf-tests (Depends-on): Add signbit.
7217         * modules/ceill-tests (Depends-on): Likewise.
7218         * modules/floorf-tests (Depends-on): Likewise.
7219         * modules/floorl-tests (Depends-on): Likewise.
7220         * modules/round-tests (Depends-on): Likewise.
7221         * modules/roundf-tests (Depends-on): Likewise.
7222         * modules/roundl-tests (Depends-on): Likewise.
7223         * modules/trunc-tests (Depends-on): Likewise.
7224         * modules/truncf-tests (Depends-on): Likewise.
7225         * modules/truncl-tests (Depends-on): Likewise.
7227         strtod: work around icc bug
7228         * lib/strtod.c (minus_zero): Define to working value.
7229         (strtod): Use it to avoid icc bug.
7231         copysign: enhance tests
7232         * modules/copysign-tests (Files): Add minus-zero.h.
7233         * tests/test-copysign.c (main): Also test zeros.
7235 2010-11-04  Eric Blake  <eblake@redhat.com>
7237         ceil, floor, round, trunc: enhance tests of -0
7238         * tests/test-ceilf1.c (main): Ensure correct sign of result.
7239         * tests/test-ceill.c (main): Likewise.
7240         * tests/test-floorf1.c (main): Likewise.
7241         * tests/test-floorl.c (main): Likewise.
7242         * tests/test-round1.c (main): Likewise.
7243         * tests/test-roundf1.c (main): Likewise.
7244         * tests/test-roundl.c (main): Likewise.
7245         * tests/test-trunc1.c (main): Likewise.
7246         * tests/test-truncf1.c (main): Likewise.
7247         * tests/test-truncl.c (main): Likewise.
7249 2010-11-04  Eric Blake  <eblake@redhat.com>
7251         frexp, tests: work around ICC bug with -zero
7252         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
7253         works with more compilers.
7254         * tests/minus-zero.h: New file.
7255         * modules/ceilf-tests (Files): Include it.
7256         * modules/ceill-tests (Files): Likewise.
7257         * modules/floorf-tests (Files): Likewise.
7258         * modules/floorl-tests (Files): Likewise.
7259         * modules/frexp-nolibm-tests (Files): Likewise.
7260         * modules/frexp-tests (Files): Likewise.
7261         * modules/frexpl-nolibm-tests (Files): Likewise.
7262         * modules/frexpl-tests (Files): Likewise.
7263         * modules/isnan-tests (Files): Likewise.
7264         * modules/isnand-nolibm-tests (Files): Likewise.
7265         * modules/isnand-tests (Files): Likewise.
7266         * modules/isnanf-nolibm-tests (Files): Likewise.
7267         * modules/isnanf-tests (Files): Likewise.
7268         * modules/isnanl-nolibm-tests (Files): Likewise.
7269         * modules/isnanl-tests (Files): Likewise.
7270         * modules/round-tests (Files): Likewise.
7271         * modules/roundf-tests (Files): Likewise.
7272         * modules/roundl-tests (Files): Likewise.
7273         * modules/ldexpl-tests (Files): Likewise.
7274         * modules/signbit-tests (Files): Likewise.
7275         * modules/snprintf-posix-tests (Files): Likewise.
7276         * modules/sprintf-posix-tests (Files): Likewise.
7277         * modules/strtod-tests (Files): Likewise.
7278         * modules/trunc-tests (Files): Likewise.
7279         * modules/truncf-tests (Files): Likewise.
7280         * modules/truncl-tests (Files): Likewise.
7281         * modules/vsnprintf-posix-tests (Files): Likewise.
7282         * modules/vsprintf-posix-tests (Files): Likewise.
7283         * modules/vasnprintf-posix-tests (Files): Likewise.
7284         * modules/vasprintf-posix-tests (Files): Likewise.
7285         * tests/test-ceilf1.c (main): Use it.
7286         * tests/test-ceill.c (main): Likewise.
7287         * tests/test-floorf1.c (main): Likewise.
7288         * tests/test-floorl.c (main): Likewise.
7289         * tests/test-frexp.c (main): Likewise.
7290         * tests/test-frexpl.c (main): Likewise.
7291         * tests/test-isnan.c (main): Likewise.
7292         * tests/test-isnand.h (main): Likewise.
7293         * tests/test-isnanf.h (main): Likewise.
7294         * tests/test-isnanl.h (main): Likewise.
7295         * tests/test-ldexpl.c (main): Likewise.
7296         * tests/test-round.c (main): Likewise.
7297         * tests/test-roundf.c (main): Likewise.
7298         * tests/test-roundl.c (main): Likewise.
7299         * tests/test-signbit.c (test_signbitf, test_signbitd)
7300         (test_signbitl): Likewise.
7301         * tests/test-snprintf-posix.h (test_function): Likewise.
7302         * tests/test-sprintf-posix.h (test_function): Likewise.
7303         * tests/test-strtod.c (main): Likewise.
7304         * tests/test-trunc1.c (main): Likewise.
7305         * tests/test-truncf1.c (main): Likewise.
7306         * tests/test-truncl.c (main): Likewise.
7308         isnanl: work around icc bug
7309         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
7311 2010-11-03  Eric Blake  <eblake@redhat.com>
7313         tests: fix compiler warnings
7314         * tests/test-getopt.h (test_getopt): Fix condition.
7315         * tests/test-getopt_long.h (test_getopt_long): Likewise.
7316         * tests/test-pipe2.c (main): Likewise.
7317         * tests/test-quotearg-simple.c (main): Avoid icc warning.
7319         utimens: fix broken m4 test
7320         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
7322 2010-10-28  Bruno Haible  <bruno@clisp.org>
7324         posix_spawn*, getdtablesize: Relax license.
7325         * modules/posix_spawn (License): Change to LGPLv2+.
7326         * modules/posix_spawnp (License): Likewise.
7327         * modules/posix_spawn-internal (License): Likewise.
7328         * modules/posix_spawnattr_init (License): Likewise.
7329         * modules/posix_spawnattr_getflags (License): Likewise.
7330         * modules/posix_spawnattr_setflags (License): Likewise.
7331         * modules/posix_spawnattr_getpgroup (License): Likewise.
7332         * modules/posix_spawnattr_setpgroup (License): Likewise.
7333         * modules/posix_spawnattr_getschedparam (License): Likewise.
7334         * modules/posix_spawnattr_setschedparam (License): Likewise.
7335         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
7336         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
7337         * modules/posix_spawnattr_getsigdefault (License): Likewise.
7338         * modules/posix_spawnattr_setsigdefault (License): Likewise.
7339         * modules/posix_spawnattr_getsigmask (License): Likewise.
7340         * modules/posix_spawnattr_setsigmask (License): Likewise.
7341         * modules/posix_spawnattr_destroy (License): Likewise.
7342         * modules/posix_spawn_file_actions_init (License): Likewise.
7343         * modules/posix_spawn_file_actions_addclose (License): Likewise.
7344         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
7345         * modules/posix_spawn_file_actions_addopen (License): Likewise.
7346         * modules/posix_spawn_file_actions_destroy (License): Likewise.
7347         * modules/getdtablesize (License): Likewise.
7348         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
7350 2010-10-26  Bruno Haible  <bruno@clisp.org>
7352         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
7353         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
7354         Cygwin and mingw.
7355         Suggested by Eric Blake.
7357 2010-10-26  Bruno Haible  <bruno@clisp.org>
7359         stdio: Work around compilation error due to renameat() on Solaris 10.
7360         * lib/stdio.in.h: Include <unistd.h> on Solaris.
7361         * lib/renameat.c: Don't include <unistd.h> here.
7362         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
7363         Reported by Paul Eggert and Eric Blake.
7365 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
7367         renameat: port to Solaris 10, which declares renameat in unistd.h
7369         * lib/renameat.c: Include unistd.h before stdio.h, because
7370         Solaris 10 declares renameat in unistd.h.  Problem encountered
7371         when building GNU tar 1.24 on Solaris 10.
7373 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
7375         fdopendir: fix C89 compilation
7376         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
7377         compilers.
7379 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
7381         inttostr: simplify by removing unnecessary redundancy
7382         * lib/anytostr.c: Don't include verify.h.
7383         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
7384         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
7385         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
7386         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
7387         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
7388         Likewise.
7389         * modules/inttostr (Depends-on): Remove 'verify'.
7391 2010-10-23  Bruno Haible  <bruno@clisp.org>
7393         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
7394         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
7395         Reported by Eric Blake.
7397 2010-10-23  Bruno Haible  <bruno@clisp.org>
7399         Tests: Fix LOCALE_JA on MirBSD 10.
7400         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
7401         to an UTF-8 locale.
7402         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
7403         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
7404         Reported by Eric Blake.
7406 2010-10-21  Bruno Haible  <bruno@clisp.org>
7408         nl_langinfo test: Avoid test failure on NetBSD 5.
7409         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
7410         Reported by Eric Blake.
7412 2010-10-21  Eric Blake  <eblake@redhat.com>
7414         c-stack: work around libsigsegv 2.8 bug
7415         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
7416         overflow on at least PowerPC64.
7418 2010-10-17  Bruno Haible  <bruno@clisp.org>
7420         userspec: Drop redundant file.
7421         * modules/userspec (Files): Remove lib/inttostr.h.
7423 2010-10-17  Bruno Haible  <bruno@clisp.org>
7425         nl_langinfo tests: Silence some warnings.
7426         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
7427         Reported by Jim Meyering.
7429 2010-10-17  Bruno Haible  <bruno@clisp.org>
7431         Make use of GCC's attribute __alloc_size__.
7432         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
7433         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
7434         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
7435         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
7436         __alloc_size__.
7437         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
7438         Suggested by Jim Meyering.
7440 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
7442         bootstrap: anchor .gitignore entries.
7443         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
7444         with...
7445         (insert_vc_ignore): ... this new function, which prepends `/' to
7446         all .gitignore entries before passing them to
7447         insert_sorted_if_absent.
7449 2010-10-16  Bruno Haible  <bruno@clisp.org>
7451         nextafter: Fix configure check.
7452         * modules/nextafter (configure.ac): Correct expected prototype.
7454 2010-10-16  Bruno Haible  <bruno@clisp.org>
7456         termios: Update documentation.
7457         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
7459 2010-10-16  Bruno Haible  <bruno@clisp.org>
7461         tests: Make them compile with TinyCC.
7462         * tests/test-strstr.c (main): Remove parentheses around array
7463         initializer.
7465 2010-10-15  Eric Blake  <eblake@redhat.com>
7467         ignore-value: make header idempotent
7468         * lib/ignore-value.h: Add double-inclusion guards.
7469         Reported by Stefan Berger.
7471 2010-10-15  Jim Meyering  <meyering@redhat.com>
7473         GNUmakefile: handle "stable" target, not "major"
7474         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
7475         lists in maint.mk and announce-gen.  Without this, "make stable"
7476         would fail to ensure that $(VERSION) is up to date.
7478 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
7480         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
7481         & co.
7483 2010-10-14  Bruno Haible  <bruno@clisp.org>
7485         vasnprintf: Don't set errno to 0.
7486         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
7487         block that sets it to 0.
7488         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
7490 2010-10-14  Bruno Haible  <bruno@clisp.org>
7492         socketlib: Fix.
7493         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
7494         gl_PREREQ_SYS_H_WINSOCK2.
7495         Reported by Ian Beckwith <ianb@erislabs.net>.
7497 2010-10-13  Jim Meyering  <meyering@redhat.com>
7499         test-select-stdin.c: avoid warn_unused_result warnings
7500         * tests/test-select-stdin.c: Include "macros.h".
7501         ASSERT that read and fflush succeed.
7503 2010-10-13  Jim Meyering  <meyering@redhat.com>
7505         git-version-gen: do require git-VC'd files in cwd
7506         * build-aux/git-version-gen: Reject a git version string
7507         if there are no commits associated with the current directory.
7508         This avoids an unlikely false-positive (unrelated dir whose parent
7509         repository also contains a tag matching v*), as pointed out
7510         by Giuseppe Scrivano in
7511         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
7513 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
7515         argv-iter: omit nonconforming declaration
7516         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
7517         enum arg_iter_err declaration, which doesn't conform to C99.
7518         Solaris 10 cc warns about this.
7520 2010-10-13  Eric Blake  <eblake@redhat.com>
7522         termios: fix compilation on mingw
7523         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
7524         (gl_TERMIOS_H): Adjust it on mingw.
7525         * modules/termios (Makefile.am): Substitute new key.
7526         * lib/termios.in.h (includes): Make include_next conditional.
7527         * doc/posix-headers/termios.texi (termios.h): Update
7528         documentation.
7529         Reported by Daniel P. Berrange.
7531 2010-10-13  Jim Meyering  <meyering@redhat.com>
7533         git-version-gen: don't require that .git/ be in the current dir
7534         * build-aux/git-version-gen: Adjust this script so that it works
7535         when run from any working directory beneath the top-level .git/-
7536         containing directory.  Inspired by a patch from Giuseppe Scrivano,
7537         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
7539         test-select: avoid warn_unused_result warnings
7540         * tests/test-select.c: Include "macros.h".
7541         ASSERT that each call to read, write, and pipe succeeds.
7542         While not technically required, also check each "close".
7543         * modules/select-tests (Files): Add tests/macros.h.
7545         test-symlinkat: remove declaration of unused local
7546         * tests/test-symlinkat.c (main): Remove unused local, "buf".
7548         test-inttostr: avoid shadowing warnings
7549         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
7550         and use malloc rather than the stack for the same reason as
7551         mentioned in the comment justifying the other allocation.
7553 2010-10-11  Bruno Haible  <bruno@clisp.org>
7555         stdlib: Allow multiple gnulib generated replacements to coexist.
7556         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
7557         Reported by Sam Steingold <sds@gnu.org>.
7559 2010-10-11  Jim Meyering  <meyering@redhat.com>
7561         fix a documentation typo
7562         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
7564 2010-10-11  Eric Blake  <eblake@redhat.com>
7566         futimens: work around Solaris 11 bug
7567         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
7568         * tests/test-futimens.h (test_futimens): Enhance, rather than
7569         weaken test.
7570         * doc/posix-functions/futimens.texi (futimens): Document the bug.
7572 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
7574         Indentation.
7575         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
7576         higher-level operators more to the left.
7578 2010-10-11  Jim Meyering  <meyering@redhat.com>
7580         test-futimens: avoid unwarranted test failure on Solaris 5.11
7581         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
7582         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
7583         because it tries to dereference the NULL name argument.
7585 2010-10-11  Bruno Haible  <bruno@clisp.org>
7587         Indentation.
7588         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
7589         indentation.
7591 2010-10-11  Jim Meyering  <meyering@redhat.com>
7593         spawn.in.h: make indentation consistent with parentheses
7594         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
7595         Make indentation consistent with parentheses.
7597 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
7599         Fix mismatched parens in previous commit
7600         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
7601         parens.
7603 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
7605         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
7607         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
7608         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
7609         * lib/malloca.c: Include "verify.h".
7610         (verify1): Remove, replacing with a verify call.
7611         * lib/relocwrapper.c (verify1): Likewise.
7612         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
7613         Likewise.
7614         * modules/malloca (Depends-on): Add 'verify'.
7615         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
7616         * modules/vasnprintf (Depends-on): Add 'verify'.
7617         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
7618         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
7619         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
7620         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
7621         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
7622         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
7623         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
7625         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
7627         Formerly the style was sometimes 2*X - 1, because the C standard
7628         was wrongly thought to disallow ?: in integral constant expressions.
7629         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
7630         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
7631         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
7632         * lib/stdint.in.h (_verify_intmax_size): Likewise.
7633         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
7634         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
7635         verify that time_t cannot be floating.
7637 2010-10-08  Eric Blake  <eblake@redhat.com>
7639         time: enforce recent POSIX ruling that time_t is integral
7640         * lib/time.in.h (__time_t_must_be_integral): Detect any
7641         problematic systems, allowing the rest of gnulib to assume POSIX.
7643 2010-10-08  Jim Meyering  <meyering@redhat.com>
7645         fdopendir: fix a bug on systems lacking openat and /proc support
7646         OpenBSD 4.7 is one such system.  The most noticeable effect was
7647         failure of any application making nontrivial use of fts: rm, du,
7648         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
7649           ./rm: traversal failed: `a': Bad file descriptor
7650         Debugging that, you see that even though FD 6 was closed just
7651         prior to the opendir call in fd_clone_opendir, its resulting
7652         dir->dd_fd was 8, rather than the expected value of 6:
7654         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
7655         93                close (fd);
7656         (gdb) n
7657         94                dir = fd_clone_opendir (dupfd);
7658         (gdb) n
7659         95                saved_errno = errno;
7660         (gdb) p dir->dd_fd
7661         $11 = 8
7663         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
7664         The problem is that on OpenBSD, fd_clone_opendir has to resort
7665         to using the old-style save/restore CWD mechanism, due to its
7666         lack of openat/proc support, and *that* would steal the FD (6)
7667         that opendir was supposed to use.
7669         The fix is to squirrel away the desired FD so that save_cwd uses a
7670         different one, and then free the dest FD right before calling opendir.
7671         That guarantees opendir will use the required file descriptor.
7673         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
7675 2010-10-08  Bruno Haible  <bruno@clisp.org>
7677         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
7678         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
7680 2010-10-08  Bruno Haible  <bruno@clisp.org>
7682         nanosleep: Make replacement POSIX compliant.
7683         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
7684         is out of range.
7685         Reported by Jim Meyering.
7687 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
7689         bootstrap: add hook for altering gnulib.mk, for Bison
7690         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
7691         the Bison bootstrapping process can rewrite file names and variables
7692         in this file before later parts of 'bootstrap' use the file.
7693         Bison wants to include lib/gnulib.mk from the top-level makefile,
7694         so it needs the file names in this file to be relative to the top
7695         level, not relative to lib; plus it needs variable names to be
7696         rewritten.
7697         (slurp): Use the new function.
7699         bootstrap: reformat for readability
7700         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
7702 2010-10-08  Eric Blake  <eblake@redhat.com>
7704         docs: update cygwin progress
7705         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
7706         1.7.7.
7707         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
7708         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
7709         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
7710         * doc/posix-functions/carg.texi (carg): Likewise.
7711         * doc/posix-functions/cargf.texi (cargf): Likewise.
7712         * doc/posix-functions/casin.texi (casin): Likewise.
7713         * doc/posix-functions/casinf.texi (casinf): Likewise.
7714         * doc/posix-functions/casinh.texi (casinh): Likewise.
7715         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
7716         * doc/posix-functions/catan.texi (catan): Likewise.
7717         * doc/posix-functions/catanf.texi (catanf): Likewise.
7718         * doc/posix-functions/catanh.texi (catanh): Likewise.
7719         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
7720         * doc/posix-functions/ccos.texi (ccos): Likewise.
7721         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
7722         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
7723         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
7724         * doc/posix-functions/cexp.texi (cexp): Likewise.
7725         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
7726         * doc/posix-functions/cimag.texi (cimag): Likewise.
7727         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
7728         * doc/posix-functions/clog.texi (clog): Likewise.
7729         * doc/posix-functions/clogf.texi (clogf): Likewise.
7730         * doc/posix-functions/conj.texi (conj): Likewise.
7731         * doc/posix-functions/conjf.texi (conjf): Likewise.
7732         * doc/posix-functions/cpow.texi (cpow): Likewise.
7733         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
7734         * doc/posix-functions/cproj.texi (cproj): Likewise.
7735         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
7736         * doc/posix-functions/creal.texi (creal): Likewise.
7737         * doc/posix-functions/crealf.texi (crealf): Likewise.
7738         * doc/posix-functions/csin.texi (csin): Likewise.
7739         * doc/posix-functions/csinf.texi (csinf): Likewise.
7740         * doc/posix-functions/csinh.texi (csinh): Likewise.
7741         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
7742         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
7743         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
7744         * doc/posix-functions/ctan.texi (ctan): Likewise.
7745         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
7746         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
7747         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
7748         * doc/posix-headers/complex.texi (complex.h): Likewise.
7750 2010-10-07  Jim Meyering  <meyering@redhat.com>
7752         parse-datetime: avoid compilation failure on OpenBSD 4.7
7753         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
7754         This works around a compilation failure on OpenBSD 4.7:
7755         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
7757 2010-10-07  Eric Blake  <eblake@redhat.com>
7759         docs: update cygwin progress
7760         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
7761         1.7.6.
7762         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
7763         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
7764         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
7765         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
7766         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
7767         Likewise.
7768         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
7769         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
7770         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
7771         Likewise.
7772         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
7773         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
7774         Likewise.
7775         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
7776         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
7777         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
7778         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
7779         Likewise.
7780         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
7781         Likewise.
7782         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
7784         docs: update parse-datetime history
7785         * doc/parse-datetime.texi (Authors of parse_datetime): Better
7786         documentation of this function's history and alternatives.
7788         cygwin: use more robust version check
7789         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
7790         exclude an eventual cygwin 1.9.1.
7791         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
7792         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
7793         (gl_FUNC_STRCASESTR): Likewise.
7794         Reported by Bruno Haible.
7796 2010-10-06  Bruno Haible  <bruno@clisp.org>
7798         string, sys_select: Avoid #including large headers unless necessary.
7799         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
7800         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
7801         OSF/1, BeOS, Haiku.
7802         Reported by Jim Meyering.
7804 2010-10-05  Eric Blake  <eblake@redhat.com>
7806         memmem, strstr, strcasestr: fix bug with long periodic needle
7807         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
7808         periodic needle having false positive.
7809         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
7810         and cygwin 1.7.7.
7811         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
7812         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
7813         (gl_FUNC_STRCASESTR): Likewise.
7814         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
7815         * tests/test-memmem.c (main): Expose the bug.
7816         * tests/test-strcasestr.c (main): Likewise.
7817         * tests/test-strstr.c (main): Likewise.
7818         * tests/test-c-strcasestr.c (main): Likewise.
7819         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
7820         * doc/posix-functions/strstr.texi (strstr): Likewise.
7821         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
7822         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
7824 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
7826         parse-datetime: do some more renaming
7827         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
7828         parse_datetime, not get_date.  Mention the renaming.
7829         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
7830         in comments.
7831         * m4/bison.m4: Likewise.
7833 2010-10-05  Eric Blake  <eblake@redhat.com>
7835         parse-datetime: better name than get_date
7836         * NEWS: Reword the deprecation notice.
7837         * modules/get_date: Rename to modules/parse-datetime.
7838         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
7839         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
7840         * lib/get_date.y: Rename to lib/parse-datetime.y.
7841         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
7842         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
7843         * doc/getdate.texi: Provide fallback wrapper.
7844         * lib/getdate.h: Move guts, and wrap...
7845         * lib/parse-datetime.h: ...new file.
7846         * lib/parse-datetime.y (get_date): Rename...
7847         (parse_datetime): ...to this.
7848         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
7849         (gl_PARSE_DATETIME): ...to this.
7850         * doc/posix-functions/getdate.texi (get_date): Provide fallback
7851         documentation.
7852         * modules/getdate (Files): Provide fallback docs and header.
7853         (Notice, Depends-on): Update references.
7854         * tests/test-parse-datetime.c: Likewise.
7855         * DEPENDENCIES: Likewise.
7856         * MODULES.html.sh (Date and time <time.h>): Likewise.
7857         * doc/parse-datetime.texi (Date input formats)
7858         (Authors of parse_datetime): Likewise.
7859         * modules/parse-datetime (Files, configure.ac, Makefile.am)
7860         (Include): Likewise.
7861         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
7862         * gnulib-tool: Likewise.
7863         * m4/bison.m4 (gl_BISON): Likewise.
7864         Suggested by Bruno Haible.
7866 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
7868         more ports to Solaris tr, which needs [] around ranges
7869         * gnulib-tool: Solaris tr needs [] around ranges.
7870         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
7871         * tests/test-pipe-filter-gi1.c (main): Likewise.
7872         * tests/test-pipe-filter-ii1.c (main): Likewise.
7874 2010-10-05  Eric Blake  <eblake@redhat.com>
7876         bootstrap: fix Solaris regression
7877         * build-aux/bootstrap (check_versions): Solaris tr still needs []
7878         around ranges.
7879         Reported by Pádraig Brady.
7881         bootstrap: work with pkg-config
7882         * build-aux/bootstrap (check_versions): Also transliterate - in
7883         prerequisite name.
7884         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
7885         prerequisites that were already found, to avoid confusion.
7886         Reported by Justin Clift.
7888         faccessat: remove unused wrappers
7889         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
7890         presence of these wrappers dragged in -lgen on Solaris.
7891         Reported by Clemens Brogi; fix suggested by Paul Eggert.
7893 2010-10-05  Jim Meyering  <meyering@redhat.com>
7895         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
7896         * Makefile (sc_pragma_columns): New syntax-check rule.
7898 2010-10-04  Bruno Haible  <bruno@clisp.org>
7900         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
7901         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
7902         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
7903         Reported by Bruce Korb and Eric Blake.
7905 2010-10-04  Bruno Haible  <bruno@clisp.org>
7907         threadlib: Make option --with-libpth-prefix work.
7908         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
7909         use $LIBPTH, not just -lpth.
7911 2010-10-04  Bruno Haible  <bruno@clisp.org>
7913         Avoid line length limitation from HP NonStop system header files.
7914         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
7915         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
7916         * lib/ctype.in.h: Likewise.
7917         * lib/dirent.in.h: Likewise.
7918         * lib/errno.in.h: Likewise.
7919         * lib/fcntl.in.h: Likewise.
7920         * lib/float.in.h: Likewise.
7921         * lib/getopt.in.h: Likewise.
7922         * lib/iconv.in.h: Likewise.
7923         * lib/inttypes.in.h: Likewise.
7924         * lib/langinfo.in.h: Likewise.
7925         * lib/locale.in.h: Likewise.
7926         * lib/math.in.h: Likewise.
7927         * lib/netdb.in.h: Likewise.
7928         * lib/netinet_in.in.h: Likewise.
7929         * lib/poll.in.h: Likewise.
7930         * lib/pthread.in.h: Likewise.
7931         * lib/pty.in.h: Likewise.
7932         * lib/sched.in.h: Likewise.
7933         * lib/se-selinux.in.h: Likewise.
7934         * lib/search.in.h: Likewise.
7935         * lib/signal.in.h: Likewise.
7936         * lib/spawn.in.h: Likewise.
7937         * lib/stdarg.in.h: Likewise.
7938         * lib/stddef.in.h: Likewise.
7939         * lib/stdint.in.h: Likewise.
7940         * lib/stdio.in.h: Likewise.
7941         * lib/stdlib.in.h: Likewise.
7942         * lib/string.in.h: Likewise.
7943         * lib/strings.in.h: Likewise.
7944         * lib/sys_file.in.h: Likewise.
7945         * lib/sys_ioctl.in.h: Likewise.
7946         * lib/sys_select.in.h: Likewise.
7947         * lib/sys_socket.in.h: Likewise.
7948         * lib/sys_stat.in.h: Likewise.
7949         * lib/sys_time.in.h: Likewise.
7950         * lib/sys_times.in.h: Likewise.
7951         * lib/sys_utsname.in.h: Likewise.
7952         * lib/sys_wait.in.h: Likewise.
7953         * lib/sysexits.in.h: Likewise.
7954         * lib/termios.in.h: Likewise.
7955         * lib/time.in.h: Likewise.
7956         * lib/unistd.in.h: Likewise.
7957         * lib/wchar.in.h: Likewise.
7958         * lib/wctype.in.h: Likewise.
7959         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
7960         * modules/ctype (Makefile.am): Likewise.
7961         * modules/dirent (Makefile.am): Likewise.
7962         * modules/errno (Makefile.am): Likewise.
7963         * modules/fcntl-h (Makefile.am): Likewise.
7964         * modules/float (Makefile.am): Likewise.
7965         * modules/getopt-posix (Makefile.am): Likewise.
7966         * modules/iconv-h (Makefile.am): Likewise.
7967         * modules/inttypes (Makefile.am): Likewise.
7968         * modules/langinfo (Makefile.am): Likewise.
7969         * modules/locale (Makefile.am): Likewise.
7970         * modules/math (Makefile.am): Likewise.
7971         * modules/netdb (Makefile.am): Likewise.
7972         * modules/netinet_in (Makefile.am): Likewise.
7973         * modules/poll-h (Makefile.am): Likewise.
7974         * modules/pthread (Makefile.am): Likewise.
7975         * modules/pty (Makefile.am): Likewise.
7976         * modules/sched (Makefile.am): Likewise.
7977         * modules/search (Makefile.am): Likewise.
7978         * modules/selinux-h (Makefile.am): Likewise.
7979         * modules/signal (Makefile.am): Likewise.
7980         * modules/spawn (Makefile.am): Likewise.
7981         * modules/stdarg (Makefile.am): Likewise.
7982         * modules/stddef (Makefile.am): Likewise.
7983         * modules/stdint (Makefile.am): Likewise.
7984         * modules/stdio (Makefile.am): Likewise.
7985         * modules/stdlib (Makefile.am): Likewise.
7986         * modules/string (Makefile.am): Likewise.
7987         * modules/strings (Makefile.am): Likewise.
7988         * modules/sys_file (Makefile.am): Likewise.
7989         * modules/sys_ioctl (Makefile.am): Likewise.
7990         * modules/sys_select (Makefile.am): Likewise.
7991         * modules/sys_socket (Makefile.am): Likewise.
7992         * modules/sys_stat (Makefile.am): Likewise.
7993         * modules/sys_time (Makefile.am): Likewise.
7994         * modules/sys_times (Makefile.am): Likewise.
7995         * modules/sys_utsname (Makefile.am): Likewise.
7996         * modules/sys_wait (Makefile.am): Likewise.
7997         * modules/sysexits (Makefile.am): Likewise.
7998         * modules/termios (Makefile.am): Likewise.
7999         * modules/time (Makefile.am): Likewise.
8000         * modules/unistd (Makefile.am): Likewise.
8001         * modules/wchar (Makefile.am): Likewise.
8002         * modules/wctype (Makefile.am): Likewise.
8004 2010-10-04  Bruno Haible  <bruno@clisp.org>
8006         read-file tests: Avoid a test failure on NonStop Kernel.
8007         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
8008         a regular file.
8009         Reported by Joachim Schmitz <schmitz@hp.com>.
8011 2010-10-03  Bruno Haible  <bruno@clisp.org>
8013         gnulib-tool: Fixes for --create-testdir with --libtool.
8014         * gnulib-tool (func_get_automake_snippet): Don't augment
8015         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
8016         an executable.
8017         (func_create_testdir): Handle module 'alloca' like func_import.
8018         Reported by Bruce Korb <bruce.korb@gmail.com>.
8020 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
8022         Avoid some lines longer than 80 characters.
8023         * lib/stdint.in.h: Break long comment lines.
8024         * lib/math.in.h: Likewise.
8025         (_GL_NUM_UINT_WORDS): New macro, for readability.
8026         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
8027         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
8028         * lib/stdlib.in.h: Likewise.
8029         * lib/spawn.in.h: Likewise.
8030         * lib/sys_socket.in.h: Update an URL.
8031         * lib/sys_stat.in.h: Break long line.
8033 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
8035         Improve pmccabe2html.
8036         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
8037         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
8038         when the sources change. Remove the line in the HTML about "Used
8039         ranges" (which implied that there might be other unused ranges),
8040         rename "Resume" to "Summary" (easier to understand for more users).
8041         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
8042         styles, and some unnecessary blank lines.
8044 2010-10-03  Bruno Haible  <bruno@clisp.org>
8045             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
8047         acl: Add support for ACLs on NonStop Kernel.
8048         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
8049         Check whether the function aclsort() exists.
8050         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
8051         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
8052         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
8053         (acl_nontrivial [HAVE_ACLSORT]: New function.
8054         (file_has_acl): Implement for NonStop Kernel.
8055         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
8056         (qset_acl): Implement for NonStop Kernel.
8057         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
8058         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
8059         (main): Implement for NonStop Kernel.
8060         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
8061         Kernel. Handle this flavor.
8062         * tests/test-set-mode-acl.sh: Likewise.
8063         * tests/test-copy-acl.sh: Likewise.
8064         * tests/test-copy-file.sh: Likewise.
8066 2010-10-03  Bruno Haible  <bruno@clisp.org>
8068         Info about ACLs on NonStop Kernel.
8069         * doc/acl-resources.txt: Add info about NonStop Kernel.
8070         References by Joachim Schmitz <schmitz@hp.com>.
8072 2010-10-02  Bruno Haible  <bruno@clisp.org>
8074         Define missing EDQUOT on NonStop Kernel.
8075         * lib/errno.in.h (EDQUOT): Assign a value if missing.
8076         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
8077         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
8078         missing.
8079         * doc/posix-headers/errno.texi: Mention the NSK bug.
8080         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
8081         Reported by Joachim Schmitz <schmitz@hp.com>.
8083 2010-10-02  Bruno Haible  <bruno@clisp.org>
8085         Update doc for POSIX:2008.
8086         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
8087         Update URL of POSIX specification.
8089 2010-10-02  Bruno Haible  <bruno@clisp.org>
8091         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
8092         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
8093         from gnulib, not from Automake.
8095 2010-10-02  Bruno Haible  <bruno@clisp.org>
8097         New module 'system-posix'.
8098         * modules/system-posix: New file.
8099         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
8100         module is present.
8101         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
8102         GNULIB_SYSTEM_POSIX.
8103         * modules/stdlib (Depends-on): Remove sys_wait.
8104         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
8105         * doc/posix-functions/system.texi: Mention the new module.
8106         * doc/posix-headers/stdlib.texi: Likewise.
8107         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
8108         define test_sys_wait_macros to a no-op.
8109         Reported by Sam Steingold <sds@gnu.org>.
8111 2010-09-30  Bruno Haible  <bruno@clisp.org>
8113         More renaming from 'getdate' to 'get_date'.
8114         * doc/get_date.texi: Renamed from doc/getdate.texi.
8115         * modules/get_date (Files): Update.
8116         * MODULES.html.sh (Date and time <time.h>): Update.
8117         * DEPENDENCIES: Update.
8118         * gnulib-tool: Update comment.
8119         * m4/bison.m4 (gl_BISON): Likewise.
8120         * m4/get_date.m4 (gl_GET_DATE): Likewise.
8122 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
8124         bootstrap: support ACLOCAL_FLAGS during aclocal
8125         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
8126         can add additional -I dir for third-party .m4 files.
8128 2010-09-30  Eric Blake  <eblake@redhat.com>
8130         bootstrap: use glibtoolize on MacOS
8131         * build-aux/bootstrap (check_versions): Convert libtool into
8132         libtoolize.
8133         (tool search): Move libtool check earlier, and look for
8134         glibtoolize for MacOS.
8135         (gnulib_tool_options): Auto-add --libtool when appropriate.
8136         Reported by Justin Clift.
8138         poll: fix typo that broke test on MacOS
8139         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
8140         Reported by Justin Clift.
8142         getdate: rename to get_date
8143         Note: getdate.h is not renamed, to minimize client impact.
8144         * modules/getdate: Mark obsolete.  Move old contents...
8145         * modules/get_date: ...to new module name.
8146         * modules/getdate-tests: Move...
8147         * modules/get_date-tests: ...here.
8148         * m4/getdate.m4: Move...
8149         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
8150         * lib/getdate.y: Move...
8151         * lib/get_date.y: ...here.
8152         * tests/test-getdate.c: Move...
8153         * tests/test-get_date.c: ...here.
8154         * doc/posix-functions/getdate.texi (getdate): Update name.
8155         * NEWS: Mention the change.
8157 2010-09-29  Bruno Haible  <bruno@clisp.org>
8159         Separate the module 'waitpid' from the module 'sys_wait'.
8160         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
8161         present.
8162         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
8163         gl_MODULE_INDICATOR_FOR_TESTS.
8164         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
8165         * modules/sys_wait (Depends-on): Remove waitpid.
8166         (Makefile.am): Substitute GNULIB_WAITPID.
8167         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
8168         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
8169         signature only if the 'waitpid' module is present.
8170         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
8171         * NEWS: Mention the change.
8172         * modules/grantpt (Depends-on): Add waitpid.
8173         * modules/wait-process (Depends-on): Likewise.
8175 2010-09-29  Bruno Haible  <bruno@clisp.org>
8177         More tests for module 'sys_wait'.
8178         * modules/sys_wait-c++-tests: New file.
8179         * tests/test-sys_wait-c++.cc: New file.
8180         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
8181         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
8183 2010-09-29  Bruno Haible  <bruno@clisp.org>
8185         New module 'waitpid'.
8186         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
8187         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
8188         Don't include <process.h>.
8189         (waitpid): Declare only, using modern idiom.
8190         * m4/waitpid.m4: New file.
8191         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
8192         * modules/waitpid: New file.
8193         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
8194         (Makefile.am): Update.
8195         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
8197 2010-09-28  Bruno Haible  <bruno@clisp.org>
8199         poll: Assume ANSI C.
8200         * lib/poll.c (poll): Use an ANSI C declaration.
8202 2010-09-28  Bruno Haible  <bruno@clisp.org>
8204         poll-h: Create poll.h on all platforms.
8205         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
8206         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
8207         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
8208         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
8209         (gl_REPLACE_POLL_H): Don't set POLL_H.
8210         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
8211         * modules/poll-h (Depends-on): Add include_next.
8212         (Makefile.am): Create poll.h unconditionally. Substitute also
8213         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
8215 2010-09-28  Bruno Haible  <bruno@clisp.org>
8217         Tests for module 'poll-h'.
8218         * modules/poll-h-c++-tests: New file.
8219         * tests/test-poll-h-c++.cc: New file.
8221         Tests for module 'poll-h'.
8222         * modules/poll-h-tests: New file.
8223         * tests/test-poll-h.c: New file.
8225 2010-09-28  Bruno Haible  <bruno@clisp.org>
8227         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
8228         * modules/poll-h (Depends-on): Add 'extensions'.
8230 2010-09-28  Bruno Haible  <bruno@clisp.org>
8232         New module 'poll-h'.
8233         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
8234         (poll): Use modern idiom.
8235         * modules/poll-h: New file.
8236         * modules/poll (Files): Remove lib/poll.in.h.
8237         (Depends-on): Add poll-h.
8238         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
8239         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
8240         * m4/poll_h.m4: New file.
8241         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
8242         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
8243         and invoke gl_REPLACE_POLL_H.
8244         * lib/poll.c: Use common idiom.
8245         * tests/test-poll.c: Likewise.
8246         * doc/posix-headers/poll.texi: Mention the poll-h module.
8247         Suggested by Eric Blake.
8249 2010-09-26  Bruno Haible  <bruno@clisp.org>
8251         sys_wait: Implement WSTOPSIG.
8252         * lib/sys_wait.in.h (WSTOPSIG): New macro.
8253         Reported by Simon Josefsson.
8255 2010-09-26  Simon Josefsson  <simon@josefsson.org>
8257         stdlib, sys_wait: Avoid compilation error on mingw.
8258         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
8260 2010-09-26  Bruno Haible  <bruno@clisp.org>
8262         stdlib tests: Avoid code duplication.
8263         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
8264         * modules/sys_wait-tests (Files): Likewise.
8265         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
8266         * tests/test-stdlib.c: Include test-sys_wait.h.
8267         (main): Invoke test_sys_wait_macros.
8268         * tests/test-sys_wait.c: Include test-sys_wait.h.
8269         (main): Invoke test_sys_wait_macros.
8271 2010-09-25  Simon Josefsson  <simon@josefsson.org>
8273         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
8274         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
8275         sure Windows sockets are working before calling getaddrinfo.
8276         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
8277         * doc/gnulib.texi (Windows sockets): Fix typo.
8279 2010-09-25  Bruno Haible  <bruno@clisp.org>
8281         Tests for module 'regex-quote'.
8282         * modules/regex-quote-tests: New file.
8283         * tests/test-regex-quote.c: New file.
8285         New module 'regex-quote'.
8286         * lib/regex-quote.h: New file.
8287         * lib/regex-quote.c: New file.
8288         * modules/regex-quote: New file.
8289         Suggested by Reuben Thomas <rrt@sc3d.org>.
8291 2010-09-24  Bruno Haible  <bruno@clisp.org>
8293         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
8294         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
8296 2010-09-23  Bruno Haible  <bruno@clisp.org>
8298         setenv: Relax license.
8299         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
8300         Blake.
8301         Requested by Eric Blake.
8303 2010-09-22  Bruno Haible  <bruno@clisp.org>
8305         termios: Relax license.
8306         * modules/termios (License): Change to LGPLv2+.
8307         Requested by Eric Blake.
8309 2010-09-22  Bruno Haible  <bruno@clisp.org>
8311         threadlib: Allow the package to change the default to 'no'.
8312         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
8313         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
8314         Reported by Paul Eggert.
8316 2010-09-22  Pádraig Brady  <P@draigbrady.com>
8317             Bruno Haible  <bruno@clisp.org>
8319         Fix endless loop in mbmemcasecoll.
8320         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
8321         byte.
8322         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
8324 2010-09-22  Bruno Haible  <bruno@clisp.org>
8326         Tests for module 'memcoll'.
8327         * modules/memcoll-tests: New file.
8328         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
8330         memcoll, xmemcoll: Clarify size vs. length.
8331         * modules/memcoll.c (memcoll0): Clarify specification.
8332         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
8333         passed to collate_error.
8335 2010-09-22  Bruno Haible  <bruno@clisp.org>
8337         Tests for module 'memcasecmp'.
8338         * modules/memcasecmp-tests: New file.
8339         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
8341 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
8343         * lib/pthread.in.h: Add split double-inclusion guard, and include
8344         system <pthread.h> if there is one.  Use @@-style as in other
8345         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
8346         pthread.h doesn't.
8347         (pthread_mutexattr_destroy, pthread_mutexattr_init):
8348         (pthread_mutexattr_settype, pthread_mutex_trylock):
8349         New static inline functions, if there's no system <pthread.h>.
8350         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
8351         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
8352         Approximate with mutexes if the system lacks spinlocks, as in
8353         MacOS.
8354         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
8355         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
8356         @@-style.  Check for spinlocks separately.
8357         (gl_PTHREAD_DEFAULTS): New macro.
8358         * modules/pthread: Redo to use a more typical style for in.h files.
8360 2010-09-21  Eric Blake  <eblake@redhat.com>
8362         net_if: enhance tests
8363         * tests/test-net_if.c (main): Move signature checks earlier.
8364         Print failures to stderr.
8365         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
8366         Document the bug that we do not yet fix.
8368 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
8370         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
8371         about gnulib, not GSS.
8373 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
8375         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
8376         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
8377         for Emacs.
8378         * build-aux/pmccabe2html: Make Makefile.am example code more
8379         cut-and-paste friendly.
8381 2010-09-21  Simon Josefsson  <simon@josefsson.org>
8383         * tests/test-net_if.c: New file.
8384         * modules/net_if-tests: New file.
8386 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
8388         pthread: add pthread_spin_destroy
8389         * lib/pthread.in.h (pthread_spin_destroy): New function.
8391 2010-09-19  Bruno Haible  <bruno@clisp.org>
8393         gnulib-tool: Fix --help output.
8394         * gnulib-tool (func_usage): Fix help message.
8395         Reported by Reuben Thomas <rrt@sc3d.org>.
8397 2010-09-18  Jim Meyering  <meyering@redhat.com>
8399         maint.mk: avoid unexpanded \n in two diagnostics
8400         * top/maint.mk (sc_prohibit_always_true_header_tests):
8401         Don't use a literal \n in a halt=... assignment.  It would not be
8402         expanded, and the two \n bytes would appear in the diagnostic output
8403         rather than the desired newline.  Use halt=$$(printf ... instead.
8404         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
8406 2010-09-18  Bruno Haible  <bruno@clisp.org>
8408         netinet_in: Doc tweak.
8409         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
8410         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
8412 2010-09-18  Jim Meyering  <meyering@redhat.com>
8414         init.sh: correct an outdated comment
8415         * tests/init.sh (create_exe_shims_):  s/function/alias/
8417         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
8418         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
8419         a file named "*.exe" is removed between the glob expansion and the
8420         processing of that oddly named file.
8422 2010-09-17  Eric Blake  <eblake@redhat.com>
8424         mirbsd: add some more support
8425         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
8426         in BSD family.
8427         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
8428         devices as OpenBSD.
8429         * m4/host-os.m4 (mirbsd): Add MirBSD.
8431         tests: fix unportable assumption on sys/wait.h
8432         * tests/test-sys_wait.c (main): Relax test.
8433         * tests/test-stdlib.c (main): Likewise.
8435         init.sh: accomodate directory with no .exes
8436         * tests/init.sh: Accomodate directory containing only scripts.
8438         tests: avoid compiler warning
8439         * tests/test-stdlib.c (main): Use the variable.
8441         fdutimens, fdutimensat: update signature, again
8442         * lib/utimens.h (gl_futimens): Delete, and move signature...
8443         (fdutimens): ...here.
8444         (fdutimensat): Rearrange signature.
8445         (lutimensat): Rename variable for clarity.
8446         * lib/fdutimensat.c (fdutimensat): Update signature.
8447         * lib/utimens.c (fdutimens): Likewise.
8448         (gl_futimens): Delete.
8449         (utimens, lutimens): Update callers.
8450         * lib/futimens.c (futimens): Likewise.
8451         * tests/test-fdutimensat.c: Likewise.
8452         * tests/test-utimens.c: Likewise.
8453         * tests/test-futimens.h: Update comment.
8454         * NEWS: Mention this.
8455         Suggested by Paul Eggert.
8457 2010-09-17  Bruno Haible  <bruno@clisp.org>
8459         Take over the maintenance of some older macros from Autoconf.
8460         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
8461         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
8462         GNU Autoconf.
8463         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
8464         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
8466 2010-09-17  Eric Blake  <eblake@redhat.com>
8468         fdutimensat: drop atflag validation
8469         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
8470         with valid fd, to close a race scenario where futimens is
8471         unsupported and FILE was replaced by a symlink.
8472         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
8473         accordingly.
8474         Suggested by Paul Eggert.
8476 2010-09-16  Bruno Haible  <bruno@clisp.org>
8478         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
8479         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
8481 2010-09-16  Bruno Haible  <bruno@clisp.org>
8483         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
8484         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
8485         login_tty exists.
8486         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
8488 2010-09-16  Bruno Haible  <bruno@clisp.org>
8490         login_tty: Make the replacement code work on BSD systems.
8491         * lib/login_tty.c: Include <sys/ioctl.h>.
8492         (login_tty): Use ioctl TIOCSCTTY when available.
8493         * modules/login_tty (Depends-on): Add sys_ioctl.
8494         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
8496 2010-09-16  Bruno Haible  <bruno@clisp.org>
8498         login_tty: Stricter unit test.
8499         * modules/login_tty-tests (Depends-on): Add tcgetsid.
8500         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
8501         and tcgetsid() after login_tty.
8502         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
8504 2010-09-16  Bruno Haible  <bruno@clisp.org>
8506         New module 'tcgetsid'.
8507         * lib/tcgetsid.c: New file.
8508         * m4/tcgetsid.m4: New file.
8509         * modules/tcgetsid: New file.
8510         * modules/termios (Depends-on): Add c++defs, warn-on-use.
8511         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
8512         GNULIB_TCGETSID, HAVE_TCGETSID.
8513         * lib/termios.in.h: Include <sys/types.h>.
8514         (tcgetsid): New declaration.
8515         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
8516         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
8517         * doc/posix-functions/tcgetsid.texi: Mention the new module.
8518         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
8520 2010-09-16  Bruno Haible  <bruno@clisp.org>
8522         Tests for module 'termios'.
8523         * modules/termios-c++-tests: New file.
8524         * modules/termios-tests: New file.
8525         * tests/test-termios-c++.cc: New file.
8526         * tests/test-termios.c: New file.
8528         New module 'termios'.
8529         * modules/termios: New file.
8530         * lib/termios.in.h: New file.
8531         * m4/termios_h.m4: New file.
8532         * doc/posix-headers/termios.texi: Mention the new module.
8534 2010-09-16  Eric Blake  <eblake@redhat.com>
8536         fdutimensat: add an atflag parameter
8537         * lib/fdutimensat.c (fdutimensat): Add new parameter.
8538         * lib/utimens.h (fdutimensat): Update prototype.
8539         * tests/test-fdutimensat.c: Adjust test to match.
8540         * NEWS: Document the change.
8541         Suggested by Paul Eggert.
8543 2010-09-16  Bruno Haible  <bruno@clisp.org>
8545         Fix typos in comments.
8546         * lib/striconveh.h: Fix typo in comment.
8547         * lib/login_tty.c (login_tty): Likewise.
8549 2010-09-15  Bruno Haible  <bruno@clisp.org>
8551         stdlib: clarify MirBSD WEXITSTATUS bug
8552         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
8553         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
8555 2010-09-15  Eric Blake  <eblake@redhat.com>
8557         stdlib: work around MirBSD WEXITSTATUS bug
8558         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
8559         * modules/stdlib (Depends-on): Add sys_wait.
8560         * tests/test-sys_wait.c (main): Enhance test.
8561         * tests/test-stdlib.c (main): Likewise.
8562         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
8564         docs: mention MacOS issue with WEXITSTATUS(constant)
8565         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
8566         issue.
8567         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
8569         strnlen: add tests
8570         * modules/strnlen-tests: New file.
8571         * tests/test-strnlen.c: Likewise.
8573 2010-09-14  Bruno Haible  <bruno@clisp.org>
8575         unistr/base: Avoid link errors when module 'libunistring' is also used.
8576         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
8577         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
8578         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
8579         Declare also when HAVE_LIBUNISTRING is set.
8580         Reported by Pádraig Brady <P@draigbrady.com>.
8582 2010-09-14  Eric Blake  <eblake@redhat.com>
8584         test-rawmemchr: make more robust
8585         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
8586         (Depends-on, configure.ac): Add needed prerequisites to use it.
8587         * modules/memchr-tests (Files, Depends-on, configure.ac):
8588         Likewise, to avoid implicit reliance on memchr module prereqs.
8589         * tests/test-memchr.c (main): Ensure proper masking.
8590         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
8591         reads.
8593         memchr: detect glibc Alpha bug
8594         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
8595         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
8596         Alpha.
8597         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
8598         * tests/test-memchr.c (main): Enhance test.
8599         Reported by Nelson H. F. Beebe.
8601 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
8603         fts, getcwd, glob: audit for dirfd returning -1
8604         * lib/fts.c (opendir): Remove #define; no longer used.
8605         (opendirat): New arg PDIR_FD.  All callers changed.
8606         (fts_build, _opendir2): Use new opendirat to avoid the need for
8607         dirfd, or for checking whether dirfd returns a negative value.
8608         Don't use opendir; always use openat followed by fdopendir.
8609         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
8610         it.
8611         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
8612         returns -1 here.
8613         * modules/fts (Depends-on): Remove dirfd.
8614         * modules/getcwd (Depends-on): Likewise.
8616 2010-09-13  Eric Blake  <eblake@redhat.com>
8618         float: fix broken MirBSD header
8619         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
8620         * doc/posix-headers/float.texi (float.h): Document it.
8622 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
8624         fts: use O_NOFOLLOW to avoid race condition when opening a directory
8625         * lib/fts.c (opendirat): New arg extra_flags.
8626         (__opendir2): Use it to avoid following symlinks when opening
8627         a directory, if symlinks are not supposed to be followed.  See
8628         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
8630         fdopendir: preserve argument fd before returning
8631         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
8632         (fdopendir_with_dup, fd_clone_opendir): New static functions.
8633         (fdopendir): Use them, arranging for FD to be open to the same
8634         directory that it was when it started.  (It might be temporarily
8635         closed while fdopendir is running, so this not thread- or
8636         signal-safe.)  Be careful to do the right thing even when file
8637         descriptors are scarce and dup fails with errno == EMFILE.  See
8638         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
8640 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
8642         regex: Pass the system regex if its only problem is 32-bit regoff_t.
8643         * NEWS: Document change.
8644         * m4/regex.m4: Disable test for regoff_t size.
8646 2010-09-13  Jim Meyering  <meyering@redhat.com>
8648         fts: don't operate on an invalid file descriptor after failed dup
8649         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
8650         negative file descriptor.
8652 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
8654         savedir: add streamsavedir, deprecate fdsavedir
8655         * NEWS: Mention deprecation of fdsavedir.
8656         * lib/savedir.c (streamsavedir): New extern function, whose name
8657         ends in "savedir" to be consistent with the others.  This differs
8658         from savedirstream in that it doesn't close its argument.  The
8659         next version of GNU tar will use this instead of fdsavedir, to
8660         avoid some race conditions and conserve file descriptors.
8661         (savedirstream): Reimplement as a wrapper around streamsavedir.
8662         (fdsavedir): Add a comment deprecating this function.  As far as
8663         I know, only GNU tar used it, and GNU tar doesn't need it any more.
8664         * lib/savedir.h (streamsavedir): New decl.
8665         (fdsavedir): Add a comment deprecating this.
8667 2010-09-10  Bruno Haible  <bruno@clisp.org>
8669         langinfo: Fix last commit.
8670         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
8671         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
8672         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8674 2010-09-10  Bruno Haible  <bruno@clisp.org>
8676         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
8677         * lib/progreloc.c (O_EXEC): Define fallback.
8679 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
8681         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
8682         * NEWS: Document recent changes to fcntl-h.
8683         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
8684         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
8685         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
8686         Similarly for O_SEARCH; this last was already true, but not documented.
8687         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
8688         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
8689         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
8690         Likewise.
8691         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
8692         is zero, not whether it is defined.
8693         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
8694         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
8695         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
8697 2010-09-10  Bruno Haible  <bruno@clisp.org>
8699         langinfo, nl_langinfo: Fix for IRIX 5.3.
8700         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
8701         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
8702         HAVE_LANGINFO_YESEXPR.
8703         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
8704         HAVE_LANGINFO_YESEXPR.
8705         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
8706         HAVE_LANGINFO_T_FMT_AMPM is 0.
8707         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
8708         HAVE_LANGINFO_YESEXPR is 0.
8709         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
8710         NOEXPR.
8711         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
8712         * doc/posix-functions/nl_langinfo.texi: Likewise.
8713         Reported by Eric Blake.
8715 2010-09-10  Bruno Haible  <bruno@clisp.org>
8717         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
8718         * doc/glibc-functions/login_tty.texi: Mention the include file problem
8719         on FreeBSD 8.0 and OpenBSD 4.6.
8720         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
8721         * m4/pty_h.m4 (gl_PTY_H): Likewise.
8722         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
8723         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
8724         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
8725         ac_includes_default.
8726         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
8728 2010-09-09  Eric Blake  <eblake@redhat.com>
8730         strsignal: work around NetBSD bug
8731         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
8732         * lib/string.in.h (includes): Likewise.
8733         * doc/posix-functions/strsignal.texi (strsignal): Document the
8734         bug.
8735         Reported by Nelson H. F. Beebe.
8737         gnulib-tool: work with NetBSD /bin/sh
8738         * gnulib-tool (func_cache_var, func_cache_lookup_module)
8739         (func_get_description, func_get_comment, func_get_status)
8740         (func_get_notice, func_get_applicability, func_get_filelist)
8741         (func_get_dependencies, func_get_autoconf_early_snippet)
8742         (func_get_autoconf_snippet, func_get_automake_snippet)
8743         (func_get_include_directive, func_get_link_directive)
8744         (func_get_license, func_get_maintainer, func_import): Avoid
8745         shell syntax errors from parsing syntax extensions.
8747 2010-09-09  Bruno Haible  <bruno@clisp.org>
8749         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
8750         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
8751         a reliable way to determine whether the 'alias' command works.
8753 2010-09-08  Jim Meyering  <meyering@redhat.com>
8755         init.sh: penalize a set-x-impaired shell; don't disqualify it
8756         * tests/init.sh: Too many shells corrupt application stderr when
8757         you set -x, so we can't afford to disqualify them, since at least
8758         on Irix-6.5, that would disqualify all bourne shells.
8759         Instead, use a two-pass approach.
8760         On the first pass, try to find a shell that meets the stricter
8761         condition that set -x does not corrupt stderr.
8762         If no shell meets the stricter condition, retest each candidate
8763         shell, but without that extra condition.  Finally, when
8764         VERBOSE=yes is requested and set -x might cause trouble, simply
8765         issue a warning and refrain from enabling debug output.
8767 2010-09-08  Eric Blake  <eblake@redhat.com>
8769         unsetenv: fix OpenBSD bug
8770         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
8771         * doc/posix-functions/unsetenv.texi (unsetenv): Update
8772         documentation.
8773         Reported by Jim Meyering.
8775         strtod: work around IRIX 6.5 bug
8776         * lib/strtod.c (strtod): Reparse number on shorter string if
8777         exponent parse was invalid.
8778         * tests/test-strtod.c (main): Add check for "0x1p 2".
8779         Reported by Tom G. Christensen.
8781         getopt: optimize previous patch
8782         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
8783         empty variable.  Speed up awk script.
8784         Reported by Paolo Bonzini.
8786 2010-09-08  Jim Meyering  <meyering@redhat.com>
8788         test.sh: disqualify shells for which set -x corrupts stderr
8789         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
8790         and OpenBSD 4.7.  They make it so with "set -x", environment settings
8791         appear in stderr output.  For example, this command:
8792             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
8793         prints "P=1" on those two systems:
8795 2010-09-08  Bruno Haible  <bruno@clisp.org>
8797         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
8798         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
8799         commands, because some shells ignore redirections when there is an
8800         error in the command lookup.
8801         Reported by Eric Blake.
8803 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
8805         * lib/regex.h: Fix a mention of `regex_compile' (should be
8806         `re_compile_pattern').
8807         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
8808         (re_set_registers): Correct name of parameter in comment.
8810         * doc/regex.texi: Add documentation for missing syntax flags.
8811         Remove commented-out documentation of defunct syntax option
8812         RE_NO_EMPTY_ALTS.
8813         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
8814         Add documentation of re_set_registers.
8815         Document trick to re-use a pattern buffer by setting fastmap manually.
8816         Update documentation of struct re_pattern_buffer per public members.
8817         Uncomment documentation of equivalence class operators and
8818         collating symbol operators, since they are now implemented,
8819         Explain leftmost-longest matching in relation to alternatives.
8820         Tidy documentation of substring matching.
8821         Remove POSIX documentation, which is done better in
8822         glibc, and refer the reader there. Keep BSD API documentation, as
8823         that is not readily available elsewhere.
8825 2010-09-07  Eric Blake  <eblake@redhat.com>
8827         getopt: handle POSIXLY_CORRECT set but not exported
8828         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
8829         export state of POSIXLY_CORRECT, due to bash set -o posix.
8830         Reported by Dustin J. Mitchell.
8832 2010-09-05  Bruno Haible  <bruno@clisp.org>
8834         gnulib-tool: Highlight the changed options.
8835         * gnulib-tool (func_usage): Display the --import, --add-import,
8836         --remove-import explanations in bold font.
8838 2010-09-06  Karl Berry  <karl@gnu.org>
8840         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
8842 2010-09-05  Bruno Haible  <bruno@clisp.org>
8844         uniwidth/width: Update comment.
8845         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
8846         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
8848 2010-09-05  Bruno Haible  <bruno@clisp.org>
8850         isinf, isnan: Relax license.
8851         * modules/isinf (License): Change from GPL to LGPL, with consent from
8852         Ben Pfaff.
8853         * modules/isnan (License): Likewise.
8854         Requested by Ludovic Courtès.
8856 2010-09-04  Bruno Haible  <bruno@clisp.org>
8858         gnulib-tool: Help migration from --import to --add-import or --update.
8859         * gnulib-tool: Emit a verbose error message when --import is used
8860         without any module name.
8862 2010-09-04  Bruno Haible  <bruno@clisp.org>
8864         Update doc about gnulib-tool.
8865         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
8866         'gnulib-tool --update' in more detail.
8867         Reported by Eric Blake.
8869 2010-09-04  Bruno Haible  <bruno@clisp.org>
8871         gnulib-tool: Change --import. New options --add/remove-import.
8872         * gnulib-tool: New options --add-import, --remove-import.
8873         (func_usage): Document them.
8874         (have_associative): Define always.
8875         (func_import): In import mode, don't merge the specified settings with
8876         the cached settings. Implement remove-import mode.
8877         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
8878         Explain when to use them versus --import.
8879         (Simple update): Use --add-import instead of --import.
8880         * NEWS: Mention the change.
8882 2010-09-04  Bruno Haible  <bruno@clisp.org>
8884         * doc/gnulib-tool.texi (Initial import): Update paragraph about
8885         separate gnulib.mk.
8887 2010-09-04  Bruno Haible  <bruno@clisp.org>
8889         gnulib-tool: Don't talk about CVS any more.
8890         * gnulib-tool (func_usage, func_import): Write "version control"
8891         instead of CVS.
8893 2010-09-04  Jim Meyering  <meyering@redhat.com>
8895         maint.mk: avoid obscure sc_copyright_check failure in coreutils
8896         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
8897         false positives (whose names may be ill-chosen) when searching
8898         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
8899         would cause a false-positive.
8901         avoid coreutils "make distcheck" failure
8902         Coreutils tests with an absolute build directory name that contains
8903         a space.  Not quoting this directory name caused a failure.
8904         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
8905         * tests/test-vc-list-files-cvs.sh: Likewise.
8907 2010-09-04  Bruno Haible  <bruno@clisp.org>
8909         gnulib-tool: Avoid error when run in a package without Makefile.am.
8910         * gnulib-tool: When collecting the m4dirs in a package that does not
8911         have a Makefile.am, eliminate those directories that contain no
8912         gnulib-cache.m4. Fix expression that counts these directories.
8914 2010-09-04  Bruno Haible  <bruno@clisp.org>
8916         update-copyright test: Improve output when perl is missing or too old.
8917         * tests/test-update-copyright.sh: Move test of Perl version down after
8918         the test whether Perl exists. Provide an explanation relating Perl's
8919         error message to Automake's SKIP: message.
8921 2010-09-04  Bruno Haible  <bruno@clisp.org>
8923         Don't augment PATH in TESTS_ENVIRONMENT.
8924         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
8925         set abs_aux_dir instead of augmenting PATH.
8926         * modules/vc-list-files-tests (Makefile.am): Likewise.
8927         * tests/test-update-copyright.sh: Augment PATH here.
8928         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
8929         path_prepend_.
8930         * tests/test-vc-list-files-git.sh: Likewise.
8932 2010-09-04  Jim Meyering  <meyering@redhat.com>
8934         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
8935         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
8937 2010-09-04  Bruno Haible  <bruno@clisp.org>
8939         strdup: Fix compilation error in C++ mode.
8940         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
8941         the macro.
8943 2010-09-04  Bruno Haible  <bruno@clisp.org>
8945         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
8946         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
8947         macro into a function.
8948         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
8950 2010-09-04  Bruno Haible  <bruno@clisp.org>
8952         Set PATH_SEPARATOR the same way autoconf does.
8953         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
8954         the value of PATH_SEPARATOR the same way autoconf-generated configure
8955         scripts do.
8956         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
8957         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
8959 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
8961         Set PATH_SEPARATOR the same way autoconf does.
8962         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
8963         the same way autoconf-generated configure scripts do.
8964         * posix-modules: Likewise.
8966 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
8968         hash: fix safe_hasher const typo
8969         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
8970         const; otherwise, there is a type error later.
8972 2010-09-02  Jim Meyering  <meyering@redhat.com>
8974         test-update-copyright.sh: require perl 5.8.0
8975         * tests/test-update-copyright.sh: Require 5.8.0,
8976         which Tom G. Christensen has confirmed is adequate,
8977         while 5.6.1 is not.
8979 2010-09-02  Eric Blake  <eblake@redhat.com>
8981         tests: init.sh improvements for re-exec'ing with zsh
8982         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
8983         -vx through shell re-exec.
8984         Reported by Tom G. Christensen.
8986         wctype: fix typo in previous commit
8987         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
8988         Reported by Ludovic Courtès.
8990 2010-09-02  Jim Meyering  <meyering@redhat.com>
8992         test-update-copyright.sh: skip test if Perl is too old
8993         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
8994         Reported by Tom G. Christensen.
8996 2010-09-02  Bruno Haible  <bruno@clisp.org>
8998         wctype: Avoid compilation error on IRIX 6.5.30.
8999         * lib/wctype.in.h (iswblank): Declare with a replacement if
9000         REPLACE_ISWBLANK is set.
9001         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
9002         declared. Set REPLACE_ISWBLANK.
9003         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
9004         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
9005         * doc/posix-headers/wctype.texi: Likewise.
9006         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9008 2010-09-01  Bruno Haible  <bruno@clisp.org>
9010         New module 'socketlib'.
9011         * modules/socketlib: New file.
9012         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
9013         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
9014         * modules/sockets (Depends-on): Add socketlib.
9015         Suggested by Sam Steingold <sds@gnu.org>.
9017 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
9019         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
9021         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
9022         when one needs search access to a directory but not read access.
9023         On systems where it is available, it works in some cases where
9024         O_RDONLY does not, namely on directories that are searchable but
9025         not readable, and which need only to be searchable.  If O_SEARCH
9026         is not available, fall back to the traditional method of using
9027         O_RDONLY.
9029         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
9030         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
9031         when opening a directory that needs only to be searchable.
9032         * lib/chdir-safer.c (chdir_no_follow): Likewise.
9033         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
9034         * lib/openat-proc.c (openat_proc_name): Likewise.
9035         * lib/openat.c (openat_needs_fchdir): Likewise.
9036         * lib/save-cwd.c (save_cwd): Likewise.
9037         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
9039 2010-08-28  Bruno Haible  <bruno@clisp.org>
9041         New module 'host-cpu-c-abi'.
9042         * modules/host-cpu-c-abi: New file.
9043         * m4/host-cpu-c-abi.m4: New file, based on part of
9044         clisp/src/m4/general.m4.
9045         Requested by Sam Steingold <sds@gnu.org>.
9047 2010-08-31  Eric Blake  <eblake@redhat.com>
9048         and Jim Meyering  <meyering@redhat.com>
9050         hash: factor, and guard against misbehaving hasher function
9051         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
9052         of table->hasher's return value.  Also protect against a hash value
9053         so large that adding it to table->bucket results in a NULL pointer.
9054         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
9055         Use it in place of open-coded check-and-abort.
9057 2010-08-30  Bruno Haible  <bruno@clisp.org>
9059         hash: silence spurious clang warning
9060         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
9061         Reported by Eric Blake.
9063 2010-08-30  Eric Blake  <eblake@redhat.com>
9065         strstr, memmem, strcasestr: avoid leaked shell message
9066         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
9067         FreeBSD.
9068         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
9069         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
9071         tests: silence clang warning
9072         * tests/test-malloca.c (do_allocation): Avoid dead store.
9074 2010-08-29  Bruno Haible  <bruno@clisp.org>
9076         gettext: Fix recent mistake.
9077         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
9079 2010-08-29  Bruno Haible  <bruno@clisp.org>
9081         selinux-h: Offer a --without-selinux option.
9082         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
9083         --without-selinux was specified, skip all tests and define
9084         HAVE_SELINUX_SELINUX_H to 0.
9085         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
9086         set LIB_SELINUX to empty.
9087         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
9088         gl_LIBSELINUX. If --without-selinux was specified, replace
9089         selinux/context.h.
9090         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
9092 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9093             Bruno Haible  <bruno@clisp.org>
9095         Make the module 'realloc-gnu' work again on AIX and OSF/1.
9096         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
9097         of HAVE_REALLOC.
9098         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
9099         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
9100         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
9101         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
9103 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9104             Bruno Haible  <bruno@clisp.org>
9106         Make the module 'calloc-gnu' work again on AIX and OSF/1.
9107         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
9108         HAVE_CALLOC.
9109         * lib/xmalloc.c: Update accordingly.
9110         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
9111         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
9112         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
9114 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9115             Bruno Haible  <bruno@clisp.org>
9117         Make the module 'malloc-gnu' work again on AIX and OSF/1.
9118         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
9119         HAVE_MALLOC.
9120         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
9121         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
9122         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
9124 2010-08-29  Bruno Haible  <bruno@clisp.org>
9126         Update modules list.
9127         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
9128         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
9129         (String handling <string.h>): Add astrxfrm.
9130         (File system functions): Add readlinkat.
9132 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9134         Tests for module 'realloc-gnu'.
9135         * modules/realloc-gnu-tests: New file.
9136         * tests/test-realloc-gnu.c: New file.
9138         Tests for module 'calloc-gnu'.
9139         * modules/calloc-gnu-tests: New file.
9140         * tests/test-calloc-gnu.c: New file.
9142         Tests for module 'malloc-gnu'.
9143         * modules/malloc-gnu-tests: New file.
9144         * tests/test-malloc-gnu.c: New file.
9146 2010-08-28  Bruno Haible  <bruno@clisp.org>
9148         Rename module 'realloc' -> 'realloc-gnu'.
9149         * modules/realloc-gnu: New file, copied from modules/realloc.
9150         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
9151         obsolete.
9152         * modules/mgetgroups (Depends-on): Update.
9153         * doc/posix-functions/realloc.texi: Update.
9154         * NEWS: Mention the change.
9156         Rename module 'calloc' -> 'calloc-gnu'.
9157         * modules/calloc-gnu: New file, copied from modules/calloc.
9158         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
9159         obsolete.
9160         * doc/posix-functions/calloc.texi: Update.
9161         * NEWS: Mention the change.
9163         Rename module 'malloc' -> 'malloc-gnu'.
9164         * modules/malloc-gnu: New file, copied from modules/malloc.
9165         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
9166         obsolete.
9167         * modules/argp (Depends-on): Update.
9168         * modules/regex (Depends-on): Update.
9169         * doc/posix-functions/malloc.texi: Update.
9170         * NEWS: Mention the change.
9172 2010-08-28  Eric Blake  <eblake@redhat.com>
9174         pread, pwrite: add missing dependency
9175         * modules/pread (Depends-on): Add extensions.
9176         * modules/pwrite (Depends-on): Likewise.
9178 2010-08-28  Bruno Haible  <bruno@clisp.org>
9180         unistr/u*-strchr: Fix tests dependencies.
9181         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
9182         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
9183         Reported by Ian Beckwith <ianb@erislabs.net>.
9185 2010-08-28  Bruno Haible  <bruno@clisp.org>
9187         read-file: Don't occupy too much unused memory.
9188         * lib/read-file.c (fread_file): Shrink the buffer at the end.
9190 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
9191             Eric Blake  <eblake@redhat.com>
9192             Bruno Haible  <bruno@clisp.org>
9194         read-file: Avoid memory reallocations with regular files.
9195         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
9196         (fread_file): With regular files, use the remaining length as the
9197         initial buffer size.  Check against overflow.
9198         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
9199         sys_stat.
9201 2010-08-28  Bruno Haible  <bruno@clisp.org>
9203         ftello: Relax license.
9204         * modules/ftello (License): Relax to LGPLv2+.
9205         Reported by Eric Blake.
9207 2010-08-28  Bruno Haible  <bruno@clisp.org>
9209         Avoid relocwrapper link errors due to gnulib replacement functions.
9210         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
9211         function.
9212         Reported by Ben Pfaff <blp@cs.stanford.edu>.
9214 2010-08-28  Bruno Haible  <bruno@clisp.org>
9216         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
9217         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
9218         defined.
9219         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
9220         Suggested by Eric Blake.
9222 2010-08-28  Bruno Haible  <bruno@clisp.org>
9224         sys_socket, netdb: Ensure socklen_t gets defined.
9225         * modules/sys_socket (Depends-on): Add socklen.
9226         * modules/netdb (Depends-on): Likewise.
9227         * modules/getaddrinfo (Depends-on): Remove socklen.
9228         * modules/getsockopt (Depends-on): Likewise.
9229         * modules/setsockopt (Depends-on): Likewise.
9230         * tests/test-sys_socket.c: Check that socklen_t is defined.
9231         * tests/test-netdb.c: Likewise.
9232         * m4/socklen.m4: Update comments.
9233         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9235 2010-08-27  Eric Blake  <eblake@redhat.com>
9237         login_tty: add missing dependency
9238         * modules/login_tty (Depends-on): Add pty.
9240 2010-08-26  Eric Blake  <eblake@redhat.com>
9242         lib-symbol-versions: fix m4 quoting
9243         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
9244         format for AC_LINK_IFELSE.
9246         glob: fix compile test
9247         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
9249         btowc: fix missing file
9250         * modules/btowc (Files): Also ship locale-fr.m4.
9252         lseek: fix link test
9253         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
9254         AC_LINK_IFELSE.
9256         include_next: silence autoconf 2.68 warning
9257         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
9258         AC_COMPILE_IFELSE as special.
9259         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
9260         autoconf < 2.68.
9262         acl: fix compilation test
9263         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
9264         AC_COMPILE_IFELSE.
9266 2010-08-26  Bruno Haible  <bruno@clisp.org>
9268         Modernize AC_TRY_RUN invocations.
9269         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
9270         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
9271         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
9272         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
9273         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
9274         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
9275         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
9276         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
9277         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
9278         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
9279         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
9280         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
9281         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
9282         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
9283         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
9284         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
9285         gl_MBRLEN_NUL_RETVAL): Likewise.
9286         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
9287         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
9288         Likewise.
9289         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
9290         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
9291         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
9292         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
9293         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
9294         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
9295         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
9296         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
9297         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
9298         Likewise.
9299         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
9300         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
9301         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
9302         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
9303         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
9304         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
9305         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
9306         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
9307         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
9308         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
9310 2010-08-26  Bruno Haible  <bruno@clisp.org>
9312         Modernize AC_TRY_LINK invocations.
9313         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
9314         AC_TRY_LINK.
9315         * m4/argp.m4 (gl_ARGP): Likewise.
9316         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
9317         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
9318         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
9319         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
9320         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
9321         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
9322         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
9323         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
9324         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
9325         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
9326         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
9327         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
9328         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
9329         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
9330         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
9331         * m4/hostent.m4 (gl_HOSTENT): Likewise.
9332         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
9333         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
9334         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
9335         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
9336         Likewise.
9337         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
9338         Likewise.
9339         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
9340         Likewise.
9341         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
9342         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
9343         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
9344         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
9345         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
9346         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
9347         * m4/servent.m4 (gl_SERVENT): Likewise.
9348         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
9349         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
9350         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
9351         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
9352         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
9353         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
9354         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
9355         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
9356         * modules/tsearch-tests (configure.ac): Likewise.
9358 2010-08-26  Bruno Haible  <bruno@clisp.org>
9360         Modernize AC_TRY_COMPILE invocations.
9361         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
9362         AC_TRY_COMPILE.
9363         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
9364         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
9365         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
9366         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
9367         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
9368         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
9369         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
9370         * m4/lock.m4 (gl_LOCK): Likewise.
9371         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
9372         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
9373         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
9374         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
9375         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
9376         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
9377         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
9378         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
9379         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
9380         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
9381         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
9382         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
9383         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
9384         extraneous semicolon.
9386 2010-08-26  Jim Meyering  <meyering@redhat.com>
9388         stat-time: relax license LGPL
9389         * modules/stat-time (License): Change from GPL to LGPL,
9390         with consent from all contributors, for use in libguile.
9391         Requested by Ludovic Courtès.
9393 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
9395         poll: return immediately on POLLHUP.
9396         * lib/poll.c (poll): Always set timeout before wait_timeout is
9397         computed.
9399 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9401         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
9402         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
9403         rmdir ("dir/.//"), unlinkat.
9405 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
9407         stdbool: avoid spurious failure with modern xlc
9408         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
9410 2010-08-24  Bruno Haible  <bruno@clisp.org>
9412         getloadavg: simplify code
9413         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
9414         gl_have_func. Update comments.
9416 2010-08-24  Eric Blake  <eblake@redhat.com>
9418         getloadavg: don't define SVR4 on cygwin
9419         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
9420         only define SVR4 when -lkvm is required.
9421         Reported by Yaakov Selkowitz.
9423 2010-08-24  Bruno Haible  <bruno@clisp.org>
9425         priv-set: fix comment
9426         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
9428 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
9430         priv-set: fix comments
9431         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
9432         to match code, as suggested by David Bartley in:
9433         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
9435 2010-08-23  Eric Blake  <eblake@redhat.com>
9437         stdbool: avoid rejecting clang
9438         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
9439         * tests/test-stdbool.c: Enable more tests if using the system
9440         <stdbool.h> instead of the gnulib replacement.
9441         (main): Move xlc bug test to a runtime test for all compilers.
9442         Reported by Anders Kaseorg.
9444         argz: fix shell quoting issue
9445         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
9446         Reported by Charles Wilson.
9448 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
9449             Erik Faye-Lund <kusmabite@gmail.com>
9451         poll, select: handle ERROR_BROKEN_PIPE.
9452         * lib/poll.c (win32_compute_revents): Return POLLHUP when
9453         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
9454         * lib/select.c (win32_compute_revents): Do not mark a pipe
9455         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
9457 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
9459         fts: allow compilation with C++
9460         * lib/fts_.h: Specify extern "C" linkage with C++.
9462 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9464         Fix gnulib-tool sed script de-commentation for AIX sed.
9465         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
9466         sed.
9468 2010-08-17  Eric Blake  <eblake@redhat.com>
9470         test-stddef: test for (some) offsetof bugs
9471         * tests/test-stddef.c: Enhance test to ensure correct type of
9472         offsetof.
9473         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
9474         that we are not fixing at this time.
9476 2010-08-15  Bruno Haible  <bruno@clisp.org>
9478         stpncpy: Allow stpncpy to be defined as a macro.
9479         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
9480         if it's already correctly declared.
9481         * lib/string.in.h (stpncpy): Undefine before redefining.
9482         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
9484 2010-08-14  Bruno Haible  <bruno@clisp.org>
9486         Rename module 'memxfrm' to 'amemxfrm'.
9487         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
9488         (amemxfrm): Renamed from memxfrm.
9489         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
9490         (amemxfrm): Renamed from memxfrm.
9491         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
9492         * NEWS: Mention the change.
9493         * MODULES.html.sh (String handling <string.h>): Update.
9494         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
9495         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
9496         * lib/unicase/u16-casexfrm.c: Likewise.
9497         * lib/unicase/u32-casexfrm.c: Likewise.
9498         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
9499         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
9500         * lib/uninorm/u16-normxfrm.c: Likewise.
9501         * lib/uninorm/u32-normxfrm.c: Likewise.
9502         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
9503         memxfrm.
9504         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
9505         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
9506         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
9507         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
9508         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
9509         Suggested by Paul Eggert.
9511 2010-08-14  Bruno Haible  <bruno@clisp.org>
9513         Tests for module 'astrxfrm'.
9514         * modules/astrxfrm-tests: New file.
9515         * tests/test-astrxfrm.c: New file.
9517         New module 'astrxfrm'.
9518         * lib/astrxfrm.h: New file.
9519         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
9520         * modules/astrxfrm: New file.
9522 2010-08-14  Reuben Thomas <rrt@sc3d.org>
9524         regex: Tweak doc.
9525         * doc/regex.texi (Overview): Don't mention regex.c.
9526         (GNU Regular Expression Compiling): Likewise.
9527         (Match-end-of-line Operator): Mention 'not_eol'.
9529 2010-08-14  Brian Gough  <bjg@gnu.org>
9530             Bruno Haible  <bruno@clisp.org>
9532         git-merge-changelog: add doc relating to use with bzr and hg.
9533         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
9535 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
9537         pthread: fix pthread.h creation for srcdir != builddir
9538         * modules/pthread (Makefile.am): Fix the rule to work also in a
9539         non-srcdir build.
9541 2010-08-13  Karl Berry  <karl@gnu.org>
9543         * doc/regex.texi (Predefined Syntaxes): @smallexample.
9544         * doc/posix-*/*: force line break before @url of POSIX
9545         specifications.
9546         Suggested by Werner Lemberg.
9548 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
9550         strtod: fix const diagnostic
9551         * lib/strtod.c (strtod): Don't assign const char * to char *,
9552         as this elicits a warning from GCC when warnings are enabled.
9554 2010-08-10  Pádraig Brady <P@draigbrady.com>
9555         and Eric Blake  <eblake@redhat.com>
9557         copy-acl: ignore ENOTSUP on HP-UX
9558         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
9559         so that it is available for HP-UX.
9560         * lib/copy-acl.c (qcopy_acl): Use it.
9561         Reported by Patrick M. Callahan.
9563 2010-08-10  Eric Blake  <eblake@redhat.com>
9565         open, chown: relax license
9566         * modules/open (License): Change to LGPLv2+, with consent by all
9567         authors, for use in augeas.
9568         * modules/chown (License): Likewise.
9569         * modules/lchown (Likewise): Likewise.
9570         Requested by Adam Stokes.
9572 2010-08-09  Karl Berry  <karl@gnu.org>
9574         * build-aux/ar-lib: new file, import from Automake.
9575         * config/srclist.txt: autocheck for updates.
9577 2010-08-09  Eric Blake  <eblake@redhat.com>
9579         readlinkat: adjust client modules
9580         * modules/areadlinkat (Depends-on): Use readlinkat, not
9581         symlinkat.
9582         * modules/areadlinkat-with-size (Depends-on): Likewise.
9584         mknod: be more vocal about danger of running tests as root
9585         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
9586         root, since that is just asking for problems.
9587         Suggested by Bruno Haible, based on a report by Rainer Tammer.
9589         readlinkat: split into its own module
9590         * modules/symlinkat: Split readlinkat...
9591         * modules/readlinkat: ...into separate module.
9592         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
9593         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
9594         * lib/symlinkat.c (readlinkat): Move...
9595         * lib/readlinkat.c: ...into new file.
9596         * modules/symlinkat-tests: Split readlinkat test...
9597         * modules/readlinkat-tests: ...into separate module.
9598         * tests/test-symlinkat.c: Split...
9599         * tests/test-readlinkat.c: ...into new file.
9600         * NEWS: Document the split.
9601         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
9602         * lib/unistd.in.h (readlinkat): Likewise.
9603         Suggested by Bruno Haible.
9605 2010-08-08  Bruno Haible  <bruno@clisp.org>
9607         memxfrm: Speed up.
9608         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
9609         that usually only one call to strxfrm is necessary for each string
9610         part.
9611         Reported by Paul Eggert <eggert@cs.ucla.edu>.
9613 2010-08-07  Karl Berry  <karl@gnu.org>
9615         * doc/posix-headers/limits.texi,
9616         * doc/posix-functions/malloc.texi,
9617         * doc/posix-functions/strsignal.texi: missing @item.
9618         * doc/ld-version-script.texi: spurious leading i.
9619         * doc/regex.texi (Interval Operators): no commas inside @var.
9621 2010-08-01  Bruno Haible  <bruno@clisp.org>
9623         Integrate the regex documentation.
9624         * doc/gnulib.texi: Define 'cn' index.
9625         (Regular expressions): New a chapter that includes regex.texi and
9626         regexprops-generic.texi.
9627         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
9628         syntax.
9630         Whitespace cleanup.
9631         * doc/regex.texi: Remove trailing spaces.
9633         Add regex documentation.
9634         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
9635         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
9636         Written by Kathy A. Hargreaves and Karl Berry.
9638 2010-08-01  Bruno Haible  <bruno@clisp.org>
9640         link: Update documentation.
9641         * doc/posix-functions/link.texi: Update regarding Solaris.
9643 2010-07-31  Bruno Haible  <bruno@clisp.org>
9645         Update modules list.
9646         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
9647         (String handling <string.h>): Add memcmp2, memxfrm.
9648         (Container data structures): Add xlist, xsublist, xoset.
9649         (Core language properties): Add alignof, unused-parameter.
9650         (Process control, Numeric conversion functions <stdlib.h>): Renamed
9651         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
9652         (Unibyte characters <ctype.h>): New section.
9653         (String handling <string.h>): New section.
9654         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
9655         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
9656         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
9657         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
9658         tan, tanh, tanl, y0, y1, yn.
9659         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
9660         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
9661         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
9662         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
9663         unlockpt, vdprintf, vdprintf-posix.
9664         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
9665         (File system functions): Add concat-filename, sys_file, sys_ioctl,
9666         xconcat-filename.
9667         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
9668         getdtablesize, pipe2, pipe2-safer.
9669         (Security): New section.
9670         (Networking functions): Add accept4.
9671         (Signal handling): Add sigpipe.
9672         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
9673         mbmemcasecoll.
9674         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
9675         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
9676         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
9677         pipe-filter-ii.
9678         (Misc): Add argp-version-etc, login_tty, parse-duration.
9680 2010-07-31  Bruno Haible  <bruno@clisp.org>
9682         Improve doc in MODULES.html.
9683         * modules/linkat (Description): Add the word "function".
9684         * modules/mkfifo (Description): Likewise.
9685         * modules/mknod (Description): Likewise.
9686         * modules/remove (Description): Likewise.
9687         * modules/renameat (Description): Likewise.
9688         * modules/stat (Description): Likewise.
9689         * modules/symlink (Description): Likewise.
9690         * modules/unlink (Description): Likewise.
9692 2010-07-31  Bruno Haible  <bruno@clisp.org>
9694         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
9695         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
9696         option --enable/disable-c++ instead of --enable/disable-cxx.
9697         * NEWS: Mention the change.
9699 2010-07-31  Bruno Haible  <bruno@clisp.org>
9701         readlink, areadlink: Relax test a bit.
9702         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
9703         alternative to ENOTDIR.
9704         * tests/test-areadlink.h (test_areadlink): Likewise.
9705         Reported by Rainer Tammer.
9707 2010-07-31  Bruno Haible  <bruno@clisp.org>
9709         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
9710         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
9711         character, perform the search using U_STRCHR.
9712         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
9713         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
9714         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
9715         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
9716         Suggested by Paolo Bonzini.
9718 2010-07-31  Bruno Haible  <bruno@clisp.org>
9720         unistr/u*-strstr: Fix dependencies.
9721         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
9722         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
9723         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
9725 2010-07-31  Bruno Haible  <bruno@clisp.org>
9727         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
9728         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
9729         the beginning of the loop.
9730         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
9731         cases in 'switch' statement.
9733         unistr/u8-strchr: Fix several bugs.
9734         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
9735         the string. When not found, return NULL, not a pointer near the end.
9737         More tests for unistr/u8-strchr.
9738         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
9739         that the function does not read past the first occurrence of the byte
9740         being searched.
9741         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
9742         * tests/unistr/test-u16-strchr.c (main): New function.
9743         * tests/unistr/test-u32-strchr.c (main): New function.
9745 2010-07-31  Bruno Haible  <bruno@clisp.org>
9747         posix-modules: Ignore backup files of documentation files.
9748         * posix-modules: grep only through files named *.texi.
9750 2010-07-31  Bruno Haible  <bruno@clisp.org>
9752         symlinkat: Fix documentation.
9753         * doc/posix-functions/readlinkat.texi: Fix module name.
9755 2010-07-31  Bruno Haible  <bruno@clisp.org>
9757         fchownat: Replace also when chown has the trailing slash bug.
9758         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
9759         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
9760         introduced on 2010-04-10.
9761         Reported by Rainer Tammer.
9763 2010-07-31  Bruno Haible  <bruno@clisp.org>
9765         linkat: Work around AIX 7.1 bug.
9766         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
9767         whether linkat handles trailing slash correctly. If not, replace linkat
9768         and define LINKAT_TRAILING_SLASH_BUG.
9769         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
9770         check whether (fd1,file1) points to a directory if file1 or file2 ends
9771         in a slash. Code taken from lib/link.c.
9772         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
9773         Reported by Rainer Tammer.
9775 2010-07-31  Bruno Haible  <bruno@clisp.org>
9777         Correctly determine whether pow is available in libc on AIX 7 with xlc.
9778         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
9779         This disables an xlc optimization that was causing wrong test results.
9780         Reported by Rainer Tammer.
9782 2010-07-31  Bruno Haible  <bruno@clisp.org>
9784         iconv: Work around AIX 6.1..7.1 bug.
9785         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
9786         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
9787         cross-compiling, guess no on all versions of AIX.
9788         Reported by Rainer Tammer.
9790 2010-07-31  Bruno Haible  <bruno@clisp.org>
9792         readlink: Relax test a bit.
9793         * tests/test-readlink.h (test_readlink): Allow different errno value
9794         when readlink is called with a file name that ends in / and refers to
9795         a file.
9796         Suggested by Eric Blake.
9797         Reported by Rainer Tammer.
9799 2010-07-31  Bruno Haible  <bruno@clisp.org>
9801         copysign: Does not require -lm on glibc systems.
9802         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
9803         gl_COMMON_DOUBLE_MATHFUNC.
9804         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
9806 2010-07-31  Bruno Haible  <bruno@clisp.org>
9808         duplocale: Work around AIX 7.1 bug.
9809         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
9810         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
9811         * lib/duplocale.c (rpl_duplocale): Update comment.
9812         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
9813         Reported by Rainer Tammer.
9815 2010-07-30  Bruno Haible  <bruno@clisp.org>
9817         dirfd: Avoid link error on AIX 7.1.
9818         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
9819         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
9820         exist, set REPLACE_DIRFD.
9821         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
9822         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
9823         * doc/posix-functions/dirfd.texi: Update.
9824         Reported by Rainer Tammer.
9826 2010-07-30  Eric Blake  <eblake@redhat.com>
9828         strtod: next round of AIX fixes
9829         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
9830         exponent.
9831         * tests/test-strtod.c (main): Enhance tests.
9832         * doc/posix-functions/strtod.texi (strtod): Document next bug.
9833         Reported by Rainer Tammer.
9835         futimens: fix configure check
9836         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
9837         Reported by Bruno Haible.
9839 2010-07-30  Bruno Haible  <bruno@clisp.org>
9841         getline: Update regarding AIX.
9842         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
9843         Reported by Rainer Tammer.
9845 2010-07-30  Bruno Haible  <bruno@clisp.org>
9847         wcwidth: Drop replacement on AIX 7.
9848         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
9849         AIX 7.
9850         Reported by Rainer Tammer.
9852 2010-07-30  Bruno Haible  <bruno@clisp.org>
9854         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
9855         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
9856         a 'char *'.
9857         Reported by Rainer Tammer.
9859 2010-07-30  Bruno Haible  <bruno@clisp.org>
9861         unlink: Update regarding AIX.
9862         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
9863         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
9864         Reported by Rainer Tammer.
9866 2010-07-30  Bruno Haible  <bruno@clisp.org>
9868         symlink: Update regarding AIX.
9869         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
9870         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
9871         Reported by Rainer Tammer.
9873 2010-07-30  Bruno Haible  <bruno@clisp.org>
9875         strndup: Update regarding AIX.
9876         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
9877         AIX 7.
9878         Reported by Rainer Tammer.
9880 2010-07-30  Bruno Haible  <bruno@clisp.org>
9882         stat: Update regarding AIX.
9883         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
9884         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
9885         Reported by Rainer Tammer.
9887 2010-07-30  Bruno Haible  <bruno@clisp.org>
9889         truncl: Fix autoconf test.
9890         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
9891         whether truncl works.
9892         Reported by Rainer Tammer.
9894 2010-07-30  Bruno Haible  <bruno@clisp.org>
9896         round: Update regarding AIX.
9897         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
9898         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
9899         Reported by Rainer Tammer.
9901 2010-07-30  Bruno Haible  <bruno@clisp.org>
9903         rename: Update regarding AIX.
9904         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
9905         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
9906         Reported by Rainer Tammer.
9908 2010-07-30  Bruno Haible  <bruno@clisp.org>
9910         printf.m4: Update regarding AIX.
9911         * m4/printf.m4: Update comments regarding AIX.
9912         Reported by Rainer Tammer.
9914 2010-07-30  Bruno Haible  <bruno@clisp.org>
9916         iconv: Update regarding AIX.
9917         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
9918         AIX 7.
9919         Reported by Rainer Tammer.
9921 2010-07-30  Bruno Haible  <bruno@clisp.org>
9923         getopt: Update regarding AIX.
9924         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
9925         no on AIX.
9926         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
9927         Reported by Rainer Tammer.
9929 2010-07-30  Bruno Haible  <bruno@clisp.org>
9931         ldexpl; Update regarding AIX.
9932         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
9933         on AIX 7.
9934         Reported by Rainer Tammer.
9936 2010-07-30  Bruno Haible  <bruno@clisp.org>
9938         frexpl: Update regarding AIX.
9939         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
9940         on AIX 7.
9941         Reported by Rainer Tammer.
9943 2010-07-30  Bruno Haible  <bruno@clisp.org>
9945         open, fopen: Update regarding AIX.
9946         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
9947         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
9948         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
9949         * doc/posix-functions/fopen.texi: Likewise.
9950         Reported by Rainer Tammer.
9952 2010-07-30  Bruno Haible  <bruno@clisp.org>
9954         chown: Update doc regarding AIX.
9955         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
9956         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
9957         Reported by Rainer Tammer.
9959 2010-07-30  Eric Blake  <eblake@redhat.com>
9961         strtod: fix bug in replacement function on AIX
9962         * lib/strtod.c (strtod): Special case broken "0x" parse in
9963         underlying strtod.
9964         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
9965         * doc/posix-functions/strtod.texi (strtod): Likewise.
9966         Reported by Rainer Tammer.
9968 2010-07-30  Bruno Haible  <bruno@clisp.org>
9970         mbrlen: Fix cross-compilation guess for AIX.
9971         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
9972         guess. Leftover from 2008-12-22.
9974 2010-07-30  Bruno Haible  <bruno@clisp.org>
9976         mbrtowc: Fix cross-compilation guess for AIX.
9977         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
9978         guess. Leftover from 2008-12-21.
9980 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
9982         init.sh: work around trap limitation of some shells
9983         * tests/init.sh (setup_): Move exit trap outside of shell function.
9985 2010-07-29  Eric Blake  <eblake@redhat.com>
9987         strtod: aid debugging
9988         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
9989         understanding why strtod is rejected.
9991 2010-07-28  Bruno Haible  <bruno@clisp.org>
9993         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
9994         * lib/unistr/u8-chr.c: Include <string.h>.
9995         * tests/unistr/test-u8-chr.c: Likewise.
9996         * tests/unistr/test-u16-chr.c: Likewise.
9997         * tests/unistr/test-u32-chr.c: Likewise.
9998         * tests/unistr/test-u8-strchr.c: Likewise.
9999         * tests/unistr/test-u16-strchr.c: Likewise.
10000         * tests/unistr/test-u32-strchr.c: Likewise.
10001         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
10002         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
10003         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
10004         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
10006 2010-07-28  Bruno Haible  <bruno@clisp.org>
10008         Use spaces for indentation, not tabs.
10009         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
10011 2010-07-27  Bruno Haible  <bruno@clisp.org>
10013         mbspcasecmp: Fix function specification.
10014         * lib/string.in.h (mbspcasecmp): Fix specification comment.
10015         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
10016         Reported by Eric Blake <eblake@redhat.com>.
10018 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
10020         timespec: use cast and not conditional, as truncation isn't possible
10021         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
10022         instead of a conditional.  Comment about the situation in more detail.
10023         This undoes most of the 2009-10-29 patch.
10025 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
10027         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
10028         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
10029         * lib/unistr/u8-strchr.c: Likewise.
10030         * modules/unistr/u8-chr: Depend on memchr.
10032         unistr/u*-strchr: add tests
10033         * modules/unistr/u8-strchr-tests: New file.
10034         * modules/unistr/u16-strchr-tests: New file.
10035         * modules/unistr/u32-strchr-tests: New file.
10036         * tests/unistr/test-strchr.h: New file.
10037         * tests/unistr/test-u8-strchr.c: New file.
10038         * tests/unistr/test-u16-strchr.c: New file.
10039         * tests/unistr/test-u32-strchr.c: New file.
10041         unistr/u*-chr: test multibyte sequences more
10042         * tests/unistr/test-chr.h: Do complete testing of the characters in the
10043         test vector.
10044         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
10045         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
10046         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
10048         unistr/u*-chr: test multibyte sequences
10049         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
10051         unistr/u*-chr: prepare for multibyte tests
10052         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
10053         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
10054         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
10055         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
10056         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
10057         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
10059 2010-07-18  Bruno Haible  <bruno@clisp.org>
10061         unistr/u8-strchr: Optimize non-ASCII argument case.
10062         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
10063         because the first byte often matches anyway.
10064         Reported by Pádraig Brady <P@draigbrady.com>.
10066 2010-07-15  Karl Berry  <karl@gnu.org>
10068         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
10070 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
10072         getcwd: on Solaris, work better if ancestors are inaccessible
10073         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
10074         buffer and size, try again with a large buffer.  This works better
10075         on Solaris, since its getcwd succeeds even if the path to the root
10076         is inaccessible, and this is helpful in common cases such as .zfs
10077         hidden directories.  Problem reported by J Chapman Flack in
10078         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
10079         Use system getcwd if it's declared, not merely if it's partly
10080         working; use the partly-working test only to avoid needless effort
10081         if the system getcwd fails.
10082         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
10083         comment that was already obsolete and is now even more obsolete.
10084         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
10085         now might call strdup.
10087 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
10089         pthread: Add enough so that coreutils/src/sort.c compiles.
10090         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
10091         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
10092         gnulib. Include <sched.h> and <time.h>, as per POSIX.
10093         Include <sys/types.h>, in case it defines pthread_t.
10094         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
10095         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
10096         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
10097         (pthread_rwlockattr_t, pthread_spinlock_t):
10098         New typedefs, if HAVE_PTHREAD_T is not defined.
10099         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
10100         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
10101         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
10102         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
10103         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
10104         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
10105         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
10106         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
10107         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
10108         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
10109         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
10110         New macros.
10111         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
10112         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
10113         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
10114         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
10115         (pthread_spin_unlock): New dummy functions.
10116         (pthread_create): Return EAGAIN; don't set errno.
10117         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
10118         require AC_C_INLINE.
10119         * modules/pthread (Depends-on): Add sched, time.
10120         (pthread.h): Use AM_V_GEN.
10122 2010-07-13  Bruno Haible  <bruno@clisp.org>
10124         striconveh: Don't malloc memory if the result buffer is sufficient.
10125         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
10126         buffer if its size is sufficient.
10127         Reported by Ludovic Courtès <ludo@gnu.org>.
10129 2010-07-13  Bruno Haible  <bruno@clisp.org>
10131         strtod: Add safety check.
10132         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
10134 2010-07-12  Bruno Haible  <bruno@clisp.org>
10136         Unify tests that set gl_cv_func_ldexpl_no_libm.
10137         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
10138         gl_FUNC_LDEXPL.
10139         (gl_FUNC_LDEXPL): Invoke it.
10140         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
10142 2010-07-12  Bruno Haible  <bruno@clisp.org>
10144         Unify tests that set gl_cv_func_ldexp_no_libm.
10145         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
10146         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
10147         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
10148         (configure.ac): Simply invoke gl_FUNC_LDEXP.
10149         * modules/strtod (Files): Add m4/ldexp.m4.
10151 2010-07-12  Bruno Haible  <bruno@clisp.org>
10153         Unify tests that set gl_cv_func_frexpl_no_libm.
10154         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
10155         gl_FUNC_FREXPL_NO_LIBM.
10156         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
10157         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
10159 2010-07-12  Bruno Haible  <bruno@clisp.org>
10161         Unify tests that set gl_cv_func_frexp_no_libm.
10162         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
10163         gl_FUNC_FREXP_NO_LIBM.
10164         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
10165         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
10167 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
10169         memcoll: clarify sizes versus lengths, document better, and tweak perf
10170         * lib/memcoll.c (strcoll_loop, memcoll0):
10171         Improve quality of descriptive comments.  Name variables
10172         consistently as to whether they are lengths (which do not include
10173         terminating null) versus sizes (which do).
10174         * lib/xmemcoll.c (xmemcoll0): Likewise.
10175         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
10176         returned when s1size == 0; this is easier to compile and saves
10177         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
10179 2010-07-12  Bruno Haible  <bruno@clisp.org>
10181         Tests for module '_Exit'.
10182         * modules/_Exit-tests: New file.
10183         * tests/test-_Exit.sh: New file.
10184         * tests/test-_Exit.c: New file.
10186         New module '_Exit'.
10187         * lib/stdlib.in.h (__attribute__): New macro.
10188         (_Exit): New declaration.
10189         * lib/_Exit.c: New file.
10190         * m4/_Exit.m4: New file.
10191         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
10192         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
10193         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
10194         * modules/_Exit: New file.
10195         * tests/test-stdlib-c++.cc (_Exit): Check signature.
10196         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
10198 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
10200         strtod: make it more-accurate typically, and don't require libm
10201         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
10202         Include limits.h.  Don't include string.h.
10203         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
10204         (locale_isspace): New function, so that no casts are needed to
10205         check whether *s is a space.
10206         (ldexp): Provide an unused dummy if not available.
10207         (scale_radix_exp, parse_number, underlying_strtod): New functions.
10208         (strtod): Use them.  This implementation prefers to use the
10209         underlying strtod if available, falling back on our own code
10210         only to fix known bugs.  This is more likely to produce an
10211         accurate result.  Also, it avoids the use of libm functions.
10212         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
10213         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
10214         was absent, but it caused a test failure with coreutils.
10215         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
10216         with libm.
10217         * modules/strtod (Makefile.am, Link): libm is no longer needed.
10218         * modules/strtod-tests (Makefile.am): Likewise.
10220 2010-07-11  Pádraig Brady  <P@draigBrady.com>
10221             Bruno Haible  <bruno@clisp.org>
10223         unistr/u8-strchr: Optimize ASCII argument case.
10224         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
10226 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
10228         (x)memcoll: minor tweaks
10229         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
10230         is after the type that it qualifies.
10231         (memcoll0): Likewise.
10232         * lib/memcoll.h (memcoll0): Likewise.
10233         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
10234         * lib/xmemcoll.h (xmemcoll0): Likewise.
10235         * lib/memcoll.c (memcoll0): Correct the comment.  This function
10236         differs from memcoll in that the NUL byte is part of the argument.
10237         Omit the abort-checks, as performance is a real issue here.  Plus,
10238         the checks were wrong anyway (an off-by-one error).  Omit local
10239         variable 'diff', as it's a bit clearer that way.
10240         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
10241         no longer needed.
10243 2010-07-08  Chen Guo <chenguo4@yahoo.com>
10245         (x)memcoll: speedup when input is known to be NUL delimited
10246         * lib/memcoll.c: Include stdlib.
10247         (memcoll0) New function.
10248         (strcoll_loop) New function, refactored for use in both memcoll
10249         and memcoll0.
10250         * lib/memcoll.h: Add prototype for memcoll0.
10251         * lib/xmemcoll.c: (xmemcoll0) New function.
10252         (collate_error) New function, refactored for use in both xmemcoll
10253         and xmemcoll0.
10254         * lib/xmemcoll.h: Add prototype for xmemcoll0.
10255         * m4/memcoll.m4: add inline invocation.
10257 2010-07-06  Pádraig Brady  <P@draigBrady.com>
10259         * build-aux/bootstrap: Remove any local translations
10260         from the translation project synchronization directory,
10261         so that local only translations are not distributed.
10263 2010-07-04  Bruno Haible  <bruno@clisp.org>
10265         fsusage: Clarify which code applies to which platforms.
10266         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
10267         platform.
10268         * lib/fsusage.c (get_fs_usage): Likewise.
10270 2010-07-04  Bruno Haible  <bruno@clisp.org>
10272         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
10273         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
10274         Reported by Martin Lambers <marlam@marlam.de>.
10276 2010-07-04  Jim Meyering  <meyering@redhat.com>
10278         hash: once again explicitly disallow insertion of NULL
10279         * lib/hash.c (hash_insert0): Reinstate just-removed test:
10280         inserting a NULL pointer cannot work with these functions.
10281         Add a comment with details.
10282         This reverts part of the 2010-07-01 commit, 5bef1a35
10283         "hash: extend module to deal with non-pointer keys".
10285 2010-07-01  Bruno Haible  <bruno@clisp.org>
10287         stdbool: Update doc.
10288         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
10289         Info from Christian Weisgerber <naddy@mips.inka.de>.
10291 2010-07-01  Jim Meyering  <meyering@redhat.com>
10293         hash: extend module to deal with non-pointer keys
10294         * lib/hash.c (hash_insert0): New interface, much like hash_insert
10295         but that allows insertion of non-pointer entries.
10296         Do not disallow an ENTRY value of NULL.
10297         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
10298         * lib/hash.h (hash_insert0): Declare.
10300 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
10302         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
10303         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
10304         not present (i.e. with autoconf 2.59 and when using gettextize, not
10305         gnulib), require AC_GNU_SOURCE instead.
10307 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
10309         idpriv-drop: Fix tests.
10310         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
10311         not to the test-idpriv-droptemp program.
10313 2010-06-29  Bruno Haible  <bruno@clisp.org>
10315         string: Fix syntax error with g++ 2.96.
10316         * lib/string.in.h (__pure__): Remove definition.
10317         (_GL_ATTRIBUTE_PURE): New macro.
10318         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
10319         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
10320         Reported by Christian Weisgerber <naddy@mips.inka.de>.
10322 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
10324         unitypes: Fix bug introduced on 2010-05-18.
10325         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
10327 2010-06-22  Eric Blake  <eblake@redhat.com>
10329         memmem: slight optimization
10330         * lib/str-two-way.h (critical_factorization): Update comments.
10331         Reduce work during factorization phase.
10332         Reported by Carlos Bueno <carlos@bueno.org>.
10334 2010-06-21  Bruno Haible  <bruno@clisp.org>
10336         Fix HAVE_CALLOC_POSIX misnomer.
10337         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
10338         !HAVE_CALLOC_POSIX.
10339         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
10340         HAVE_CALLOC_POSIX.
10341         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
10342         instead of HAVE_CALLOC_POSIX.
10343         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
10344         HAVE_CALLOC_POSIX.
10346         Use modern idiom for calloc() replacement.
10347         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
10348         AC_FUNC_CALLOC.
10349         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
10350         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
10351         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
10352         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
10353         (gl_REPLACE_CALLOC): New macro.
10355 2010-06-21  Bruno Haible  <bruno@clisp.org>
10357         Fix HAVE_REALLOC_POSIX misnomer.
10358         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
10359         !HAVE_REALLOC_POSIX.
10360         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
10361         HAVE_REALLOC_POSIX.
10362         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
10363         instead of HAVE_REALLOC_POSIX.
10364         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
10365         HAVE_REALLOC_POSIX.
10367         Use modern idiom for realloc() replacement.
10368         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
10369         AC_FUNC_REALLOC.
10370         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
10371         Autoconf's AC_FUNC_REALLOC.
10372         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
10373         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
10374         (gl_REPLACE_REALLOC): New macro.
10375         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
10377 2010-06-21  Bruno Haible  <bruno@clisp.org>
10379         Fix HAVE_MALLOC_POSIX misnomer.
10380         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
10381         !HAVE_MALLOC_POSIX.
10382         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
10383         HAVE_MALLOC_POSIX.
10384         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
10385         instead of HAVE_MALLOC_POSIX.
10386         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
10387         HAVE_MALLOC_POSIX.
10389         Use modern idiom for malloc() replacement.
10390         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
10391         AC_FUNC_MALLOC.
10392         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
10393         Autoconf's AC_FUNC_MALLOC.
10394         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
10395         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
10396         (gl_REPLACE_MALLOC): New macro.
10397         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
10399 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
10401         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
10402         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
10403         This macro takes 3 arguments, not 4.
10405 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
10407         ipv6: fix detection under mingw
10408         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
10409         in6_addr.
10411 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
10413         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
10414         that strtod() works when cross-compiling to a glibc version known
10415         to work.
10417 2010-06-15  Bruno Haible  <bruno@clisp.org>
10419         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
10421 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
10423         select: Correct timeout.
10424         * lib/select.c (rpl_select): Compute wait_timeout correctly.
10426 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
10428         git-version-gen: init shell var to avoid env var influence
10429         * build-aux/git-version-gen (v): Init shell var to empty.
10431 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
10433         priv-set: Don't assume that priv.h exists merely because getppriv does.
10434         See Jan Andersen's bug report about AIX 5L in
10435         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
10436         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
10437         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
10438         * lib/priv-set.h: Likewise.
10439         * tests/test-priv-set.c: Likewise.
10441 2010-06-13  Bruno Haible  <bruno@clisp.org>
10443         relocatable: Make it easier to test whether to install wrappers.
10444         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
10445         RELOCATABLE_VIA_WRAPPER.
10447 2010-06-13  Bruno Haible  <bruno@clisp.org>
10449         gnulib-tool: Display specified modules and dependencies differently.
10450         * gnulib-tool (func_show_module_list): New function.
10451         (func_import, func_create_testdir): Invoke it.
10452         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
10454 2010-06-13  Bruno Haible  <bruno@clisp.org>
10456         gnulib-tool: Align code of func_import and func_create_testdir.
10457         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
10458         specified_modules.
10460 2010-06-12  Jim Meyering  <meyering@redhat.com>
10462         test-inttostr: avoid spurious failure on Solaris 9
10463         * tests/test-inttostr.c (main): Skip the test when snprintf fails
10464         to accept "%ju".  Reported by Bruno Haible.
10466 2010-06-11  Jim Meyering  <meyering@redhat.com>
10468         test-sys_socket: mark variables as used more readably
10469         * tests/test-sys_socket.c (main): Mark otherwise unused variables
10470         as "used" explicitly via (void) statement casts.  This is more
10471         readable than using them in an artificial return expression.
10472         Suggestion from Bruno Haible.
10474 2010-06-11  Bruno Haible  <bruno@clisp.org>
10476         Avoid some more warnings from "gcc -Wwrite-strings".
10477         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
10478         to 'const char *'.
10479         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
10480         * tests/test-c-strcasestr.c (main): Likewise.
10481         * tests/test-mbscasestr1.c (main): Likewise.
10482         * tests/test-mbscasestr2.c (main): Likewise.
10483         * tests/test-memmem.c (main): Likewise.
10484         * tests/test-strstr.c (main): Likewise.
10485         * tests/test-strcasestr.c (main): Likewise.
10487 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10489         init.sh: change framework_failure_ to fail with status 99, not 1
10490         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
10491         automake's parallel-tests rule that this is an unexpected failure,
10492         even if the test is listed in XFAIL_TESTS.
10494 2010-06-11  Jim Meyering  <meyering@redhat.com>
10496         test-inttostr: avoid warnings about 4-6KB literal strings
10497         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
10498         Include "macros.h", for its definition of ASSERT.
10499         (CK): s/assert/ASSERT/
10500         * modules/inttostr-tests (Files): Add macros.h.
10502         init.sh: don't use $ME_ or skip_ before they are defined
10503         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
10504         their first uses.  Also hoist their companions: warn_, fail_,
10505         framework_failure_, $stderr_fileno.  Prompted by a patch from
10506         Stefano Lattarini.
10508         test-sys_socket: avoid set-but-not-used warnings from gcc
10509         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
10510         avoid warning about set-but-not-used variables.
10512         test-xvasprintf: avoid 'const' discard warnings
10513         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
10514         "const" when assigning from literal strings.
10515         (test_xasprintf): Add "void" in function argument list to placate
10516         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
10518         tests: avoid compilation warnings in argmatch and exclude tests...
10519         in packages that define ARGMATCH_DIE_DECL, like coreutils.
10520         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
10521         Since it always exits, declare with the "noreturn" attribute.
10522         * tests/test-argmatch.c: Likewise.
10524         tests: avoid 'const' discard warnings in mbsstr tests
10525         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
10526         * tests/test-mbsstr2.c (main): Likewise.
10528         test-verify: avoid warning from gcc's -Wmissing-declarations
10529         * tests/test-verify.c (function): Declare to be static.
10531         test-inttostr.c: include <string.h> for use of strcmp
10532         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
10534         test-linkat: avoid failed assertion on "other" architectures
10535         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
10536         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
10537         sparc: https://bugs.launchpad.net/bugs/591968
10539 2010-06-11  Jim Meyering  <meyering@redhat.com>
10541         printf.m4: avoid autoconf's "Expanded Before Required" warning
10542         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
10543         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
10544         autoconf warning.
10546 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
10548         Replacement header templates are now named with ".in", not "_".
10549         * doc/gnulib-intro.texi: Correct.
10551 2010-06-10  Jim Meyering  <meyering@redhat.com>
10553         inttostr-tests: depend on snprintf, not snprintf-posix
10554         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
10555         snprintf-posix, to avoid this aclocal failure:
10556           missing file gnulib-tests/vasnprintf.c
10557           configure.ac:45: error: expected source file, required through \
10558           AC_LIBSOURCES, not found
10560 2010-06-10  Jim Meyering  <meyering@redhat.com>
10562         inttostr: add a new function, inttostr, and tests
10563         The namesake function was not available.  The existence of the
10564         template file, inttostr.c makes its addition nontrivial.
10565         * lib/anytostr.c: Rename from inttostr.c.
10566         (anytostr): Rename from inttostr.
10567         * lib/inttostr.c: New file.
10568         * modules/inttostr (Files): Add anytostr.c.
10569         (Makefile.am): Set lib_SOURCES instead of ...
10570         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
10571         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
10572         * lib/offtostr.c: Likewise.
10573         * lib/uinttostr.c: Likewise.
10574         * lib/umaxtostr.c: Likewise.
10575         * modules/inttostr-tests: New file.
10576         * tests/test-inttostr.c: New file.  Test these functions.
10578 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
10579             Bruno Haible  <bruno@clisp.org>
10581         Add "Extending Gnulib" chapter to manual.
10582         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
10583         chapter.
10584         (Extending Gnulib): New chapter.
10585         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
10586         chapter.
10588 2010-06-09  Bruno Haible  <bruno@clisp.org>
10590         Avoid relocwrapper link errors due to gnulib replacement functions.
10591         * lib/areadlink.c: Use the system's malloc, realloc functions.
10592         (areadlink): Set errno to ENOMEM explicitly.
10593         * modules/areadlink (Depends-on): Remove malloc-posix.
10594         Reported by Ben Pfaff <blp@cs.stanford.edu>.
10596 2010-06-09  Bruno Haible  <bruno@clisp.org>
10598         Avoid relocwrapper link errors due to gnulib replacement functions.
10599         * lib/canonicalize-lgpl.c: Use the system's malloc function.
10600         * lib/malloca.c: Likewise.
10601         * lib/relocatable.c: Likewise.
10602         * lib/progreloc.c: Use the system's malloc, sprintf functions.
10603         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
10604         * lib/setenv.c: Use the system's malloc, realloc functions.
10605         * lib/strerror.c: Use the system's sprintf function.
10606         Reported by Ben Pfaff <blp@cs.stanford.edu>.
10608 2010-06-04  Bruno Haible  <bruno@clisp.org>
10610         Prefer documented low-level autoconf macro names.
10611         * m4/lib-link.m4: Use m4_translit instead of translit.
10612         * m4/environ.m4: Likewise.
10613         * m4/mathfunc.m4: Likewise.
10614         * m4/onceonly.m4: Likewise.
10615         * m4/stdint.m4: Likewise.
10616         Suggested by Eric Blake.
10618 2010-06-04  Martin Lambers  <marlam@marlam.de>
10619             Bruno Haible  <bruno@clisp.org>
10621         havelib: Allow library names with '+' characters.
10622         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
10623         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
10625 2010-06-09  Bruno Haible  <bruno@clisp.org>
10627         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
10628         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
10629         realloc failed.
10631 2010-06-08  Peter Simons  <simons@cryp.to>
10633         maint.mk: make the news-check rule more configurable
10634         * top/maint.mk (news-check-lines-spec) New variable.
10635         (news-check): Use "sed -n 1,10p" in place of "head".
10637 2010-06-07  Jim Meyering  <meyering@redhat.com>
10639         do-release-commit-and-tag: fix typo in --help
10640         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
10642         regex: avoid new dead-code warning with gcc-4.6.0
10643         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
10644         if-block containing a while-loop.  It's been unused for at least
10645         5 years.
10647 2010-06-05  Bruno Haible  <bruno@clisp.org>
10649         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
10650         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
10652 2010-06-04  Bruno Haible  <bruno@clisp.org>
10654         Update to GNU gettext 0.18.1.
10655         * modules/gettext (configure.ac): Require gettext infrastructure from
10656         version 0.18.1.
10658 2010-06-03  Bruno Haible  <bruno@clisp.org>
10660         Don't use AC_LIBOBJ with file names in subdirectories.
10661         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
10662         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
10663         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
10664         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
10665         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
10666         gl_LIBUNISTRING_LIBSOURCE.
10667         (Makefile.am): Augment lib_SOURCES here, conditionally.
10668         * NEWS: Drop requirement for Automake option 'subdir-objects'.
10670 2010-06-03  Bruno Haible  <bruno@clisp.org>
10672         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
10673         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
10674         expansion does not end with a newline.
10675         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
10676         unnecessary newline.
10678 2010-06-03  Bruno Haible  <bruno@clisp.org>
10680         Reduce dependencies.
10681         * tests/test-quotearg.h: New file, extracted from
10682         tests/test-quotearg.c.
10683         * tests/test-quotearg-simple.c: New file, extracted from
10684         tests/test-quotearg.c.
10685         * tests/test-quotearg.c: Don't include <ctype.h>.
10686         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
10687         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
10688         use_quote_double_quotes, use_quotearg_colon): Moved to
10689         tests/test-quotearg.h.
10690         (results_g, flag_results, custom_quotes, custom_results): Moved
10691         to tests/test-quotearg-simple.c.
10692         (main): Moved the part that does not depend on gettext to
10693         tests/test-quotearg-simple.c. Return 77 if the test cannot be
10694         performed.
10695         * modules/quotearg-simple: New file.
10696         * modules/quotearg-simple-tests: New file.
10697         * modules/quotearg (Depends-on): Add quotearg-simple.
10698         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
10699         (Files): Add tests/test-quotearg.h.
10700         Reported by Paolo Bonzini.
10702 2010-06-03  Bruno Haible  <bruno@clisp.org>
10704         Reduce dependencies.
10705         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
10707 2010-06-03  Bruno Haible  <bruno@clisp.org>
10709         time: Undefine more broken macros.
10710         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
10711         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
10712         Reported by Eric Blake.
10714 2010-06-03  Bruno Haible  <bruno@clisp.org>
10716         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
10717         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
10718         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
10719         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
10720         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
10721         Reported by Ludovic Courtès <ludo@gnu.org>.
10723 2010-06-02  Eric Blake  <eblake@redhat.com>
10725         time: work with mingw + pthreads-win32 library
10726         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
10727         if timespec is defined only in pthread.h.
10728         * modules/time (Makefile.am): Substitute it.
10729         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
10730         <pthread.h>, when needed.
10731         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
10732         from the library.
10734 2010-05-31  Bruno Haible  <bruno@clisp.org>
10736         Avoid expanding two macros in the wrong order.
10737         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
10738         gl_LIBUNISTRING if it is defined.
10739         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
10740         autoconf >= 2.64.
10741         Reported by Ludovic Courtès <ludo@gnu.org>.
10743 2010-05-27  Jim Meyering  <meyering@redhat.com>
10745         maint.mk: also prohibit "#undef" of always-defined symbols
10746         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
10747         Allow more than one space before the symbol name.
10748         (sc_prohibit_always-defined_macros): Use grep's -E, now that
10749         the regexp uses alternation.
10751 2010-05-26  Eric Blake  <eblake@redhat.com>
10753         maint.mk: avoid echo -e
10754         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
10755         Convert all uses of echo -* to printf.
10756         Reported by Matthias Bolte.
10758 2010-05-25  Bruno Haible  <bruno@clisp.org>
10760         Update to GNU gettext 0.18, part 2.
10761         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
10762         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
10764 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10766         Add missing include in test-pwrite.c.
10767         * tests/test-pwrite.c: Include string.h, for strcmp.
10769 2010-05-24  Bruno Haible  <bruno@clisp.org>
10771         * NEWS: Mention requirement for Automake option 'subdir-objects'.
10773 2010-05-24  Bruno Haible  <bruno@clisp.org>
10775         Don't use conversion with transliteration in u{8,16,32}_strcoll.
10776         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
10777         iconveh_error argument.
10778         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
10779         U_STRCONV_TO_LOCALE.
10780         * lib/unistr/u16-strcoll.c: Likewise.
10781         * lib/unistr/u32-strcoll.c: Likewise.
10782         * modules/unistr/u8-strcoll (Depends-on): Add
10783         uniconv/u8-strconv-to-enc, localcharset. Remove
10784         uniconv/u8-strconv-to-locale.
10785         (configure.ac): Bump version number.
10786         * modules/unistr/u16-strcoll (Depends-on): Add
10787         uniconv/u16-strconv-to-enc, localcharset. Remove
10788         uniconv/u16-strconv-to-locale.
10789         (configure.ac): Bump version number.
10790         * modules/unistr/u32-strcoll (Depends-on): Add
10791         uniconv/u32-strconv-to-enc, localcharset. Remove
10792         uniconv/u32-strconv-to-locale.
10793         (configure.ac): Bump version number.
10795 2010-05-24  Bruno Haible  <bruno@clisp.org>
10797         Avoid a test failure on NetBSD 5.0.
10798         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
10799         an iconv() bug.
10801 2010-05-24  Bruno Haible  <bruno@clisp.org>
10803         Adjust #include directive style.
10804         * modules/regex (Includes): Recommend to write <regex.h>.
10806 2010-05-24  Bruno Haible  <bruno@clisp.org>
10808         regex: Don't require alloca.
10809         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
10810         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
10811         only inside if (0).
10813 2010-05-23  Jim Meyering  <meyering@redhat.com>
10815         test-renameat.c: include <sys/stat.h>
10816         * tests/test-renameat.c: Include <sys/stat.h>; required for
10817         definition of S_IS* macros.
10819 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
10821         Update maintainer documentation for 'relocatable-prog' module.
10822         * doc/relocatable-maint.texi: Update.
10823         Comments by Bruno Haible.
10825 2010-05-23  Bruno Haible  <bruno@clisp.org>
10827         git-merge-changelog: Enable --split-merged-entry by default.
10828         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
10829         (usage): Don't mention this option any more.
10830         Reported by Ralf Wildenhues.
10832 2010-05-23  Jim Meyering  <meyering@redhat.com>
10834         test-pwrite: do not leave behind a test file named "out"
10835         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
10836         The trivial-looking use of init.sh is really necessary.
10837         It ensures that the temporary file, "out", is created in
10838         a temporary directory, and removed upon termination.
10839         * tests/test-pwrite.sh: Re-add file.
10840         * modules/pwrite-tests: Reference it.
10842 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10844         Fix output redirection buglet in init.sh.
10845         * tests/init.sh: Fix redirection of stderr.
10847 2010-05-20  Simon Josefsson  <simon@josefsson.org>
10849         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
10851 2010-05-17  Simon Josefsson  <simon@josefsson.org>
10853         * modules/valgrind-tests: New file.
10854         * m4/valgrind-tests.m4: New file.
10855         * doc/valgrind-tests.texi: New file.
10856         * doc/gnulib.texi (Running self-tests under valgrind): New
10857         section.
10859 2010-05-19  Bruno Haible  <bruno@clisp.org>
10861         Clean up dead code in recent commit.
10862         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
10863         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
10864         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
10865         Suggested by Paolo Bonzini.
10867 2010-05-19  Bruno Haible  <bruno@clisp.org>
10869         Avoid valgrind error reports from libunistring.
10870         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
10871         * modules/libunistring (Files): Add it.
10872         * modules/libunistring-optional (Files): Likewise.
10874 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
10875             Bruno Haible  <bruno@clisp.org>
10877         New module 'libunistring-optional'.
10878         * modules/libunistring-optional: New file.
10879         * m4/libunistring-base.m4: New file.
10880         * m4/libunistring-optional.m4: New file.
10881         * lib/unicase.in.h: Renamed from lib/unicase.h.
10882         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
10883         * lib/unictype.in.h: Renamed from lib/unictype.h.
10884         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
10885         * lib/uniname.in.h: Renamed from lib/uniname.h.
10886         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
10887         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
10888         * lib/unistr.in.h: Renamed from lib/unistr.h.
10889         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
10890         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
10891         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
10892         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
10893         gl_LIBUNISTRING. If the library was found, determine the installed
10894         version and set LIBUNISTRING_VERSION.
10895         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
10896         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
10897         handle a configuration option --with-included-libunistring.
10898         * modules/libunistring (Files): Add m4/absolute-header.m4.
10899         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
10900         Add m4/libunistring-base.m4.
10901         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
10902         (Makefile.am): Build unicase.h from unicase.in.h.
10903         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
10904         Add m4/libunistring-base.m4.
10905         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
10906         (Makefile.am): Build uniconv.h from uniconv.in.h.
10907         * modules/unictype/base (Files): Use unictype.in.h instead of
10908         unictype.h. Add m4/libunistring-base.m4.
10909         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
10910         (Makefile.am): Build unictype.h from unictype.in.h.
10911         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
10912         Add m4/libunistring-base.m4.
10913         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
10914         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
10915         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
10916         Add m4/libunistring-base.m4.
10917         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
10918         (Makefile.am): Build uniname.h from uniname.in.h.
10919         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
10920         Add m4/libunistring-base.m4.
10921         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
10922         (Makefile.am): Build uninorm.h from uninorm.in.h.
10923         * modules/unistdio/base (Files): Use unistdio.in.h instead of
10924         unistdio.h. Add m4/libunistring-base.m4.
10925         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
10926         (Makefile.am): Build unistdio.h from unistdio.in.h.
10927         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
10928         Add m4/libunistring-base.m4.
10929         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
10930         (Makefile.am): Build unistr.h from unistr.in.h.
10931         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
10932         Add m4/libunistring-base.m4.
10933         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
10934         (Makefile.am): Build unitypes.h from unitypes.in.h.
10935         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
10936         Add m4/libunistring-base.m4.
10937         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
10938         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
10939         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
10940         uniwidth.h. Add m4/libunistring-base.m4.
10941         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
10942         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
10943         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
10944         instead of augmenting lib_SOURCES.
10945         * modules/unicase/empty-suffix-context: Likewise.
10946         * modules/unicase/locale-language: Likewise.
10947         * modules/unicase/tolower: Likewise.
10948         * modules/unicase/totitle: Likewise.
10949         * modules/unicase/toupper: Likewise.
10950         * modules/unicase/u8-casecmp: Likewise.
10951         * modules/unicase/u8-casecoll: Likewise.
10952         * modules/unicase/u8-casefold: Likewise.
10953         * modules/unicase/u8-casexfrm: Likewise.
10954         * modules/unicase/u8-ct-casefold: Likewise.
10955         * modules/unicase/u8-ct-tolower: Likewise.
10956         * modules/unicase/u8-ct-totitle: Likewise.
10957         * modules/unicase/u8-ct-toupper: Likewise.
10958         * modules/unicase/u8-is-cased: Likewise.
10959         * modules/unicase/u8-is-casefolded: Likewise.
10960         * modules/unicase/u8-is-lowercase: Likewise.
10961         * modules/unicase/u8-is-titlecase: Likewise.
10962         * modules/unicase/u8-is-uppercase: Likewise.
10963         * modules/unicase/u8-prefix-context: Likewise.
10964         * modules/unicase/u8-suffix-context: Likewise.
10965         * modules/unicase/u8-tolower: Likewise.
10966         * modules/unicase/u8-totitle: Likewise.
10967         * modules/unicase/u8-toupper: Likewise.
10968         * modules/unicase/u16-casecmp: Likewise.
10969         * modules/unicase/u16-casecoll: Likewise.
10970         * modules/unicase/u16-casefold: Likewise.
10971         * modules/unicase/u16-casexfrm: Likewise.
10972         * modules/unicase/u16-ct-casefold: Likewise.
10973         * modules/unicase/u16-ct-tolower: Likewise.
10974         * modules/unicase/u16-ct-totitle: Likewise.
10975         * modules/unicase/u16-ct-toupper: Likewise.
10976         * modules/unicase/u16-is-cased: Likewise.
10977         * modules/unicase/u16-is-casefolded: Likewise.
10978         * modules/unicase/u16-is-lowercase: Likewise.
10979         * modules/unicase/u16-is-titlecase: Likewise.
10980         * modules/unicase/u16-is-uppercase: Likewise.
10981         * modules/unicase/u16-prefix-context: Likewise.
10982         * modules/unicase/u16-suffix-context: Likewise.
10983         * modules/unicase/u16-tolower: Likewise.
10984         * modules/unicase/u16-totitle: Likewise.
10985         * modules/unicase/u16-toupper: Likewise.
10986         * modules/unicase/u32-casecmp: Likewise.
10987         * modules/unicase/u32-casecoll: Likewise.
10988         * modules/unicase/u32-casefold: Likewise.
10989         * modules/unicase/u32-casexfrm: Likewise.
10990         * modules/unicase/u32-ct-casefold: Likewise.
10991         * modules/unicase/u32-ct-tolower: Likewise.
10992         * modules/unicase/u32-ct-totitle: Likewise.
10993         * modules/unicase/u32-ct-toupper: Likewise.
10994         * modules/unicase/u32-is-cased: Likewise.
10995         * modules/unicase/u32-is-casefolded: Likewise.
10996         * modules/unicase/u32-is-lowercase: Likewise.
10997         * modules/unicase/u32-is-titlecase: Likewise.
10998         * modules/unicase/u32-is-uppercase: Likewise.
10999         * modules/unicase/u32-prefix-context: Likewise.
11000         * modules/unicase/u32-suffix-context: Likewise.
11001         * modules/unicase/u32-tolower: Likewise.
11002         * modules/unicase/u32-totitle: Likewise.
11003         * modules/unicase/u32-toupper: Likewise.
11004         * modules/unicase/ulc-casecmp: Likewise.
11005         * modules/unicase/ulc-casecoll: Likewise.
11006         * modules/unicase/ulc-casexfrm: Likewise.
11007         * modules/uniconv/u8-conv-from-enc: Likewise.
11008         * modules/uniconv/u8-conv-to-enc: Likewise.
11009         * modules/uniconv/u8-strconv-from-enc: Likewise.
11010         * modules/uniconv/u8-strconv-from-locale: Likewise.
11011         * modules/uniconv/u8-strconv-to-enc: Likewise.
11012         * modules/uniconv/u8-strconv-to-locale: Likewise.
11013         * modules/uniconv/u16-conv-from-enc: Likewise.
11014         * modules/uniconv/u16-conv-to-enc: Likewise.
11015         * modules/uniconv/u16-strconv-from-enc: Likewise.
11016         * modules/uniconv/u16-strconv-from-locale: Likewise.
11017         * modules/uniconv/u16-strconv-to-enc: Likewise.
11018         * modules/uniconv/u16-strconv-to-locale: Likewise.
11019         * modules/uniconv/u32-conv-from-enc: Likewise.
11020         * modules/uniconv/u32-conv-to-enc: Likewise.
11021         * modules/uniconv/u32-strconv-from-enc: Likewise.
11022         * modules/uniconv/u32-strconv-from-locale: Likewise.
11023         * modules/uniconv/u32-strconv-to-enc: Likewise.
11024         * modules/uniconv/u32-strconv-to-locale: Likewise.
11025         * modules/unictype/bidicategory-byname: Likewise.
11026         * modules/unictype/bidicategory-name: Likewise.
11027         * modules/unictype/bidicategory-of: Likewise.
11028         * modules/unictype/bidicategory-test: Likewise.
11029         * modules/unictype/block-list: Likewise.
11030         * modules/unictype/block-test: Likewise.
11031         * modules/unictype/category-C: Likewise.
11032         * modules/unictype/category-Cc: Likewise.
11033         * modules/unictype/category-Cf: Likewise.
11034         * modules/unictype/category-Cn: Likewise.
11035         * modules/unictype/category-Co: Likewise.
11036         * modules/unictype/category-Cs: Likewise.
11037         * modules/unictype/category-L: Likewise.
11038         * modules/unictype/category-Ll: Likewise.
11039         * modules/unictype/category-Lm: Likewise.
11040         * modules/unictype/category-Lo: Likewise.
11041         * modules/unictype/category-Lt: Likewise.
11042         * modules/unictype/category-Lu: Likewise.
11043         * modules/unictype/category-M: Likewise.
11044         * modules/unictype/category-Mc: Likewise.
11045         * modules/unictype/category-Me: Likewise.
11046         * modules/unictype/category-Mn: Likewise.
11047         * modules/unictype/category-N: Likewise.
11048         * modules/unictype/category-Nd: Likewise.
11049         * modules/unictype/category-Nl: Likewise.
11050         * modules/unictype/category-No: Likewise.
11051         * modules/unictype/category-P: Likewise.
11052         * modules/unictype/category-Pc: Likewise.
11053         * modules/unictype/category-Pd: Likewise.
11054         * modules/unictype/category-Pe: Likewise.
11055         * modules/unictype/category-Pf: Likewise.
11056         * modules/unictype/category-Pi: Likewise.
11057         * modules/unictype/category-Po: Likewise.
11058         * modules/unictype/category-Ps: Likewise.
11059         * modules/unictype/category-S: Likewise.
11060         * modules/unictype/category-Sc: Likewise.
11061         * modules/unictype/category-Sk: Likewise.
11062         * modules/unictype/category-Sm: Likewise.
11063         * modules/unictype/category-So: Likewise.
11064         * modules/unictype/category-Z: Likewise.
11065         * modules/unictype/category-Zl: Likewise.
11066         * modules/unictype/category-Zp: Likewise.
11067         * modules/unictype/category-Zs: Likewise.
11068         * modules/unictype/category-and: Likewise.
11069         * modules/unictype/category-and-not: Likewise.
11070         * modules/unictype/category-byname: Likewise.
11071         * modules/unictype/category-name: Likewise.
11072         * modules/unictype/category-none: Likewise.
11073         * modules/unictype/category-of: Likewise.
11074         * modules/unictype/category-or: Likewise.
11075         * modules/unictype/category-test: Likewise.
11076         * modules/unictype/combining-class: Likewise.
11077         * modules/unictype/ctype-alnum: Likewise.
11078         * modules/unictype/ctype-alpha: Likewise.
11079         * modules/unictype/ctype-blank: Likewise.
11080         * modules/unictype/ctype-cntrl: Likewise.
11081         * modules/unictype/ctype-digit: Likewise.
11082         * modules/unictype/ctype-graph: Likewise.
11083         * modules/unictype/ctype-lower: Likewise.
11084         * modules/unictype/ctype-print: Likewise.
11085         * modules/unictype/ctype-punct: Likewise.
11086         * modules/unictype/ctype-space: Likewise.
11087         * modules/unictype/ctype-upper: Likewise.
11088         * modules/unictype/ctype-xdigit: Likewise.
11089         * modules/unictype/decimal-digit: Likewise.
11090         * modules/unictype/digit: Likewise.
11091         * modules/unictype/mirror: Likewise.
11092         * modules/unictype/numeric: Likewise.
11093         * modules/unictype/property-alphabetic: Likewise.
11094         * modules/unictype/property-ascii-hex-digit: Likewise.
11095         * modules/unictype/property-bidi-arabic-digit: Likewise.
11096         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
11097         * modules/unictype/property-bidi-block-separator: Likewise.
11098         * modules/unictype/property-bidi-boundary-neutral: Likewise.
11099         * modules/unictype/property-bidi-common-separator: Likewise.
11100         * modules/unictype/property-bidi-control: Likewise.
11101         * modules/unictype/property-bidi-embedding-or-override: Likewise.
11102         * modules/unictype/property-bidi-eur-num-separator: Likewise.
11103         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
11104         * modules/unictype/property-bidi-european-digit: Likewise.
11105         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
11106         * modules/unictype/property-bidi-left-to-right: Likewise.
11107         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
11108         * modules/unictype/property-bidi-other-neutral: Likewise.
11109         * modules/unictype/property-bidi-pdf: Likewise.
11110         * modules/unictype/property-bidi-segment-separator: Likewise.
11111         * modules/unictype/property-bidi-whitespace: Likewise.
11112         * modules/unictype/property-byname: Likewise.
11113         * modules/unictype/property-combining: Likewise.
11114         * modules/unictype/property-composite: Likewise.
11115         * modules/unictype/property-currency-symbol: Likewise.
11116         * modules/unictype/property-dash: Likewise.
11117         * modules/unictype/property-decimal-digit: Likewise.
11118         * modules/unictype/property-default-ignorable-code-point: Likewise.
11119         * modules/unictype/property-deprecated: Likewise.
11120         * modules/unictype/property-diacritic: Likewise.
11121         * modules/unictype/property-extender: Likewise.
11122         * modules/unictype/property-format-control: Likewise.
11123         * modules/unictype/property-grapheme-base: Likewise.
11124         * modules/unictype/property-grapheme-extend: Likewise.
11125         * modules/unictype/property-grapheme-link: Likewise.
11126         * modules/unictype/property-hex-digit: Likewise.
11127         * modules/unictype/property-hyphen: Likewise.
11128         * modules/unictype/property-id-continue: Likewise.
11129         * modules/unictype/property-id-start: Likewise.
11130         * modules/unictype/property-ideographic: Likewise.
11131         * modules/unictype/property-ids-binary-operator: Likewise.
11132         * modules/unictype/property-ids-trinary-operator: Likewise.
11133         * modules/unictype/property-ignorable-control: Likewise.
11134         * modules/unictype/property-iso-control: Likewise.
11135         * modules/unictype/property-join-control: Likewise.
11136         * modules/unictype/property-left-of-pair: Likewise.
11137         * modules/unictype/property-line-separator: Likewise.
11138         * modules/unictype/property-logical-order-exception: Likewise.
11139         * modules/unictype/property-lowercase: Likewise.
11140         * modules/unictype/property-math: Likewise.
11141         * modules/unictype/property-non-break: Likewise.
11142         * modules/unictype/property-not-a-character: Likewise.
11143         * modules/unictype/property-numeric: Likewise.
11144         * modules/unictype/property-other-alphabetic: Likewise.
11145         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
11146         * modules/unictype/property-other-grapheme-extend: Likewise.
11147         * modules/unictype/property-other-id-continue: Likewise.
11148         * modules/unictype/property-other-id-start: Likewise.
11149         * modules/unictype/property-other-lowercase: Likewise.
11150         * modules/unictype/property-other-math: Likewise.
11151         * modules/unictype/property-other-uppercase: Likewise.
11152         * modules/unictype/property-paired-punctuation: Likewise.
11153         * modules/unictype/property-paragraph-separator: Likewise.
11154         * modules/unictype/property-pattern-syntax: Likewise.
11155         * modules/unictype/property-pattern-white-space: Likewise.
11156         * modules/unictype/property-private-use: Likewise.
11157         * modules/unictype/property-punctuation: Likewise.
11158         * modules/unictype/property-quotation-mark: Likewise.
11159         * modules/unictype/property-radical: Likewise.
11160         * modules/unictype/property-sentence-terminal: Likewise.
11161         * modules/unictype/property-soft-dotted: Likewise.
11162         * modules/unictype/property-space: Likewise.
11163         * modules/unictype/property-terminal-punctuation: Likewise.
11164         * modules/unictype/property-test: Likewise.
11165         * modules/unictype/property-titlecase: Likewise.
11166         * modules/unictype/property-unassigned-code-value: Likewise.
11167         * modules/unictype/property-unified-ideograph: Likewise.
11168         * modules/unictype/property-uppercase: Likewise.
11169         * modules/unictype/property-variation-selector: Likewise.
11170         * modules/unictype/property-white-space: Likewise.
11171         * modules/unictype/property-xid-continue: Likewise.
11172         * modules/unictype/property-xid-start: Likewise.
11173         * modules/unictype/property-zero-width: Likewise.
11174         * modules/unictype/scripts: Likewise.
11175         * modules/unictype/syntax-c-ident: Likewise.
11176         * modules/unictype/syntax-c-whitespace: Likewise.
11177         * modules/unictype/syntax-java-ident: Likewise.
11178         * modules/unictype/syntax-java-whitespace: Likewise.
11179         * modules/unilbrk/u8-possible-linebreaks: Likewise.
11180         * modules/unilbrk/u8-width-linebreaks: Likewise.
11181         * modules/unilbrk/u16-possible-linebreaks: Likewise.
11182         * modules/unilbrk/u16-width-linebreaks: Likewise.
11183         * modules/unilbrk/u32-possible-linebreaks: Likewise.
11184         * modules/unilbrk/u32-width-linebreaks: Likewise.
11185         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
11186         * modules/unilbrk/ulc-width-linebreaks: Likewise.
11187         * modules/uniname/uniname: Likewise.
11188         * modules/uninorm/canonical-decomposition: Likewise.
11189         * modules/uninorm/composition: Likewise.
11190         * modules/uninorm/decomposing-form: Likewise.
11191         * modules/uninorm/decomposition: Likewise.
11192         * modules/uninorm/filter: Likewise.
11193         * modules/uninorm/nfc: Likewise.
11194         * modules/uninorm/nfd: Likewise.
11195         * modules/uninorm/nfkc: Likewise.
11196         * modules/uninorm/nfkd: Likewise.
11197         * modules/uninorm/u8-normalize: Likewise.
11198         * modules/uninorm/u8-normcmp: Likewise.
11199         * modules/uninorm/u8-normcoll: Likewise.
11200         * modules/uninorm/u8-normxfrm: Likewise.
11201         * modules/uninorm/u16-normalize: Likewise.
11202         * modules/uninorm/u16-normcmp: Likewise.
11203         * modules/uninorm/u16-normcoll: Likewise.
11204         * modules/uninorm/u16-normxfrm: Likewise.
11205         * modules/uninorm/u32-normalize: Likewise.
11206         * modules/uninorm/u32-normcmp: Likewise.
11207         * modules/uninorm/u32-normcoll: Likewise.
11208         * modules/uninorm/u32-normxfrm: Likewise.
11209         * modules/unistdio/u8-asnprintf: Likewise.
11210         * modules/unistdio/u8-asprintf: Likewise.
11211         * modules/unistdio/u8-snprintf: Likewise.
11212         * modules/unistdio/u8-sprintf: Likewise.
11213         * modules/unistdio/u8-u8-asnprintf: Likewise.
11214         * modules/unistdio/u8-u8-asprintf: Likewise.
11215         * modules/unistdio/u8-u8-snprintf: Likewise.
11216         * modules/unistdio/u8-u8-sprintf: Likewise.
11217         * modules/unistdio/u8-u8-vasnprintf: Likewise.
11218         * modules/unistdio/u8-u8-vasprintf: Likewise.
11219         * modules/unistdio/u8-u8-vsnprintf: Likewise.
11220         * modules/unistdio/u8-u8-vsprintf: Likewise.
11221         * modules/unistdio/u8-vasnprintf: Likewise.
11222         * modules/unistdio/u8-vasprintf: Likewise.
11223         * modules/unistdio/u8-vsnprintf: Likewise.
11224         * modules/unistdio/u8-vsprintf: Likewise.
11225         * modules/unistdio/u16-asnprintf: Likewise.
11226         * modules/unistdio/u16-asprintf: Likewise.
11227         * modules/unistdio/u16-snprintf: Likewise.
11228         * modules/unistdio/u16-sprintf: Likewise.
11229         * modules/unistdio/u16-u16-asnprintf: Likewise.
11230         * modules/unistdio/u16-u16-asprintf: Likewise.
11231         * modules/unistdio/u16-u16-snprintf: Likewise.
11232         * modules/unistdio/u16-u16-sprintf: Likewise.
11233         * modules/unistdio/u16-u16-vasnprintf: Likewise.
11234         * modules/unistdio/u16-u16-vasprintf: Likewise.
11235         * modules/unistdio/u16-u16-vsnprintf: Likewise.
11236         * modules/unistdio/u16-u16-vsprintf: Likewise.
11237         * modules/unistdio/u16-vasnprintf: Likewise.
11238         * modules/unistdio/u16-vasprintf: Likewise.
11239         * modules/unistdio/u16-vsnprintf: Likewise.
11240         * modules/unistdio/u16-vsprintf: Likewise.
11241         * modules/unistdio/u32-asnprintf: Likewise.
11242         * modules/unistdio/u32-asprintf: Likewise.
11243         * modules/unistdio/u32-snprintf: Likewise.
11244         * modules/unistdio/u32-sprintf: Likewise.
11245         * modules/unistdio/u32-u32-asnprintf: Likewise.
11246         * modules/unistdio/u32-u32-asprintf: Likewise.
11247         * modules/unistdio/u32-u32-snprintf: Likewise.
11248         * modules/unistdio/u32-u32-sprintf: Likewise.
11249         * modules/unistdio/u32-u32-vasnprintf: Likewise.
11250         * modules/unistdio/u32-u32-vasprintf: Likewise.
11251         * modules/unistdio/u32-u32-vsnprintf: Likewise.
11252         * modules/unistdio/u32-u32-vsprintf: Likewise.
11253         * modules/unistdio/u32-vasnprintf: Likewise.
11254         * modules/unistdio/u32-vasprintf: Likewise.
11255         * modules/unistdio/u32-vsnprintf: Likewise.
11256         * modules/unistdio/u32-vsprintf: Likewise.
11257         * modules/unistdio/ulc-asnprintf: Likewise.
11258         * modules/unistdio/ulc-asprintf: Likewise.
11259         * modules/unistdio/ulc-fprintf: Likewise.
11260         * modules/unistdio/ulc-snprintf: Likewise.
11261         * modules/unistdio/ulc-sprintf: Likewise.
11262         * modules/unistdio/ulc-vasnprintf: Likewise.
11263         * modules/unistdio/ulc-vasprintf: Likewise.
11264         * modules/unistdio/ulc-vfprintf: Likewise.
11265         * modules/unistdio/ulc-vsnprintf: Likewise.
11266         * modules/unistdio/ulc-vsprintf: Likewise.
11267         * modules/unistr/u8-check: Likewise.
11268         * modules/unistr/u8-chr: Likewise.
11269         * modules/unistr/u8-cmp: Likewise.
11270         * modules/unistr/u8-cmp2: Likewise.
11271         * modules/unistr/u8-cpy: Likewise.
11272         * modules/unistr/u8-cpy-alloc: Likewise.
11273         * modules/unistr/u8-endswith: Likewise.
11274         * modules/unistr/u8-mblen: Likewise.
11275         * modules/unistr/u8-mbsnlen: Likewise.
11276         * modules/unistr/u8-mbtouc: Likewise.
11277         * modules/unistr/u8-mbtouc-unsafe: Likewise.
11278         * modules/unistr/u8-mbtoucr: Likewise.
11279         * modules/unistr/u8-move: Likewise.
11280         * modules/unistr/u8-next: Likewise.
11281         * modules/unistr/u8-prev: Likewise.
11282         * modules/unistr/u8-set: Likewise.
11283         * modules/unistr/u8-startswith: Likewise.
11284         * modules/unistr/u8-stpcpy: Likewise.
11285         * modules/unistr/u8-stpncpy: Likewise.
11286         * modules/unistr/u8-strcat: Likewise.
11287         * modules/unistr/u8-strchr: Likewise.
11288         * modules/unistr/u8-strcmp: Likewise.
11289         * modules/unistr/u8-strcoll: Likewise.
11290         * modules/unistr/u8-strcpy: Likewise.
11291         * modules/unistr/u8-strcspn: Likewise.
11292         * modules/unistr/u8-strdup: Likewise.
11293         * modules/unistr/u8-strlen: Likewise.
11294         * modules/unistr/u8-strmblen: Likewise.
11295         * modules/unistr/u8-strmbtouc: Likewise.
11296         * modules/unistr/u8-strncat: Likewise.
11297         * modules/unistr/u8-strncmp: Likewise.
11298         * modules/unistr/u8-strncpy: Likewise.
11299         * modules/unistr/u8-strnlen: Likewise.
11300         * modules/unistr/u8-strpbrk: Likewise.
11301         * modules/unistr/u8-strrchr: Likewise.
11302         * modules/unistr/u8-strspn: Likewise.
11303         * modules/unistr/u8-strstr: Likewise.
11304         * modules/unistr/u8-strtok: Likewise.
11305         * modules/unistr/u8-to-u16: Likewise.
11306         * modules/unistr/u8-to-u32: Likewise.
11307         * modules/unistr/u8-uctomb: Likewise.
11308         * modules/unistr/u16-check: Likewise.
11309         * modules/unistr/u16-chr: Likewise.
11310         * modules/unistr/u16-cmp: Likewise.
11311         * modules/unistr/u16-cmp2: Likewise.
11312         * modules/unistr/u16-cpy: Likewise.
11313         * modules/unistr/u16-cpy-alloc: Likewise.
11314         * modules/unistr/u16-endswith: Likewise.
11315         * modules/unistr/u16-mblen: Likewise.
11316         * modules/unistr/u16-mbsnlen: Likewise.
11317         * modules/unistr/u16-mbtouc: Likewise.
11318         * modules/unistr/u16-mbtouc-unsafe: Likewise.
11319         * modules/unistr/u16-mbtoucr: Likewise.
11320         * modules/unistr/u16-move: Likewise.
11321         * modules/unistr/u16-next: Likewise.
11322         * modules/unistr/u16-prev: Likewise.
11323         * modules/unistr/u16-set: Likewise.
11324         * modules/unistr/u16-startswith: Likewise.
11325         * modules/unistr/u16-stpcpy: Likewise.
11326         * modules/unistr/u16-stpncpy: Likewise.
11327         * modules/unistr/u16-strcat: Likewise.
11328         * modules/unistr/u16-strchr: Likewise.
11329         * modules/unistr/u16-strcmp: Likewise.
11330         * modules/unistr/u16-strcoll: Likewise.
11331         * modules/unistr/u16-strcpy: Likewise.
11332         * modules/unistr/u16-strcspn: Likewise.
11333         * modules/unistr/u16-strdup: Likewise.
11334         * modules/unistr/u16-strlen: Likewise.
11335         * modules/unistr/u16-strmblen: Likewise.
11336         * modules/unistr/u16-strmbtouc: Likewise.
11337         * modules/unistr/u16-strncat: Likewise.
11338         * modules/unistr/u16-strncmp: Likewise.
11339         * modules/unistr/u16-strncpy: Likewise.
11340         * modules/unistr/u16-strnlen: Likewise.
11341         * modules/unistr/u16-strpbrk: Likewise.
11342         * modules/unistr/u16-strrchr: Likewise.
11343         * modules/unistr/u16-strspn: Likewise.
11344         * modules/unistr/u16-strstr: Likewise.
11345         * modules/unistr/u16-strtok: Likewise.
11346         * modules/unistr/u16-to-u32: Likewise.
11347         * modules/unistr/u16-to-u8: Likewise.
11348         * modules/unistr/u16-uctomb: Likewise.
11349         * modules/unistr/u32-check: Likewise.
11350         * modules/unistr/u32-chr: Likewise.
11351         * modules/unistr/u32-cmp: Likewise.
11352         * modules/unistr/u32-cmp2: Likewise.
11353         * modules/unistr/u32-cpy: Likewise.
11354         * modules/unistr/u32-cpy-alloc: Likewise.
11355         * modules/unistr/u32-endswith: Likewise.
11356         * modules/unistr/u32-mblen: Likewise.
11357         * modules/unistr/u32-mbsnlen: Likewise.
11358         * modules/unistr/u32-mbtouc: Likewise.
11359         * modules/unistr/u32-mbtouc-unsafe: Likewise.
11360         * modules/unistr/u32-mbtoucr: Likewise.
11361         * modules/unistr/u32-move: Likewise.
11362         * modules/unistr/u32-next: Likewise.
11363         * modules/unistr/u32-prev: Likewise.
11364         * modules/unistr/u32-set: Likewise.
11365         * modules/unistr/u32-startswith: Likewise.
11366         * modules/unistr/u32-stpcpy: Likewise.
11367         * modules/unistr/u32-stpncpy: Likewise.
11368         * modules/unistr/u32-strcat: Likewise.
11369         * modules/unistr/u32-strchr: Likewise.
11370         * modules/unistr/u32-strcmp: Likewise.
11371         * modules/unistr/u32-strcoll: Likewise.
11372         * modules/unistr/u32-strcpy: Likewise.
11373         * modules/unistr/u32-strcspn: Likewise.
11374         * modules/unistr/u32-strdup: Likewise.
11375         * modules/unistr/u32-strlen: Likewise.
11376         * modules/unistr/u32-strmblen: Likewise.
11377         * modules/unistr/u32-strmbtouc: Likewise.
11378         * modules/unistr/u32-strncat: Likewise.
11379         * modules/unistr/u32-strncmp: Likewise.
11380         * modules/unistr/u32-strncpy: Likewise.
11381         * modules/unistr/u32-strnlen: Likewise.
11382         * modules/unistr/u32-strpbrk: Likewise.
11383         * modules/unistr/u32-strrchr: Likewise.
11384         * modules/unistr/u32-strspn: Likewise.
11385         * modules/unistr/u32-strstr: Likewise.
11386         * modules/unistr/u32-strtok: Likewise.
11387         * modules/unistr/u32-to-u16: Likewise.
11388         * modules/unistr/u32-to-u8: Likewise.
11389         * modules/unistr/u32-uctomb: Likewise.
11390         * modules/uniwbrk/u8-wordbreaks: Likewise.
11391         * modules/uniwbrk/u16-wordbreaks: Likewise.
11392         * modules/uniwbrk/u32-wordbreaks: Likewise.
11393         * modules/uniwbrk/ulc-wordbreaks: Likewise.
11394         * modules/uniwbrk/wordbreak-property: Likewise.
11395         * modules/uniwidth/u8-strwidth: Likewise.
11396         * modules/uniwidth/u8-width: Likewise.
11397         * modules/uniwidth/u16-strwidth: Likewise.
11398         * modules/uniwidth/u16-width: Likewise.
11399         * modules/uniwidth/u32-strwidth: Likewise.
11400         * modules/uniwidth/u32-width: Likewise.
11401         * modules/uniwidth/width: Likewise.
11402         * modules/unicase/cased-tests (Makefile.am): Link all test programs
11403         with $(LIBUNISTRING).
11404         * modules/unicase/ignorable-tests: Likewise.
11405         * modules/unicase/locale-language-tests: Likewise.
11406         * modules/unicase/tolower-tests: Likewise.
11407         * modules/unicase/totitle-tests: Likewise.
11408         * modules/unicase/toupper-tests: Likewise.
11409         * modules/unicase/u8-casecmp-tests: Likewise.
11410         * modules/unicase/u8-casecoll-tests: Likewise.
11411         * modules/unicase/u8-casefold-tests: Likewise.
11412         * modules/unicase/u8-is-cased-tests: Likewise.
11413         * modules/unicase/u8-is-casefolded-tests: Likewise.
11414         * modules/unicase/u8-is-lowercase-tests: Likewise.
11415         * modules/unicase/u8-is-titlecase-tests: Likewise.
11416         * modules/unicase/u8-is-uppercase-tests: Likewise.
11417         * modules/unicase/u8-tolower-tests: Likewise.
11418         * modules/unicase/u8-totitle-tests: Likewise.
11419         * modules/unicase/u8-toupper-tests: Likewise.
11420         * modules/unicase/u16-casecmp-tests: Likewise.
11421         * modules/unicase/u16-casecoll-tests: Likewise.
11422         * modules/unicase/u16-casefold-tests: Likewise.
11423         * modules/unicase/u16-is-cased-tests: Likewise.
11424         * modules/unicase/u16-is-casefolded-tests: Likewise.
11425         * modules/unicase/u16-is-lowercase-tests: Likewise.
11426         * modules/unicase/u16-is-titlecase-tests: Likewise.
11427         * modules/unicase/u16-is-uppercase-tests: Likewise.
11428         * modules/unicase/u16-tolower-tests: Likewise.
11429         * modules/unicase/u16-totitle-tests: Likewise.
11430         * modules/unicase/u16-toupper-tests: Likewise.
11431         * modules/unicase/u32-casecmp-tests: Likewise.
11432         * modules/unicase/u32-casecoll-tests: Likewise.
11433         * modules/unicase/u32-casefold-tests: Likewise.
11434         * modules/unicase/u32-is-cased-tests: Likewise.
11435         * modules/unicase/u32-is-casefolded-tests: Likewise.
11436         * modules/unicase/u32-is-lowercase-tests: Likewise.
11437         * modules/unicase/u32-is-titlecase-tests: Likewise.
11438         * modules/unicase/u32-is-uppercase-tests: Likewise.
11439         * modules/unicase/u32-tolower-tests: Likewise.
11440         * modules/unicase/u32-totitle-tests: Likewise.
11441         * modules/unicase/u32-toupper-tests: Likewise.
11442         * modules/unicase/ulc-casecmp-tests: Likewise.
11443         * modules/unicase/ulc-casecoll-tests: Likewise.
11444         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
11445         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
11446         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
11447         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
11448         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
11449         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
11450         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
11451         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
11452         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
11453         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
11454         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
11455         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
11456         * modules/unictype/bidicategory-byname-tests: Likewise.
11457         * modules/unictype/bidicategory-name-tests: Likewise.
11458         * modules/unictype/bidicategory-of-tests: Likewise.
11459         * modules/unictype/bidicategory-test-tests: Likewise.
11460         * modules/unictype/block-list-tests: Likewise.
11461         * modules/unictype/block-of-tests: Likewise.
11462         * modules/unictype/block-test-tests: Likewise.
11463         * modules/unictype/category-C-tests: Likewise.
11464         * modules/unictype/category-Cc-tests: Likewise.
11465         * modules/unictype/category-Cf-tests: Likewise.
11466         * modules/unictype/category-Cn-tests: Likewise.
11467         * modules/unictype/category-Co-tests: Likewise.
11468         * modules/unictype/category-Cs-tests: Likewise.
11469         * modules/unictype/category-L-tests: Likewise.
11470         * modules/unictype/category-Ll-tests: Likewise.
11471         * modules/unictype/category-Lm-tests: Likewise.
11472         * modules/unictype/category-Lo-tests: Likewise.
11473         * modules/unictype/category-Lt-tests: Likewise.
11474         * modules/unictype/category-Lu-tests: Likewise.
11475         * modules/unictype/category-M-tests: Likewise.
11476         * modules/unictype/category-Mc-tests: Likewise.
11477         * modules/unictype/category-Me-tests: Likewise.
11478         * modules/unictype/category-Mn-tests: Likewise.
11479         * modules/unictype/category-N-tests: Likewise.
11480         * modules/unictype/category-Nd-tests: Likewise.
11481         * modules/unictype/category-Nl-tests: Likewise.
11482         * modules/unictype/category-No-tests: Likewise.
11483         * modules/unictype/category-P-tests: Likewise.
11484         * modules/unictype/category-Pc-tests: Likewise.
11485         * modules/unictype/category-Pd-tests: Likewise.
11486         * modules/unictype/category-Pe-tests: Likewise.
11487         * modules/unictype/category-Pf-tests: Likewise.
11488         * modules/unictype/category-Pi-tests: Likewise.
11489         * modules/unictype/category-Po-tests: Likewise.
11490         * modules/unictype/category-Ps-tests: Likewise.
11491         * modules/unictype/category-S-tests: Likewise.
11492         * modules/unictype/category-Sc-tests: Likewise.
11493         * modules/unictype/category-Sk-tests: Likewise.
11494         * modules/unictype/category-Sm-tests: Likewise.
11495         * modules/unictype/category-So-tests: Likewise.
11496         * modules/unictype/category-Z-tests: Likewise.
11497         * modules/unictype/category-Zl-tests: Likewise.
11498         * modules/unictype/category-Zp-tests: Likewise.
11499         * modules/unictype/category-Zs-tests: Likewise.
11500         * modules/unictype/category-and-not-tests: Likewise.
11501         * modules/unictype/category-and-tests: Likewise.
11502         * modules/unictype/category-byname-tests: Likewise.
11503         * modules/unictype/category-name-tests: Likewise.
11504         * modules/unictype/category-none-tests: Likewise.
11505         * modules/unictype/category-of-tests: Likewise.
11506         * modules/unictype/category-or-tests: Likewise.
11507         * modules/unictype/category-test-withtable-tests: Likewise.
11508         * modules/unictype/combining-class-tests: Likewise.
11509         * modules/unictype/ctype-alnum-tests: Likewise.
11510         * modules/unictype/ctype-alpha-tests: Likewise.
11511         * modules/unictype/ctype-blank-tests: Likewise.
11512         * modules/unictype/ctype-cntrl-tests: Likewise.
11513         * modules/unictype/ctype-digit-tests: Likewise.
11514         * modules/unictype/ctype-graph-tests: Likewise.
11515         * modules/unictype/ctype-lower-tests: Likewise.
11516         * modules/unictype/ctype-print-tests: Likewise.
11517         * modules/unictype/ctype-punct-tests: Likewise.
11518         * modules/unictype/ctype-space-tests: Likewise.
11519         * modules/unictype/ctype-upper-tests: Likewise.
11520         * modules/unictype/ctype-xdigit-tests: Likewise.
11521         * modules/unictype/decimal-digit-tests: Likewise.
11522         * modules/unictype/digit-tests: Likewise.
11523         * modules/unictype/mirror-tests: Likewise.
11524         * modules/unictype/numeric-tests: Likewise.
11525         * modules/unictype/property-alphabetic-tests: Likewise.
11526         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
11527         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
11528         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
11529         * modules/unictype/property-bidi-block-separator-tests: Likewise.
11530         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
11531         * modules/unictype/property-bidi-common-separator-tests: Likewise.
11532         * modules/unictype/property-bidi-control-tests: Likewise.
11533         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
11534         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
11535         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
11536         * modules/unictype/property-bidi-european-digit-tests: Likewise.
11537         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
11538         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
11539         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
11540         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
11541         * modules/unictype/property-bidi-pdf-tests: Likewise.
11542         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
11543         * modules/unictype/property-bidi-whitespace-tests: Likewise.
11544         * modules/unictype/property-byname-tests: Likewise.
11545         * modules/unictype/property-combining-tests: Likewise.
11546         * modules/unictype/property-composite-tests: Likewise.
11547         * modules/unictype/property-currency-symbol-tests: Likewise.
11548         * modules/unictype/property-dash-tests: Likewise.
11549         * modules/unictype/property-decimal-digit-tests: Likewise.
11550         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
11551         * modules/unictype/property-deprecated-tests: Likewise.
11552         * modules/unictype/property-diacritic-tests: Likewise.
11553         * modules/unictype/property-extender-tests: Likewise.
11554         * modules/unictype/property-format-control-tests: Likewise.
11555         * modules/unictype/property-grapheme-base-tests: Likewise.
11556         * modules/unictype/property-grapheme-extend-tests: Likewise.
11557         * modules/unictype/property-grapheme-link-tests: Likewise.
11558         * modules/unictype/property-hex-digit-tests: Likewise.
11559         * modules/unictype/property-hyphen-tests: Likewise.
11560         * modules/unictype/property-id-continue-tests: Likewise.
11561         * modules/unictype/property-id-start-tests: Likewise.
11562         * modules/unictype/property-ideographic-tests: Likewise.
11563         * modules/unictype/property-ids-binary-operator-tests: Likewise.
11564         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
11565         * modules/unictype/property-ignorable-control-tests: Likewise.
11566         * modules/unictype/property-iso-control-tests: Likewise.
11567         * modules/unictype/property-join-control-tests: Likewise.
11568         * modules/unictype/property-left-of-pair-tests: Likewise.
11569         * modules/unictype/property-line-separator-tests: Likewise.
11570         * modules/unictype/property-logical-order-exception-tests: Likewise.
11571         * modules/unictype/property-lowercase-tests: Likewise.
11572         * modules/unictype/property-math-tests: Likewise.
11573         * modules/unictype/property-non-break-tests: Likewise.
11574         * modules/unictype/property-not-a-character-tests: Likewise.
11575         * modules/unictype/property-numeric-tests: Likewise.
11576         * modules/unictype/property-other-alphabetic-tests: Likewise.
11577         * modules/unictype/property-other-default-ignorable-code-point-tests:
11578         Likewise.
11579         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
11580         * modules/unictype/property-other-id-continue-tests: Likewise.
11581         * modules/unictype/property-other-id-start-tests: Likewise.
11582         * modules/unictype/property-other-lowercase-tests: Likewise.
11583         * modules/unictype/property-other-math-tests: Likewise.
11584         * modules/unictype/property-other-uppercase-tests: Likewise.
11585         * modules/unictype/property-paired-punctuation-tests: Likewise.
11586         * modules/unictype/property-paragraph-separator-tests: Likewise.
11587         * modules/unictype/property-pattern-syntax-tests: Likewise.
11588         * modules/unictype/property-pattern-white-space-tests: Likewise.
11589         * modules/unictype/property-private-use-tests: Likewise.
11590         * modules/unictype/property-punctuation-tests: Likewise.
11591         * modules/unictype/property-quotation-mark-tests: Likewise.
11592         * modules/unictype/property-radical-tests: Likewise.
11593         * modules/unictype/property-sentence-terminal-tests: Likewise.
11594         * modules/unictype/property-soft-dotted-tests: Likewise.
11595         * modules/unictype/property-space-tests: Likewise.
11596         * modules/unictype/property-terminal-punctuation-tests: Likewise.
11597         * modules/unictype/property-test-tests: Likewise.
11598         * modules/unictype/property-titlecase-tests: Likewise.
11599         * modules/unictype/property-unassigned-code-value-tests: Likewise.
11600         * modules/unictype/property-unified-ideograph-tests: Likewise.
11601         * modules/unictype/property-uppercase-tests: Likewise.
11602         * modules/unictype/property-variation-selector-tests: Likewise.
11603         * modules/unictype/property-white-space-tests: Likewise.
11604         * modules/unictype/property-xid-continue-tests: Likewise.
11605         * modules/unictype/property-xid-start-tests: Likewise.
11606         * modules/unictype/property-zero-width-tests: Likewise.
11607         * modules/unictype/scripts-tests: Likewise.
11608         * modules/unictype/syntax-c-ident-tests: Likewise.
11609         * modules/unictype/syntax-c-whitespace-tests: Likewise.
11610         * modules/unictype/syntax-java-ident-tests: Likewise.
11611         * modules/unictype/syntax-java-whitespace-tests: Likewise.
11612         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
11613         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
11614         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
11615         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
11616         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
11617         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
11618         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
11619         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
11620         * modules/uniname/uniname-tests: Likewise.
11621         * modules/uninorm/canonical-decomposition-tests: Likewise.
11622         * modules/uninorm/compat-decomposition-tests: Likewise.
11623         * modules/uninorm/composition-tests: Likewise.
11624         * modules/uninorm/decomposing-form-tests: Likewise.
11625         * modules/uninorm/decomposition-tests: Likewise.
11626         * modules/uninorm/filter-tests: Likewise.
11627         * modules/uninorm/nfc-tests: Likewise.
11628         * modules/uninorm/nfd-tests: Likewise.
11629         * modules/uninorm/nfkc-tests: Likewise.
11630         * modules/uninorm/nfkd-tests: Likewise.
11631         * modules/uninorm/u8-normcmp-tests: Likewise.
11632         * modules/uninorm/u8-normcoll-tests: Likewise.
11633         * modules/uninorm/u16-normcmp-tests: Likewise.
11634         * modules/uninorm/u16-normcoll-tests: Likewise.
11635         * modules/uninorm/u32-normcmp-tests: Likewise.
11636         * modules/uninorm/u32-normcoll-tests: Likewise.
11637         * modules/unistdio/u8-asnprintf-tests: Likewise.
11638         * modules/unistdio/u8-vasnprintf-tests: Likewise.
11639         * modules/unistdio/u8-vasprintf-tests: Likewise.
11640         * modules/unistdio/u8-vsnprintf-tests: Likewise.
11641         * modules/unistdio/u8-vsprintf-tests: Likewise.
11642         * modules/unistdio/u16-asnprintf-tests: Likewise.
11643         * modules/unistdio/u16-vasnprintf-tests: Likewise.
11644         * modules/unistdio/u16-vasprintf-tests: Likewise.
11645         * modules/unistdio/u16-vsnprintf-tests: Likewise.
11646         * modules/unistdio/u16-vsprintf-tests: Likewise.
11647         * modules/unistdio/u32-asnprintf-tests: Likewise.
11648         * modules/unistdio/u32-vasnprintf-tests: Likewise.
11649         * modules/unistdio/u32-vasprintf-tests: Likewise.
11650         * modules/unistdio/u32-vsnprintf-tests: Likewise.
11651         * modules/unistdio/u32-vsprintf-tests: Likewise.
11652         * modules/unistdio/ulc-asnprintf-tests: Likewise.
11653         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
11654         * modules/unistdio/ulc-vasprintf-tests: Likewise.
11655         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
11656         * modules/unistdio/ulc-vsprintf-tests: Likewise.
11657         * modules/unistr/u8-check-tests: Likewise.
11658         * modules/unistr/u8-chr-tests: Likewise.
11659         * modules/unistr/u8-cmp-tests: Likewise.
11660         * modules/unistr/u8-cmp2-tests: Likewise.
11661         * modules/unistr/u8-cpy-alloc-tests: Likewise.
11662         * modules/unistr/u8-cpy-tests: Likewise.
11663         * modules/unistr/u8-mblen-tests: Likewise.
11664         * modules/unistr/u8-mbsnlen-tests: Likewise.
11665         * modules/unistr/u8-mbtouc-tests: Likewise.
11666         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
11667         * modules/unistr/u8-mbtoucr-tests: Likewise.
11668         * modules/unistr/u8-move-tests: Likewise.
11669         * modules/unistr/u8-next-tests: Likewise.
11670         * modules/unistr/u8-prev-tests: Likewise.
11671         * modules/unistr/u8-set-tests: Likewise.
11672         * modules/unistr/u8-stpcpy-tests: Likewise.
11673         * modules/unistr/u8-stpncpy-tests: Likewise.
11674         * modules/unistr/u8-strcat-tests: Likewise.
11675         * modules/unistr/u8-strcmp-tests: Likewise.
11676         * modules/unistr/u8-strcoll-tests: Likewise.
11677         * modules/unistr/u8-strcpy-tests: Likewise.
11678         * modules/unistr/u8-strdup-tests: Likewise.
11679         * modules/unistr/u8-strlen-tests: Likewise.
11680         * modules/unistr/u8-strmblen-tests: Likewise.
11681         * modules/unistr/u8-strmbtouc-tests: Likewise.
11682         * modules/unistr/u8-strncat-tests: Likewise.
11683         * modules/unistr/u8-strncmp-tests: Likewise.
11684         * modules/unistr/u8-strncpy-tests: Likewise.
11685         * modules/unistr/u8-strnlen-tests: Likewise.
11686         * modules/unistr/u8-to-u16-tests: Likewise.
11687         * modules/unistr/u8-to-u32-tests: Likewise.
11688         * modules/unistr/u8-uctomb-tests: Likewise.
11689         * modules/unistr/u16-check-tests: Likewise.
11690         * modules/unistr/u16-chr-tests: Likewise.
11691         * modules/unistr/u16-cmp-tests: Likewise.
11692         * modules/unistr/u16-cmp2-tests: Likewise.
11693         * modules/unistr/u16-cpy-alloc-tests: Likewise.
11694         * modules/unistr/u16-cpy-tests: Likewise.
11695         * modules/unistr/u16-mblen-tests: Likewise.
11696         * modules/unistr/u16-mbsnlen-tests: Likewise.
11697         * modules/unistr/u16-mbtouc-tests: Likewise.
11698         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
11699         * modules/unistr/u16-mbtoucr-tests: Likewise.
11700         * modules/unistr/u16-move-tests: Likewise.
11701         * modules/unistr/u16-next-tests: Likewise.
11702         * modules/unistr/u16-prev-tests: Likewise.
11703         * modules/unistr/u16-set-tests: Likewise.
11704         * modules/unistr/u16-stpcpy-tests: Likewise.
11705         * modules/unistr/u16-stpncpy-tests: Likewise.
11706         * modules/unistr/u16-strcat-tests: Likewise.
11707         * modules/unistr/u16-strcmp-tests: Likewise.
11708         * modules/unistr/u16-strcoll-tests: Likewise.
11709         * modules/unistr/u16-strcpy-tests: Likewise.
11710         * modules/unistr/u16-strdup-tests: Likewise.
11711         * modules/unistr/u16-strlen-tests: Likewise.
11712         * modules/unistr/u16-strmblen-tests: Likewise.
11713         * modules/unistr/u16-strmbtouc-tests: Likewise.
11714         * modules/unistr/u16-strncat-tests: Likewise.
11715         * modules/unistr/u16-strncmp-tests: Likewise.
11716         * modules/unistr/u16-strncpy-tests: Likewise.
11717         * modules/unistr/u16-strnlen-tests: Likewise.
11718         * modules/unistr/u16-to-u32-tests: Likewise.
11719         * modules/unistr/u16-to-u8-tests: Likewise.
11720         * modules/unistr/u16-uctomb-tests: Likewise.
11721         * modules/unistr/u32-check-tests: Likewise.
11722         * modules/unistr/u32-chr-tests: Likewise.
11723         * modules/unistr/u32-cmp-tests: Likewise.
11724         * modules/unistr/u32-cmp2-tests: Likewise.
11725         * modules/unistr/u32-cpy-alloc-tests: Likewise.
11726         * modules/unistr/u32-cpy-tests: Likewise.
11727         * modules/unistr/u32-mblen-tests: Likewise.
11728         * modules/unistr/u32-mbsnlen-tests: Likewise.
11729         * modules/unistr/u32-mbtouc-tests: Likewise.
11730         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
11731         * modules/unistr/u32-mbtoucr-tests: Likewise.
11732         * modules/unistr/u32-move-tests: Likewise.
11733         * modules/unistr/u32-next-tests: Likewise.
11734         * modules/unistr/u32-prev-tests: Likewise.
11735         * modules/unistr/u32-set-tests: Likewise.
11736         * modules/unistr/u32-stpcpy-tests: Likewise.
11737         * modules/unistr/u32-stpncpy-tests: Likewise.
11738         * modules/unistr/u32-strcat-tests: Likewise.
11739         * modules/unistr/u32-strcmp-tests: Likewise.
11740         * modules/unistr/u32-strcoll-tests: Likewise.
11741         * modules/unistr/u32-strcpy-tests: Likewise.
11742         * modules/unistr/u32-strdup-tests: Likewise.
11743         * modules/unistr/u32-strlen-tests: Likewise.
11744         * modules/unistr/u32-strmblen-tests: Likewise.
11745         * modules/unistr/u32-strmbtouc-tests: Likewise.
11746         * modules/unistr/u32-strncat-tests: Likewise.
11747         * modules/unistr/u32-strncmp-tests: Likewise.
11748         * modules/unistr/u32-strncpy-tests: Likewise.
11749         * modules/unistr/u32-strnlen-tests: Likewise.
11750         * modules/unistr/u32-to-u16-tests: Likewise.
11751         * modules/unistr/u32-to-u8-tests: Likewise.
11752         * modules/unistr/u32-uctomb-tests: Likewise.
11753         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
11754         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
11755         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
11756         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
11757         * modules/uniwidth/u8-strwidth-tests: Likewise.
11758         * modules/uniwidth/u8-width-tests: Likewise.
11759         * modules/uniwidth/u16-strwidth-tests: Likewise.
11760         * modules/uniwidth/u16-width-tests: Likewise.
11761         * modules/uniwidth/u32-strwidth-tests: Likewise.
11762         * modules/uniwidth/u32-width-tests: Likewise.
11763         * modules/uniwidth/width-tests: Likewise.
11765 2010-05-18  Richard Jones  <rjones@redhat.com>
11767         doc: users.txt: list hivex
11768         * users.txt: Add hivex.
11770 2010-05-18  Richard Jones  <rjones@redhat.com>
11772         doc: users.txt: list febootstrap
11773         * users.txt: Add febootstrap.
11775 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
11777         bootstrap: fix an error when gnulib is not used as a git submodule
11778         * build-aux/bootstrap (gnulib_path): If its length is zero then
11779         assign "gnulib" to it.
11780         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
11782 2010-05-16  Bruno Haible  <bruno@clisp.org>
11784         Avoid autoconf warnings about AM_ICONV.
11785         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
11786         2.64.
11788 2010-05-16  Bruno Haible  <bruno@clisp.org>
11790         absolute-header: Make the macro usable in more situations.
11791         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
11792         from gl_ABSOLUTE_HEADER.
11793         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
11795 2010-05-16  James Youngman  <jay@gnu.org>
11797         doc: update users.txt
11798         * users.txt: Add CSSC.
11800 2010-05-16  Jim Meyering  <meyering@redhat.com>
11802         init.sh: fix an error in the previous change; add more comments
11803         * tests/init.sh: Compare exit code in loop against 9, not 2.
11804         Patch by Bruno Haible.
11805         Make the two tests more similar by adding an empty "then" clause.
11806         Add comments.
11808         init.sh: avoid unnecessary shell re-exec
11809         * tests/init.sh: Improve the re-exec-required check to first test the
11810         current shell.  If it passes the test, do not search for a shell that
11811         does pass, and do not re-exec.  This test is particularly contorted to
11812         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
11813         of $(...) evokes a syntax error and causes immediate shell exit with
11814         status 2.  Bruno Haible reported that the re-exec made it impossible
11815         to single-step through any init.sh-using script.
11817 2010-05-16  Bruno Haible  <bruno@clisp.org>
11819         Fix collision between gnulib's and libintl's printf replacements.
11820         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
11821         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
11822         (printf): When using GNU C, map the __printf__ function to rpl_printf
11823         via __asm__. When not using GNU C, define rpl_printf instead of
11824         __printf__.
11825         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
11826         commit.
11827         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
11828         commit.
11829         * m4/asm-underscore.m4: New file.
11830         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
11831         * modules/stdio (Files): Add m4/asm-underscore.m4.
11832         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
11833         Reported by Ben Pfaff.
11835 2010-05-16  Bruno Haible  <bruno@clisp.org>
11837         verify: Avoid skipping the test on openSUSE 11.0.
11838         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
11840 2010-05-13  Bruno Haible  <bruno@clisp.org>
11842         Avoid useless warnings from G++.
11843         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
11844         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
11845         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
11847 2010-05-11  Jim Meyering  <meyering@redhat.com>
11849         maint.mk: tweak preceding change
11850         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
11851         regexps tighter by anchoring at EOL, and make the new group "shy"
11852         for slightly decreased overhead.
11854 2010-05-11  Eric Blake  <eblake@redhat.com>
11856         maint.mk: gnulib doesn't guarantee NSIG
11857         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
11859 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
11861         test-pwrite.c: Remove unused variable declaration.
11862         * tests/test-pwrite.c (main): Remove read_buf declaration.
11864         Remove useless test-pwrite.sh file.
11865         * tests/test-pwrite.sh: Delete file.
11866         * modules/pwrite-tests: Remove references.
11867         Reported by Bruno Haible.
11869 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
11871         init.sh: fix a typo
11872         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
11874 2010-05-10  Jim Meyering  <meyering@redhat.com>
11876         maint.mk: avoid using a temporary file in the always-defined-macros check
11877         * top/maint.mk (.re-defmac): Remove rule.
11878         (gl_trap_): Remove definition.
11879         (sc_prohibit_always-defined_macros): Rewrite not to create and
11880         depend on a temporary file.  Instead, depend on GNU grep's ability
11881         to read a list of regular expressions from stdin when given "-f -".
11883 2010-05-09  Bruno Haible  <bruno@clisp.org>
11885         Update to GNU gettext 0.18, part 1.
11886         * m4/gettext.m4: Update to GNU gettext 0.18.
11887         * m4/intl.m4: Likewise.
11888         * m4/po.m4: Likewise.
11889         * modules/gettext (Files): Add m4/fcntl-o.m4.
11890         (configure.ac): Require gettext infrastructure from version 0.18.
11892 2010-05-09  Jim Meyering  <meyering@redhat.com>
11894         init.sh: enable MALLOC_PERTURB_
11895         * tests/init.sh: Enable glibc's malloc-perturbing option.
11897         maint.mk: improve sc_cross_check_PATH_usage_in_tests
11898         With my recent change in init.sh from the two-line form:
11899             -#   : ${srcdir=.}
11900             -#   . "$srcdir/init.sh"; path_prepend_ .
11901             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
11902         I noticed that using the one-line form would cause this test
11903         to fail with a false-positive, or to stop working altogether,
11904         depending on whether help-version changed or all the tests did.
11905         * top/maint.mk (_hv_regex): Remove this definition.
11906         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
11907         (_hv_regex_strong): Use a stronger regex to check for conformance.
11908         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
11909         Give a separate diagnostic for lack of conforming use.
11911         maint.mk: prohibit definition of symbols defined by gnulib
11912         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
11913         definition of symbols defined by gnulib.
11915 2010-05-09  Bruno Haible  <bruno@clisp.org>
11917         acl: Avoid test failure on Cygwin-hosted mingw.
11918         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
11920 2010-05-09  Bruno Haible  <bruno@clisp.org>
11922         error: Use system's fcntl function.
11923         * lib/error.c (fcntl): Undefine.
11925 2010-05-09  Jim Meyering  <meyering@redhat.com>
11927         verify: adjust formatting to be more consistent
11928         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
11929         argument-list '('s, and after one comma.
11931 2010-05-09  Bruno Haible  <bruno@clisp.org>
11933         error: More reliable output on mingw.
11934         * lib/error.c: Include <windows.h>.
11935         (is_open): New function.
11936         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
11937         defined.
11939 2010-05-09  Bruno Haible  <bruno@clisp.org>
11941         vasnprintf: Fix syntax errors in libintl build on mingw.
11942         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
11943         pad_ourselves and prec_ourselves after use.
11945 2010-05-08  Bruno Haible  <bruno@clisp.org>
11947         * lib/config.charset: Update comments for Cygwin 1.7.
11948         * lib/localcharset.c: Likewise.
11950 2010-05-07  Jim Meyering  <meyering@redhat.com>
11952         init.sh: improve comments
11953         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
11954         . "${srcdir=.}/init.sh"; path_prepend_ .
11955         Add a note about path_prepend_ and the alternative of using
11956         TESTS_ENVIRONMENT.
11958 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
11960         exclude: Unescape hashed patterns in wildcard mode.
11961         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
11962         to the hash list.
11963         * tests/test-exclude8.sh: New test case.
11964         * modules/exclude-tests: Add new test.
11966 2010-05-05  Eric Blake  <eblake@redhat.com>
11968         verify: automate tests
11969         * modules/verify-tests: New module.
11970         * tests/test-verify.sh: New file.
11971         * tests/test-verify.c: Guard each negative test with a unique id.
11972         Also avoid warning about unused left hand of comma expressions.
11974 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
11976         Further improvements to verify.h, suggested by Eric Blake.
11977         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
11978         the GL_* versions, to avoid collision with OpenGL.
11979         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
11980         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
11981         than testing merely whether it's defined.
11983         Modify verify.h to pacify gcc -Wredundant_decls.
11984         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
11985         These use the prefix "GL_" since they're likely to be useful elsewhere.
11986         We may need to break them out into a different .h file.
11987         (__COUNTER__): Define to 0 if the compiler doesn't support it.
11988         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
11989         of verify_function__.
11991 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
11993         Tests for module pwrite.
11994         * modules/pwrite-tests: New file.
11995         * tests/test-pwrite.sh: New file.
11996         * tests/test-pwrite.c: New file.
11998         New module pwrite.
11999         * lib/unistd.in.h (pwrite): New declaration.
12000         * lib/pwrite.c: New file, from glibc with modifications.
12001         * m4/pwrite.m4: New file.
12002         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
12003         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
12004         REPLACE_PWRITE.
12005         * modules/pwrite: New file.
12006         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
12007         REPLACE_PWRITE.
12008         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
12009         * doc/posix-functions/pwrite.texi: Mention the new module.
12011 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
12013         pread: Update documentation.
12014         * doc/posix-functions/pread.texi: Mention the 'pread' module.
12016 2010-05-04  Eric Blake  <eblake@redhat.com>
12018         docs: update cygwin progress
12019         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
12020         this bug.
12021         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
12022         Added in cygwin 1.7.2.
12023         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
12024         Likewise.
12025         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
12026         Likewise.
12027         * doc/glibc-functions/dup3.texi (dup3): Likewise.
12028         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
12029         * doc/glibc-functions/accept4.texi (accept4): Likewise.
12030         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
12031         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
12032         Mention nproc module.
12033         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
12034         bug in cygwin 1.7.5 addition.
12035         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
12036         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
12037         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
12038         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
12039         1.7.5.
12040         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
12041         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
12042         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
12043         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
12044         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
12045         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
12046         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
12047         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
12048         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
12049         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
12050         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
12051         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
12052         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
12053         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
12054         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
12055         Likewise.
12056         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
12057         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
12058         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
12059         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
12060         Likewise.
12061         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
12062         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
12063         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
12064         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
12065         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
12066         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
12067         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
12068         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
12069         Likewise.
12070         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
12071         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
12072         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
12073         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
12074         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
12075         Likewise.
12076         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
12077         Likewise.
12078         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
12079         Likewise.
12080         * doc/glibc-functions/xdrrec_endofrecord.texi
12081         (xdrrec_endofrecord): Likewise.
12082         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
12083         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
12084         Likewise.
12085         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
12086         Likewise.
12088 2010-05-04  Jim Meyering  <meyering@redhat.com>
12090         gendocs.sh: make its "-s FILE" option more useful
12091         * build-aux/gendocs.sh: When honoring the -s FILE option, update
12092         $PACKAGE to reflect the probably-different basename of "FILE".
12094 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
12096         bootstrap: don't ignore download_po_files failure
12097         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
12098         failure.
12100 2010-05-03  Jim Meyering  <meyering@redhat.com>
12102         maint.mk: allow to pass options to gendocs.sh
12103         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
12104         (gendocs_options_): New overridable variable.
12106         gnu-web-doc-update: don't ignore configure or build failure
12107         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
12109         announce-gen: backslash-escape '@'s in --help output
12110         * build-aux/announce-gen: Fix syntax errors.
12112         maint.mk, announce-gen: allow project-specific announcement mail headers
12113         * top/maint.mk (translation_project_): Define default.
12114         (announcement_Cc_, announcement_mail_headers_): Likewise.
12115         (announcement): Invoke announce-gen with new --mail-headers option.
12116         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
12118         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
12119         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
12120         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
12121         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
12122         line in the "err2" output file when running "make check" in verbose
12123         mode (i.e., with set -x enabled).
12125 2010-05-03  Bruno Haible  <bruno@clisp.org>
12127         wctob: Fix for weird platforms.
12128         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
12129         argument value.
12131 2010-05-03  Jim Meyering  <meyering@redhat.com>
12133         maint.mk: prohibit unwarranted use of <strings.h>
12134         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
12135         strings.h in a file that does not also use strcasecmp, strncasecmp,
12136         ffs or ffsll.
12138         maint.mk: remove obsolete comments
12139         * top/maint.mk: Remove stale, commented-out rules.
12141 2010-05-02  Bruno Haible  <bruno@clisp.org>
12143         wcwidth: Declare also when it's aliased.
12144         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
12145         macro.
12147 2010-05-02  Bruno Haible  <bruno@clisp.org>
12149         Fix regression from 2010-04-25.
12150         * gnulib-tool (func_modules_transitive_closure): Check the status of
12151         all modules, not only of the tests that are of the form foo-tests where
12152         foo is a module.
12154 2010-05-02  Bruno Haible  <bruno@clisp.org>
12156         wctob: Work around nasty Cygwin 1.7.2 bug.
12157         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
12158         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
12160 2010-05-01  Bruno Haible  <bruno@clisp.org>
12162         fpurge: Sharper test.
12163         * tests/test-fpurge.c (main): Add one more ftell check.
12164         * modules/fpurge-tests (Depends-on): Add ftell.
12165         Suggested by Eric Blake.
12167 2010-05-01  Bruno Haible  <bruno@clisp.org>
12169         ftello: Another test.
12170         * tests/test-ftello3.c: New file.
12171         * modules/ftello-tests (Files): Add it.
12172         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
12173         MOSTLYCLEANFILES.
12175         ftell: Another test.
12176         * tests/test-ftell3.c: New file.
12177         * modules/ftell-tests (Files): Add it.
12178         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
12179         MOSTLYCLEANFILES.
12181 2010-05-01  Bruno Haible  <bruno@clisp.org>
12183         ftell, ftello: Work around Solaris bug.
12184         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
12185         * lib/ftello.c: Include stdio-impl.h.
12186         (ftello): On Solaris, when _IOWRT is set, compute the result without
12187         looking at _IOREAD.
12188         * modules/ftello (Files): Add lib/stdio-impl.h.
12189         * doc/posix-functions/ftell.texi: Mention Solaris bug.
12190         * doc/posix-functions/ftello.texi: Likewise.
12191         Reported by Eric Blake.
12193 2010-05-01  Bruno Haible  <bruno@clisp.org>
12195         freading: Adapt to special meaning of _IOREAD flag on Solaris.
12196         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
12197         the _IOWRT flag is also set.
12199 2010-05-01  Bruno Haible  <bruno@clisp.org>
12201         Fix doc about a HP-UX stdio bug.
12202         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
12203         * doc/posix-functions/ftello.texi: Likewise.
12205 2010-05-01  Bruno Haible  <bruno@clisp.org>
12207         lseek test: Fix failure on Solaris.
12208         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
12209         output.
12211 2010-04-30  Jim Meyering  <meyering@redhat.com>
12213         bootstrap: don't ignore failure to generate po*/Makevars
12214         * build-aux/bootstrap (with_gettext): Don't ignore failure
12215         to create po/Makevars or runtime-po/Makevars.
12217 2010-04-29  Eric Blake  <eblake@redhat.com>
12219         headers: relax license to LGPLv2+
12220         * modules/fcntl-h (License): Relax license.
12221         * modules/getopt-posix (License): Likewise.
12222         * modules/locale (License): Likewise.
12223         * modules/math (License): Likewise.
12224         * modules/pty (License): Likewise.
12225         * modules/sched (License): Likewise.
12226         * modules/search (License): Likewise.
12227         * modules/spawn (License): Likewise.
12228         * modules/stdarg (License): Likewise.
12229         * modules/sysexits (License): Likewise.
12231 2010-04-29  Jim Meyering  <meyering@redhat.com>
12233         inttypes: relax license to LGPLv2+
12234         * modules/inttypes (License): Relax license.
12236 2010-04-29  Simon Josefsson  <simon@josefsson.org>
12238         * top/maint.mk (indent): Run twice to produce idempotent results.
12240 2010-04-28  Bruno Haible  <bruno@clisp.org>
12242         getdate: Generate getdate.c in the source directory.
12243         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
12244         MOSTLYCLEANFILES.
12245         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
12247 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
12249         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
12250         is not declared as a const *; avoid warnings in that case.
12252 2010-04-28  Eric Blake  <eblake@redhat.com>
12254         canonicalize-lgpl: avoid compiler warning
12255         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
12256         declaration' / 'extraneous semicolon' warning with some compilers.
12257         Reported by Andreas Gruenbacher.
12259 2010-04-28  Jim Meyering  <meyering@redhat.com>
12261         init.sh: ensure a more reliable exit status when exiting via trap
12262         * tests/init.sh (setup_): Don't rely on $? in signal handler.
12263         Inspired by patches from Dmitry V. Levin.
12264         Also trap on signal 3 (SIGQUIT).
12266 2010-04-27  Bruno Haible  <bruno@clisp.org>
12268         Update doc about utimes().
12269         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
12270         'utimens' module.
12271         Reported by Andreas Gruenbacher <agruen@suse.de>.
12273 2010-04-27  Eric Blake  <eblake@redhat.com>
12275         full-read, full-write: relax license
12276         * modules/full-read (License): Drop to LGPLv2+.
12277         * modules/full-write (License): Likewise.
12278         * modules/safe-read (License): Likewise.
12279         * modules/safe-write (License): Likewise.
12281         pthread: mention library for linking
12282         * modules/pthread (Link): Mention $(LIB_PTHREAD).
12284 2010-04-27  Jim Meyering  <meyering@redhat.com>
12286         maint.mk: fix a bug introduced in last change
12287         * top/maint.mk (gl_assured_headers_): Now that all names are on
12288         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
12289         is not anchored to end of word, it should be adequate.
12291         maint.mk: avoid side-effect in latest syntax-check
12292         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
12293         to run commands via $(shell...), and hence to incur cost only when
12294         the new rule is actually run.
12296         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
12297         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
12298         and use that to create a regexp used to detect all #if HAVE_..._H uses.
12299         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
12300         (gl_assured_headers_, az_, AZ_): Define.
12301         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
12303 2010-04-26  Jim Meyering  <jim@meyering.net>
12304             Bruno Haible  <bruno@clisp.org>
12306         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
12307         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
12308         Prompted by an exchange with Gilles Espinasse.
12310 2010-04-26  Jim Meyering  <meyering@redhat.com>
12312         git-version-gen: aesthetic tweak
12313         * build-aux/git-version-gen: Use "$nl" rather than a literal,
12314         so that the command remains on a single line.
12316 2010-04-26  Eric Blake  <eblake@redhat.com>
12318         git-version-gen: allow use on EBCDIC hosts
12319         * build-aux/git-version-gen (dirty): Use literal rather than tying
12320         ourselves to ascii.
12321         Reported by Steve Goetze.
12323 2010-04-25  Bruno Haible  <bruno@clisp.org>
12325         netdb: Add support for GNULIB_POSIXCHECK.
12326         * lib/netdb.in.h: Include warn-on-use.h.
12327         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
12328         functions are used when GNULIB_POSIXCHECK is defined and the
12329         getaddrinfo module is not in use.
12330         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
12331         freeaddrinfo, gai_strerror, getnameinfo are declared.
12332         * modules/netdb (Depends-on): Add warn-on-use.
12333         (Makefile.am): Include warn-on-use.h in netdb.h.
12335 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
12337         build: avoid "make check" failure without .git/ directory
12338         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
12339         there is no .git/ directory.
12341 2010-04-25  Bruno Haible  <bruno@clisp.org>
12343         ptsname: Fix misuse of ttyname_r.
12344         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
12345         of errno.
12347 2010-04-25  Bruno Haible  <bruno@clisp.org>
12349         ttyname_r: Make it work on Solaris 10.
12350         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
12351         if the system function has the POSIX declaration. Test whether the
12352         function fails if the buffer is less than 128 bytes large.
12353         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
12354         system's ttyname_r function. Provide a reasonably large buffer.
12355         * modules/ttyname_r (Depends-on): Add extensions.
12356         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
12358 2010-04-25  Bruno Haible  <bruno@clisp.org>
12360         Use the 'extensions' module for some more functions on Solaris.
12361         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
12362         module.
12363         * doc/posix-functions/ctime_r.texi: Likewise.
12364         * doc/posix-functions/getgrgid_r.texi: Likewise.
12365         * doc/posix-functions/getgrnam_r.texi: Likewise.
12366         * doc/posix-functions/getpwnam_r.texi: Likewise.
12367         * doc/posix-functions/getpwuid_r.texi: Likewise.
12368         * doc/posix-functions/readdir_r.texi: Likewise.
12369         * doc/posix-functions/sigwait.texi: Likewise.
12370         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
12371         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
12373 2010-04-25  Bruno Haible  <bruno@clisp.org>
12375         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
12376         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
12377         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
12378         * lib/ttyname_r.c: Include <limits.h>.
12379         (ttyname_r): Define using the system's ttyname_r function, if it exists
12380         and not on Solaris.
12381         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
12382         set.
12383         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
12384         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
12385         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
12386         Reported by Simon Josefsson.
12388 2010-04-25  Bruno Haible  <bruno@clisp.org>
12390         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
12391         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
12392         * doc/posix-functions/ctime_r.texi: Likewise.
12393         * doc/posix-functions/getgrgid_r.texi: Likewise.
12394         * doc/posix-functions/getgrnam_r.texi: Likewise.
12395         * doc/posix-functions/getlogin_r.texi: Likewise.
12396         * doc/posix-functions/getpwnam_r.texi: Likewise.
12397         * doc/posix-functions/getpwuid_r.texi: Likewise.
12398         * doc/posix-functions/readdir_r.texi: Likewise.
12399         * doc/posix-functions/sigwait.texi: Likewise.
12400         * doc/posix-functions/ttyname_r.texi: Likewise.
12401         Reported by Simon Josefsson.
12403 2010-04-25  Bruno Haible  <bruno@clisp.org>
12405         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
12406         * gnulib-tool (func_usage): Document that --with-*-tests options apply
12407         also to --create-testdir.
12408         (func_acceptable): Don't consider the status of *-tests modules here.
12409         (func_modules_transitive_closure): Consider it here, before including a
12410         test module.
12411         (func_import, func_create_testdir): Set inc_all_direct_tests,
12412         inc_all_indirect_tests.
12413         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
12414         --create-testdir and --create-megatestdir.
12416 2010-04-25  Bruno Haible  <bruno@clisp.org>
12418         gnulib-tool: Add --without-*-tests options.
12419         * gnulib-tool (func_usage): Document the --without-*-tests options.
12420         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
12421         excl_unportable_tests): New variables.
12422         Fail if they are specified with --import or --update.
12423         (func_acceptable): Respect the excl_*_tests variables.
12424         (func_import): Set the excl_*_tests variables to empty.
12426 2010-04-25  Simon Josefsson  <simon@josefsson.org>
12427             Bruno Haible  <bruno@clisp.org>
12429         Work around a MacOS X 10.4 bug with openpty.
12430         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
12431         * tests/test-openpty.c (main): Close the master side explicitly.
12433 2010-04-25  Bruno Haible  <bruno@clisp.org>
12435         strnlen: Fix a C++ test error on MacOS X and Solaris.
12436         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
12437         the function is not declared.
12438         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
12439         Simon Josefsson.
12441 2010-04-24  Bruno Haible  <bruno@clisp.org>
12443         Avoid a gcc warning.
12444         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
12445         of correct type for %08lx directive.
12446         Reported by Eric Blake.
12448 2010-04-24  Bruno Haible  <bruno@clisp.org>
12450         vasnprintf: Correct errno value in case of out-of-memory.
12451         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
12452         or sprintf. Use the errno value from SNPRINTF or sprintf.
12453         Reported by Ian Beckwith <ianb@erislabs.net>.
12455 2010-04-24  Bruno Haible  <bruno@clisp.org>
12457         ansi-c++-opt: Find correct compiler when cross-compiling.
12458         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
12459         AC_CHECK_PROGS.
12460         Reported by Simon Josefsson.
12462 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
12464         vc-list-files: Add support for subversion
12465         * build-aux/vc-list-files: Use "svn list" to generate the list of
12466         files controlled by subversion.
12468 2010-04-23  Jim Meyering  <meyering@redhat.com>
12470         vc-list-files tests: convert to use init.sh
12471         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
12472         path_prepend_.
12473         Use Exit, not exit.
12474         Use skip_ rather than open coding it.
12475         Remove trap set-up and compare definitions.
12476         * tests/test-vc-list-files-git.sh: Likewise.
12477         * modules/vc-list-files-tests (Files): Add tests/init.sh.
12479 2010-04-22  Simon Josefsson  <simon@josefsson.org>
12481         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
12482         backup files.
12484 2010-04-21  Simon Josefsson  <simon@josefsson.org>
12486         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
12488 2010-04-20  Eric Blake  <eblake@redhat.com>
12490         tests: be robust to ignored SIGPIPE
12491         * tests/test-select-in.sh: Consume all output.
12492         * tests/test-lseek.sh: Check correct exit status, while avoiding
12493         EPIPE.
12495 2010-04-20  Simon Josefsson  <simon@josefsson.org>
12496             Bruno Haible  <bruno@clisp.org>
12498         visibility: Don't use -fvisibility if it leads to a warning.
12499         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
12500         yes, don't pretend that visibility works if it leads to a warning.
12501         Reported by Mike Gran <spk121@yahoo.com>.
12503 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
12505         * build-aux/bootstrap: Use "git -h" for testing for supported options
12506         instead of "git --help".  The short-form option only shows a summary,
12507         and doesn't layout the full man page.  Grep for the full option name
12508         in the summary, too.
12510 2010-04-19  Bruno Haible  <bruno@clisp.org>
12512         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
12513         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
12514         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
12515         mention of RELOCATABLE_STRIP.
12516         Reported by Sylvain Beucler <beuc@beuc.net>.
12518 2010-04-19  Bruno Haible  <bruno@clisp.org>
12520         * lib/diffseq.h: Fix typo in comment.
12521         Reported by Eric Blake.
12523 2010-04-19  Bruno Haible  <bruno@clisp.org>
12525         ioctl: Move autoconf macro to a .m4 file.
12526         * m4/ioctl.m4: New file, extracted from modules/ioctl.
12527         * modules/ioctl (Files): Add it.
12528         (configure.ac): Simply invoke gl_FUNC_IOCTL.
12529         Reported by Ian Beckwith <ianb@erislabs.net>.
12531 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
12532             Bruno Haible  <bruno@clisp.org>
12534         diffseq: Accommodate use-case with abstract arrays.
12535         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
12536         is not defined.
12537         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
12538         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
12540 2010-04-18  Bruno Haible  <bruno@clisp.org>
12542         * doc/posix-headers/stdbool.texi: More precise wording.
12544 2010-04-17  Jim Meyering  <meyering@redhat.com>
12546         maint.mk: use gnu-style indentation in an embedded perl script
12547         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
12548         Rename variable: s/two/last_two_bytes/
12550 2010-04-16  Eric Blake  <eblake@redhat.com>
12552         test-stdbool: skip test that fails with Solaris CC
12553         * tests/test-stdbool.c (f): Skip test that causes compilation
12554         error under buggy C++ compiler.
12555         * lib/stdbool.in.h: Document the limitation.
12556         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
12558         setenv: allow compilation with C++
12559         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
12560         register keyword.
12562         stdint: allow test to pass with C++
12563         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
12565         getopt: allow compilation with C++
12566         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
12567         struct.
12568         * lib/getopt.c (_getopt_internal_r): Use correct type.
12569         Reported by Dagobert Michelson, via Joel E. Denny.
12571 2010-04-16  Bruno Haible  <bruno@clisp.org>
12573         Override netdb.h always.
12574         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
12575         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
12576         Reported by Ludovic Courtès <ludo@gnu.org>.
12578 2010-04-15  Bruno Haible  <bruno@clisp.org>
12580         openpty: Fix mistake from 2010-03-21.
12581         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
12582         Reported by Simon Josefsson.
12584 2010-04-15  Eric Blake  <eblake@redhat.com>
12586         test-forkpty: fix expected signature
12587         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
12588         Reported by Simon Josefsson.
12590 2010-04-15  Jim Meyering  <meyering@redhat.com>
12592         maint.mk: texinfo_suffix_re_: correct the default regexp
12593         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
12595         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
12596         make it configurable via texinfo_suffix_re_.
12598 2010-04-14  Eric Blake  <eblake@redhat.com>
12600         strtok_r: relax license to LGPLv2+
12601         * modules/strtok_r (License): Relax license.
12602         Reported by Matthias Bolte.
12604 2010-04-14  Simon Josefsson  <simon@josefsson.org>
12606         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
12607         version 1.4.4 by default instead of requiring the libgcrypt
12608         version used during build.  This makes it possible to use the
12609         application with older but still binary compatible libgcrypt
12610         versions.
12612 2010-04-13  Eric Blake  <eblake@redhat.com>
12614         getopt-gnu: match recent glibc fixes and posix ruling
12615         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
12616         '+' handling, when requesting extensions.
12617         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
12618         'W;' handling.
12619         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
12620         * doc/posix-functions/getopt.texi (getopt): Document this.
12621         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
12622         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
12623         Likewise.
12625         getopt: merge bug fixes from glibc
12626         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
12627         diagnostics.  Honor '+:' correctly.  Reject ';'.
12629         getopt-posix: detect MacOS bug
12630         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
12631         optind when missing a required argument.
12632         * doc/posix-functions/getopt.texi (getopt): Document the bug.
12633         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
12634         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
12635         Likewise.
12637         getopt-posix: avoid spurious failure on Solaris
12638         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
12639         an indicator that setting optind=1 is sufficient for reset.
12641         getopt-posix: avoid spurious failure on FreeBSD
12642         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
12643         in POSIX mode, since the m4 test uses it.
12645         gnulib-tool: silence warning on BSD sh
12646         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
12648 2010-04-13  Jim Meyering  <meyering@redhat.com>
12650         doc: users.txt: GNU patch now uses gnulib
12651         * users.txt: Add patch.
12653 2010-04-12  Jim Meyering  <meyering@redhat.com>
12655         maint.mk: generate more concise timing data for syntax-check rules
12656         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
12657         " done" from each line that reports a syntax-check test duration.
12659 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
12661         git-version-gen: use "git update-index..." rather than "git status"
12662         * build-aux/git-version-gen: Use git update-index --refresh, not
12663         "git status".  With some versions of git, "git status" would fail
12664         to update the index and result in an unwarranted "-dirty" suffix.
12666 2010-04-11  Jim Meyering  <meyering@redhat.com>
12668         openat: correct formatting (no semantic change)
12669         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
12670         Suggested by Bruno Haible.
12672 2010-04-11  Bruno Haible  <bruno@clisp.org>
12674         Stricter declaration checking in testdirs.
12675         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
12676         If for_tests is true, augment AM_CPPFLAGS to define
12677         GNULIB_STRICT_CHECKING.
12678         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
12679         GNULIB_STRICT_CHECKING is defined, verify that the function is
12680         declared.
12682 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
12683             Bruno Haible  <bruno@clisp.org>
12685         libunistring: Improve configure output.
12686         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
12687         Don't say "consider installing GNU libunistring" when checking again
12688         with libiconv.
12690 2010-04-11  Bruno Haible  <bruno@clisp.org>
12692         libunistring: Correct value of $LTLIBUNISTRING.
12693         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
12694         correct the value of $LTLIBUNISTRING.
12696 2010-04-11  Bruno Haible  <bruno@clisp.org>
12698         havelib: Add static libraries to LIBS in the right order.
12699         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
12700         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
12702 2010-04-11  Bruno Haible  <bruno@clisp.org>
12704         libunistring: Detect libunistring also when it depends on libiconv.
12705         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
12706         the second AC_LIB_HAVE_LINKFLAGS invocation.
12708 2010-04-11  James Youngman  <jay@gnu.org>
12710         close-stream: declare local scalars to be "const"
12711         * lib/close-stream.c (close_stream): Make boolean variables const
12712         to document the fact that we set but do not change them.
12714 2010-04-11  Bruno Haible  <bruno@clisp.org>
12716         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
12718 2010-04-11  Jim Meyering  <meyering@redhat.com>
12720         maint.mk: don't include dist-check.mk
12721         * top/maint.mk: Remove bogus include directive.
12723         maint.mk: improve empty-line-at-EOF check
12724         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
12725         solution, rather than tail+Perl-based one.  The latter would read
12726         a few kilobytes from the end of each file, and did not handle empty
12727         files properly.
12729         maint.mk: print the elapsed time for each syntax-check rule
12730         * top/maint.mk (sc_m_rules_): Save start time in a file.
12731         (sc_z_rules_): New rules: remove temp file and print elapsed time.
12732         (local-check): Interpose the .z rules
12734 2010-04-11  Jim Meyering  <meyering@redhat.com>
12736         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
12737         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
12738         empty file with one that ends in an empty line.
12740 2010-04-10  Bruno Haible  <bruno@clisp.org>
12742         mkdir: Make it work on mingw64.
12743         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
12744         * lib/mkdir.c: Update comment.
12745         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
12747 2010-04-10  Bruno Haible  <bruno@clisp.org>
12749         Don't override improved macro from newer autoconf.
12750         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
12751         autoconf >= 2.62.
12752         Reported by Joel E. Denny <jdenny@clemson.edu>.
12754 2010-04-10  Jim Meyering  <meyering@redhat.com>
12756         maint.mk: new syntax-check rule: prohibit empty lines at end of file
12757         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
12759         maint.mk: correct a diagnostic
12760         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
12761         in diagnostic; now use $prohibit.
12763 2010-04-10  Bruno Haible  <address@hidden>
12765         fchownat: Fix a C++ test error on Solaris 8.
12766         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
12767         the function does not exist.
12769 2010-04-10  Bruno Haible  <bruno@clisp.org>
12771         vasnprintf: Add more tests.
12772         * tests/test-vasnprintf-posix.c: Include <errno.h>.
12773         (test_function): Test converting an invalid wide string.
12775         vasnprintf: Correct handling of unconvertible wide string arguments.
12776         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
12777         VASNPRINTF.
12778         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
12779         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
12780         smaller than the expected maximum need for the directive. Set errno to
12781         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
12782         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
12783         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
12784         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
12785         * modules/vasnprintf (Files): Add m4/printf.m4.
12786         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
12788 2010-04-10  Bruno Haible  <bruno@clisp.org>
12790         vasnprintf: Fix crash in %ls directive.
12791         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
12792         string is passed as argument to %ls, with no precision and no width.
12793         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
12795 2010-04-10  Bruno Haible  <bruno@clisp.org>
12797         vasnprintf: Fix multiple test failures on mingw.
12798         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
12799         _snprintf, or snwprintf, not _snwprintf.
12801 2010-04-10  Bruno Haible  <bruno@clisp.org>
12803         write: Fix a C++ test error on mingw.
12804         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
12806 2010-04-10  Bruno Haible  <bruno@clisp.org>
12808         vasnprintf test: Reduce code duplication.
12809         * tests/test-vasnprintf.c (test_function): New function, extracted from
12810         test_vasnprintf.
12811         (test_vasnprintf, test_asnprintf): Invoke it.
12813 2010-04-10  Bruno Haible  <bruno@clisp.org>
12815         strnlen: Fix warning in C++ mode on MacOS X.
12816         * lib/string.in.h (strnlen): Use the modern idiom.
12817         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
12818         defining strnlen as a macro already in <config.h>.
12819         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
12820         REPLACE_STRNLEN.
12821         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
12822         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
12824 2010-04-08  James Youngman  <jay@gnu.org>
12826         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
12827         the example.
12829 2010-04-09  Jim Meyering  <meyering@redhat.com>
12831         maint.mk: print better diagnostic when there is no $(_hv_file)
12832         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
12833         announce that when $(_hv_file) (aka help-version) does not exist.
12835         init.sh: run tr in the "C" locale to avoid multibyte interpretation
12836         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
12837         not try to interpret its random input bytes.  Jarno Rajahalme reported
12838         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
12839         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
12840         (mktempd_): Likewise, just in case.
12842         ftruncate: add two years to projected module removal date: 2012
12843         * m4/ftruncate.m4: Adjust comments.
12845         ftruncate: mark module as obsolete; even MinGW provides it, now
12846         * modules/ftruncate (Status): Obsolete.
12847         (Notice): Say that.
12848         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
12849         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
12851 2010-04-08  Bruno Haible  <bruno@clisp.org>
12853         Fix side effects from tests-related modules.
12854         * modules/dprintf-posix (Comment): New section.
12855         * modules/fprintf-posix (Comment): Likewise.
12856         * modules/obstack-printf-posix (Comment): Likewise.
12857         * modules/printf-posix (Comment): Likewise.
12858         * modules/snprintf-posix (Comment): Likewise.
12859         * modules/sprintf-posix (Comment): Likewise.
12860         * modules/vasnprintf-posix (Comment): Likewise.
12861         * modules/vasprintf-posix (Comment): Likewise.
12862         * modules/vdprintf-posix (Comment): Likewise.
12863         * modules/vfprintf-posix (Comment): Likewise.
12864         * modules/vprintf-posix (Comment): Likewise.
12865         * modules/vsnprintf-posix (Comment): Likewise.
12866         * modules/vsprintf-posix (Comment): Likewise.
12867         * modules/xprintf-posix (Comment): Likewise.
12868         * modules/xvasprintf-posix (Comment): Likewise.
12869         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
12870         * modules/floorf-tests (Depends-on): Likewise.
12871         * modules/round-tests (Depends-on): Likewise.
12872         * modules/roundf-tests (Depends-on): Likewise.
12873         * modules/trunc-tests (Depends-on): Likewise.
12874         * modules/truncf-tests (Depends-on): Likewise.
12875         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
12876         'fprintf-posix' module is not present.
12877         * tests/test-floorf2.c (check): Likewise.
12878         * tests/test-trunc2.c (check): Likewise.
12879         * tests/test-truncf2.c (check): Likewise.
12880         * tests/test-round2.c (equal): Likewise.
12881         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
12883 2010-04-07  Karl Berry  <karl@gnu.org>
12885         * config/srclist.txt,
12886         * config/srclistvars.sh,
12887         * config/srclist-update: doc fixes.
12889 2010-04-07  Jim Meyering  <meyering@redhat.com>
12891         maint.mk: add a PATH crosschecking syntax-check rule
12892         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
12893         Useful if you use a test like the one in help-version (coreutils,
12894         diffutils, grep, gzip) that ensures $(VERSION) matches what is
12895         printed by prog --version.
12897 2010-04-06  Bruno Haible  <bruno@clisp.org>
12899         Fix link error on mingw.
12900         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
12901         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
12903 2010-04-06  Bruno Haible  <bruno@clisp.org>
12905         Assume rmdir exists.
12906         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
12908 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
12910         doc: update users.txt
12911         * users.txt: Add gcal.
12913 2010-04-06  Jim Meyering  <meyering@redhat.com>
12915         init.sh: simply unset TMPDIR rather than risking env -i
12916         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
12917         although it probably works fine on all Unix-based systems, some
12918         systems (Cygwin?) cannot tolerate a totally cleared environment.
12919         Suggestion from Eric Blake.
12921 2010-04-06  Jim Meyering  <meyering@redhat.com>
12923         init.sh: portability fix: use env's POSIX-specified -i option not -u
12924         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
12925         than unportable env -u.  Solaris 5.11's env lacks support for -u.
12927 2010-04-05  Bruno Haible  <bruno@clisp.org>
12929         btowc: Work around Cygwin 1.7.2 bug.
12930         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
12931         does not map NUL to 0.
12932         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
12934 2010-04-05  Bruno Haible  <bruno@clisp.org>
12936         Make the multithread modules work on Cygwin 1.7.2.
12937         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
12938         imported symbols can be declared weak, so that it returns "no" on
12939         Cygwin 1.7.2.
12941 2010-04-05  Bruno Haible  <bruno@clisp.org>
12943         Use the module 'strncat'.
12944         * modules/unistr/u8-strncat (Depends-on): Add strncat.
12946         Tests for module 'strncat'.
12947         * modules/strncat-tests: New file.
12948         * tests/test-strncat.c: New file.
12950         New module 'strncat'.
12951         * lib/string.in.h (strncat): New declaration.
12952         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
12953         * m4/strncat.m4: New file, based on m4/memchr.m4.
12954         * modules/strncat: New file.
12955         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
12956         is declared.
12957         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
12958         REPLACE_STRNCAT.
12959         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
12960         REPLACE_STRNCAT.
12961         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
12962         module.
12963         * tests/test-string-c++.cc: Check signature of strncat.
12965 2010-04-05  Jim Meyering  <meyering@redhat.com>
12967         xstrtoumax-tests: convert to use init.sh
12968         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
12969         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
12970         Use Exit, not exit.
12971         Remove uses of $EXEEXT and "./" to run a program in the current dir.
12973         xstrtoimax-tests: convert to use init.sh
12974         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
12975         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
12976         Use Exit, not exit.
12977         Remove uses of $EXEEXT and "./" to run a program in the current dir.
12979 2010-04-05  Bruno Haible  <bruno@clisp.org>
12981         sys_socket: Avoid #define replacements in C++ mode.
12982         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
12983         warning to the function if possible, rather than #defining the symbol
12984         to a dysfunctional alias.
12986 2010-04-05  Bruno Haible  <bruno@clisp.org>
12988         fseeko: Fix C++ test error on mingw.
12989         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
12990         gl_FUNC_FSEEKO.
12991         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
12992         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
12993         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
12994         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
12996 2010-04-05  Bruno Haible  <bruno@clisp.org>
12998         duplocale: Improve test output.
12999         * tests/test-duplocale.c (main): Print reason for skipped test.
13001 2010-04-05  Bruno Haible  <bruno@clisp.org>
13003         Assume rmdir exists.
13004         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
13005         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
13007 2010-04-05  Bruno Haible  <bruno@clisp.org>
13009         Fix link error on Solaris 8 with cc.
13010         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
13012 2010-04-05  Bruno Haible  <bruno@clisp.org>
13014         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
13015         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
13017 2010-04-05  Bruno Haible  <bruno@clisp.org>
13019         vasprintf: Update documentation.
13020         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
13022 2010-04-05  Bruno Haible  <bruno@clisp.org>
13024         ptsname: Improve test.
13025         * tests/test-ptsname.c (main): Also try the various master names of BSD
13026         systems.
13028 2010-04-05  Bruno Haible  <bruno@clisp.org>
13030         memchr: Avoid a possible C++ test error.
13031         * lib/string.in.h (memchr): Provide declaration if function is missing.
13032         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
13033         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
13034         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
13035         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
13037 2010-04-05  Bruno Haible  <bruno@clisp.org>
13039         strtok_r: Improve idiom.
13040         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
13041         AC_LIBOBJ is used.
13043 2010-04-05  Bruno Haible  <bruno@clisp.org>
13045         strdup: Improve idiom.
13046         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
13047         AC_LIBOBJ is used.
13048         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
13049         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
13050         when AC_LIBOBJ is used.
13052 2010-04-05  Bruno Haible  <bruno@clisp.org>
13054         mbsinit, mbrtowc, wcrtomb: Improve idioms.
13055         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
13056         don't set REPLACE_MBSINIT to 1.
13057         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
13058         don't set REPLACE_MBRTOWC to 1.
13059         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
13060         exist, don't set REPLACE_MBSRTOWCS to 1.
13061         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
13062         exist, don't set REPLACE_MBSNRTOWCS to 1.
13063         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
13064         don't set REPLACE_WCRTOMB to 1.
13065         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
13066         exist, don't set REPLACE_WCSRTOMBS to 1.
13067         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
13068         exist, don't set REPLACE_WCSNRTOMBS to 1.
13070 2010-04-05  Bruno Haible  <bruno@clisp.org>
13072         ldexpl: Improve idiom.
13073         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
13074         make sure to set HAVE_DECL_LDEXPL to 0.
13076 2010-04-05  Jim Meyering  <meyering@redhat.com>
13078         xstrtol-tests: convert to use init.sh
13079         * modules/xstrtol-tests (Files): Add tests/init.sh.
13080         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
13081         Use Exit, not exit.
13082         Remove uses of $EXEEXT and "./" to run a program in the current dir.
13084         atexit-tests: convert to use init.sh
13085         * modules/atexit-tests (Files): Add tests/init.sh.
13086         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
13087         Use Exit, not exit.
13088         Remove uses of $EXEEXT and "./" to run a program in the current dir.
13090         init.sh: fix typo
13091         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
13093         init.sh: make it easier for a test script to write to the tty, ...
13094         when using automake's parallel-tests mode.
13095         * tests/init.sh (stderr_fileno_): Define overridable variable.
13096         (warn_): New function, to use it.
13097         (fail_, skip_, framework_failure_): Use warn_.
13099 2010-04-04  Bruno Haible  <bruno@clisp.org>
13101         btowc: Avoid warning.
13102         * lib/btowc.c: Include <stdlib.h>.
13103         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
13105 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
13106             Bruno Haible  <bruno@clisp.org>
13108         wchar: Port to NetBSD 1.5.
13109         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
13110         * lib/wctype.in.h (WEOF): Likewise.
13112 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
13113             Bruno Haible  <bruno@clisp.org>
13115         Port extended stdio to NetBSD 1.5.
13116         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
13117         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
13118         older.
13120 2010-04-04  Bruno Haible  <bruno@clisp.org>
13122         string: Remove unused substitution.
13123         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
13124         HAVE_DECL_STRERROR.
13125         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
13127 2010-04-04  Bruno Haible  <bruno@clisp.org>
13129         strtod: Avoid a possible C++ test error.
13130         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
13131         set REPLACE_STRTOD.
13133 2010-04-04  Bruno Haible  <bruno@clisp.org>
13135         strerror: Update documentation.
13136         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
13138 2010-04-04  Bruno Haible  <bruno@clisp.org>
13140         stdio: Fix some C++ test errors on Solaris 8 with GCC.
13141         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
13142         _GL_CXXALIAS_SYS_CAST.
13144 2010-04-04  Bruno Haible  <bruno@clisp.org>
13146         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
13147         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
13148         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
13149         REPLACE_FREXPL to 1.
13150         * doc/posix-functions/frexpl.texi: Update documentation.
13152 2010-04-04  Bruno Haible  <bruno@clisp.org>
13154         math: Fix some C++ test errors on Solaris 8 and Cygwin.
13155         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
13157 2010-04-04  Bruno Haible  <bruno@clisp.org>
13159         Implement nanosleep for native Windows.
13160         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
13162 2010-04-04  Bruno Haible  <bruno@clisp.org>
13164         math: Fix some C++ test errors on Solaris 8.
13165         * lib/math.in.h (truncf, trunc): Use simpler idiom.
13167 2010-04-04  Bruno Haible  <bruno@clisp.org>
13169         math: Fix some C++ test errors on Cygwin.
13170         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
13171         truncl): Provide declaration if the system does not have it.
13172         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
13173         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
13174         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
13175         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
13176         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
13177         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
13178         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
13179         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
13180         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
13181         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
13182         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
13183         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
13184         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
13185         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
13186         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
13187         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
13188         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
13189         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
13190         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
13191         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
13192         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
13193         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
13195 2010-04-04  Bruno Haible  <bruno@clisp.org>
13197         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
13198         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
13199         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
13200         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
13201         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
13202         * m4/isinf.m4 (gl_ISINF): Likewise.
13203         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
13205 2010-04-04  Bruno Haible  <bruno@clisp.org>
13207         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
13208         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
13210 2010-04-04  Bruno Haible  <bruno@clisp.org>
13212         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
13213         * modules/tmpfile (configure.ac): Update.
13215         tmpfile: Fix C++ test error on mingw.
13216         * lib/stdio.in.h (tmpfile): New declaration.
13217         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
13218         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
13219         * modules/tmpfile (Depends-on): Add stdio.
13220         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
13221         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
13222         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
13223         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
13224         REPLACE_TMPFILE.
13225         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
13227 2010-04-04  Bruno Haible  <bruno@clisp.org>
13229         ioctl: Fix C++ test error on mingw.
13230         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
13231         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
13232         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
13234 2010-04-03  Bruno Haible  <bruno@clisp.org>
13236         wcwidth: Fix C++ test error on mingw.
13237         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
13238         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
13239         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
13241 2010-04-03  Bruno Haible  <bruno@clisp.org>
13243         nanosleep: Fix C++ test error on mingw.
13244         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
13245         * lib/time.in.h (nanosleep): Use modern idiom.
13246         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
13247         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
13248         REPLACE_NANOSLEEP to 1.
13249         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
13250         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
13252 2010-04-03  Bruno Haible  <bruno@clisp.org>
13254         strptime: Fix C++ test error on mingw.
13255         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
13256         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
13257         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
13258         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
13259         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
13260         not REPLACE_STRPTIME.
13261         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
13262         REPLACE_STRPTIME.
13264 2010-04-03  Bruno Haible  <bruno@clisp.org>
13266         timegm: Fix C++ test error on mingw.
13267         * lib/time.in.h (timegm): Use modern idiom.
13268         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
13269         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
13270         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
13271         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
13273 2010-04-03  Bruno Haible  <bruno@clisp.org>
13275         timegm: Assume declaration if function exists.
13276         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
13277         if it exists. Don't clobber ac_cv_func_timegm.
13279 2010-04-03  Bruno Haible  <bruno@clisp.org>
13281         time_r: Fix C++ test error on mingw.
13282         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
13283         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
13284         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
13285         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
13286         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
13288 2010-04-03  Bruno Haible  <bruno@clisp.org>
13290         time_r: Minor updates.
13291         * modules/time_r (Description): Mention the provided functions.
13292         * lib/time_r.c: Don't include <string.h>.
13293         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
13294         * doc/posix-functions/localtime_r.texi: Likewise.
13296 2010-04-03  Bruno Haible  <bruno@clisp.org>
13298         time: Fix regression introduced on 2010-03-08.
13299         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
13300         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
13302 2010-04-03  Jim Meyering  <meyering@redhat.com>
13304         maint.mk: don't silently disable project-specific syntax-check rules
13305         * top/maint.mk (_prohibit_regexp): Define, to help people realize
13306         that they need to convert their project-specific syntax-check rules
13307         to use the new _sc_search_regexp.
13309 2010-04-03  Bruno Haible  <bruno@clisp.org>
13311         fchdir: Fix regression introduced on 2010-03-08.
13312         * lib/unistd.in.h (fchdir): Fix declaration.
13313         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
13314         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
13315         REPLACE_FCHDIR.
13316         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
13317         REPLACE_FCHDIR.
13319 2010-04-03  Bruno Haible  <bruno@clisp.org>
13321         getpagesize: Fix C++ test error on mingw.
13322         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
13323         system does not declare the function.
13324         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
13325         declared.
13326         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
13327         HAVE_DECL_GETPAGESIZE.
13328         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
13330 2010-04-03  Bruno Haible  <bruno@clisp.org>
13332         stdio: Make C++ tests work on mingw.
13333         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
13334         does not declare the function.
13336 2010-04-03  Bruno Haible  <bruno@clisp.org>
13338         ftello: Fix C++ test error on mingw.
13339         * lib/stdio.in.h (ftello): Use modern idiom.
13340         * lib/ftello.c (ftello): Renamed from rpl_ftello.
13341         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
13342         is missing and that it needs to be replaced.
13343         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
13344         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
13345         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
13347 2010-04-03  Bruno Haible  <bruno@clisp.org>
13349         fseeko: Fix C++ test error on mingw.
13350         * lib/stdio.in.h (fseeko): Use modern idiom.
13351         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
13352         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
13353         is missing and that it needs to be replaced.
13354         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
13355         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
13356         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
13358 2010-04-03  Bruno Haible  <bruno@clisp.org>
13360         mkstemp: Fix C++ test error on mingw.
13361         * lib/stdlib.in.h (mkstemp): Use modern idiom.
13362         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
13363         function is missing and that it needs to be replaced.
13364         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
13365         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
13367 2010-04-03  Bruno Haible  <bruno@clisp.org>
13369         stpncpy: Fix C++ test error on mingw.
13370         * lib/string.in.h (stpncpy): Use modern idiom.
13371         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
13372         function is missing and that it needs to be replaced.
13373         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
13374         REPLACE_STPNCPY.
13375         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
13377 2010-04-03  Bruno Haible  <bruno@clisp.org>
13379         sys_stat: Fix C++ test error on mingw.
13380         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
13381         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
13383 2010-04-03  Bruno Haible  <bruno@clisp.org>
13385         pty: Update doc.
13386         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
13388 2010-04-03  Bruno Haible  <bruno@clisp.org>
13390         unistd: Fix C++ test error on mingw.
13391         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
13393 2010-04-03  Bruno Haible  <bruno@clisp.org>
13395         Update doc regarding mingw.
13396         * doc/glibc-functions/openpty.texi: Update regarding mingw.
13397         * doc/glibc-functions/login_tty.texi: Likewise.
13398         * doc/glibc-functions/forkpty.texi: Likewise.
13400 2010-04-03  Bruno Haible  <bruno@clisp.org>
13402         stdlib: Avoid compilation failure of c-strtold on mingw.
13403         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
13405 2010-04-03  Bruno Haible  <bruno@clisp.org>
13407         locale: Make C++ tests work on Cygwin and mingw.
13408         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
13409         cannot provide the function.
13410         Reported by Simon Josefsson.
13412 2010-04-03  Bruno Haible  <bruno@clisp.org>
13414         localename: Port to MacOS X 10.6.
13415         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
13416         memory layout of the locales in MacOS X 10.6 as well.
13417         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
13419 2010-04-02  Bruno Haible  <bruno@clisp.org>
13421         gnulib-tool: Ensure that long-running tests are executed last.
13422         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
13423         running tests after the one for the other tests.
13425 2010-04-02  Bruno Haible  <bruno@clisp.org>
13427         gnulib-tool: Ensure the tests in the main directory are executed first.
13428         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
13429         start with the current directory.
13431 2010-04-02  Bruno Haible  <bruno@clisp.org>
13433         Tests for module 'havelib', moved here from GNU gettext.
13434         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
13435         modifications.
13436         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
13437         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
13438         with modifications.
13439         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
13440         modifications.
13441         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
13442         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
13443         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
13444         with modifications.
13445         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
13446         with modifications.
13447         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
13448         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
13449         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
13450         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
13451         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
13452         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
13453         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
13454         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
13455         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
13456         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
13457         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
13458         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
13459         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
13460         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
13461         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
13462         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
13463         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
13464         with modifications.
13465         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
13466         with modifications.
13467         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
13468         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
13469         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
13470         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
13471         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
13472         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
13473         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
13474         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
13475         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
13476         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
13477         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
13478         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
13479         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
13480         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
13481         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
13482         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
13483         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
13484         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
13485         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
13486         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
13487         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
13488         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
13489         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
13490         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
13491         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
13492         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
13493         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
13494         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
13495         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
13496         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
13497         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
13498         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
13499         * tests/havelib/rpathx/rpathx.c: New file, from
13500         gettext/autoconf-lib-link.
13501         * tests/havelib/rpathx/Makefile.am: New file, from
13502         gettext/autoconf-lib-link.
13503         * tests/havelib/rpathx/configure.ac: New file, from
13504         gettext/autoconf-lib-link with modifications.
13505         * tests/havelib/rpathy/rpathy.c: New file, from
13506         gettext/autoconf-lib-link.
13507         * tests/havelib/rpathy/Makefile.am: New file, from
13508         gettext/autoconf-lib-link.
13509         * tests/havelib/rpathy/configure.ac: New file, from
13510         gettext/autoconf-lib-link with modifications.
13511         * tests/havelib/rpathz/rpathz.c: New file, from
13512         gettext/autoconf-lib-link.
13513         * tests/havelib/rpathz/Makefile.am: New file, from
13514         gettext/autoconf-lib-link.
13515         * tests/havelib/rpathz/configure.ac: New file, from
13516         gettext/autoconf-lib-link with modifications.
13517         * tests/havelib/rpathlx/usex.c: New file, from
13518         gettext/autoconf-lib-link.
13519         * tests/havelib/rpathlx/Makefile.am: New file, from
13520         gettext/autoconf-lib-link.
13521         * tests/havelib/rpathlx/configure.ac: New file, from
13522         gettext/autoconf-lib-link with modifications.
13523         * tests/havelib/rpathly/usey.c: New file, from
13524         gettext/autoconf-lib-link.
13525         * tests/havelib/rpathly/Makefile.am: New file, from
13526         gettext/autoconf-lib-link.
13527         * tests/havelib/rpathly/configure.ac: New file, from
13528         gettext/autoconf-lib-link with modifications.
13529         * tests/havelib/rpathlz/usez.c: New file, from
13530         gettext/autoconf-lib-link.
13531         * tests/havelib/rpathlz/Makefile.am: New file, from
13532         gettext/autoconf-lib-link.
13533         * tests/havelib/rpathlz/configure.ac: New file, from
13534         gettext/autoconf-lib-link with modifications.
13535         * tests/havelib/rpathlyx/usey.c: New file, from
13536         gettext/autoconf-lib-link.
13537         * tests/havelib/rpathlyx/Makefile.am: New file, from
13538         gettext/autoconf-lib-link.
13539         * tests/havelib/rpathlyx/configure.ac: New file, from
13540         gettext/autoconf-lib-link with modifications.
13541         * tests/havelib/rpathlzyx/usez.c: New file, from
13542         gettext/autoconf-lib-link.
13543         * tests/havelib/rpathlzyx/Makefile.am: New file, from
13544         gettext/autoconf-lib-link.
13545         * tests/havelib/rpathlzyx/configure.ac: New file, from
13546         gettext/autoconf-lib-link with modifications.
13547         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
13548         with modifications.
13550 2010-04-02  Bruno Haible  <bruno@clisp.org>
13552         gnulib-tool: Create distributed built sources also for the tests.
13553         * gnulib-tool (func_create_testdir): Also generate distributed built
13554         sources in the tests directory.
13556 2010-04-02  Bruno Haible  <bruno@clisp.org>
13558         gnulib-tool: Obey user's environment variables.
13559         * gnulib-tool (func_create_testdir): When creating built sources,
13560         respect the environment variables for autoconf, automake, etc. given by
13561         the user.
13563 2010-04-02  Bruno Haible  <bruno@clisp.org>
13565         gnulib-tool: Provide the value of --m4-base to modules.
13566         * gnulib-tool (func_import, func_create_testdir): Emit a definition
13567         of gl_m4_base.
13569 2010-04-02  Eric Blake  <eblake@redhat.com>
13571         maint.mk: fix some fallout
13572         * NEWS: Document the incompatible change, and its effect on cfg.mk.
13573         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
13575 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
13577         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
13578         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
13579         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
13580         (sc_cast_of_x_alloc_return_value): Likewise.
13581         (sc_cast_of_alloca_return_value): Likewise.
13582         (sc_space_tab): Likewise.
13583         (sc_prohibit_atoi_atof): Likewise.
13584         (sc_prohibit_magic_number_exit): Likewise.
13585         (sc_error_exit_success): Likewise.
13586         (sc_file_system): Likewise.
13587         (sc_prohibit_have_config_h): Likewise.
13588         (sc_require_config_h): Likewise.
13589         (sc_prohibit_HAVE_MBRTOWC): Likewise.
13590         (sc_obsolete_symbols): Likewise.
13591         (sc_changelog): Likewise.
13592         (sc_program_name): Likewise.
13593         (sc_the_the): Likewise.
13594         (sc_trailing_blank): Likewise.
13595         (sc_two_space_separator_in_usage): Likewise.
13596         (sc_useless_cpp_parens): Likewise.
13597         (sc_GPL_version): Likewise.
13598         (sc_GFDL_version): Likewise.
13599         (sc_texinfo_acronym): Likewise.
13600         (sc_prohibit_cvs_keyword): Likewise.
13601         (sc_prohibit_stat_st_blocks): Likewise.
13602         (sc_prohibit_S_IS_definition): Likewise.
13603         (sc_redundant_const): Likewise.
13604         (sc_makefile_TAB_only_indentation): Likewise.
13605         (sc_m4_quote_check): Likewise.
13606         (sc_makefile_path_separator_check): Likewise.
13607         (sc_copyright_check): Likewise.
13608         (sc_Wundef_boolean): Likewise.
13609         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
13611         maint.mk: match 0 or more whitespace-before-function-call '('
13612         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
13613         that have zero or two-and-more spaces between the function name
13614         and the open parenthesis.
13615         (sc_error_message_warn_fatal): Likewise.
13616         (sc_error_message_uppercase): Likewise.
13617         (sc_error_message_period): Likewise.
13619 2010-03-31  Eric Blake  <eblake@redhat.com>
13621         maint.mk: check for [ as well as test
13622         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
13623         Based on a libvirt report by Matthias Bolte.
13625         gnumakefile: don't squelch _version output
13626         * top/GNUmakefile (_version): Create one-shot dependency rather
13627         than using $(shell) when version must be regenerated.
13628         (_autoreconf): Run verbosely, by default.
13630         sys_time: avoid compiler warnings
13631         * lib/sys_time.in.h (includes): Ensure gcc pragma is
13632         unconditional, fixing regression from 2010-03-29.
13633         Reported by Simon Josefsson.
13635 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
13637         maint.mk: s/_header_without_use/_sc_header_without_use/
13638         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
13639         (sc_prohibit_assert_without_use): Use the new name.
13640         (sc_prohibit_close_stream_without_use): Likewise.
13641         (sc_prohibit_getopt_without_use): Likewise.
13642         (sc_prohibit_quotearg_without_use): Likewise.
13643         (sc_prohibit_quote_without_use): Likewise.
13644         (sc_prohibit_long_options_without_use): Likewise.
13645         (sc_prohibit_inttostr_without_use): Likewise.
13646         (sc_prohibit_ignore_value_without_use): Likewise.
13647         (sc_prohibit_error_without_use): Likewise.
13648         (sc_prohibit_xalloc_without_use): Likewise.
13649         (sc_prohibit_hash_without_use): Likewise.
13650         (sc_prohibit_hash_pjw_without_use): Likewise.
13651         (sc_prohibit_safe_read_without_use): Likewise.
13652         (sc_prohibit_argmatch_without_use): Likewise.
13653         (sc_prohibit_canonicalize_without_use): Likewise.
13654         (sc_prohibit_root_dev_ino_without_use): Likewise.
13655         (sc_prohibit_openat_without_use): Likewise.
13656         (sc_prohibit_c_ctype_without_use): Likewise.
13657         (sc_prohibit_signal_without_use): Likewise.
13658         (sc_prohibit_intprops_without_use): Likewise.
13660 2010-03-30  Eric Blake  <eblake@redhat.com>
13662         maint: improve module indicators
13663         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
13664         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
13665         columns, and avoid extra macro expansion.
13667         fdopendir: work around FreeBSD bug
13668         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
13669         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
13670         * modules/dirent (Makefile.am): Substitute it.
13671         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
13672         declaration.
13673         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
13674         fix.
13675         Reported by Christian Weisgerber <naddy@mips.inka.de>.
13677 2010-03-29  Bruno Haible  <bruno@clisp.org>
13679         Emit #pragma system_header after the inclusion guard, not before.
13680         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
13681         guard that spans the entire file, not before. This enables an
13682         optimization in GCC's preprocessor.
13683         * lib/ctype.in.h: Likewise.
13684         * lib/dirent.in.h: Likewise.
13685         * lib/errno.in.h: Likewise.
13686         * lib/float.in.h: Likewise.
13687         * lib/getopt.in.h: Likewise.
13688         * lib/iconv.in.h: Likewise.
13689         * lib/langinfo.in.h: Likewise.
13690         * lib/locale.in.h: Likewise.
13691         * lib/math.in.h: Likewise.
13692         * lib/netdb.in.h: Likewise.
13693         * lib/netinet_in.in.h: Likewise.
13694         * lib/pty.in.h: Likewise.
13695         * lib/sched.in.h: Likewise.
13696         * lib/se-selinux.in.h: Likewise.
13697         * lib/search.in.h: Likewise.
13698         * lib/spawn.in.h: Likewise.
13699         * lib/stdarg.in.h: Likewise.
13700         * lib/stdint.in.h: Likewise.
13701         * lib/string.in.h: Likewise.
13702         * lib/strings.in.h: Likewise.
13703         * lib/sys_file.in.h: Likewise.
13704         * lib/sys_ioctl.in.h: Likewise.
13705         * lib/sys_time.in.h: Likewise.
13706         * lib/sys_times.in.h: Likewise.
13707         * lib/sys_utsname.in.h: Likewise.
13708         * lib/sys_wait.in.h: Likewise.
13709         * lib/sysexits.in.h: Likewise.
13710         * lib/wctype.in.h: Likewise.
13712 2010-03-28  James Youngman  <jay@gnu.org>
13714         save-cwd: don't leak a file descriptor when the caller execs.
13715         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
13716         saved file descriptor.
13717         * modules/save-cwd (Depends-on): Depend on cloexec.
13719 2010-03-29  Bruno Haible  <bruno@clisp.org>
13721         Remove vestiges of fts-lgpl module.
13722         * lib/fts_.h: Assume GNULIB_FTS is 1.
13723         * lib/fts.c: Likewise.
13724         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
13726 2010-03-28  Bruno Haible  <bruno@clisp.org>
13728         Fix definition of tests witness macro.
13729         * gnulib-tool (func_import): Fix definition of witness macro.
13731 2010-03-28  Bruno Haible  <bruno@clisp.org>
13733         Fix ioctl's protoype on glibc systems.
13734         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
13735         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
13736         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
13737         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
13738         signature. If not, arrange to replace the ioctl function.
13739         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
13740         REPLACE_IOCTL.
13741         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
13742         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
13743         Reported by Ludovic Courtès <ludo@gnu.org>.
13745 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
13747         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
13748         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
13749         made it so grep -r --include=GLOB* ... did not work.
13751 2010-03-26  Jim Meyering  <meyering@redhat.com>
13752             Eric Blake  <eblake@redhat.com>
13754         maint.mk: prohibit use of test's -o and -a operators
13755         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
13757 2010-03-28  Bruno Haible  <bruno@clisp.org>
13759         Remove unused GNULIB_XYZ macro definitions.
13760         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
13761         invocation.
13763 2010-03-28  Bruno Haible  <bruno@clisp.org>
13765         Mark privileged tests modules.
13766         * modules/idpriv-drop-tests (Status): New section.
13767         * modules/idpriv-droptemp-tests (Status): New section.
13769 2010-03-28  Bruno Haible  <bruno@clisp.org>
13771         Split C++ tests into separate tests modules.
13772         * modules/dirent-c++-tests: New file, extracted from
13773         modules/dirent-tests.
13774         * modules/dirent-tests: Depend on it.
13775         * modules/fcntl-h-c++-tests: New file, extracted from
13776         modules/fcntl-h-tests.
13777         * modules/fcntl-h-tests: Depend on it.
13778         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
13779         * modules/glob-tests: Depend on it.
13780         * modules/iconv-h-c++-tests: New file, extracted from
13781         modules/iconv-h-tests.
13782         * modules/iconv-h-tests: Depend on it.
13783         * modules/langinfo-c++-tests: New file, extracted from
13784         modules/langinfo-tests.
13785         * modules/langinfo-tests: Depend on it.
13786         * modules/locale-c++-tests: New file, extracted from
13787         modules/locale-tests.
13788         * modules/locale-tests: Depend on it.
13789         * modules/math-c++-tests: New file, extracted from modules/math-tests.
13790         * modules/math-tests: Depend on it.
13791         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
13792         * modules/pty-tests: Depend on it.
13793         * modules/search-c++-tests: New file, extracted from
13794         modules/search-tests.
13795         * modules/search-tests: Depend on it.
13796         * modules/signal-c++-tests: New file, extracted from
13797         modules/signal-tests.
13798         * modules/signal-tests: Depend on it.
13799         * modules/spawn-c++-tests: New file, extracted from
13800         modules/spawn-tests.
13801         * modules/spawn-tests: Depend on it.
13802         * modules/stdio-c++-tests: New file, extracted from
13803         modules/stdio-tests.
13804         * modules/stdio-tests: Depend on it.
13805         * modules/stdlib-c++-tests: New file, extracted from
13806         modules/stdlib-tests.
13807         * modules/stdlib-tests: Depend on it.
13808         * modules/string-c++-tests: New file, extracted from
13809         modules/string-tests.
13810         * modules/string-tests: Depend on it.
13811         * modules/sys_ioctl-c++-tests: New file, extracted from
13812         modules/sys_ioctl-tests.
13813         * modules/sys_ioctl-tests: Depend on it.
13814         * modules/sys_select-c++-tests: New file, extracted from
13815         modules/sys_select-tests.
13816         * modules/sys_select-tests: Depend on it.
13817         * modules/sys_socket-c++-tests: New file, extracted from
13818         modules/sys_socket-tests.
13819         * modules/sys_socket-tests: Depend on it.
13820         * modules/sys_stat-c++-tests: New file, extracted from
13821         modules/sys_stat-tests.
13822         * modules/sys_stat-tests: Depend on it.
13823         * modules/sys_time-c++-tests: New file, extracted from
13824         modules/sys_time-tests.
13825         * modules/sys_time-tests: Depend on it.
13826         * modules/time-c++-tests: New file, extracted from modules/time-tests.
13827         * modules/time-tests: Depend on it.
13828         * modules/unistd-c++-tests: New file, extracted from
13829         modules/unistd-tests.
13830         * modules/unistd-tests: Depend on it.
13831         * modules/wchar-c++-tests: New file, extracted from
13832         modules/wchar-tests.
13833         * modules/wchar-tests: Depend on it.
13834         * modules/wctype-c++-tests: New file, extracted from
13835         modules/wctype-tests.
13836         * modules/wctype-tests: Depend on it.
13837         Reported by Simon Josefsson.
13839 2010-03-28  Bruno Haible  <bruno@clisp.org>
13841         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
13842         * gnulib-tool (func_exists_module): New function, extracted from
13843         func_verify_module.
13844         (func_verify_module): Use it.
13845         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
13846         'foo' only if 'foo' exists.
13847         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
13848         module.
13850 2010-03-28  Bruno Haible  <bruno@clisp.org>
13852         gnulib-tool: Add support for special categories of tests.
13853         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
13854         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
13855         (func_usage): Document them.
13856         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
13857         inc_unportable_tests, inc_all_tests): New variables.
13858         (func_acceptable): Consider these variables.
13859         (func_modules_transitive_closure): Make it work when the 'Status' field
13860         consists of multiple words.
13861         (func_import): Store and restore the values of inc_cxx_tests,
13862         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
13863         inc_all_tests in gnulib-comp.m4.
13864         (func_create_testdir): Set inc_all_tests to true.
13865         * doc/gnulib.texi (Extra tests modules): New section.
13866         Suggested by Jim Meyering.
13868 2010-03-28  Bruno Haible  <bruno@clisp.org>
13870         ansi-c++-opt: Allow turning off the C++ build by default.
13871         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
13872         gl_CXX_CHOICE_DEFAULT_NO is defined.
13873         Requested by Eric Blake.
13875 2010-03-28  Bruno Haible  <bruno@clisp.org>
13877         unistd: Avoid #define replacements in C++ mode.
13878         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
13879         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
13880         setsockopt, shutdown, select): In C++, attach a warning to the function
13881         if possible, rather than #defining the symbol to a dysfunctional alias.
13882         Reported by John W. Eaton <jwe@gnu.org>.
13884 2010-03-28  Bruno Haible  <bruno@clisp.org>
13886         Fix link errors on mingw.
13887         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
13888         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
13889         $(LIBSOCKET).
13890         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
13891         $(LIBSOCKET).
13893 2010-03-28  Bruno Haible  <bruno@clisp.org>
13894             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13896         lib-ignore: Determine different options for different compilers.
13897         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
13898         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
13899         Add comments.
13900         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
13901         * NEWS: Mention the change.
13903 2010-03-27  Bruno Haible  <bruno@clisp.org>
13905         Remove unused GNULIB_XYZ macro definitions.
13906         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
13907         * modules/fseek (configure.ac): Likewise.
13908         * modules/ioctl (configure.ac): Likewise.
13909         * modules/open (configure.ac): Likewise.
13910         * modules/stdlib-safer (configure.ac): Likewise.
13912 2010-03-27  Bruno Haible  <bruno@clisp.org>
13914         Add a remark about certain modules.
13915         * modules/malloc (Comment): New section.
13916         * modules/realloc (Comment): Likewise.
13917         * modules/sigpipe (Comment): Likewise.
13919 2010-03-27  Bruno Haible  <bruno@clisp.org>
13921         Resolve conflict between the two kinds of module indicators.
13922         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
13923         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
13924         * modules/canonicalize (configure.ac): Invoke
13925         gl_MODULE_INDICATOR_FOR_TESTS.
13926         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
13927         GNULIB_XYZ.
13928         * tests/test-dirent-c++.cc: Likewise.
13929         * tests/test-dirent-safer.c: Likewise.
13930         * tests/test-dup2.c: Likewise.
13931         * tests/test-fchdir.c: Likewise.
13932         * tests/test-fcntl-h-c++.cc: Likewise.
13933         * tests/test-getopt.c: Likewise.
13934         * tests/test-getopt.h: Likewise.
13935         * tests/test-langinfo-c++.cc: Likewise.
13936         * tests/test-locale-c++.cc: Likewise.
13937         * tests/test-math-c++.cc: Likewise.
13938         * tests/test-pty-c++.cc: Likewise.
13939         * tests/test-search-c++.cc: Likewise.
13940         * tests/test-signal-c++.cc: Likewise.
13941         * tests/test-spawn-c++.cc: Likewise.
13942         * tests/test-stdio-c++.cc: Likewise.
13943         * tests/test-stdlib-c++.cc: Likewise.
13944         * tests/test-string-c++.cc: Likewise.
13945         * tests/test-sys_ioctl-c++.cc: Likewise.
13946         * tests/test-sys_select-c++.cc: Likewise.
13947         * tests/test-sys_socket-c++.cc: Likewise.
13948         * tests/test-sys_stat-c++.cc: Likewise.
13949         * tests/test-sys_time-c++.cc: Likewise.
13950         * tests/test-time-c++.cc: Likewise.
13951         * tests/test-unistd-c++.cc: Likewise.
13952         * tests/test-wchar-c++.cc: Likewise.
13953         * tests/uninorm/test-u8-nfc.c: Likewise.
13954         * tests/uninorm/test-u8-nfd.c: Likewise.
13955         * tests/uninorm/test-u8-nfkc.c: Likewise.
13956         * tests/uninorm/test-u8-nfkd.c: Likewise.
13957         * tests/uninorm/test-u16-nfc.c: Likewise.
13958         * tests/uninorm/test-u16-nfd.c: Likewise.
13959         * tests/uninorm/test-u16-nfkc.c: Likewise.
13960         * tests/uninorm/test-u16-nfkd.c: Likewise.
13961         * tests/uninorm/test-u32-nfc.c: Likewise.
13962         * tests/uninorm/test-u32-nfc-big.c: Likewise.
13963         * tests/uninorm/test-u32-nfd.c: Likewise.
13964         * tests/uninorm/test-u32-nfd-big.c: Likewise.
13965         * tests/uninorm/test-u32-nfkc.c: Likewise.
13966         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
13967         * tests/uninorm/test-u32-nfkd.c: Likewise.
13968         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
13969         * tests/uninorm/test-u32-normalize-big.c: Likewise.
13971 2010-03-27  Bruno Haible  <bruno@clisp.org>
13973         Distinguish two kinds of module indicators.
13974         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
13975         gl_MODULE_INDICATOR.
13976         (gl_MODULE_INDICATOR): New macro.
13977         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
13978         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
13979         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
13980         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
13981         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
13982         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
13983         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
13984         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
13985         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
13986         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
13987         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
13988         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
13989         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
13990         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
13991         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
13992         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
13993         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
13994         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
13995         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
13996         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
13997         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
13998         * modules/cloexec (configure.ac): Likewise.
13999         * modules/getopt-gnu (configure.ac): Likewise.
14000         * modules/uninorm/u8-normalize (configure.ac): Likewise.
14001         * modules/uninorm/u16-normalize (configure.ac): Likewise.
14002         * modules/uninorm/u32-normalize (configure.ac): Likewise.
14003         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
14005 2010-03-27  Bruno Haible  <bruno@clisp.org>
14007         New module description field 'Comment'.
14008         * gnulib-tool: New option --extract-comment.
14009         (func_usage): Document it.
14010         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
14011         (func_get_comment): New function.
14012         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
14014 2010-03-27  Bruno Haible  <bruno@clisp.org>
14016         Addendum to 2010-02-07 commit.
14017         * gnulib-tool (func_usage): Document --extract-applicability option.
14019 2010-03-27  Bruno Haible  <bruno@clisp.org>
14021         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
14022         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
14023         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
14024         rather than link errors.
14026 2010-03-27  Bruno Haible  <bruno@clisp.org>
14028         Avoid side effects from tests-related modules on the compilation of lib.
14029         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
14030         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
14031         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
14032         parameter. Emit into AM_CPPFLAGS a definition of the designated C
14033         macro.
14034         (func_import): Define a witness macro. Assign it a value that depends
14035         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
14036         tests-related modules.
14037         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
14038         Reported by Jim Meyering.
14040 2010-03-27  Bruno Haible  <bruno@clisp.org>
14042         Factorize common .m4 code.
14043         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
14044         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
14045         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
14046         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
14047         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
14048         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
14049         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
14050         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
14051         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
14052         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
14053         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
14054         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
14055         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
14056         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
14057         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
14058         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
14059         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
14060         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
14061         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
14062         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
14063         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
14064         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
14065         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
14066         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
14067         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
14068         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
14069         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
14070         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
14071         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
14072         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
14073         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
14074         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
14076 2010-03-27  Bruno Haible  <bruno@clisp.org>
14078         Fix a compilation error on Cygwin with g++ >= 4.3.
14079         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
14080         if it is undefined or if we alias it to chmod.
14081         (lstat): Don't warn about the use of this function if it is undefined
14082         or if we alias it to stat.
14083         Reported by Simon Josefsson.
14085 2010-03-27  Bruno Haible  <bruno@clisp.org>
14087         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
14088         * modules/getlogin (configure.ac): Update.
14090         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
14091         * modules/getlogin_r (configure.ac): Update.
14093         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
14094         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
14095         * modules/inet_ntop (configure.ac): Update.
14097         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
14098         * modules/inet_pton (configure.ac): Update.
14100         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
14101         * modules/mbslen (configure.ac): Update.
14103         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
14104         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
14105         * modules/forkpty (configure.ac): Update.
14106         * modules/openpty (configure.ac): Update.
14108 2010-03-26  Simon Josefsson  <simon@josefsson.org>
14110         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
14111         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
14113 2010-03-25  Eric Blake  <eblake@redhat.com>
14115         maint: use pragma consistently across replacement headers
14116         * lib/ctype.in.h (system_header): Hoist for consistent placement.
14117         * lib/dirent.in.h (system_header): Likewise.
14118         * lib/errno.in.h (system_header): Likewise.
14119         * lib/float.in.h (system_header): Likewise.
14120         * lib/getopt.in.h (system_header): Likewise.
14121         * lib/iconv.in.h (system_header): Likewise.
14122         * lib/inttypes.in.h (system_header): Likewise.
14123         * lib/langinfo.in.h (system_header): Likewise.
14124         * lib/locale.in.h (system_header): Likewise.
14125         * lib/math.in.h (system_header): Likewise.
14126         * lib/netdb.in.h (system_header): Likewise.
14127         * lib/netinet_in.in.h (system_header): Likewise.
14128         * lib/pty.in.h (system_header): Likewise.
14129         * lib/sched.in.h (system_header): Likewise.
14130         * lib/se-selinux.in.h (system_header): Likewise.
14131         * lib/search.in.h (system_header): Likewise.
14132         * lib/spawn.in.h (system_header): Likewise.
14133         * lib/stdarg.in.h (system_header): Likewise.
14134         * lib/stdint.in.h (system_header): Likewise.
14135         * lib/string.in.h (system_header): Likewise.
14136         * lib/strings.in.h (system_header): Likewise.
14137         * lib/sys_file.in.h (system_header): Likewise.
14138         * lib/sys_ioctl.in.h (system_header): Likewise.
14139         * lib/sys_socket.in.h (system_header): Likewise.
14140         * lib/sys_times.in.h (system_header): Likewise.
14141         * lib/sys_utsname.in.h (system_header): Likewise.
14142         * lib/sys_wait.in.h (system_header): Likewise.
14143         * lib/sysexits.in.h (system_header): Likewise.
14144         * lib/unistd.in.h (system_header): Likewise.
14145         * lib/wctype.in.h (system_header): Likewise.
14147         arpa/inet: fix mingw compilation warning
14148         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
14149         Reported by Matthew Bolte.
14151 2010-03-25  Bruno Haible  <bruno@clisp.org>
14153         Avoid collision between gnulib wrapper and libintl wrapper.
14154         * lib/printf.c (printf): Don't define if a printf wrapper is already
14155         defined in intl/printf.c.
14156         Reported by Michel Boaventura <michel@michelboaventura.com>.
14158 2010-03-25  Bruno Haible  <bruno@clisp.org>
14160         Use ANSI C.
14161         * lib/readutmp.h (getutent): Provide ANSI C prototype.
14163 2010-03-25  Bruno Haible  <bruno@clisp.org>
14165         Minor formatting changes.
14166         * lib/acosl.c: Insert space before function argument list.
14167         * lib/argz.c: Likewise.
14168         * lib/asinl.c: Likewise.
14169         * lib/expl.c: Likewise.
14170         * lib/gen-uni-tables.c: Likewise.
14171         * lib/gettext.h: Likewise.
14172         * lib/glthread/lock.h: Likewise.
14173         * lib/tanl.c: Likewise.
14174         * lib/uniname/uniname.c: Likewise.
14175         * tests/test-idpriv-drop.c: Likewise.
14176         * tests/test-idpriv-droptemp.c: Likewise.
14177         * tests/test-lock.c: Likewise.
14178         * tests/test-tls.c: Likewise.
14179         * lib/argp-help.c: Insert space before function-like macro argument
14180         list.
14181         * lib/memcmp.c: Likewise.
14182         * tests/test-base64.c: Likewise.
14183         * lib/localename.c: Insert space before sizeof's argument list.
14184         * lib/safe-alloc.h: Likewise.
14185         * lib/file-set.h: Insert space before macro argument list.
14186         * tests/test-argp.c: Likewise.
14187         * lib/argp-namefrob.h: Insert space before function parameter list.
14188         * lib/getaddrinfo.c: Likewise.
14189         * lib/netdb.in.h: Likewise.
14190         * lib/parse-duration.h: Likewise.
14191         * lib/parse-duration.c: Likewise.
14192         * lib/poll.c: Likewise.
14193         * lib/select.c: Likewise.
14194         * lib/trim.h: Likewise.
14195         * tests/test-usleep.c: Likewise.
14196         * lib/ldexpl.c: Insert space before function parameter list and before
14197         function argument list.
14198         * lib/logl.c: Likewise.
14199         * lib/sqrtl.c: Likewise.
14200         * lib/trim.c: Likewise.
14201         * lib/cosl.c: Use GNU style indentation. Insert space before function
14202         argument list.
14203         * lib/sinl.c: Likewise.
14204         * lib/tsearch.c: Insert space after 'for'.
14205         Reported by Jim Meyering.
14207 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
14209         * maint.mk (sc_Wundef_boolean): Check for the presence of the
14210         config header before grepping, as it's not present before
14211         autoreconf/configure are run.  Reported by Simon Josefsson.
14213 2010-03-23  Bruno Haible  <bruno@clisp.org>
14215         pt_chown: Make it work with automake < 1.11.
14216         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
14217         Reported by Simon Josefsson.
14219 2010-03-23  Bruno Haible  <bruno@clisp.org>
14221         pt_chown: Don't depend on GPLed modules.
14222         * lib/pt_chown.c: Don't include idpriv.h.
14223         (main): Don't drop privileges.
14224         * modules/pt_chown (Depends-on): Remove idpriv-drop.
14225         Reported by Simon Josefsson.
14227 2010-03-24  Simon Josefsson  <simon@josefsson.org>
14229         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
14230         suggestions from karl@freefriends.org (Karl Berry).
14232 2010-03-22  Eric Blake  <eblake@redhat.com>
14234         gethostname: further tweaks
14235         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
14236         are overriding gethostname.
14237         Suggested by Bruno Haible.
14239 2010-03-21  Bruno Haible  <bruno@clisp.org>
14241         Fix comments.
14242         * lib/forkpty.c (rpl_forkpty): Fix comment.
14243         * lib/openpty.c (rpl_openpty): Likewise.
14244         Reported by Eric Blake.
14246 2010-03-22  Eric Blake  <eblake@redhat.com>
14248         gethostname: fix build on mingw
14249         * lib/unistd.in.h (includes): Work around fact that mingw
14250         <winsock2.h> re-includes <unistd.h>, by avoiding any
14251         redeclarations if we are being included by <winsock2.h>.
14252         Reported by Matthias Bolte.
14254 2010-03-21  Bruno Haible  <bruno@clisp.org>
14256         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
14257         * lib/forkpty.c (forkpty): New replacement function, from glibc with
14258         modifications.
14259         * lib/pty.in.h (forkpty): Update declaration. Add comments.
14260         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
14261         provide the replacement.
14262         * modules/forkpty (Depends-on): Add openpty, login_tty.
14263         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
14264         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
14265         * doc/glibc-functions/forkpty.texi: More supported platforms.
14266         * config/srclist.txt: Add forkpty.c (commented).
14268 2010-03-21  Bruno Haible  <bruno@clisp.org>
14270         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
14271         (Makefile.am): Verify that PTY_LIB is defined.
14273         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
14275 2010-03-21  Bruno Haible  <bruno@clisp.org>
14277         Tests for module 'login_tty'.
14278         * modules/login_tty-tests: New file.
14279         * tests/test-login_tty.c: New file.
14281         New module 'login_tty'.
14282         * lib/login_tty.c: New file.
14283         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
14284         * modules/login_tty: New file.
14285         * doc/glibc-functions/login_tty.texi: Mention the new module.
14287 2010-03-21  Bruno Haible  <bruno@clisp.org>
14289         login_tty: Documentation.
14290         * doc/glibc-functions/login_tty.texi: New file.
14291         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
14293 2010-03-21  Bruno Haible  <bruno@clisp.org>
14295         pty: Consistent macro naming.
14296         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
14297         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
14298         * modules/pty (configure.ac): Update.
14300 2010-03-21  Bruno Haible  <bruno@clisp.org>
14302         Tests for openpty: Make stricter.
14303         * tests/test-openpty.c (main): Add test of canonical processing and
14304         erase.
14305         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
14307         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
14308         * lib/openpty.c (openpty): New replacement function.
14309         * lib/pty.in.h: Include <termios.h>.
14310         (openpty): Update declaration. Add comments.
14311         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
14312         is not declared, arrange to provide the replacement. Check for _getpty
14313         and posix_openpt.
14314         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
14315         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
14316         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
14317         * modules/pty-tests (test_pty_c___LDADD): New variable.
14318         * doc/glibc-functions/openpty.texi: More supported platforms.
14320 2010-03-21  Bruno Haible  <bruno@clisp.org>
14322         setenv: Tweaks.
14323         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
14324         the test program.
14325         * doc/posix-functions/setenv.texi: Update platforms list.
14327 2010-03-21  Bruno Haible  <bruno@clisp.org>
14329         New module 'unlockpt'.
14330         * lib/unlockpt.c: New file, from glibc with modifications.
14331         * m4/unlockpt.m4: New file.
14332         * modules/unlockpt: New file.
14333         * lib/stdlib.in.h (unlockpt): New declaration.
14334         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
14335         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
14336         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
14337         HAVE_UNLOCKPT.
14338         * doc/posix-functions/unlockpt.texi: Mention the new module.
14339         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
14340         * config/srclist.txt: Add unlockpt.c (commented).
14342 2010-03-21  Jim Meyering  <meyering@redhat.com>
14344         maint.mk: prohibit inclusion of "intprops.h" without use
14345         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
14347 2010-03-21  Bruno Haible  <bruno@clisp.org>
14349         New module 'grantpt'.
14350         * lib/grantpt.c: New file, from glibc with modifications.
14351         * m4/grantpt.m4: New file.
14352         * modules/grantpt: New file.
14353         * lib/stdlib.in.h (grantpt): New declaration.
14354         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
14355         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
14356         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
14357         HAVE_GRANTPT.
14358         * doc/posix-functions/grantpt.texi: Mention the new module.
14359         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
14360         * config/srclist.txt: Add grantpt.c (commented).
14362 2010-03-21  Bruno Haible  <bruno@clisp.org>
14364         New module 'pt_chown'.
14365         * lib/pt_chown.c: New file, from glibc with modifications.
14366         * lib/pty-private.h: New file, from glibc with modifications.
14367         * modules/pt_chown: New file.
14368         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
14370 2010-03-21  Bruno Haible  <bruno@clisp.org>
14372         Tests for module 'ptsname'.
14373         * modules/ptsname-tests: New file.
14374         * tests/test-ptsname.c: New file.
14376         New module 'ptsname'.
14377         * lib/ptsname.c: New file, from glibc with modifications.
14378         * m4/ptsname.m4: New file.
14379         * modules/ptsname: New file.
14380         * lib/stdlib.in.h (ptsname): New declaration.
14381         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
14382         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
14383         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
14384         HAVE_PTSNAME.
14385         * doc/posix-functions/ptsname.texi: Mention the new module.
14386         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
14387         * config/srclist.txt: Add ptsname.c (commented).
14389 2010-03-21  Bruno Haible  <bruno@clisp.org>
14391         Tests for module 'ttyname_r'.
14392         * modules/ttyname_r-tests: New file.
14393         * tests/test-ttyname_r.c: New file.
14395         New module 'ttyname_r'.
14396         * lib/ttyname_r.c: New file.
14397         * m4/ttyname_r.m4: New file.
14398         * modules/ttyname_r: New file.
14399         * lib/unistd.in.h (ttyname_r): New declaration.
14400         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
14401         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
14402         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
14403         HAVE_TTYNAME_R.
14404         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
14405         * doc/posix-functions/ttyname_r.texi: Mention the new module.
14407 2010-03-20  Bruno Haible  <bruno@clisp.org>
14409         signal: Undefine macro definitions in C++ mode.
14410         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
14411         sigfillset): Undefine macro definitions from the system header in C++
14412         mode.
14413         Reported by John W. Eaton <jwe@gnu.org>.
14415 2010-03-20  Bruno Haible  <bruno@clisp.org>
14417         Ensure no #include statements inside extern "C" { ... }.
14418         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
14419         contain #include statements.
14420         * lib/time.in.h: Likewise.
14422 2010-03-20  Bruno Haible  <bruno@clisp.org>
14424         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
14425         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
14426         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
14427         Reported by John W. Eaton <jwe@gnu.org>.
14429 2010-03-20  Bruno Haible  <bruno@clisp.org>
14431         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
14432         Reported by Jim Meyering.
14434 2010-03-20  Bruno Haible  <bruno@clisp.org>
14436         pipe: Set errno upon failure.
14437         * lib/pipe.h: Specify that when -1 is returned, errno is set.
14438         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
14439         errno value in error message.
14441 2010-03-20  Bruno Haible  <bruno@clisp.org>
14442             Jim Meyering  <meyering@redhat.com>
14444         lchown: Avoid "unused variable" warning.
14445         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
14447 2010-03-20  Bruno Haible  <bruno@clisp.org>
14449         Work around unlink() bug on MacOS X 10.5.6.
14450         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
14451         attempting to unlink a parent directory.
14452         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
14453         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
14454         activate for the replacement function.
14455         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
14457 2010-03-20  Bruno Haible  <bruno@clisp.org>
14459         Fix link errors on Solaris 8.
14460         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
14461         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
14463 2010-03-19  Jim Meyering  <meyering@redhat.com>
14465         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
14466         The _LIBC implementation of build_range_exp correctly honors the
14467         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
14468         However, the non-_LIBC implementation would ignore that syntax-bit
14469         flag and return REG_ERANGE unconditionally.
14470         This change makes it honor that flag.
14471         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
14472         Make two pointer parameters "const".
14473         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
14474         (parse_bracket_exp): Update caller.
14476         regex.m4: correct the reversed range endpoint ([b-a]) test
14477         * m4/regex.m4: When requiring that [b-a] evoke failure,
14478         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
14479         test pass once again for x86-based systems.
14481 2010-03-19  Bruno Haible  <bruno@clisp.org>
14483         scandir: Fix link error on Solaris 8.
14484         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
14485         macros.
14487 2010-03-19  Bruno Haible  <bruno@clisp.org>
14489         getusershell: Fix documentation.
14490         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
14491         module.
14492         * doc/glibc-functions/setusershell.texi: Likewise.
14494         getusershell: Provide declaration, missing on Solaris 9.
14495         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
14496         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
14497         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
14498         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
14499         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
14500         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
14501         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
14502         HAVE_GETUSERSHELL.
14503         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
14505 2010-03-19  Bruno Haible  <bruno@clisp.org>
14507         wctype: Provide iswblank function.
14508         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
14509         exists and is fine.
14510         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
14511         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
14512         * tests/test-wctype.c (main): Re-enable the iswblank tests.
14513         * doc/posix-functions/iswblank.texi: Update.
14515 2010-03-19  Bruno Haible  <bruno@clisp.org>
14517         Tests of module 'pty' in C++ mode.
14518         * modules/pty-tests: New file.
14519         * tests/test-pty-c++.cc: New file.
14520         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
14522 2010-03-19  Eric Blake  <eblake@redhat.com>
14524         logb: fix documentation
14525         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
14526         1.5 declaration bug.
14528         forkpty, openpty: prefer glibc's const-safe prototype
14529         * lib/forkpty.c (rpl_forkpty): New file.
14530         * lib/openpty.c (rpl_openpty): Likewise.
14531         * modules/forkpty (Files): Distribute it.
14532         * modules/openpty (Files): Likewise.
14533         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
14534         check...
14535         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
14536         replacement for for non-const BSD signature.
14537         * modules/pty (Makefile.am): Substitute witnesses.
14538         * lib/pty.in.h (forkpty, openpty): Declare replacements.
14539         * tests/test-forkpty.c: Update signature check.
14540         * tests/test-openpty.c: Likewise.
14541         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
14542         * doc/glibc-functions/openpty.texi (openpty): Likewise.
14544         forkpty, openpty: split functions into new modules
14545         * modules/pty (Makefile.am): Substitute new witnesses.
14546         (Libraries): Move library detection...
14547         * modules/forkpty: ...into new module.
14548         * modules/openpty: Another new module.
14549         * modules/pty-tests: Rename and split...
14550         * modules/forkpty-tests: ...to this...
14551         * modules/openpty-tests: ...and this.
14552         * tests/test-pty.c: Rename and split...
14553         * tests/test-forkpty.c: ...to this...
14554         * tests/test-openpty.c: ...and this.
14555         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
14556         (gl_PTY): Split library searching...
14557         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
14558         (gl_FORKPTY, gl_OPENPTY): New macros.
14559         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
14560         * NEWS: Mention the split.
14561         * MODULES.html.sh (Misc): Document the modules.
14562         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
14563         * doc/glibc-functions/openpty.texi (openpty): Likewise.
14565         pty: improve replacement header
14566         * lib/pty.in.h: New file.
14567         * modules/pty (Files): Ship it.
14568         (Makefile.am): Always build replacement.
14569         * m4/pty.m4: Rename...
14570         * m4/pty_h.m4: ...to this.
14571         (gl_PTY): Modernize setting of witness macros; update check of
14572         forkpty to take proper advantage of cache.
14573         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
14575         getopt: avoid compiler warning
14576         * lib/getopt.c (attribute_hidden): Remove unused macro.
14578 2010-03-18  Bruno Haible  <bruno@clisp.org>
14580         Fix link errors on Solaris 8.
14581         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
14582         * modules/search-tests (test_search_c___LDADD): Likewise.
14583         * modules/signal-tests (test_signal_c___LDADD): Likewise.
14584         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
14585         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
14586         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
14587         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
14588         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
14589         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
14591 2010-03-18  Bruno Haible  <bruno@clisp.org>
14593         Fix bug introduced on 2010-03-14.
14594         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
14595         (gl_SPAWN_H): Require it.
14596         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
14597         Reported by Simon Josefsson.
14599 2010-03-18  Bruno Haible  <bruno@clisp.org>
14601         Fix typo introduced on 2009-12-31.
14602         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
14603         posix_spawn_file_actions_adddup2.
14605 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
14606         and Eric Blake  <eblake@redhat.com>
14608         test-vc-list-files-git: make more robust
14609         * tests/test-vc-list-files-git.sh: Unset problematic environment
14610         variables.  Chain commands together.
14612 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
14614         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
14615         `AC_CHECK_DECL' invocation.
14617 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
14619         * lib/inttostr.c (inttostr): Make sure the invocation of verify
14620         appears before executable statements. Suggested by Petr Sumbera
14621         <Petr.Sumbera@Sun.COM>.
14623 2010-03-14  Bruno Haible  <bruno@clisp.org>
14625         * tests/test-flock.c (test_exclusive): Comment out a test that causes
14626         portability problems. Instead use a simpler test.
14627         (main): Check that invalid arguments are rejected only on Linux.
14629 2010-03-14  Bruno Haible  <bruno@clisp.org>
14631         Fix bug introduced on 2009-12-31.
14632         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
14633         gl_PREREQ_SYS_H_WINSOCK2 always.
14634         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
14635         SYS_SOCKET_H variable.
14636         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
14637         Update comments.
14638         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
14639         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
14640         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
14641         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
14642         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
14644 2010-03-14  Bruno Haible  <bruno@clisp.org>
14646         Fix values returned by sinl, cosl.
14647         * lib/trigl.h: Add specification comments.
14648         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
14649         that combines the values from the precomputed table with the values of
14650         the Chebyshev polynomials.
14652 2010-03-14  Bruno Haible  <bruno@clisp.org>
14654         Fix compilation error when modules 'posix_spawn[p]' are not used.
14655         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
14656         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
14658 2010-03-14  Bruno Haible  <bruno@clisp.org>
14660         Fix compilation error on mingw when module 'time_r' is not used.
14661         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
14662         is 1.
14663         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
14664         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
14665         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
14666         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
14668 2010-03-14  Bruno Haible  <bruno@clisp.org>
14670         Fix compilation error with Sun C.
14671         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
14672         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
14673         instead of GCC specific ULONG_LONG_MAX.
14674         * lib/xstrtoll.c: Likewise.
14675         * lib/xstrtoull.c: Likewise.
14677 2010-03-13  Bruno Haible  <bruno@clisp.org>
14679         Allow the user to disable C++ code and tests.
14680         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
14681         (gl_PROG_ANSI_CXX): Require it.
14683 2010-03-13  Bruno Haible  <bruno@clisp.org>
14685         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
14686         cases.
14688 2010-03-13  Bruno Haible  <bruno@clisp.org>
14690         Test that gnulib does not break the standard C++ headers.
14691         * tests/test-locale-c++2.cc: New file.
14692         * modules/locale-tests (Files): Add it.
14693         (Makefile.am): Compile it for test-locale-c++.
14694         * tests/test-math-c++2.cc: New file.
14695         * modules/math-tests (Files): Add it.
14696         (Makefile.am): Compile it for test-math-c++.
14697         * tests/test-signal-c++2.cc: New file.
14698         * modules/signal-tests (Files): Add it.
14699         (Makefile.am): Compile it for test-signal-c++.
14700         * tests/test-stdio-c++2.cc: New file.
14701         * modules/stdio-tests (Files): Add it.
14702         (Makefile.am): Compile it for test-stdio-c++.
14703         * tests/test-stdlib-c++2.cc: New file.
14704         * modules/stdlib-tests (Files): Add it.
14705         (Makefile.am): Compile it for test-stdlib-c++.
14706         * tests/test-string-c++2.cc: New file.
14707         * modules/string-tests (Files): Add it.
14708         (Makefile.am): Compile it for test-string-c++.
14709         * tests/test-time-c++2.cc: New file.
14710         * modules/time-tests (Files): Add it.
14711         (Makefile.am): Compile it for test-time-c++.
14712         Reported by John W. Eaton <jwe@gnu.org>.
14714 2010-03-13  Bruno Haible  <bruno@clisp.org>
14716         * gnulib-tool (func_usage): Clarify which options are available for
14717         --create-testdir and --create-megatestdir.
14719 2010-03-13  Bruno Haible  <bruno@clisp.org>
14721         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
14722         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
14723         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
14724         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
14725         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
14726         when appropriate.
14727         Reported by Jim Meyering.
14729 2010-03-12  Simon Josefsson  <simon@josefsson.org>
14731         * gnulib-tool (func_import): Explain origin of code.
14733 2010-03-12  Bruno Haible  <bruno@clisp.org>
14735         Fix problem with automake's definition of CXXLINK.
14736         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
14737         Reported by Simon Josefsson and Ludovic Courtès.
14739 2010-03-12  Bruno Haible  <bruno@clisp.org>
14741         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
14742         stable releases.
14744 2010-03-11  Bruno Haible  <bruno@clisp.org>
14746         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
14747         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
14748         whether the system provides one variant or multiple variants of the
14749         function.
14750         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
14751         C++ compilers.
14752         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
14753         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
14754         Reported by Jim Meyering.
14756 2010-03-09  Simon Josefsson  <simon@josefsson.org>
14758         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
14760 2010-03-08  Bruno Haible  <bruno@clisp.org>
14762         gnulib-tool: Add support for --libtool in --create-testdir.
14763         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
14764         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
14766 2010-03-08  Eric Blake  <eblake@redhat.com>
14768         gnulib-tool.texi: mention possibility of git submodule
14769         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
14770         submodules.
14771         * doc/.gitignore: Ignore another generated file.
14773 2010-03-08  Karl Berry  <karl@gnu.org>
14775         * doc/gnulib-tool.texi (VCS Issues): Mention third option
14776         of committing gnulib files while skipping others.
14778 2010-03-07  Bruno Haible  <bruno@clisp.org>
14780         Tests of module 'wctype' in C++ mode.
14781         * tests/test-wctype-c++.cc: New file.
14782         * modules/wctype-tests (Files): Add it and tests/signature.h.
14783         (Depends-on): Add ansi-c++-opt.
14784         (Makefile.am): Arrange to compile and run test-wctype-c++.
14786         Tests of module 'wchar' in C++ mode.
14787         * tests/test-wchar-c++.cc: New file.
14788         * modules/wchar-tests (Files): Add it and tests/signature.h.
14789         (Depends-on): Add ansi-c++-opt.
14790         (Makefile.am): Arrange to compile and run test-wchar-c++.
14791         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
14792         gl_MODULE_INDICATOR.
14794         Tests of module 'unistd' in C++ mode.
14795         * tests/test-unistd-c++.cc: New file.
14796         * modules/unistd-tests (Files): Add it and tests/signature.h.
14797         (Depends-on): Add ansi-c++-opt.
14798         (Makefile.am): Arrange to compile and run test-unistd-c++.
14799         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
14800         gl_MODULE_INDICATOR.
14802         Tests of module 'time' in C++ mode.
14803         * tests/test-time-c++.cc: New file.
14804         * modules/time-tests (Files): Add it and tests/signature.h.
14805         (Depends-on): Add ansi-c++-opt.
14806         (Makefile.am): Arrange to compile and run test-time-c++.
14807         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
14809         Tests of module 'sys_time' in C++ mode.
14810         * tests/test-sys_time-c++.cc: New file.
14811         * modules/sys_time-tests (Files): Add it and tests/signature.h.
14812         (Depends-on): Add ansi-c++-opt.
14813         (Makefile.am): Arrange to compile and run test-sys_time-c++.
14814         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
14815         gl_MODULE_INDICATOR.
14817         Tests of module 'sys_stat' in C++ mode.
14818         * tests/test-sys_stat-c++.cc: New file.
14819         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
14820         (Depends-on): Add ansi-c++-opt.
14821         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
14822         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
14823         gl_MODULE_INDICATOR.
14825         Tests of module 'sys_socket' in C++ mode.
14826         * tests/test-sys_socket-c++.cc: New file.
14827         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
14828         (Depends-on): Add ansi-c++-opt.
14829         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
14830         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
14831         gl_MODULE_INDICATOR.
14833         Tests of module 'sys_select' in C++ mode.
14834         * tests/test-sys_select-c++.cc: New file.
14835         * modules/sys_select-tests (Files): Add it and tests/signature.h.
14836         (Depends-on): Add ansi-c++-opt.
14837         (Makefile.am): Arrange to compile and run test-sys_select-c++.
14838         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
14839         gl_MODULE_INDICATOR.
14841         Tests of module 'sys_ioctl' in C++ mode.
14842         * tests/test-sys_ioctl-c++.cc: New file.
14843         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
14844         (Depends-on): Add ansi-c++-opt.
14845         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
14846         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
14847         gl_MODULE_INDICATOR.
14849         Tests of module 'string' in C++ mode.
14850         * tests/test-string-c++.cc: New file.
14851         * modules/string-tests (Files): Add it and tests/signature.h.
14852         (Depends-on): Add ansi-c++-opt.
14853         (Makefile.am): Arrange to compile and run test-string-c++.
14854         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
14855         gl_MODULE_INDICATOR.
14857         Tests of module 'stdlib' in C++ mode.
14858         * tests/test-stdlib-c++.cc: New file.
14859         * modules/stdlib-tests (Files): Add it and tests/signature.h.
14860         (Depends-on): Add ansi-c++-opt.
14861         (Makefile.am): Arrange to compile and run test-stdlib-c++.
14862         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
14863         gl_MODULE_INDICATOR.
14865         Tests of module 'stdio' in C++ mode.
14866         * tests/test-stdio-c++.cc: New file.
14867         * modules/stdio-tests (Files): Add it and tests/signature.h.
14868         (Depends-on): Add ansi-c++-opt.
14869         (Makefile.am): Arrange to compile and run test-stdio-c++.
14870         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
14871         gl_MODULE_INDICATOR.
14873         Tests of module 'spawn' in C++ mode.
14874         * tests/test-spawn-c++.cc: New file.
14875         * modules/spawn-tests (Files): Add it and tests/signature.h.
14876         (Depends-on): Add ansi-c++-opt.
14877         (Makefile.am): Arrange to compile and run test-spawn-c++.
14878         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
14879         gl_MODULE_INDICATOR.
14881         Tests of module 'signal' in C++ mode.
14882         * tests/test-signal-c++.cc: New file.
14883         * modules/signal-tests (Files): Add it and tests/signature.h.
14884         (Depends-on): Add ansi-c++-opt.
14885         (Makefile.am): Arrange to compile and run test-signal-c++.
14886         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
14887         gl_MODULE_INDICATOR.
14889         Tests of module 'search' in C++ mode.
14890         * tests/test-search-c++.cc: New file.
14891         * modules/search-tests (Files): Add it and tests/signature.h.
14892         (Depends-on): Add ansi-c++-opt.
14893         (Makefile.am): Arrange to compile and run test-search-c++.
14894         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
14895         gl_MODULE_INDICATOR.
14897         Tests of module 'math' in C++ mode.
14898         * tests/test-math-c++.cc: New file.
14899         * modules/math-tests (Files): Add it and tests/signature.h.
14900         (Depends-on): Add ansi-c++-opt.
14901         (Makefile.am): Arrange to compile and run test-math-c++.
14902         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
14904         Tests of module 'locale' in C++ mode.
14905         * tests/test-locale-c++.cc: New file.
14906         * modules/locale-tests (Files): Add it and tests/signature.h.
14907         (Depends-on): Add ansi-c++-opt.
14908         (Makefile.am): Arrange to compile and run test-locale-c++.
14909         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
14910         gl_MODULE_INDICATOR.
14912         Tests of module 'langinfo' in C++ mode.
14913         * tests/test-langinfo-c++.cc: New file.
14914         * modules/langinfo-tests (Files): Add it and tests/signature.h.
14915         (Depends-on): Add ansi-c++-opt.
14916         (Makefile.am): Arrange to compile and run test-langinfo-c++.
14917         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
14918         gl_MODULE_INDICATOR.
14920         Tests of module 'iconv-h' in C++ mode.
14921         * tests/test-iconv-h-c++.cc: New file.
14922         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
14923         (Depends-on): Add ansi-c++-opt.
14924         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
14926         Tests of module 'glob' in C++ mode.
14927         * tests/test-glob-c++.cc: New file.
14928         * modules/glob-tests (Files): Add it.
14929         (Depends-on): Add ansi-c++-opt.
14930         (Makefile.am): Arrange to compile and run test-glob-c++.
14932         Tests of module 'fcntl-h' in C++ mode.
14933         * tests/test-fcntl-h-c++.cc: New file.
14934         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
14935         (Depends-on): Add ansi-c++-opt.
14936         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
14937         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
14938         gl_MODULE_INDICATOR.
14940         Tests of module 'dirent' in C++ mode.
14941         * tests/test-dirent-c++.cc: New file.
14942         * modules/dirent-tests (Files): Add it and tests/signature.h.
14943         (Depends-on): Add ansi-c++-opt.
14944         (Makefile.am): Arrange to compile and run test-dirent-c++.
14945         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
14946         gl_MODULE_INDICATOR.
14948         New module 'ansi-c++-opt'.
14949         * modules/ansi-c++-opt: New file.
14950         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
14952         Document C++ namespace mode.
14953         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
14955         wctype: Avoid #define replacements in C++ mode.
14956         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
14957         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
14958         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
14959         In C++, define a namespaced alias symbol.
14960         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
14961         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
14962         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
14963         rule.
14965         wchar: Avoid #define replacements in C++ mode.
14966         * lib/wchar.in.h: Include c++defs.h.
14967         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
14968         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
14969         symbol.
14970         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
14971         * modules/wchar (Depends-on): Add c++defs.
14972         (Makefile.am): Update wchar.h rule.
14974         unistd: Avoid #define replacements in C++ mode.
14975         * lib/unistd.in.h: Include c++defs.h.
14976         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
14977         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
14978         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
14979         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
14980         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
14981         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
14982         symbol.
14983         (environ): Update.
14984         * modules/unistd (Depends-on): Add c++defs.
14985         (Makefile.am): Update unistd.h rule.
14987         time: Avoid #define replacements in C++ mode.
14988         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
14989         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
14990         define a namespaced alias symbol.
14991         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
14992         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
14993         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
14994         * modules/time (Depends-on): Add c++defs, warn-on-use.
14995         (Makefile.am): Update time.h rule.
14996         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
14997         * modules/nanosleep (configure.ac): Likewise.
14998         * modules/strptime (configure.ac): Likewise.
14999         * modules/timegm (configure.ac): Likewise.
15001         sys_time: Avoid #define replacements in C++ mode.
15002         * lib/sys_time.in.h: Include c++defs.h.
15003         (gettimeofday): In C++, define a namespaced alias symbol.
15004         * modules/sys_time (Depends-on): Add c++defs.
15005         (Makefile.am): Update sys/time.h rule.
15007         sys_stat: Avoid #define replacements in C++ mode.
15008         * lib/sys_stat.in.h: Include c++defs.h.
15009         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
15010         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
15011         namespaced alias symbol.
15012         In C++, define a namespaced alias symbol.
15013         * modules/sys_stat (Depends-on): Add c++defs.
15014         (Makefile.am): Update sys/stat.h rule.
15016         sys_socket: Avoid #define replacements in C++ mode.
15017         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
15018         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
15019         definitions also when the system has a <sys/socket.h>.
15020         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
15021         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
15022         In C++, define a namespaced alias symbol.
15023         * modules/sys_socket (Depends-on): Add c++defs.
15024         (Makefile.am): Update sys/socket.h rule.
15026         sys_select: Avoid #define replacements in C++ mode.
15027         * lib/sys_select.in.h: Include c++defs.h. Enable the function
15028         definitions also when the system has a <sys/select.h>.
15029         (select): In C++, define a namespaced alias symbol.
15030         * modules/sys_select (Depends-on): Add c++defs.
15031         (Makefile.am): Update sys/select.h rule.
15033         sys_ioctl: Avoid #define replacements in C++ mode.
15034         * lib/sys_ioctl.in.h: Include c++defs.h.
15035         (ioctl): In C++, define a namespaced alias symbol.
15036         * modules/sys_ioctl (Depends-on): Add c++defs.
15037         (Makefile.am): Update sys/ioctl.h rule.
15039         string: Avoid #define replacements in C++ mode.
15040         * lib/string.in.h: Include c++defs.h.
15041         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
15042         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
15043         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
15044         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
15045         strsignal, strverscmp): In C++, define a namespaced alias symbol.
15046         * modules/string (Depends-on): Add c++defs.
15047         (Makefile.am): Update string.h rule.
15049         stdlib: Avoid #define replacements in C++ mode.
15050         * lib/stdlib.in.h: Include c++defs.h.
15051         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
15052         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
15053         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
15054         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
15055         symbol.
15056         * modules/stdlib (Depends-on): Add c++defs.
15057         (Makefile.am): Update stdlib.h rule.
15059         stdio: Avoid #define replacements in C++ mode.
15060         * lib/stdio.in.h: Include c++defs.h.
15061         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
15062         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
15063         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
15064         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
15065         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
15066         namespaced alias symbol.
15067         * modules/stdio (Depends-on): Add c++defs.
15068         (Makefile.am): Update stdio.h rule.
15070         spawn: Avoid #define replacements in C++ mode.
15071         * lib/spawn.in.h: Include c++defs.h.
15072         (posix_spawn, posix_spawnp, posix_spawnattr_init,
15073         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
15074         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
15075         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
15076         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
15077         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
15078         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
15079         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
15080         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
15081         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
15082         In C++, define a namespaced alias symbol.
15083         * modules/spawn (Depends-on): Add c++defs.
15084         (Makefile.am): Update spawn.h rule.
15086         signal: Avoid #define replacements in C++ mode.
15087         * lib/signal.in.h: Include c++defs.h.
15088         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
15089         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
15090         namespaced alias symbol.
15091         * modules/signal (Depends-on): Add c++defs.
15092         (Makefile.am): Update signal.h rule.
15094         search: Avoid #define replacements in C++ mode.
15095         * lib/search.in.h: Include c++defs.h.
15096         (_gl_search_compar_fn, _gl_search_action_fn): New types.
15097         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
15098         symbol.
15099         * modules/search (Depends-on): Add c++defs.
15100         (Makefile.am): Update search.h rule.
15102         math: Avoid #define replacements in C++ mode.
15103         * lib/math.in.h: Include c++defs.h.
15104         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
15105         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
15106         trunc, truncl): In C++, define a namespaced alias symbol.
15107         * modules/math (Depends-on): Add c++defs.
15108         (Makefile.am): Update math.h rule.
15110         locale: Avoid #define replacements in C++ mode.
15111         * lib/locale.in.h: Include c++defs.h.
15112         (duplocale): In C++, define a namespaced alias symbol.
15113         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
15114         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
15115         * modules/locale (Depends-on): Add c++defs.
15116         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
15118         langinfo: Avoid #define replacements in C++ mode.
15119         * lib/langinfo.in.h: Include c++defs.h.
15120         (nl_langinfo): In C++, define a namespaced alias symbol.
15121         * modules/langinfo (Depends-on): Add c++defs.
15122         (Makefile.am): Update langinfo.h rule.
15124         iconv-h: Avoid #define replacements in C++ mode.
15125         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
15126         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
15127         symbol.
15128         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
15129         whenever iconv is present.
15130         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
15131         (Makefile.am): Update iconv.h rule.
15133         glob: Avoid #define replacements in C++ mode.
15134         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
15135         (_gl_glob_errfunc_fn): New type.
15136         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
15137         symbol.
15138         * modules/glob (Depends-on): Add c++defs, warn-on-use.
15139         (Makefile.am): Update glob.h rule.
15141         fcntl-h: Avoid #define replacements in C++ mode.
15142         * lib/fcntl.in.h: Include c++defs.h.
15143         (fcntl, open, openat): In C++, define a namespaced alias symbol.
15144         * modules/fcntl-h (Depends-on): Add c++defs.
15145         (Makefile.am): Update fcntl.h rule.
15147         dirent: Avoid #define replacements in C++ mode.
15148         * lib/dirent.in.h: Include c++defs.h.
15149         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
15150         namespaced alias symbol.
15151         (dirfd): Update declaration.
15152         * modules/dirent (Depends-on): Add c++defs.
15153         (Makefile.am): Update dirent.h rule.
15155         ctype: Make it usable in C++ code.
15156         * lib/ctype.in.h: Include c++defs.h.
15157         (isblank): Declare as extern "C".
15158         * modules/ctype (Depends-on): Add c++defs.
15159         (Makefile.am): Update ctype.h rule.
15161         New module 'c++defs'.
15162         * modules/c++defs: New file.
15163         * build-aux/c++defs.h: New file.
15164         Reported by John W. Eaton <jwe@gnu.org>.
15166 2010-03-07  Bruno Haible  <bruno@clisp.org>
15168         logb: Provide missing declaration for Cygwin.
15169         * lib/math.in.h (logb): New declaration.
15170         * m4/logb.m4: New file.
15171         * modules/logb (Files): Add m4/logb.m4.
15172         (Depends-on): Add math.
15173         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
15174         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
15175         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
15176         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
15177         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
15179 2010-03-07  Bruno Haible  <bruno@clisp.org>
15181         Fix test-cond link error.
15182         * tests/test-cond.c: Include <stdio.h>.
15184 2010-03-07  Bruno Haible  <bruno@clisp.org>
15186         Fix test-dirent-safer link error.
15187         * modules/dirent-safer-tests (Makefile.am): Define
15188         test_dirent_safer_LDADD.
15190 2010-03-07  Bruno Haible  <bruno@clisp.org>
15192         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
15193         among default module list.
15195 2010-03-07  Bruno Haible  <bruno@clisp.org>
15197         Fix link error on platforms with GNU libiconv.
15198         * modules/unistr/u8-strcoll-tests (Makefile): Define
15199         test_u8_strcoll_LDADD.
15200         * modules/unistr/u16-strcoll-tests (Makefile): Define
15201         test_u16_strcoll_LDADD.
15202         * modules/unistr/u32-strcoll-tests (Makefile): Define
15203         test_u32_strcoll_LDADD.
15205 2010-03-07  Bruno Haible  <bruno@clisp.org>
15207         Use POSIX declarations for socket functions.
15208         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
15209         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
15210         rpl_sendto): Change declaration to match POSIX.
15211         * lib/connect.c (rpl_connect): Likewise.
15212         * lib/accept.c (rpl_accept): Likewise.
15213         * lib/bind.c (rpl_bind): Likewise.
15214         * lib/getpeername.c (rpl_getpeername): Likewise.
15215         * lib/getsockname.c (rpl_getsockname): Likewise.
15216         * lib/recv.c (rpl_recv): Likewise.
15217         * lib/send.c (rpl_send): Likewise.
15218         * lib/recvfrom.c (rpl_recvfrom): Likewise.
15219         * lib/sendto.c (rpl_sendto): Likewise.
15221 2010-03-06  Bruno Haible  <bruno@clisp.org>
15223         Clarify access, euidaccess, faccessat.
15224         * doc/posix-functions/faccessat.texi: Mention security problem under
15225         "Other problems", not "Portability problems".
15226         * doc/posix-functions/access.texi: Likewise. Mention a related security
15227         problem.
15228         * doc/glibc-functions/euidaccess.texi: Mention security problems.
15229         * lib/euidaccess.c: Add comments about platforms.
15230         * lib/unistd.in.h (access, euidaccess): Add warnings.
15232 2010-03-07  Bruno Haible  <bruno@clisp.org>
15234         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
15235         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
15236         (POSIX_SPAWN_SETSCHEDULER): Likewise.
15237         (POSIX_SPAWN_USEVFORK): Define in a way that works when
15238         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
15239         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
15240         declare when POSIX_SPAWN_SETSCHEDULER is zero.
15241         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
15242         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
15243         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
15244         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
15245         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
15246         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
15247         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
15248         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
15249         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
15250         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
15251         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
15252         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
15253         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
15254         Likewise.
15255         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
15256         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
15257         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
15258         Likewise.
15259         * tests/test-spawn.c (main): Make it work when
15260         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
15262 2010-03-07  Bruno Haible  <bruno@clisp.org>
15264         Fix incorrect Makefile.am generation in German locale.
15265         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
15266         Execute sed command with character range in C locale.
15268 2010-03-06  Bruno Haible  <bruno@clisp.org>
15270         Tests for module 'iconv-h'.
15271         * modules/iconv-h-tests: New file.
15272         * tests/test-iconv-h.c: New file.
15274         New module 'iconv-h'.
15275         * modules/iconv-h: New file.
15276         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
15277         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
15278         (configure.ac): Remove gl_ICONV_H.
15279         (Makefile.am): Remove rule for iconv.h.
15281 2010-03-06  Bruno Haible  <bruno@clisp.org>
15283         More consistent naming of *.m4 files.
15284         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
15285         * modules/wctype (Files): Update.
15287         More consistent naming of *.m4 files.
15288         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
15289         * modules/wchar (Files): Update.
15291 2010-03-06  Jim Meyering  <meyering@redhat.com>
15293         euidaccess: relax license to LGPLv2+
15294         * modules/euidaccess (License): Relax to LGPLv2+.
15296 2010-03-06  Bruno Haible  <bruno@clisp.org>
15298         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
15299         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
15300         (Makefile.am): Augment lib_SOURCES instead.
15302 2010-03-04  Jim Meyering  <meyering@redhat.com>
15304         utime: remove obsolete module
15305         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
15306         unnecessary for years, and has been marked as obsolete for 10 months.
15307         * modules/utime: Remove file.
15308         * lib/utime.c: Remove file.
15309         * m4/utime.m4: Remove file.
15310         * m4/utimes-null.m4: Remove file.
15311         * doc/posix-functions/utime.texi (utime): Remove reference to
15312         the module.  Move the sole "fixed by gnulib" item into the
15313         "problems not fixed by Gnulib" list.
15314         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
15316 2010-03-05  Simon Josefsson  <simon@josefsson.org>
15318         * modules/exit (License): Relax license to LGPLv2+.
15319         (Status): Mark as obsolete.
15320         * NEWS: Mention deprecated 'exit' module.
15321         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
15322         of now obsolete 'exit'.
15324 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15326         fts-lgpl: remove unused module
15327         * modules/fts-lgpl: Remove.
15328         * MODULES.html.sh (func_all_modules): Adjust.
15329         * check-module (find_included_lib_files): Adjust.
15330         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
15332 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
15334         copy-acl: enhance Solaris ACL error handling
15335         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
15336         * lib/set-mode-acl.c (qset_acl): Likewise.
15338 2010-03-02  Bruno Haible  <bruno@clisp.org>
15340         spawn: Don't override the system defined values on FreeBSD 8.
15341         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
15342         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
15343         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
15344         if HAVE_POSIX_SPAWN is 1.
15345         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
15347 2010-03-01  Bruno Haible  <bruno@clisp.org>
15349         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
15350         regarding Automake.
15352 2010-02-25  Bruno Haible  <bruno@clisp.org>
15354         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
15355         * gnulib-tool: Define 'echo' as a function only before the ksh alias
15356         setting, not afterwards.
15357         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
15359 2010-02-24  Eric Blake  <eblake@redhat.com>
15361         bootstrap, git-version-gen: use timestamp
15362         * build-aux/git-version-gen (scriptversion): Force UTC.
15363         * build-aux/bootstrap (scriptversion): New variable.
15365         bootstrap: allow older git
15366         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
15367         older than 1.6.4.  Requested by the libvirt project.
15369 2010-02-23  Eric Blake  <eblake@redhat.com>
15371         warn-on-use: work with old autoconf
15372         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
15373         AS_VAR semantics of autoconf 2.60.
15374         Reported by Bruno Haible.
15376         bootstrap: improve some comments
15377         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
15378         clarification comments.
15380         gettimeofday: provide correct function
15381         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
15382         when replacement is declared, otherwise provide gettimeofday.
15383         Reported by Michael Goffioul.
15385 2010-02-23  Jim Meyering  <meyering@redhat.com>
15387         lib-ignore: relax license to "unlimited", not LGPLv2+
15388         * modules/lib-ignore (License): Relax to "unlimited".
15390 2010-02-23  Jim Meyering  <meyering@redhat.com>
15392         lib-ignore: relax license to LGPLv2+
15393         * modules/lib-ignore (License): Relax to LGPLv2+.
15395 2010-02-22  Eric Blake  <eblake@redhat.com>
15397         lseek: avoid bash 3.2 broken pipe bug
15398         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
15399         warning from bash 3.2.
15400         Reported by Ben Pfaff, with analysis from Bruno Haible.
15402         bootstrap: support non-FSF copyright holder
15403         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
15404         bootstrap.conf override of COPYRIGHT_HOLDER.
15405         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
15407         bootstrap: interoperate with gettext 0.14.1
15408         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
15410         bootstrap: allow for alternate submodule location
15411         * build-aux/bootstrap (gnulib_path): New variable; use instead of
15412         hardcoding submodule location.
15413         (gnulib_mk): Allow direct use of Makefile.am.
15415         bootstrap: use GNULIB_SRCDIR to reduce disk usage
15416         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
15417         rather than reconfiguring where the submodule points.
15419         gettimeofday: restore support for platforms that lack function
15420         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
15421         replacement if function is missing.
15422         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
15423         * modules/sys_time (Makefile.am): Substitute it.
15424         * lib/sys_time.in.h (gettimeofday): Check it.
15425         Reported by Michael Goffioul.
15427 2010-02-21  Bruno Haible  <bruno@clisp.org>
15429         * lib/stdio.in.h (obstack_printf): Fix typo.
15431 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
15433         vc-list-files: use bzr ls's -R option
15434         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
15435         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
15437 2010-02-21  Jim Meyering  <meyering@redhat.com>
15439         init.sh: fix EXEEXT shims to work also for names like test-prog
15440         * tests/init.sh: Re-exec a better shell, when needed.
15441         If the current shell lacks support for posix $(...), an init.sh-using
15442         test will now try to find a shell that supports that.  If EXEEXT is
15443         nonempty, we also require support for hyphen-in-alias-name and shell
15444         substitutions like ${var#glob}.  Failure to find such a shell results
15445         in a skipped test.
15447 2010-02-21  Bruno Haible  <bruno@clisp.org>
15449         Really work around around "broken pipe" error message from bash 3.2.
15450         * gnulib-tool (func_reset_sigpipe): Remove function.
15451         (echo): In bash 3.2, define to a function that uses printf.
15452         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
15454 2010-02-20  Bruno Haible  <bruno@clisp.org>
15456         Restore support for automake 1.9.6 with autoconf 2.61.
15457         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
15458         Reported by James Youngman <jay@gnu.org>.
15460 2010-02-20  Bruno Haible  <bruno@clisp.org>
15462         Improve *printf warning condition.
15463         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
15464         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
15465         and the function is overridden due to SIGPIPE emulation.
15467 2010-02-20  Bruno Haible  <bruno@clisp.org>
15469         * lib/stdio.in.h: Tweak comments.
15471 2010-02-19  Bruno Haible  <bruno@clisp.org>
15473         Make it easier to find modules. New gnulib-tool option '--find'.
15474         * gnulib-tool: New option --find.
15475         (func_usage): Document it.
15476         (func_sanitize_modulelist): New function, extracted from
15477         func_all_modules.
15478         (func_all_modules): Invoke it.
15479         * doc/gnulib-tool.texi (Which modules?): New node.
15481 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
15483         * lib/sys_select.in.h: Provide select replacement even if
15484         sys/select.h exists on a system, for Interix.
15486 2010-02-18  Jim Meyering  <meyering@redhat.com>
15488         init.sh: don't use $(...) just yet
15489         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
15490         to accommodate e.g., Solaris' /bin/sh.
15492 2010-02-17  Bruno Haible  <bruno@clisp.org>
15494         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
15495         Reported by Ludovic Courtès <ludo@gnu.org>.
15497 2010-02-16  Simon Josefsson  <simon@josefsson.org>
15499         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
15500         linking with -lintl.
15502 2010-02-17  Simon Josefsson  <simon@josefsson.org>
15504         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
15505         if not provided by the system's netdb.h.  Reported by
15506         ludo@gnu.org (Ludovic Courtès).
15508 2010-02-15  Jim Meyering  <meyering@redhat.com>
15510         init.sh: improve portability and efficiency
15511         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
15512         "dummy" in a for loop.
15513         Use '!', not '^' to select the complement of a character set used
15514         in a "case" statement.
15515         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
15516         Suggestions from Eric Blake.
15518         init.sh: automatically accommodate programs with the .exe suffix
15519         Automatically arrange for an invocation of "prog" to execute the
15520         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
15521         may use the simpler "prog", yet still work when built on a system
15522         that requires specifying the added suffix.
15523         Do this by constructing a function named "prog" that invokes
15524         "prog.exe" for each .exe file in selected directories.
15525         * tests/init.sh (find_exe_basenames_): New function.
15526         (create_exe_shim_functions_): New function.
15527         (path_prepend_): Use it.
15529         maint.mk: mark syntax-check sc_*.m rules as .PHONY
15530         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
15531         "make -t syntax-check" doesn't create a ton of sc_*.m files.
15533 2010-02-14  Jim Meyering  <meyering@redhat.com>
15535         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
15536         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
15537         (sc_prohibit_hash_pjw_without_use): New rule.
15539         maint.mk: allow the default upload destination dir to be overridden
15540         * top/maint.mk (upload_dest_dir_): Define with a default that
15541         preserves the status quo.
15542         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
15543         Reported by Peter Simons.
15545         maint.mk: prohibit inclusion of "hash.h" without_use
15546         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
15548 2010-02-10  Jim Meyering  <meyering@redhat.com>
15550         maint.mk: prohibit inclusion of "ignore-value.h" without_use
15551         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
15553 2010-02-09  Eric Blake  <ebb9@byu.net>
15554         and Bruno Haible  <bruno@clisp.org>
15556         obstack-printf-posix: ensure declaration
15557         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
15558         extracted from gl_FUNC_OBSTACK_PRINTF.
15559         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
15560         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
15561         Likewise.
15562         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
15563         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
15564         0.
15566 2010-02-08  Bruno Haible  <bruno@clisp.org>
15568         gnulib-tool: Fix typo in 2010-02-07 commit.
15569         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
15570         Reported by Eric Blake.
15572 2010-02-07  Bruno Haible  <bruno@clisp.org>
15574         gnulib-tool: Fix up caching patches.
15575         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
15576         option --no-cache. Use associative arrays when supported by the shell.
15577         (sed_comments): New variable.
15578         (modcache): Renamed from do_cache.
15579         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
15580         abbreviate unnecessarily.
15581         (have_associative): New variable.
15582         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
15583         way also for ksh and zsh.
15584         (func_init_sed_convert_to_cache_statements): New function, extracted
15585         from func_cache_lookup_module. Add support for associative arrays.
15586         Don't set the c_MODULE_cached variable here. Ignore all lines before
15587         the first field header. Remove only the final newline, not all trailing
15588         newlines. Support empty fields correctly. Limit the use of 'eval' to
15589         assignments.
15590         (func_get_description, func_get_status, func_get_notice,
15591         func_get_applicability, func_get_filelist, func_get_dependencies,
15592         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
15593         func_get_automake_snippet, func_get_include_directive,
15594         func_get_link_directive, func_get_license, func_get_maintainer):
15595         Update documentation. List the unoptimized code first. Add support for
15596         associative arrays. Limit the use of 'eval' to assignments.
15597         (func_get_applicability): Undo stylistic pessimisations.
15598         (func_get_automake_snippet, func_get_include_directive): Reduce code
15599         duplication.
15600         (func_modules_transitive_closure, func_modules_add_dummy,
15601         func_modules_notice, func_modules_to_filelist, func_add_file,
15602         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
15603         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
15604         func_create_testdir, func_create_megatestdir): Update documentation.
15606 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15608         * gnulib-tool (func_cache_lookup_module): Store the module name
15609         belonging to the cache variable; error out if two different
15610         module names map to the same cache variable name.
15612 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15614         gnulib-tool: Make caching optional.
15615         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
15616         Update matching short versions of --no-changelog.
15617         (func_usage): Update.
15618         (sed_extract_cache_prog): Renamed from ...
15619         (sed_extract_prog): ... this; revert to old extraction script.
15620         (func_get_description, func_get_status)
15621         (func_get_notice, func_get_applicability, func_get_filelist)
15622         (func_get_dependencies, func_get_autoconf_early_snippet)
15623         (func_get_autoconf_snippet, func_get_automake_snippet)
15624         (func_get_include_directive, func_get_link_directive)
15625         (func_get_license, func_get_maintainer): If $do_cache is false,
15626         use old, non-caching extraction scripts.
15627         Suggestion by Bruno Haible.
15629 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15631         gnulib-tool: cache module metainformation.
15632         * gnulib-tool (sed_extract_prog): Match newline before each
15633         header, and rewrite header to a shell variable suffix.
15634         (func_cache_var, func_cache_lookup_module): New functions,
15635         to turn a module name into a cache variable prefix, and to
15636         look up and cache module metainformation.
15637         (func_get_description, func_get_status)
15638         (func_get_notice, func_get_applicability, func_get_filelist)
15639         (func_get_dependencies, func_get_autoconf_early_snippet)
15640         (func_get_autoconf_snippet, func_get_automake_snippet)
15641         (func_get_include_directive, func_get_link_directive)
15642         (func_get_license, func_get_maintainer): Use
15643         func_cache_lookup_module.
15645 2010-02-07  Bruno Haible  <bruno@clisp.org>
15647         fnctl: Fix missing dependency.
15648         * modules/fcntl (Depends-on): Add getdtablesize.
15649         Reported by John W. Eaton <jwe@gnu.org>.
15651 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
15653         Argp: fix recognition of short alias options.
15655         * lib/argp-parse.c (convert_options): Fix improper use of
15656         `|' between character values.
15657         * tests/test-argp.c (group1_option): New alias option
15658         --read (-r).
15659         (group1_parser): Special handling for 'r'.
15660         (test15): New test case.
15661         (test_fun): Add test15.
15662         * tests/test-argp-2.sh: Update expected --help and --usage
15663         outputs.
15665 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
15667         * tests/test-argp.c: Fix indentation.
15669 2010-02-04  Eric Blake  <ebb9@byu.net>
15671         gettimeofday: expose type of second argument
15672         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
15673         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
15674         * tests/test-gettimeofday.c: Use it to silence warning.
15675         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
15676         the issue.
15678 2010-02-03  Jim Meyering  <meyering@redhat.com>
15680         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
15681         * lib/regcomp.c (TYPE_SIGNED): Define.
15682         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
15684         regcomp.c: avoid a new -Wshadow warning
15685         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
15687 2010-02-01  Jim Meyering  <meyering@redhat.com>
15689         removing useless parentheses in cpp #define directives
15690         For motivation, see commit c0221df4, "define STREQ(a,b)
15691         consistently, removing useless parentheses"
15692         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
15693         * lib/mountlist.c (MNT_IGNORE): Likewise.
15694         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
15696 2010-02-01  Eric Blake  <ebb9@byu.net>
15698         sys_time: use link-warning
15699         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
15700         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
15701         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
15702         * modules/sys_time (Depends-on): Add warn-on-use.
15703         (Makefile.am): Always build replacement.
15704         (configure.ac): Update substitutions.
15705         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
15706         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
15707         bother with SYS_TIME_H.
15708         * modules/gettimeofday (configure.ac): Declare indicator.
15709         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
15710         in use.
15712         closein-tests: silence compiler warning
15713         * tests/test-closein.c (main): Ignore fread result.
15714         * modules/closein-tests (Depends-on): Add ignore-value.
15716         tests: silence warning about system return
15717         * tests/test-areadlink-with-size.c (main): Ignore system result.
15718         * tests/test-areadlink.c (main): Likewise.
15719         * tests/test-areadlinkat-with-size.c (main): Likewise.
15720         * tests/test-areadlinkat.c (main): Likewise.
15721         * tests/test-canonicalize-lgpl.c (main): Likewise.
15722         * tests/test-canonicalize.c (main): Likewise.
15723         * tests/test-chown.c (main): Likewise.
15724         * tests/test-fchownat.c (main): Likewise.
15725         * tests/test-fdutimensat.c (main): Likewise.
15726         * tests/test-fstatat.c (main): Likewise.
15727         * tests/test-futimens.c (main): Likewise.
15728         * tests/test-lchown.c (main): Likewise.
15729         * tests/test-link.c (main): Likewise.
15730         * tests/test-linkat.c (main): Likewise.
15731         * tests/test-lstat.c (main): Likewise.
15732         * tests/test-mkdir.c (main): Likewise.
15733         * tests/test-mkdirat.c (main): Likewise.
15734         * tests/test-mkfifo.c (main): Likewise.
15735         * tests/test-mkfifoat.c (main): Likewise.
15736         * tests/test-mknod.c (main): Likewise.
15737         * tests/test-readlink.c (main): Likewise.
15738         * tests/test-remove.c (main): Likewise.
15739         * tests/test-rename.c (main): Likewise.
15740         * tests/test-renameat.c (main): Likewise.
15741         * tests/test-rmdir.c (main): Likewise.
15742         * tests/test-symlink.c (main): Likewise.
15743         * tests/test-symlinkat.c (main): Likewise.
15744         * tests/test-unlink.c (main): Likewise.
15745         * tests/test-unlinkat.c (main): Likewise.
15746         * tests/test-utimens.c (main): Likewise.
15747         * tests/test-utimensat.c (main): Likewise.
15748         * modules/areadlink-tests (Depends-on): Add ignore-value.
15749         * modules/areadlink-with-size-tests (Depends-on): Likewise.
15750         * modules/areadlinkat-tests (Depends-on): Likewise.
15751         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
15752         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
15753         * modules/canonicalize-tests (Depends-on): Likewise.
15754         * modules/chown-tests (Depends-on): Likewise.
15755         * modules/fdutimensat-tests (Depends-on): Likewise.
15756         * modules/futimens-tests (Depends-on): Likewise.
15757         * modules/lchown-tests (Depends-on): Likewise.
15758         * modules/link-tests (Depends-on): Likewise.
15759         * modules/linkat-tests (Depends-on): Likewise.
15760         * modules/lstat-tests (Depends-on): Likewise.
15761         * modules/mkdir-tests (Depends-on): Likewise.
15762         * modules/mkfifo-tests (Depends-on): Likewise.
15763         * modules/mkfifoat-tests (Depends-on): Likewise.
15764         * modules/mknod-tests (Depends-on): Likewise.
15765         * modules/openat-tests (Depends-on): Likewise.
15766         * modules/readlink-tests (Depends-on): Likewise.
15767         * modules/remove-tests (Depends-on): Likewise.
15768         * modules/rename-tests (Depends-on): Likewise.
15769         * modules/renameat-tests (Depends-on): Likewise.
15770         * modules/rmdir-tests (Depends-on): Likewise.
15771         * modules/symlink-tests (Depends-on): Likewise.
15772         * modules/symlinkat-tests (Depends-on): Likewise.
15773         * modules/unlink-tests (Depends-on): Likewise.
15774         * modules/utimens-tests (Depends-on): Likewise.
15775         * modules/utimensat-tests (Depends-on): Likewise.
15777 2010-01-31  Bruno Haible  <bruno@clisp.org>
15779         Perform the same test for many <math.h> functions.
15780         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
15781         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
15782         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
15783         of gl_MATHFUNC.
15784         * modules/acos (configure.ac): Likewise.
15785         * modules/asin (configure.ac): Likewise.
15786         * modules/atan (configure.ac): Likewise.
15787         * modules/atan2 (configure.ac): Likewise.
15788         * modules/cbrt (configure.ac): Likewise.
15789         * modules/copysign (configure.ac): Likewise.
15790         * modules/cos (configure.ac): Likewise.
15791         * modules/cosh (configure.ac): Likewise.
15792         * modules/erf (configure.ac): Likewise.
15793         * modules/erfc (configure.ac): Likewise.
15794         * modules/exp (configure.ac): Likewise.
15795         * modules/fmod (configure.ac): Likewise.
15796         * modules/hypot (configure.ac): Likewise.
15797         * modules/j0 (configure.ac): Likewise.
15798         * modules/j1 (configure.ac): Likewise.
15799         * modules/jn (configure.ac): Likewise.
15800         * modules/lgamma (configure.ac): Likewise.
15801         * modules/log (configure.ac): Likewise.
15802         * modules/log10 (configure.ac): Likewise.
15803         * modules/log1p (configure.ac): Likewise.
15804         * modules/pow (configure.ac): Likewise.
15805         * modules/remainder (configure.ac): Likewise.
15806         * modules/sin (configure.ac): Likewise.
15807         * modules/sinh (configure.ac): Likewise.
15808         * modules/tan (configure.ac): Likewise.
15809         * modules/tanh (configure.ac): Likewise.
15810         * modules/y0 (configure.ac): Likewise.
15811         * modules/y1 (configure.ac): Likewise.
15812         * modules/yn (configure.ac): Likewise.
15813         Suggested by Paolo Bonzini.
15815 2010-01-31  Bruno Haible  <bruno@clisp.org>
15817         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
15819 2010-01-31  Bruno Haible  <bruno@clisp.org>
15821         Work around getdelim() bug on FreeBSD 8.0.
15822         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
15823         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
15824         not work.
15825         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
15826         is 1.
15827         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
15828         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
15829         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
15830         a non-zero size.
15831         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
15833 2010-01-31  Bruno Haible  <bruno@clisp.org>
15835         Work around getline() bug on FreeBSD 8.0.
15836         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
15837         and a non-zero size.
15838         * tests/test-getline.c (main): Likewise.
15839         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
15840         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
15842 2010-01-28  Eric Blake  <ebb9@byu.net>
15844         regex: fix build failure
15845         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
15846         platforms.
15848 2010-01-28  Jim Meyering  <meyering@redhat.com>
15850         regex: do not ignore memory allocation failure
15851         * lib/regex_internal.c (create_cd_newstate): Detect
15852         re_node_set_init_copy failure.   Extracted from glibc commit
15853         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
15855         regex: sync more white-space changes from libc
15856         * lib/regex_internal.c: White-space only changes.
15857         * lib/regexec.c: Likewise.
15859         regex: add many uses of __attribute_warn_unused_result__
15860         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
15861         * lib/regexec.c: Likewise.
15862         Extracted from a messy glibc commit.
15864         regcomp.c: spelling and merge-artifact from glibc
15865         * lib/regcomp.c: Merge remainder of glibc's
15866         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
15868         regcomp.c: sync white-space changes from glibc
15869         * lib/regcomp.c: Merge to accommodate white space
15870         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
15872         regcomp.c: do not ignore internal return values
15873         * lib/regcomp.c: Do not ignore internal return values.
15874         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
15875         but without its white-space changes and spelling fixes.
15877         regex_internal.h: define __attribute_warn_unused_result__
15878         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
15880         maint: add a syntax-check rule to check for vulnerable Makefile.in
15881         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
15883 2010-01-27  Jim Meyering  <meyering@redhat.com>
15885         ncftpput-ftp: clean up spaces
15886         * build-aux/ncftpput-ftp: Make Copyright line consistent.
15887         Remove trailing blanks.
15889 2010-01-27  Simon Josefsson  <simon@josefsson.org>
15891         * build-aux/git-version-gen: Fix copyright statement.
15892         * build-aux/gnupload: Likewise.
15893         * tests/test-arcfour.c: Likewise.
15894         * tests/test-arctwo.c: Likewise.
15895         * tests/test-count-one-bits.c: Likewise.
15896         * tests/test-crc.c: Likewise.
15897         * tests/test-des.c: Likewise.
15898         * tests/test-gc-arcfour.c: Likewise.
15899         * tests/test-gc-arctwo.c: Likewise.
15900         * tests/test-gc-des.c: Likewise.
15901         * tests/test-gc-hmac-md5.c: Likewise.
15902         * tests/test-gc-hmac-sha1.c: Likewise.
15903         * tests/test-gc-md2.c: Likewise.
15904         * tests/test-gc-md4.c: Likewise.
15905         * tests/test-gc-md5.c: Likewise.
15906         * tests/test-gc-pbkdf2-sha1.c: Likewise.
15907         * tests/test-gc-rijndael.c: Likewise.
15908         * tests/test-gc-sha1.c: Likewise.
15909         * tests/test-gc.c: Likewise.
15910         * tests/test-gethostname.c: Likewise.
15911         * tests/test-gettimeofday.c: Likewise.
15912         * tests/test-hash.c: Likewise.
15913         * tests/test-hmac-md5.c: Likewise.
15914         * tests/test-hmac-sha1.c: Likewise.
15915         * tests/test-md2.c: Likewise.
15916         * tests/test-md4.c: Likewise.
15917         * tests/test-md5.c: Likewise.
15918         * tests/test-memchr.c: Likewise.
15919         * tests/test-memchr2.c: Likewise.
15920         * tests/test-memcmp.c: Likewise.
15921         * tests/test-memmem.c: Likewise.
15922         * tests/test-memrchr.c: Likewise.
15923         * tests/test-rawmemchr.c: Likewise.
15924         * tests/test-read-file.c: Likewise.
15925         * tests/test-rijndael.c: Likewise.
15926         * tests/test-sockets.c: Likewise.
15927         * tests/test-strchrnul.c: Likewise.
15928         * tests/test-strstr.c: Likewise.
15929         * tests/test-strtod.c: Likewise.
15930         * build-aux/ncftpput-ftp: Likewise.
15932 2010-01-26  Eric Blake  <ebb9@byu.net>
15934         ignore-value: update recommended header name
15935         * modules/ignore-value (Include): Only use <> for headers that
15936         exist in glibc.
15938 2010-01-26  Jim Meyering  <meyering@redhat.com>
15940         test-userspec.c: avoid compiler warnings
15941         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
15942         and "initialization discards qualifiers..." warnings.
15943         Put the first "uid" in its own scope, and make char* members "const".
15945 2010-01-25  Bruno Haible  <bruno@clisp.org>
15947         gnulib-tool: Make warning diagnostics consistent.
15948         * gnulib-tool (func_warning): New function.
15949         Use it everywhere where gnulib-tool produces output to stderr and it is
15950         not a fatal error.
15952 2010-01-25  Bruno Haible  <bruno@clisp.org>
15954         Fix test dependencies.
15955         * modules/xstrtol-tests (Depends-on): Add inttypes.
15956         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
15958 2010-01-25 Pádraig Brady <P@draigBrady.com>
15960         syntax-check: detect incorrect boolean macro values in config.h
15961         * modules/maintainer-makefile (configure.ac): Parameterize the location
15962         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
15963         The logic is from Eric Blake and the location indicated by Jim Meyering.
15964         Note the more natural CONFIG_HEADER name is prohibited by automake
15965         for backwards compatibility reasons.
15966         * top/maint.mk (sc_Wundef_boolean): New rule.
15968 2010-01-25  Jim Meyering  <meyering@redhat.com>
15970         bootstrap: detect MacOS 10.6's shasum, too
15971         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
15972         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
15974 2010-01-23  Jim Meyering  <meyering@redhat.com>
15976         xstrtoll: new module
15977         * modules/xstrtoll: New file.
15978         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
15979         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
15980         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
15981         ./configure fails if you use this module and lack "long long".
15982         * modules/xstrtoll-tests: New module.
15983         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
15984         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
15985         new init.sh-based test framework.
15987 2010-01-24  Bruno Haible  <bruno@clisp.org>
15989         Tests for module 'yn'.
15990         * modules/yn-tests: New file.
15991         * tests/test-yn.c: New file.
15993         Tests for module 'y1'.
15994         * modules/y1-tests: New file.
15995         * tests/test-y1.c: New file.
15997         Tests for module 'y0'.
15998         * modules/y0-tests: New file.
15999         * tests/test-y0.c: New file.
16001         Tests for module 'tanh'.
16002         * modules/tanh-tests: New file.
16003         * tests/test-tanh.c: New file.
16005         Tests for module 'tan'.
16006         * modules/tan-tests: New file.
16007         * tests/test-tan.c: New file.
16009         Tests for module 'sqrt'.
16010         * modules/sqrt-tests: New file.
16011         * tests/test-sqrt.c: New file.
16013         Tests for module 'sinh'.
16014         * modules/sinh-tests: New file.
16015         * tests/test-sinh.c: New file.
16017         Tests for module 'sin'.
16018         * modules/sin-tests: New file.
16019         * tests/test-sin.c: New file.
16021         Tests for module 'rint'.
16022         * modules/rint-tests: New file.
16023         * tests/test-rint.c: New file.
16025         Tests for module 'remainder'.
16026         * modules/remainder-tests: New file.
16027         * tests/test-remainder.c: New file.
16029         Tests for module 'pow'.
16030         * modules/pow-tests: New file.
16031         * tests/test-pow.c: New file.
16033         Tests for module 'nextafter'.
16034         * modules/nextafter-tests: New file.
16035         * tests/test-nextafter.c: New file.
16037         Tests for module 'modf'.
16038         * modules/modf-tests: New file.
16039         * tests/test-modf.c: New file.
16041         Tests for module 'logb'.
16042         * modules/logb-tests: New file.
16043         * tests/test-logb.c: New file.
16045         Tests for module 'log1p'.
16046         * modules/log1p-tests: New file.
16047         * tests/test-log1p.c: New file.
16049         Tests for module 'log10'.
16050         * modules/log10-tests: New file.
16051         * tests/test-log10.c: New file.
16053         Tests for module 'log'.
16054         * modules/log-tests: New file.
16055         * tests/test-log.c: New file.
16057         Tests for module 'lgamma'.
16058         * modules/lgamma-tests: New file.
16059         * tests/test-lgamma.c: New file.
16061         Tests for module 'ldexp'.
16062         * modules/ldexp-tests: New file.
16063         * tests/test-ldexp.c: New file.
16065         Tests for module 'jn'.
16066         * modules/jn-tests: New file.
16067         * tests/test-jn.c: New file.
16069         Tests for module 'j1'.
16070         * modules/j1-tests: New file.
16071         * tests/test-j1.c: New file.
16073         Tests for module 'j0'.
16074         * modules/j0-tests: New file.
16075         * tests/test-j0.c: New file.
16077         Tests for module 'hypot'.
16078         * modules/hypot-tests: New file.
16079         * tests/test-hypot.c: New file.
16081         Tests for module 'fmod'.
16082         * modules/fmod-tests: New file.
16083         * tests/test-fmod.c: New file.
16085         Tests for module 'fabs'.
16086         * modules/fabs-tests: New file.
16087         * tests/test-fabs.c: New file.
16089         Tests for module 'exp'.
16090         * modules/exp-tests: New file.
16091         * tests/test-exp.c: New file.
16093         Tests for module 'erfc'.
16094         * modules/erfc-tests: New file.
16095         * tests/test-erfc.c: New file.
16097         Tests for module 'erf'.
16098         * modules/erf-tests: New file.
16099         * tests/test-erf.c: New file.
16101         Tests for module 'cosh'.
16102         * modules/cosh-tests: New file.
16103         * tests/test-cosh.c: New file.
16105         Tests for module 'cos'.
16106         * modules/cos-tests: New file.
16107         * tests/test-cos.c: New file.
16109         Tests for module 'copysign'.
16110         * modules/copysign-tests: New file.
16111         * tests/test-copysign.c: New file.
16113         Tests for module 'cbrt'.
16114         * modules/cbrt-tests: New file.
16115         * tests/test-cbrt.c: New file.
16117         Tests for module 'atan2'.
16118         * modules/atan2-tests: New file.
16119         * tests/test-atan2.c: New file.
16121         Tests for module 'atan'.
16122         * modules/atan-tests: New file.
16123         * tests/test-atan.c: New file.
16125         Tests for module 'asin'.
16126         * modules/asin-tests: New file.
16127         * tests/test-asin.c: New file.
16129         Tests for module 'acos'.
16130         * modules/acos-tests: New file.
16131         * tests/test-acos.c: New file.
16133 2010-01-24  Bruno Haible  <bruno@clisp.org>
16135         Fix tests for common <math.h> functions.
16136         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
16137         code snippet that references the function pointer, rather than merely
16138         calling the function. Substitute the FUNC_LIBM variable.
16139         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
16140         * modules/acos (configure.ac): Likewise.
16141         * modules/asin (configure.ac): Likewise.
16142         * modules/atan (configure.ac): Likewise.
16143         * modules/atan2 (configure.ac): Likewise.
16144         * modules/cbrt (configure.ac): Likewise.
16145         * modules/copysign (configure.ac): Likewise.
16146         * modules/cos (configure.ac): Likewise.
16147         * modules/cosh (configure.ac): Likewise.
16148         * modules/erf (configure.ac): Likewise.
16149         * modules/erfc (configure.ac): Likewise.
16150         * modules/exp (configure.ac): Likewise.
16151         * modules/fabs (configure.ac): Likewise.
16152         * modules/fmod (configure.ac): Likewise.
16153         * modules/hypot (configure.ac): Likewise.
16154         * modules/j0 (configure.ac): Likewise.
16155         * modules/j1 (configure.ac): Likewise.
16156         * modules/jn (configure.ac): Likewise.
16157         * modules/ldexp (configure.ac): Likewise.
16158         * modules/lgamma (configure.ac): Likewise.
16159         * modules/log (configure.ac): Likewise.
16160         * modules/log10 (configure.ac): Likewise.
16161         * modules/log1p (configure.ac): Likewise.
16162         * modules/logb (configure.ac): Likewise.
16163         * modules/modf (configure.ac): Likewise.
16164         * modules/nextafter (configure.ac): Likewise.
16165         * modules/pow (configure.ac): Likewise.
16166         * modules/remainder (configure.ac): Likewise.
16167         * modules/rint (configure.ac): Likewise.
16168         * modules/sin (configure.ac): Likewise.
16169         * modules/sinh (configure.ac): Likewise.
16170         * modules/tan (configure.ac): Likewise.
16171         * modules/tanh (configure.ac): Likewise.
16172         * modules/y0 (configure.ac): Likewise.
16173         * modules/y1 (configure.ac): Likewise.
16174         * modules/yn (configure.ac): Likewise.
16176 2010-01-24  Bruno Haible  <bruno@clisp.org>
16178         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
16179         * tests/test-acosl.c (x): New variable.
16180         (main): Store argument in x and fetch it from x.
16181         * tests/test-asinl.c (x): New variable.
16182         (main): Store argument in x and fetch it from x.
16183         * tests/test-atanl.c (x): New variable.
16184         (main): Store argument in x and fetch it from x.
16185         * tests/test-cosl.c (x): New variable.
16186         (main): Store argument in x and fetch it from x.
16187         * tests/test-expl.c (x): New variable.
16188         (main): Store argument in x and fetch it from x.
16189         * tests/test-logl.c (x): New variable.
16190         (main): Store argument in x and fetch it from x.
16191         * tests/test-sinl.c (x): New variable.
16192         (main): Store argument in x and fetch it from x.
16193         * tests/test-sqrtl.c (x): New variable.
16194         (main): Store argument in x and fetch it from x.
16195         * tests/test-tanl.c (x): New variable.
16196         (main): Store argument in x and fetch it from x.
16198 2010-01-24  Bruno Haible  <bruno@clisp.org>
16200         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
16201         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
16202         assignments to the initial TESTS_ENVIRONMENT.
16203         * doc/gnulib.texi (Unit test modules): Document it.
16204         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
16205         TESTS_ENVIRONMENT.
16206         * modules/btowc-tests (Makefile.am): Likewise.
16207         * modules/c-stack-tests (Makefile.am): Likewise.
16208         * modules/c-strcase-tests (Makefile.am): Likewise.
16209         * modules/copy-file-tests (Makefile.am): Likewise.
16210         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
16211         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
16212         * modules/mbrtowc-tests (Makefile.am): Likewise.
16213         * modules/mbscasecmp-tests (Makefile.am): Likewise.
16214         * modules/mbscasestr-tests (Makefile.am): Likewise.
16215         * modules/mbschr-tests (Makefile.am): Likewise.
16216         * modules/mbscspn-tests (Makefile.am): Likewise.
16217         * modules/mbsinit-tests (Makefile.am): Likewise.
16218         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
16219         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
16220         * modules/mbspbrk-tests (Makefile.am): Likewise.
16221         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
16222         * modules/mbsrchr-tests (Makefile.am): Likewise.
16223         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
16224         * modules/mbsspn-tests (Makefile.am): Likewise.
16225         * modules/mbsstr-tests (Makefile.am): Likewise.
16226         * modules/nl_langinfo-tests (Makefile.am): Likewise.
16227         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
16228         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
16229         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
16230         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
16231         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
16232         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
16233         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
16234         * modules/wcrtomb-tests (Makefile.am): Likewise.
16235         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
16236         * modules/wcsrtombs-tests (Makefile.am): Likewise.
16237         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
16238         assignments from TESTS_ENVIRONMENT.
16239         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
16240         augmentation.
16241         * modules/argp-version-etc-tests (Makefile.am): Likewise.
16242         * modules/atexit-tests (Makefile.am): Likewise.
16243         * modules/binary-io-tests (Makefile.am): Likewise.
16244         * modules/closein-tests (Makefile.am): Likewise.
16245         * modules/dprintf-posix-tests (Makefile.am): Likewise.
16246         * modules/exclude-tests (Makefile.am): Likewise.
16247         * modules/fflush-tests (Makefile.am): Likewise.
16248         * modules/fpending-tests (Makefile.am): Likewise.
16249         * modules/fprintf-posix-tests (Makefile.am): Likewise.
16250         * modules/freadahead-tests (Makefile.am): Likewise.
16251         * modules/freadptr-tests (Makefile.am): Likewise.
16252         * modules/freadseek-tests (Makefile.am): Likewise.
16253         * modules/fseek-tests (Makefile.am): Likewise.
16254         * modules/fseeko-tests (Makefile.am): Likewise.
16255         * modules/ftell-tests (Makefile.am): Likewise.
16256         * modules/ftello-tests (Makefile.am): Likewise.
16257         * modules/idpriv-drop-tests (Makefile.am): Likewise.
16258         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
16259         * modules/lseek-tests (Makefile.am): Likewise.
16260         * modules/parse-duration-tests (Makefile.am): Likewise.
16261         * modules/perror-tests (Makefile.am): Likewise.
16262         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
16263         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
16264         * modules/pipe-tests (Makefile.am): Likewise.
16265         * modules/pread-tests (Makefile.am): Likewise.
16266         * modules/printf-posix-tests (Makefile.am): Likewise.
16267         * modules/select-tests (Makefile.am): Likewise.
16268         * modules/sigpipe-tests (Makefile.am): Likewise.
16269         * modules/tsearch-tests (Makefile.am): Likewise.
16270         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
16271         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
16272         * modules/uniname/uniname-tests (Makefile.am): Likewise.
16273         * modules/uniwidth/width-tests (Makefile.am): Likewise.
16274         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
16275         * modules/version-etc-tests (Makefile.am): Likewise.
16276         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
16277         * modules/vprintf-posix-tests (Makefile.am): Likewise.
16278         * modules/xalloc-die-tests (Makefile.am): Likewise.
16279         * modules/xprintf-posix-tests (Makefile.am): Likewise.
16280         * modules/xstrtoimax-tests (Makefile.am): Likewise.
16281         * modules/xstrtol-tests (Makefile.am): Likewise.
16282         * modules/xstrtoumax-tests (Makefile.am): Likewise.
16283         * modules/yesno-tests (Makefile.am): Likewise.
16284         Suggested by Jim Meyering.
16286 2010-01-24  Bruno Haible  <bruno@clisp.org>
16288         More documentation.
16289         * doc/gnulib.texi (Writing modules): New chapter.
16290         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
16291         the new chapter.
16293 2010-01-24  Jim Meyering  <meyering@redhat.com>
16295         maint.mk: do not prepend "./" after filtering
16296         * top/maint.mk (_prepend_srcdir_prefix): New variable
16297         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
16298         "./" when $(srcdir) is ".".
16300         define STREQ(a,b) consistently, removing useless parentheses
16301         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
16302         since the only risk is that "a" or "b" contains an unparenthesized
16303         comma, but if either did that, STREQ would have 3 or more arguments.
16304         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
16305         * lib/fts.c (STREQ): Remove unnecessary parentheses.
16306         * lib/hash-triple.c (STREQ): Likewise.
16307         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
16308         * lib/getugroups.c (STREQ): Likewise.
16310 2010-01-23  Jim Meyering  <meyering@redhat.com>
16312         maint.mk: fix syntax-check in a non-srcdir build directory
16313         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
16314         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
16316 2010-01-22  Jim Meyering  <meyering@redhat.com>
16318         userspec: add unit tests
16319         * tests/test-userspec.c: New file.
16320         * modules/userspec-tests: Likewise.
16322 2010-01-21  Jim Meyering  <meyering@redhat.com>
16324         maint.mk: handle source file names containing "." robustly
16325         * top/maint.mk (_dot_escaped_srcdir): Define.
16326         (VC_LIST): Use it in LHS of sed substitution.
16328 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
16330         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
16331         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
16332         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
16333         from a non-srcdir build.
16335 2010-01-20  Eric Blake  <ebb9@byu.net>
16337         warn-on-use: use instead of link-warning
16338         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
16339         * modules/unistd (Depends-on, Makefile.am): Likewise.
16340         * modules/arpa_inet (Depends-on): Replace link-warning with
16341         warn-on-use.
16342         (Makefile.am): Update rules accordingly.
16343         * modules/ctype (Depends-on, Makefile.am): Likewise.
16344         * modules/dirent (Depends-on, Makefile.am): Likewise.
16345         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
16346         * modules/inttypes (Depends-on, Makefile.am): Likewise.
16347         * modules/langinfo (Depends-on, Makefile.am): Likewise.
16348         * modules/locale (Depends-on, Makefile.am): Likewise.
16349         * modules/math (Depends-on, Makefile.am): Likewise.
16350         * modules/search (Depends-on, Makefile.am): Likewise.
16351         * modules/signal (Depends-on, Makefile.am): Likewise.
16352         * modules/spawn (Depends-on, Makefile.am): Likewise.
16353         * modules/stdlib (Depends-on, Makefile.am): Likewise.
16354         * modules/string (Depends-on, Makefile.am): Likewise.
16355         * modules/strings (Depends-on, Makefile.am): Likewise.
16356         * modules/sys_file (Depends-on, Makefile.am): Likewise.
16357         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
16358         * modules/sys_select (Depends-on, Makefile.am): Likewise.
16359         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
16360         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
16361         * modules/sys_times (Depends-on, Makefile.am): Likewise.
16362         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
16363         * modules/wchar (Depends-on, Makefile.am): Likewise.
16364         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
16365         should be poisoned.
16366         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
16367         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
16368         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
16369         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
16370         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
16371         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
16372         * m4/math_h.m4 (gl_MATH_H): Likewise.
16373         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
16374         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
16375         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
16376         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
16377         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
16378         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
16379         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
16380         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
16381         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
16382         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
16383         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
16384         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
16385         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
16386         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
16387         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
16388         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
16389         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
16390         GL_LINK_WARNING.
16391         * lib/ctype.in.h: Likewise.
16392         * lib/dirent.in.h: Likewise.
16393         * lib/fcntl.in.h: Likewise.
16394         * lib/inttypes.in.h: Likewise.
16395         * lib/langinfo.in.h: Likewise.
16396         * lib/locale.in.h: Likewise.
16397         * lib/math.in.h: Likewise.
16398         * lib/search.in.h: Likewise.
16399         * lib/signal.in.h: Likewise.
16400         * lib/spawn.in.h: Likewise.
16401         * lib/stdio.in.h: Likewise.
16402         * lib/stdlib.in.h: Likewise.
16403         * lib/string.in.h: Likewise.
16404         * lib/strings.in.h: Likewise.
16405         * lib/sys_file.in.h: Likewise.
16406         * lib/sys_ioctl.in.h: Likewise.
16407         * lib/sys_select.in.h: Likewise.
16408         * lib/sys_socket.in.h: Likewise.
16409         * lib/sys_stat.in.h: Likewise.
16410         * lib/sys_times.in.h: Likewise.
16411         * lib/sys_utsname.in.h: Likewise.
16412         * lib/unistd.in.h: Likewise.
16413         * lib/wchar.in.h: Likewise.
16415 2010-01-20  Bruno Haible  <bruno@clisp.org>
16417         Avoid duplicate -lm.
16418         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
16419         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
16420         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
16421         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
16422         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
16423         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
16424         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
16425         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
16426         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
16427         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
16428         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
16429         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
16430         Reported by Paolo Bonzini.
16432 2010-01-19  Bruno Haible  <bruno@clisp.org>
16434         langinfo, nl_langinfo: Relicense under LGPLv2+.
16435         * modules/langinfo (License): Change to LGPLv2+.
16436         * modules/nl_langinfo (License): Likewise.
16437         Patch by David Lutterkort <lutter@redhat.com>.
16439 2010-01-19  Bruno Haible  <bruno@clisp.org>
16441         Avoid compilation error with cc on OSF/1 5.1.
16442         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
16443         statement, not before.
16444         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
16446 2010-01-18  Bruno Haible  <bruno@clisp.org>
16448         Avoid a link error due to the __printf__ symbol.
16449         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
16450         and 2.6.x.
16451         (__format__, __printf__): Remove definitions.
16452         * lib/argp-fmtstream.h: Likewise.
16453         * lib/argp.h: Likewise.
16454         * lib/error.h: Likewise.
16455         * lib/vasnprintf.h: Likewise.
16456         * lib/xprintf.h: Likewise.
16457         * lib/xvasprintf.h: Likewise.
16458         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
16460 2010-01-18  Bruno Haible  <bruno@clisp.org>
16462         Tests for module 'tanl'.
16463         * modules/tanl-tests: New file.
16464         * tests/test-tanl.c: New file.
16466         Tests for module 'sqrtl'.
16467         * modules/sqrtl-tests: New file.
16468         * tests/test-sqrtl.c: New file.
16470         Tests for module 'sinl'.
16471         * modules/sinl-tests: New file.
16472         * tests/test-sinl.c: New file.
16474         Tests for module 'logl'.
16475         * modules/logl-tests: New file.
16476         * tests/test-logl.c: New file.
16478         Tests for module 'expl'.
16479         * modules/expl-tests: New file.
16480         * tests/test-expl.c: New file.
16482         Tests for module 'cosl'.
16483         * modules/cosl-tests: New file.
16484         * tests/test-cosl.c: New file.
16486         Tests for module 'atanl'.
16487         * modules/atanl-tests: New file.
16488         * tests/test-atanl.c: New file.
16490         Tests for module 'asinl'.
16491         * modules/asinl-tests: New file.
16492         * tests/test-asinl.c: New file.
16494         Tests for module 'acosl'.
16495         * modules/acosl-tests: New file.
16496         * tests/test-acosl.c: New file.
16498         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
16499         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
16500         tanl): Use the standard gnulib idiom.
16501         * lib/cosl.c: Don't include trigl.c and sincosl.c.
16502         * lib/sinl.c: Likewise.
16503         * lib/tanl.c: Don't include trigl.c.
16504         (kernel_tanl): Make static.
16505         * lib/sincosl.c: Include trigl.h first.
16506         * lib/trigl.c: Likewise.
16507         * m4/acosl.m4: New file.
16508         * m4/asinl.m4: New file.
16509         * m4/atanl.m4: New file.
16510         * m4/cosl.m4: New file.
16511         * m4/expl.m4: New file.
16512         * m4/logl.m4: New file.
16513         * m4/sinl.m4: New file.
16514         * m4/sqrtl.m4: New file.
16515         * m4/tanl.m4: New file.
16516         * m4/mathl.m4: Remove file.
16517         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
16518         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
16519         Don't initialize GNULIB_MATHL.
16520         * modules/acosl: New file.
16521         * modules/asinl: New file.
16522         * modules/atanl: New file.
16523         * modules/cosl: New file.
16524         * modules/expl: New file.
16525         * modules/logl: New file.
16526         * modules/sinl: New file.
16527         * modules/sqrtl: New file.
16528         * modules/tanl: New file.
16529         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
16530         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
16531         substitute GNULIB_MATHL.
16532         * modules/mathl: Rewritten.
16533         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
16534         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
16535         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
16536         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
16537         * doc/posix-functions/expl.texi: Mention the 'expl' module.
16538         * doc/posix-functions/logl.texi: Mention the 'logl' module.
16539         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
16540         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
16541         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
16543 2010-01-18  Bruno Haible  <bruno@clisp.org>
16545         sqrt: Make gl_FUNC_SQRT requirable.
16546         * m4/sqrt.m4: New file.
16547         * modules/sqrt (Files): Add it.
16548         (configure.ac): Invoke gl_FUNC_SQRT.
16550 2010-01-18  Bruno Haible  <bruno@clisp.org>
16552         New modules for common <math.h> functions.
16553         * m4/mathfunc.m4: New file.
16554         * modules/acos: New file.
16555         * modules/asin: New file.
16556         * modules/atan: New file.
16557         * modules/atan2: New file.
16558         * modules/cbrt: New file.
16559         * modules/copysign: New file.
16560         * modules/cos: New file.
16561         * modules/cosh: New file.
16562         * modules/erf: New file.
16563         * modules/erfc: New file.
16564         * modules/exp: New file.
16565         * modules/fabs: New file.
16566         * modules/fmod: New file.
16567         * modules/hypot: New file.
16568         * modules/j0: New file.
16569         * modules/j1: New file.
16570         * modules/jn: New file.
16571         * modules/ldexp: New file.
16572         * modules/lgamma: New file.
16573         * modules/log: New file.
16574         * modules/log10: New file.
16575         * modules/log1p: New file.
16576         * modules/logb: New file.
16577         * modules/modf: New file.
16578         * modules/nextafter: New file.
16579         * modules/pow: New file.
16580         * modules/remainder: New file.
16581         * modules/rint: New file.
16582         * modules/sin: New file.
16583         * modules/sinh: New file.
16584         * modules/sqrt: New file.
16585         * modules/tan: New file.
16586         * modules/tanh: New file.
16587         * modules/y0: New file.
16588         * modules/y1: New file.
16589         * modules/yn: New file.
16590         * doc/posix-functions/acos.texi: Mention the 'acos' module.
16591         * doc/posix-functions/asin.texi: Mention the 'asin' module.
16592         * doc/posix-functions/atan.texi: Mention the 'atan' module.
16593         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
16594         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
16595         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
16596         * doc/posix-functions/cos.texi: Mention the 'cos' module.
16597         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
16598         * doc/posix-functions/erf.texi: Mention the 'erf' module.
16599         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
16600         * doc/posix-functions/exp.texi: Mention the 'exp' module.
16601         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
16602         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
16603         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
16604         * doc/posix-functions/j0.texi: Mention the 'j0' module.
16605         * doc/posix-functions/j1.texi: Mention the 'j1' module.
16606         * doc/posix-functions/jn.texi: Mention the 'jn' module.
16607         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
16608         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
16609         * doc/posix-functions/log.texi: Mention the 'log' module.
16610         * doc/posix-functions/log10.texi: Mention the 'log10' module.
16611         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
16612         * doc/posix-functions/logb.texi: Mention the 'logb' module.
16613         * doc/posix-functions/modf.texi: Mention the 'modf' module.
16614         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
16615         * doc/posix-functions/pow.texi: Mention the 'pow' module.
16616         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
16617         * doc/posix-functions/rint.texi: Mention the 'rint' module.
16618         * doc/posix-functions/sin.texi: Mention the 'sin' module.
16619         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
16620         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
16621         * doc/posix-functions/tan.texi: Mention the 'tan' module.
16622         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
16623         * doc/posix-functions/y0.texi: Mention the 'y0' module.
16624         * doc/posix-functions/y1.texi: Mention the 'y1' module.
16625         * doc/posix-functions/yn.texi: Mention the 'yn' module.
16627 2010-01-18  Jim Meyering  <meyering@redhat.com>
16629         ignore-value: relax license to LGPLv2+
16630         * modules/ignore-value (License): Relax to LGPLv2+.
16632         getdate: don't leak when TZ contains two or more '"'s
16633         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
16634         double quote in TZ after the first one.
16636         readtokens: do not leak internal token_lengths buffer
16637         * lib/readtokens.c (readtokens): Free the local, lengths,
16638         when the supplied "token_lengths" parameter is NULL.
16640 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16642         Fix a couple of missing LIBTHREAD link failures on AIX.
16643         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
16644         $(LIBTHREAD).
16645         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
16647         Link test-poll against INET_PTON_LIB.
16648         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
16649         for inet_pton on Solaris 10.
16651 2010-01-17  Bruno Haible  <bruno@clisp.org>
16653         unistdio/*-sprintf: Fix typo in module description.
16654         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
16655         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
16656         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
16657         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
16658         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
16659         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
16660         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
16661         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
16663 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16665         gnulib-tool: fix filelist for AIX, HP-UX ksh.
16666         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
16667         variables in shell case patterns, for AIX and HP-UX ksh.
16669         Split large sed scripts, for HP-UX sed.
16670         * modules/stdio: Split sed scripts around 50 sed commands,
16671         to avoid HP-UX limit of 99 commands, in the near future.
16672         * modules/string: Likewise.
16673         * modules/unistd: Likewise.
16675         gnulib-tool: avoid writing in the current directory.
16676         * gnulib-tool (func_emit_lib_Makefile_am)
16677         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
16678         not in the current directory, so concurrent gnulib-tool
16679         instances do not interfere.
16681 2010-01-16  Jim Meyering  <meyering@redhat.com>
16683         doc: update users.txt
16684         * users.txt: Add grep.
16685         (diffutils, gzip): Update URLs.
16687 2010-01-12  Bruno Haible  <bruno@clisp.org>
16689         posix_spawn: Avoid test failure on Cygwin.
16690         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
16691         characters.
16692         Reported by Simon Josefsson.
16694 2010-01-12  Bruno Haible  <bruno@clisp.org>
16696         * tests/test-cond.c (main): When skipping the test, show the reason.
16698 2010-01-12  Simon Josefsson  <simon@josefsson.org>
16700         * lib/striconv.c (str_cd_iconv): Avoid if before free.
16702 2010-01-12  Simon Josefsson  <simon@josefsson.org>
16704         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
16705         VC_LIST_ALWAYS_EXCLUDE_REGEX.
16707 2010-01-12  Eric Blake  <ebb9@byu.net>
16709         build: guarantee AS_VAR_IF
16710         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
16711         (gl_AS_VAR_IF): Move...
16712         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
16713         Reported by Simon Josefsson.
16715 2010-01-12  Simon Josefsson  <simon@josefsson.org>
16717         * lib/stdio.in.h: Fix typo.
16719 2010-01-12  Simon Josefsson  <simon@josefsson.org>
16721         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
16722         libgpg-error.
16724 2010-01-12  Simon Josefsson  <simon@josefsson.org>
16726         * tests/test-xalloc-die.sh: Use $EXEEXT.
16728 2010-01-12  Simon Josefsson  <simon@josefsson.org>
16729             Bruno Haible  <bruno@clisp.org>
16731         getlogin, getlogin_r: Avoid test failure.
16732         * tests/test-getlogin.c: Include <stdio.h>.
16733         (main): Skip the test when the function fails because stdin is not a
16734         tty.
16735         * tests/test-getlogin_r.c: Include <stdio.h>.
16736         (main): Skip the test when the function fails because stdin is not a
16737         tty.
16739 2010-01-11  Eric Blake  <ebb9@byu.net>
16741         tests: avoid more large file warnings
16742         * tests/test-fflush.c: Avoid warning about ftell use.
16743         * tests/test-fseek.c: Avoid warning about fseek use.
16745 2010-01-10  Bruno Haible  <bruno@clisp.org>
16747         nproc: Work better on Linux when /proc and /sys are not mounted.
16748         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
16749         as lower bound when, on glibc/Linux systems,
16750         sysconf (_SC_NPROCESSORS_CONF) returns 1.
16751         Suggested by Pádraig Brady <P@draigbrady.com>.
16752         Reported by Dmitry V. Levin <ldv@altlinux.org>.
16754         nproc: Refactor.
16755         * lib/nproc.c (num_processors_via_affinity_mask): New function,
16756         extracted from num_processors.
16757         (num_processors): Call it.
16759 2010-01-11  Jim Meyering  <meyering@redhat.com>
16761         utimecmp: avoid new warning from upcoming gcc-4.5.0
16762         * lib/utimecmp.c (BILLION): Define using #define rather than an
16763         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
16765 2010-01-11  Eric Blake  <ebb9@byu.net>
16767         math: add portability warnings for classification macros
16768         * modules/math (Depends-on): Add warn-on-use.
16769         (Makefile.am): Provide new substitutions.
16770         * m4/math_h.m4 (gl_MATH_H): Require inline.
16771         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
16772         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
16773         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
16774         implement warnings.
16776         unistd: warn on use of environ without module
16777         * modules/unistd (Depends-on): Add warn-on-use.
16778         (Makefile.am): Provide new substitutions.
16779         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
16780         * lib/unistd.in.h (environ): Wrap with a warning helper function.
16782         stdio: warn on suspicious uses
16783         * modules/stdio (Depends-on): Add warn-on-use.
16784         (Makefile.am): Provide new substitutions.
16785         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
16786         fseeko.
16787         * lib/stdio.in.h (gets): Always warn on use.
16788         (fseek, ftell): Adjust when warnings are issued, and honor
16789         _GL_NO_LARGE_FILES as a way to silence the warning.
16790         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
16791         any warning about large file offsets.
16792         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
16793         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
16794         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
16795         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
16796         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
16797         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
16798         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
16799         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
16801         warn-on-use: new module
16802         * modules/warn-on-use: New file.
16803         * build-aux/warn-on-use.h: Likewise.
16804         * m4/warn-on-use.m4: Likewise.
16805         * MODULES.html.sh (Support for building): Mention it.
16807 2010-01-10  Bruno Haible  <bruno@clisp.org>
16809         Tests for module 'unistr/u32-strdup'.
16810         * modules/unistr/u32-strdup-tests: New file.
16811         * tests/unistr/test-u32-strdup.c: New file.
16813         Tests for module 'unistr/u16-strdup'.
16814         * modules/unistr/u16-strdup-tests: New file.
16815         * tests/unistr/test-u16-strdup.c: New file.
16817         Tests for module 'unistr/u8-strdup'.
16818         * modules/unistr/u8-strdup-tests: New file.
16819         * tests/unistr/test-u8-strdup.c: New file.
16820         * tests/unistr/test-strdup.h: New file.
16822         Tests for module 'unistr/u32-strncmp'.
16823         * modules/unistr/u32-strncmp-tests: New file.
16824         * tests/unistr/test-u32-strncmp.c: New file.
16826         Tests for module 'unistr/u16-strncmp'.
16827         * modules/unistr/u16-strncmp-tests: New file.
16828         * tests/unistr/test-u16-strncmp.c: New file.
16830         Tests for module 'unistr/u8-strncmp'.
16831         * modules/unistr/u8-strncmp-tests: New file.
16832         * tests/unistr/test-u8-strncmp.c: New file.
16833         * tests/unistr/test-strncmp.h: New file.
16835         Tests for module 'unistr/u32-strcoll'.
16836         * modules/unistr/u32-strcoll-tests: New file.
16837         * tests/unistr/test-u32-strcoll.c: New file.
16839         Tests for module 'unistr/u16-strcoll'.
16840         * modules/unistr/u16-strcoll-tests: New file.
16841         * tests/unistr/test-u16-strcoll.c: New file.
16843         Tests for module 'unistr/u8-strcoll'.
16844         * modules/unistr/u8-strcoll-tests: New file.
16845         * tests/unistr/test-u8-strcoll.c: New file.
16847         Tests for module 'unistr/u32-strcmp'.
16848         * modules/unistr/u32-strcmp-tests: New file.
16849         * tests/unistr/test-u32-strcmp.c: New file.
16850         * tests/unistr/test-u32-strcmp.h: New file.
16852         Tests for module 'unistr/u16-strcmp'.
16853         * modules/unistr/u16-strcmp-tests: New file.
16854         * tests/unistr/test-u16-strcmp.c: New file.
16855         * tests/unistr/test-u16-strcmp.h: New file.
16857         Tests for module 'unistr/u8-strcmp'.
16858         * modules/unistr/u8-strcmp-tests: New file.
16859         * tests/unistr/test-u8-strcmp.c: New file.
16860         * tests/unistr/test-u8-strcmp.h: New file.
16861         * tests/unistr/test-strcmp.h: New file.
16863         Tests for module 'unistr/u32-strncat'.
16864         * modules/unistr/u32-strncat-tests: New file.
16865         * tests/unistr/test-u32-strncat.c: New file.
16867         Tests for module 'unistr/u16-strncat'.
16868         * modules/unistr/u16-strncat-tests: New file.
16869         * tests/unistr/test-u16-strncat.c: New file.
16871         Tests for module 'unistr/u8-strncat'.
16872         * modules/unistr/u8-strncat-tests: New file.
16873         * tests/unistr/test-u8-strncat.c: New file.
16874         * tests/unistr/test-strncat.h: New file.
16876         Tests for module 'unistr/u32-strcat'.
16877         * modules/unistr/u32-strcat-tests: New file.
16878         * tests/unistr/test-u32-strcat.c: New file.
16880         Tests for module 'unistr/u16-strcat'.
16881         * modules/unistr/u16-strcat-tests: New file.
16882         * tests/unistr/test-u16-strcat.c: New file.
16884         Tests for module 'unistr/u8-strcat'.
16885         * modules/unistr/u8-strcat-tests: New file.
16886         * tests/unistr/test-u8-strcat.c: New file.
16887         * tests/unistr/test-strcat.h: New file.
16889         Tests for module 'unistr/u32-stpncpy'.
16890         * modules/unistr/u32-stpncpy-tests: New file.
16891         * tests/unistr/test-u32-stpncpy.c: New file.
16893         Tests for module 'unistr/u16-stpncpy'.
16894         * modules/unistr/u16-stpncpy-tests: New file.
16895         * tests/unistr/test-u16-stpncpy.c: New file.
16897         Tests for module 'unistr/u8-stpncpy'.
16898         * modules/unistr/u8-stpncpy-tests: New file.
16899         * tests/unistr/test-u8-stpncpy.c: New file.
16900         * tests/unistr/test-stpncpy.h: New file.
16902         Tests for module 'unistr/u32-strncpy'.
16903         * modules/unistr/u32-strncpy-tests: New file.
16904         * tests/unistr/test-u32-strncpy.c: New file.
16906         Tests for module 'unistr/u16-strncpy'.
16907         * modules/unistr/u16-strncpy-tests: New file.
16908         * tests/unistr/test-u16-strncpy.c: New file.
16910         Tests for module 'unistr/u8-strncpy'.
16911         * modules/unistr/u8-strncpy-tests: New file.
16912         * tests/unistr/test-u8-strncpy.c: New file.
16913         * tests/unistr/test-strncpy.h: New file.
16915         Tests for module 'unistr/u32-stpcpy'.
16916         * modules/unistr/u32-stpcpy-tests: New file.
16917         * tests/unistr/test-u32-stpcpy.c: New file.
16919         Tests for module 'unistr/u16-stpcpy'.
16920         * modules/unistr/u16-stpcpy-tests: New file.
16921         * tests/unistr/test-u16-stpcpy.c: New file.
16923         Tests for module 'unistr/u8-stpcpy'.
16924         * modules/unistr/u8-stpcpy-tests: New file.
16925         * tests/unistr/test-u8-stpcpy.c: New file.
16926         * tests/unistr/test-stpcpy.h: New file.
16928         Tests for module 'unistr/u32-strcpy'.
16929         * modules/unistr/u32-strcpy-tests: New file.
16930         * tests/unistr/test-u32-strcpy.c: New file.
16932         Tests for module 'unistr/u16-strcpy'.
16933         * modules/unistr/u16-strcpy-tests: New file.
16934         * tests/unistr/test-u16-strcpy.c: New file.
16936         Tests for module 'unistr/u8-strcpy'.
16937         * modules/unistr/u8-strcpy-tests: New file.
16938         * tests/unistr/test-u8-strcpy.c: New file.
16939         * tests/unistr/test-strcpy.h: New file.
16941         Tests for module 'unistr/u32-strnlen'.
16942         * modules/unistr/u32-strnlen-tests: New file.
16943         * tests/unistr/test-u32-strnlen.c: New file.
16945         Tests for module 'unistr/u16-strnlen'.
16946         * modules/unistr/u16-strnlen-tests: New file.
16947         * tests/unistr/test-u16-strnlen.c: New file.
16949         Tests for module 'unistr/u8-strnlen'.
16950         * modules/unistr/u8-strnlen-tests: New file.
16951         * tests/unistr/test-u8-strnlen.c: New file.
16952         * tests/unistr/test-strnlen.h: New file.
16954         Tests for module 'unistr/u32-strlen'.
16955         * modules/unistr/u32-strlen-tests: New file.
16956         * tests/unistr/test-u32-strlen.c: New file.
16958         Tests for module 'unistr/u16-strlen'.
16959         * modules/unistr/u16-strlen-tests: New file.
16960         * tests/unistr/test-u16-strlen.c: New file.
16962         Tests for module 'unistr/u8-strlen'.
16963         * modules/unistr/u8-strlen-tests: New file.
16964         * tests/unistr/test-u8-strlen.c: New file.
16966         Tests for module 'unistr/u32-prev'.
16967         * modules/unistr/u32-prev-tests: New file.
16968         * tests/unistr/test-u32-prev.c: New file.
16970         Tests for module 'unistr/u16-prev'.
16971         * modules/unistr/u16-prev-tests: New file.
16972         * tests/unistr/test-u16-prev.c: New file.
16974         Tests for module 'unistr/u8-prev'.
16975         * modules/unistr/u8-prev-tests: New file.
16976         * tests/unistr/test-u8-prev.c: New file.
16978         Tests for module 'unistr/u32-next'.
16979         * modules/unistr/u32-next-tests: New file.
16980         * tests/unistr/test-u32-next.c: New file.
16982         Tests for module 'unistr/u16-next'.
16983         * modules/unistr/u16-next-tests: New file.
16984         * tests/unistr/test-u16-next.c: New file.
16986         Tests for module 'unistr/u8-next'.
16987         * modules/unistr/u8-next-tests: New file.
16988         * tests/unistr/test-u8-next.c: New file.
16990         Tests for module 'unistr/u32-strmbtouc'.
16991         * modules/unistr/u32-strmbtouc-tests: New file.
16992         * tests/unistr/test-u32-strmbtouc.c: New file.
16994         Tests for module 'unistr/u16-strmbtouc'.
16995         * modules/unistr/u16-strmbtouc-tests: New file.
16996         * tests/unistr/test-u16-strmbtouc.c: New file.
16998         Tests for module 'unistr/u8-strmbtouc'.
16999         * modules/unistr/u8-strmbtouc-tests: New file.
17000         * tests/unistr/test-u8-strmbtouc.c: New file.
17002         Tests for module 'unistr/u32-strmblen'.
17003         * modules/unistr/u32-strmblen-tests: New file.
17004         * tests/unistr/test-u32-strmblen.c: New file.
17006         Tests for module 'unistr/u16-strmblen'.
17007         * modules/unistr/u16-strmblen-tests: New file.
17008         * tests/unistr/test-u16-strmblen.c: New file.
17010         Tests for module 'unistr/u8-strmblen'.
17011         * modules/unistr/u8-strmblen-tests: New file.
17012         * tests/unistr/test-u8-strmblen.c: New file.
17014         Tests for module 'unistr/u32-cpy-alloc'.
17015         * modules/unistr/u32-cpy-alloc-tests: New file.
17016         * tests/unistr/test-u32-cpy-alloc.c: New file.
17018         Tests for module 'unistr/u16-cpy-alloc'.
17019         * modules/unistr/u16-cpy-alloc-tests: New file.
17020         * tests/unistr/test-u16-cpy-alloc.c: New file.
17022         Tests for module 'unistr/u8-cpy-alloc'.
17023         * modules/unistr/u8-cpy-alloc-tests: New file.
17024         * tests/unistr/test-u8-cpy-alloc.c: New file.
17025         * tests/unistr/test-cpy-alloc.h: New file.
17027         Tests for module 'unistr/u32-mbsnlen'.
17028         * modules/unistr/u32-mbsnlen-tests: New file.
17029         * tests/unistr/test-u32-mbsnlen.c: New file.
17031         Tests for module 'unistr/u16-mbsnlen'.
17032         * modules/unistr/u16-mbsnlen-tests: New file.
17033         * tests/unistr/test-u16-mbsnlen.c: New file.
17035         Tests for module 'unistr/u8-mbsnlen'.
17036         * modules/unistr/u8-mbsnlen-tests: New file.
17037         * tests/unistr/test-u8-mbsnlen.c: New file.
17039         Tests for module 'unistr/u32-chr'.
17040         * modules/unistr/u32-chr-tests: New file.
17041         * tests/unistr/test-u32-chr.c: New file.
17043         Tests for module 'unistr/u16-chr'.
17044         * modules/unistr/u16-chr-tests: New file.
17045         * tests/unistr/test-u16-chr.c: New file.
17047         Tests for module 'unistr/u8-chr'.
17048         * modules/unistr/u8-chr-tests: New file.
17049         * tests/unistr/test-u8-chr.c: New file.
17050         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
17052         Tests for module 'unistr/u32-cmp2'.
17053         * modules/unistr/u32-cmp2-tests: New file.
17054         * tests/unistr/test-u32-cmp2.c: New file.
17056         Tests for module 'unistr/u16-cmp2'.
17057         * modules/unistr/u16-cmp2-tests: New file.
17058         * tests/unistr/test-u16-cmp2.c: New file.
17060         Tests for module 'unistr/u8-cmp2'.
17061         * modules/unistr/u8-cmp2-tests: New file.
17062         * tests/unistr/test-u8-cmp2.c: New file.
17063         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
17065         Tests for module 'unistr/u32-cmp'.
17066         * modules/unistr/u32-cmp-tests: New file.
17067         * tests/unistr/test-u32-cmp.c: New file.
17069         Tests for module 'unistr/u16-cmp'.
17070         * modules/unistr/u16-cmp-tests: New file.
17071         * tests/unistr/test-u16-cmp.c: New file.
17073         Tests for module 'unistr/u8-cmp'.
17074         * modules/unistr/u8-cmp-tests: New file.
17075         * tests/unistr/test-u8-cmp.c: New file.
17076         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
17078         Tests for module 'unistr/u32-set'.
17079         * modules/unistr/u32-set-tests: New file.
17080         * tests/unistr/test-u32-set.c: New file.
17082         Tests for module 'unistr/u16-set'.
17083         * modules/unistr/u16-set-tests: New file.
17084         * tests/unistr/test-u16-set.c: New file.
17086         Tests for module 'unistr/u8-set'.
17087         * modules/unistr/u8-set-tests: New file.
17088         * tests/unistr/test-u8-set.c: New file.
17089         * tests/unistr/test-set.h: New file.
17091         Tests for module 'unistr/u32-move'.
17092         * modules/unistr/u32-move-tests: New file.
17093         * tests/unistr/test-u32-move.c: New file.
17095         Tests for module 'unistr/u16-move'.
17096         * modules/unistr/u16-move-tests: New file.
17097         * tests/unistr/test-u16-move.c: New file.
17099         Tests for module 'unistr/u8-move'.
17100         * modules/unistr/u8-move-tests: New file.
17101         * tests/unistr/test-u8-move.c: New file.
17102         * tests/unistr/test-move.h: New file.
17104         Tests for module 'unistr/u32-cpy'.
17105         * modules/unistr/u32-cpy-tests: New file.
17106         * tests/unistr/test-u32-cpy.c: New file.
17108         Tests for module 'unistr/u16-cpy'.
17109         * modules/unistr/u16-cpy-tests: New file.
17110         * tests/unistr/test-u16-cpy.c: New file.
17112         Tests for module 'unistr/u8-cpy'.
17113         * modules/unistr/u8-cpy-tests: New file.
17114         * tests/unistr/test-u8-cpy.c: New file.
17115         * tests/unistr/test-cpy.h: New file.
17117 2010-01-09  Bruno Haible  <bruno@clisp.org>
17119         Tests for module 'unistr/u32-uctomb'.
17120         * modules/unistr/u32-uctomb-tests: New file.
17121         * tests/unistr/test-u32-uctomb.c: New file.
17123         Tests for module 'unistr/u16-uctomb'.
17124         * modules/unistr/u16-uctomb-tests: New file.
17125         * tests/unistr/test-u16-uctomb.c: New file.
17127         Tests for module 'unistr/u8-uctomb'.
17128         * modules/unistr/u8-uctomb-tests: New file.
17129         * tests/unistr/test-u8-uctomb.c: New file.
17131         Tests for module 'unistr/u32-mbtoucr'.
17132         * modules/unistr/u32-mbtoucr-tests: New file.
17133         * tests/unistr/test-u32-mbtoucr.c: New file.
17135         Tests for module 'unistr/u16-mbtoucr'.
17136         * modules/unistr/u16-mbtoucr-tests: New file.
17137         * tests/unistr/test-u16-mbtoucr.c: New file.
17139         Tests for module 'unistr/u8-mbtoucr'.
17140         * modules/unistr/u8-mbtoucr-tests: New file.
17141         * tests/unistr/test-u8-mbtoucr.c: New file.
17143         Tests for module 'unistr/u32-mbtouc'.
17144         * modules/unistr/u32-mbtouc-tests: New file.
17145         * tests/unistr/test-u32-mbtouc.c: New file.
17147         Tests for module 'unistr/u16-mbtouc'.
17148         * modules/unistr/u16-mbtouc-tests: New file.
17149         * tests/unistr/test-u16-mbtouc.c: New file.
17151         Tests for module 'unistr/u8-mbtouc'.
17152         * modules/unistr/u8-mbtouc-tests: New file.
17153         * tests/unistr/test-u8-mbtouc.c: New file.
17155         Tests for module 'unistr/u32-mbtouc-unsafe'.
17156         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
17157         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
17158         * tests/unistr/test-u32-mbtouc.h: New file.
17160         Tests for module 'unistr/u16-mbtouc-unsafe'.
17161         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
17162         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
17163         * tests/unistr/test-u16-mbtouc.h: New file.
17165         Tests for module 'unistr/u8-mbtouc-unsafe'.
17166         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
17167         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
17168         * tests/unistr/test-u8-mbtouc.h: New file.
17170         Tests for module 'unistr/u32-mblen'.
17171         * modules/unistr/u32-mblen-tests: New file.
17172         * tests/unistr/test-u32-mblen.c: New file.
17174         Tests for module 'unistr/u16-mblen'.
17175         * modules/unistr/u16-mblen-tests: New file.
17176         * tests/unistr/test-u16-mblen.c: New file.
17178         Tests for module 'unistr/u8-mblen'.
17179         * modules/unistr/u8-mblen-tests: New file.
17180         * tests/unistr/test-u8-mblen.c: New file.
17182         Tests for module 'unistr/u32-to-u16'.
17183         * modules/unistr/u32-to-u16-tests: New file.
17184         * tests/unistr/test-u32-to-u16.c: New file.
17186         Tests for module 'unistr/u32-to-u8'.
17187         * modules/unistr/u32-to-u8-tests: New file.
17188         * tests/unistr/test-u32-to-u8.c: New file.
17190         Tests for module 'unistr/u16-to-u32'.
17191         * modules/unistr/u16-to-u32-tests: New file.
17192         * tests/unistr/test-u16-to-u32.c: New file.
17194         Tests for module 'unistr/u16-to-u8'.
17195         * modules/unistr/u16-to-u8-tests: New file.
17196         * tests/unistr/test-u16-to-u8.c: New file.
17198         Tests for module 'unistr/u8-to-u32'.
17199         * modules/unistr/u8-to-u32-tests: New file.
17200         * tests/unistr/test-u8-to-u32.c: New file.
17202         Tests for module 'unistr/u8-to-u16'.
17203         * modules/unistr/u8-to-u16-tests: New file.
17204         * tests/unistr/test-u8-to-u16.c: New file.
17206         Tests for module 'unistr/u32-check'.
17207         * modules/unistr/u32-check-tests: New file.
17208         * tests/unistr/test-u32-check.c: New file.
17210         Tests for module 'unistr/u16-check'.
17211         * modules/unistr/u16-check-tests: New file.
17212         * tests/unistr/test-u16-check.c: New file.
17214         Tests for module 'unistr/u8-check'.
17215         * modules/unistr/u8-check-tests: New file.
17216         * tests/unistr/test-u8-check.c: New file.
17218         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
17219         (category_equals): New function.
17220         (main): Add more tests.
17221         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
17223         * tests/unictype/test-bidi_byname.c (main): Add more tests.
17225 2010-01-10  Bruno Haible  <bruno@clisp.org>
17227         unistr/u*-strcoll: Try harder to distinguish different strings.
17228         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
17229         compare s1 and s2 to see if they are different.
17231 2010-01-10  Bruno Haible  <bruno@clisp.org>
17233         unistr/u*-stpncpy: Fix the return value.
17234         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
17235         description of the return value consistent with stpncpy in glibc.
17236         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
17237         written non-NUL unit.
17239 2010-01-10  Bruno Haible  <bruno@clisp.org>
17241         unistr/u*-next: Add missing dependencies.
17242         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
17243         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
17244         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
17246 2010-01-10  Bruno Haible  <bruno@clisp.org>
17248         unistr/u8-mbsnlen: Fix return value for incomplete character.
17249         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
17250         u8_mblen.
17251         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
17252         Remove unistr/u8-mblen.
17253         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
17254         u16_mblen.
17255         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
17256         Remove unistr/u16-mblen.
17258 2010-01-10  Bruno Haible  <bruno@clisp.org>
17260         wchar: Fix compilation error when <wchar.h> is used from coreutils.
17261         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
17262         Reported by Brian Gough <bjg@gnu.org> and
17263         Chris Clayton <chris2553@googlemail.com> via
17264         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
17266 2010-01-09  Bruno Haible  <bruno@clisp.org>
17268         unistr/u16-to-u32: Reject invalid input.
17269         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
17270         u16_mbtouc.
17271         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
17272         Remove unistr/u16-mbtouc.
17274         unistr/u16-to-u8: Reject invalid input.
17275         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
17276         u16_mbtouc.
17277         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
17278         Remove unistr/u16-mbtouc.
17280         unistr/u8-to-u32: Reject invalid input.
17281         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
17282         u8_mbtouc.
17283         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
17284         Remove unistr/u8-mbtouc.
17286         unistr/u8-to-u16: Reject invalid input.
17287         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
17288         u8_mbtouc.
17289         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
17290         Remove unistr/u8-mbtouc.
17292 2010-01-09  Bruno Haible  <bruno@clisp.org>
17294         Tests for module 'getlogin'.
17295         * modules/getlogin-tests: New file.
17296         * tests/test-getlogin.c: New file.
17298         New module 'getlogin'.
17299         * lib/unistd.in.h (getlogin): New declaration.
17300         * lib/getlogin.c: New file.
17301         * m4/getlogin.m4: New file.
17302         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
17303         HAVE_GETLOGIN.
17304         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
17305         HAVE_GETLOGIN.
17306         * modules/getlogin: New file.
17307         * doc/posix-functions/getlogin.texi: Mention the new module.
17308         Reported by John W. Eaton <jwe@gnu.org>.
17310 2010-01-09  Bruno Haible  <bruno@clisp.org>
17312         getlogin_r: Support for native Windows.
17313         * lib/getlogin_r.c: Include <windows.h>
17314         (getlogin_r): Implement for native Windows.
17315         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
17316         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
17317         via John W. Eaton <jwe@gnu.org>.
17319 2010-01-09  Bruno Haible  <bruno@clisp.org>
17321         getlogin_r: Small fixes.
17322         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
17323         succeeds.
17324         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
17325         before testing whether getlogin_r is declared. No need to set
17326         HAVE_DECL_GETLOGIN_R to 1.
17327         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
17329 2010-01-09  Bruno Haible  <bruno@clisp.org>
17331         * lib/unistd.in.h (getlogin_r): Add comment.
17333 2010-01-09  Bruno Haible  <bruno@clisp.org>
17335         Tests for module 'getlogin_r'.
17336         * modules/getlogin_r-tests: New file.
17337         * tests/test-getlogin_r.c: New file.
17339 2010-01-09  Jim Meyering  <meyering@redhat.com>
17341         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
17342         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
17343         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
17345 2010-01-08  Simon Josefsson  <simon@josefsson.org>
17347         * lib/dup2.c (rpl_dup2): Improve comment.
17349 2010-01-08  Eric Blake  <ebb9@byu.net>
17351         maint.mk: allow packages to add makefile @@ exceptions
17352         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
17353         (sc_makefile_check): Rename...
17354         (sc_makefile_at_at_check): ...to this, and use hook.
17356         dup2: work around mingw bug
17357         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
17358         Reported by Simon Josefsson.
17360 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
17362         glob: Fix C++ compilation.
17363         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
17364         C++.
17366 2010-01-07  Bruno Haible  <bruno@clisp.org>
17368         Fix indentation of wctype.in.h, broken since 2007-01-06.
17369         * lib/wctype.in.h: Fix indentation of preprocessor directives.
17371 2010-01-07  Bruno Haible  <bruno@clisp.org>
17373         mbslen: Avoid collision with system function.
17374         * lib/string.in.h [MirBSD]: Include <wchar.h>.
17375         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
17376         * m4/mbslen.m4: New file.
17377         * modules/mbslen (Files): Add it.
17378         (configure.ac): Invoke gl_MBSLEN.
17379         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
17380         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
17381         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
17382         via Ian Beckwith <ianb@erislabs.net>.
17384 2010-01-07  Bruno Haible  <bruno@clisp.org>
17386         dirent: Document the last fix.
17387         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
17389 2010-01-07  Bruno Haible  <bruno@clisp.org>
17391         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
17392         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
17393         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
17394         va_list are defined.
17395         * doc/posix-headers/stdio.texi: Document the bug of missing types.
17396         Reported by Eric Blake.
17398 2010-01-07  Bruno Haible  <bruno@clisp.org>
17400         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
17401         * modules/xlist (Depends-on): Add 'list',
17402         * modules/xoset (Depends-on): Add 'oset'.
17403         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17405 2010-01-07  Bruno Haible  <bruno@clisp.org>
17407         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
17408         * doc/posix-functions/strncasecmp.texi: Likewise.
17410 2010-01-07  Bruno Haible  <bruno@clisp.org>
17412         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
17414 2010-01-07  John W. Eaton  <jwe@octave.org>
17416         wctype: allow C++ use
17417         * lib/wctype.in.h: Add extern "C" block for C++.
17419 2010-01-06  Eric Blake  <ebb9@byu.net>
17421         maint.mk: detect incorrect GFDL usage
17422         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
17424 2010-01-06  Jim Meyering  <meyering@redhat.com>
17425         and Eric Blake  <ebb9@byu.net>
17427         maint.mk: ignore multi-line copyright in NEWS
17428         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
17430 2010-01-06  Eric Blake  <ebb9@byu.net>
17432         select: add missing dependency
17433         * modules/select-tests (Depends-on): Move sockets dependency...
17434         * modules/select (Depends-on): ...here.
17435         Reported by Ian Beckwith.
17437         doc: regenerate INSTALL
17438         * doc/INSTALL: Reflect recent autoconf update.
17439         * doc/INSTALL.ISO: Likewise.
17440         * doc/INSTALL.UTF-8: Likewise.
17442         pread: fix compilation on glibc
17443         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
17444         Reported by Ralf Wildenhues.
17446         dirent: fix test failure
17447         * lib/dirent.in.h (includes): Guarantee ino_t.
17448         Reported by Ralf Wildenhues.
17450 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
17452         linkat, renameat: avoid bad free
17453         * lib/at-func2.c (at_func2): Fix typo.
17454         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
17456 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17458         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
17459         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
17460         to avoid failure of symlink test later.
17462 2010-01-06  Eric Blake  <ebb9@byu.net>
17464         stdio, unistd: guarantee ssize_t
17465         * lib/unistd.in.h (includes): Ensure that types required by POSIX
17466         2008 are exposed when needed.
17467         * lib/stdio.in.h (includes): Likewise.
17468         Reported by Ralf Wildenhues.
17470 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
17472         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
17473         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
17474         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
17476 2010-01-06  Jim Meyering  <meyering@redhat.com>
17478         readtokens: this module *does* require xalloc.h
17479         It uses only functions that were omitted by the old syntax-check rule.
17480         * lib/readtokens.c: Include "xalloc.h" once again.
17481         * modules/readtokens (Depends-on): Add xalloc.
17482         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
17484 2010-01-05  Eric Blake  <ebb9@byu.net>
17486         maint: support 'make announcement' from a VPATH build
17487         * top/maint.mk (announcement): Look for correct NEWS file.
17489 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
17491         utimens (fdutimens): ignore a negative FD, per contract
17492         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
17493         when we have a valid file descriptor.  Otherwise, using a brand
17494         new glibc (with just-patched futimens that now fails with EBADF)
17495         would cause this function to fail with ENOSYS.
17496         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
17497         See also http://bugzilla.redhat.com/552320.
17499 2010-01-05  Eric Blake  <ebb9@byu.net>
17501         strcase: document what it provides
17502         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
17503         gnulib module.
17504         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
17505         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
17507 2010-01-05  Jim Meyering  <meyering@redhat.com>
17509         maint: remove useless inclusions of "xalloc.h"
17510         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
17511         * lib/readtokens.c: Likewise.
17512         * lib/same.c: Likewise.
17513         * modules/getloadavg (Depends-on): Remove xalloc.
17514         * modules/readtokens: Likewise.
17515         * modules/same: Likewise.
17517         maint.mk: include 4 more function names in alloca.h-checking regexp
17518         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
17519         regexp.  Before, we would give a false-positive (saying alloca.h
17520         is included unnecessarily) when the only uses involved omitted symbols.
17522         xalloc.h: use consistent formatting
17523         * lib/xalloc.h: Move declarations to start in the first column.
17525 2010-01-05  Eric Blake  <ebb9@byu.net>
17527         mkdir: avoid xalloc
17528         * lib/mkdir.c (includes): Drop unused header.
17529         Reported by John W. Eaton.
17531 2010-01-04  Jim Meyering  <meyering@redhat.com>
17533         nl_langinfo: avoid configure-time syntax error
17534         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
17535         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
17536         the empty string.  Don't let that provoke a shell syntax error.
17538         regcomp, regexec, fnmatch: avoid array bounds read error
17539         * lib/regcomp.c (build_equiv_class): From glibc:
17540         Use only the low 24 bits of a findidx return value as an index
17541         into the weights array.  Patch by Ulrich Drepper:
17542         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
17543         * lib/regexec.c (check_node_accept_bytes): Likewise.
17544         * lib/fnmatch_loop.c (FCT): Likewise.
17546         regcomp: skip collseq lookup when there are no rules
17547         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
17548         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
17550         regcomp: recognize ill-formed { } expressions
17551         * lib/regcomp.c (parse_dup_op): From glibc:
17552         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
17554         regcomp: fix typo in comment
17555         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
17556         s/satisfy/satisfies/.
17558         regcomp: sync from glibc: remove dead store
17559         * lib/regcomp.c (duplicate_node_closure): Remove useless
17560         search_duplicated_node call and dead store.
17562         regcomp: sync from glibc; always use nl_langinfo
17563         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
17564         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
17565         * modules/regex (Depends-on): Add nl_langinfo.
17567 2010-01-04  Eric Blake  <ebb9@byu.net>
17569         fdopendir: fix configure test
17570         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
17572 2010-01-01  Bruno Haible  <bruno@clisp.org>
17574         wchar: Remove unused configure check.
17575         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
17577 2010-01-01  Eric Blake  <ebb9@byu.net>
17579         headers: make check of system header explicit
17580         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
17581         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
17582         ourselves.
17583         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
17584         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
17585         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
17586         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
17587         internals.
17588         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
17589         missing.
17590         Suggested by Bruno Haible.
17592 2010-01-01  Jim Meyering  <meyering@redhat.com>
17594         ChangeLog: tweak to eliminate unnecessary copyright line
17595         * ChangeLog: Remove a copyright line that was mistakenly updated
17596         by today's update-copyright run.  Reported by Eric Blake.
17598         test-update-copyright: don't let envvar setting cause test failure
17599         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
17601 2010-01-01  Bruno Haible  <bruno@clisp.org>
17603         localename: Avoid gcc warning.
17604         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
17605         function if it is not used.
17607 2010-01-01  Jim Meyering  <meyering@redhat.com>
17609         update nearly all FSF copyright year lists to include 2010
17610         Use the same procedure as for 2009, outlined in
17611         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
17613         version-etc: set COPYRIGHT_YEAR to 2010
17614         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
17616 2009-12-31  Eric Blake  <ebb9@byu.net>
17618         doc: correct availability of cygwin 1.5.x getopt
17619         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
17620         variables.
17621         * doc/posix-functions/opterr.texi (opterr): Likewise.
17622         * doc/posix-functions/optind.texi (optind): Likewise.
17623         * doc/posix-functions/optopt.texi (optopt): Likewise.
17624         * doc/posix-functions/tzname.texi (tzname): Likewise.
17626         openat: update maintainer
17627         * modules/openat (Maintainer): Add myself.
17629         utimens: avoid shadowing warning
17630         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
17631         buffers into one, to avoid shadowing, as well as avoiding a
17632         redundant stat.
17633         Reported by Jim Meyering.
17635         test-dup2: avoid compiler warning
17636         * tests/test-dup2.c (is_inheritable): Only define if used.
17638 2010-01-01  Bruno Haible  <bruno@clisp.org>
17640         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
17641         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
17642         defined, use wctomb instead of wcrtomb.
17644 2010-01-01  Bruno Haible  <bruno@clisp.org>
17646         iconv: Reject native Solaris iconv.
17647         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
17648         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
17650 2009-12-31  Bruno Haible  <bruno@clisp.org>
17652         * tests/test-signal.c (main): Remove test of 'SIG'.
17654 2009-12-31  Bruno Haible  <bruno@clisp.org>
17656         spawn: Fix incomplete fix.
17657         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
17658         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
17659         warnings for GNULIB_POSIXCHECK again.
17660         Reported by Eric Blake.
17662 2009-12-31  Bruno Haible  <bruno@clisp.org>
17664         Avoid namespace pollution on glibc systems.
17665         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
17666         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
17667         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
17668         glibc systems.
17670 2009-12-31  Bruno Haible  <bruno@clisp.org>
17672         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
17673         (gl_REPLACE_WCHAR_H): Turn into a no-op.
17674         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
17675         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
17676         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
17677         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
17678         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
17680 2009-12-31  Bruno Haible  <bruno@clisp.org>
17682         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
17683         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
17684         afterwards.
17686 2009-12-31  Bruno Haible  <bruno@clisp.org>
17688         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
17689         SYS_UTSNAME_H.
17691 2009-12-31  Bruno Haible  <bruno@clisp.org>
17693         spawn: Fix misapplied patch.
17694         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
17695         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
17696         warnings for GNULIB_POSIXCHECK.
17698 2009-12-31  Bruno Haible  <bruno@clisp.org>
17700         times: Update after sys_times changed.
17701         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
17702         * modules/times (Files): Add it.
17703         (configure.ac): Invoke gl_FUNC_TIMES.
17705 2009-12-31  Bruno Haible  <bruno@clisp.org>
17707         Use AC_C_INLINE where necessary.
17708         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
17709         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
17710         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
17711         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
17712         * m4/mbfile.m4 (gl_MBFILE): Likewise.
17713         * m4/mbiter.m4 (gl_MBITER): Likewise.
17714         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
17715         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
17716         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
17717         * modules/u64 (configure.ac): Likewise.
17719 2009-12-31  Bruno Haible  <bruno@clisp.org>
17721         Use AC_C_INLINE instead of module 'inline' where possible.
17722         * modules/inline (Description): Clarify purpose.
17723         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
17724         * modules/count-one-bits (Depends-on): Remove inline.
17725         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
17726         * modules/openat (Depends-on): Remove inline.
17727         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
17728         instead of depending on module 'inline'.
17729         * modules/filevercmp (Depends-on, configure.ac): Likewise.
17730         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
17731         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
17732         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
17733         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
17734         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
17735         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
17736         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
17737         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
17738         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
17739         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
17740         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
17741         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
17742         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
17743         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
17744         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
17745         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
17746         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
17747         Likewise.
17748         * modules/unictype/property-ascii-hex-digit (Depends-on,
17749         configure.ac): Likewise.
17750         * modules/unictype/property-bidi-arabic-digit (Depends-on,
17751         configure.ac): Likewise.
17752         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
17753         configure.ac): Likewise.
17754         * modules/unictype/property-bidi-block-separator (Depends-on,
17755         configure.ac): Likewise.
17756         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
17757         configure.ac): Likewise.
17758         * modules/unictype/property-bidi-common-separator (Depends-on,
17759         configure.ac): Likewise.
17760         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
17761         Likewise.
17762         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
17763         configure.ac): Likewise.
17764         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
17765         configure.ac): Likewise.
17766         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
17767         configure.ac): Likewise.
17768         * modules/unictype/property-bidi-european-digit (Depends-on,
17769         configure.ac): Likewise.
17770         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
17771         configure.ac): Likewise.
17772         * modules/unictype/property-bidi-left-to-right (Depends-on,
17773         configure.ac): Likewise.
17774         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
17775         configure.ac): Likewise.
17776         * modules/unictype/property-bidi-other-neutral (Depends-on,
17777         configure.ac): Likewise.
17778         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
17779         Likewise.
17780         * modules/unictype/property-bidi-segment-separator (Depends-on,
17781         configure.ac): Likewise.
17782         * modules/unictype/property-bidi-whitespace (Depends-on,
17783         configure.ac): Likewise.
17784         * modules/unictype/property-combining (Depends-on, configure.ac):
17785         Likewise.
17786         * modules/unictype/property-composite (Depends-on, configure.ac):
17787         Likewise.
17788         * modules/unictype/property-currency-symbol (Depends-on,
17789         configure.ac): Likewise.
17790         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
17791         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
17792         Likewise.
17793         * modules/unictype/property-default-ignorable-code-point (Depends-on,
17794         configure.ac): Likewise.
17795         * modules/unictype/property-deprecated (Depends-on, configure.ac):
17796         Likewise.
17797         * modules/unictype/property-diacritic (Depends-on, configure.ac):
17798         Likewise.
17799         * modules/unictype/property-extender (Depends-on, configure.ac):
17800         Likewise.
17801         * modules/unictype/property-format-control (Depends-on, configure.ac):
17802         Likewise.
17803         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
17804         Likewise.
17805         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
17806         Likewise.
17807         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
17808         Likewise.
17809         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
17810         Likewise.
17811         * modules/unictype/property-hyphen (Depends-on, configure.ac):
17812         Likewise.
17813         * modules/unictype/property-id-continue (Depends-on, configure.ac):
17814         Likewise.
17815         * modules/unictype/property-id-start (Depends-on, configure.ac):
17816         Likewise.
17817         * modules/unictype/property-ideographic (Depends-on, configure.ac):
17818         Likewise.
17819         * modules/unictype/property-ids-binary-operator (Depends-on,
17820         configure.ac): Likewise.
17821         * modules/unictype/property-ids-trinary-operator (Depends-on,
17822         configure.ac): Likewise.
17823         * modules/unictype/property-ignorable-control (Depends-on,
17824         configure.ac): Likewise.
17825         * modules/unictype/property-iso-control (Depends-on, configure.ac):
17826         Likewise.
17827         * modules/unictype/property-join-control (Depends-on, configure.ac):
17828         Likewise.
17829         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
17830         Likewise.
17831         * modules/unictype/property-line-separator (Depends-on, configure.ac):
17832         Likewise.
17833         * modules/unictype/property-logical-order-exception (Depends-on,
17834         configure.ac): Likewise.
17835         * modules/unictype/property-lowercase (Depends-on, configure.ac):
17836         Likewise.
17837         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
17838         * modules/unictype/property-non-break (Depends-on, configure.ac):
17839         Likewise.
17840         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
17841         Likewise.
17842         * modules/unictype/property-numeric (Depends-on, configure.ac):
17843         Likewise.
17844         * modules/unictype/property-other-alphabetic (Depends-on,
17845         configure.ac): Likewise.
17846         * modules/unictype/property-other-default-ignorable-code-point
17847         (Depends-on, configure.ac): Likewise.
17848         * modules/unictype/property-other-grapheme-extend (Depends-on,
17849         configure.ac): Likewise.
17850         * modules/unictype/property-other-id-continue (Depends-on,
17851         configure.ac): Likewise.
17852         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
17853         Likewise.
17854         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
17855         Likewise.
17856         * modules/unictype/property-other-math (Depends-on, configure.ac):
17857         Likewise.
17858         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
17859         Likewise.
17860         * modules/unictype/property-paired-punctuation (Depends-on,
17861         configure.ac): Likewise.
17862         * modules/unictype/property-paragraph-separator (Depends-on,
17863         configure.ac): Likewise.
17864         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
17865         Likewise.
17866         * modules/unictype/property-pattern-white-space (Depends-on,
17867         configure.ac): Likewise.
17868         * modules/unictype/property-private-use (Depends-on, configure.ac):
17869         Likewise.
17870         * modules/unictype/property-punctuation (Depends-on, configure.ac):
17871         Likewise.
17872         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
17873         Likewise.
17874         * modules/unictype/property-radical (Depends-on, configure.ac):
17875         Likewise.
17876         * modules/unictype/property-sentence-terminal (Depends-on,
17877         configure.ac): Likewise.
17878         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
17879         Likewise.
17880         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
17881         * modules/unictype/property-terminal-punctuation (Depends-on,
17882         configure.ac): Likewise.
17883         * modules/unictype/property-titlecase (Depends-on, configure.ac):
17884         Likewise.
17885         * modules/unictype/property-unassigned-code-value (Depends-on,
17886         configure.ac): Likewise.
17887         * modules/unictype/property-unified-ideograph (Depends-on,
17888         configure.ac): Likewise.
17889         * modules/unictype/property-uppercase (Depends-on, configure.ac):
17890         Likewise.
17891         * modules/unictype/property-variation-selector (Depends-on,
17892         configure.ac): Likewise.
17893         * modules/unictype/property-white-space (Depends-on, configure.ac):
17894         Likewise.
17895         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
17896         Likewise.
17897         * modules/unictype/property-xid-start (Depends-on, configure.ac):
17898         Likewise.
17899         * modules/unictype/property-zero-width (Depends-on, configure.ac):
17900         Likewise.
17901         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
17902         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
17903         Likewise.
17905 2009-12-31  Bruno Haible  <bruno@clisp.org>
17907         Remove unnecessary AC_C_INLINE invocation.
17908         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
17909         since 2009-08-21.
17911 2009-12-31  Jim Meyering  <meyering@redhat.com>
17913         maint.mk: don't require explicit gpg_key_ID in cfg.mk
17914         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
17915         With this change, we can all remove the gpg_key_ID = ... definition
17916         from our respective cfg.mk files.
17918         maint.mk: create announcement template in ~/, not in /tmp
17919         * top/maint.mk (emit_upload_commands): Adjust.
17920         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
17921         Remove temporary file, .ci-msg.
17923 2009-12-31  Eric Blake  <ebb9@byu.net>
17925         link-warning: always build headers with link warnings
17926         * modules/arpa_inet (Makefile.am): Always build replacement
17927         header.
17928         * modules/ctype (Makefile.am): Likewise.
17929         * modules/dirent (Makefile.am): Likewise.
17930         * modules/inttypes (Makefile.am): Likewise.
17931         * modules/langinfo (Makefile.am): Likewise.
17932         * modules/locale (Makefile.am): Likewise.
17933         * modules/spawn (Makefile.am): Likewise.
17934         * modules/sys_file (Makefile.am): Likewise.
17935         * modules/sys_ioctl (Makefile.am): Likewise.
17936         * modules/sys_select (Makefile.am): Likewise.
17937         * modules/sys_socket (Makefile.am): Likewise.
17938         * modules/sys_times (Makefile.am): Likewise.
17939         * modules/sys_utsname (Makefile.am): Likewise.
17940         * modules/sys_wait (Makefile.am): Likewise.
17941         * modules/wchar (Makefile.am): Likewise.
17942         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
17943         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
17944         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
17945         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
17946         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
17947         Likewise.
17948         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
17949         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
17950         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
17951         Likewise.
17952         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
17953         Likewise.
17954         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
17955         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
17956         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
17957         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
17958         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
17959         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
17960         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
17961         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
17962         (gl_WCHAR_H_DEFAULTS): Likewise.
17964 2009-12-31  Eric Blake  <ebb9@byu.net>
17966         signal, spawn: use link warnings
17967         * lib/signal.in.h (sigset_t): Make unconditional.
17968         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
17969         (sigpending, sigprocmask, sigaction): Add link warnings.
17970         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
17971         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
17972         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
17973         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
17974         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
17975         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
17976         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
17977         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
17978         (posix_spawn_file_actions_destroy)
17979         (posix_spawn_file_actions_addopen)
17980         (posix_spawn_file_actions_addclose)
17981         (posix_spawn_file_actions_adddup2): Likewise.
17982         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
17983         * tests/test-signal.c (main): Enhance test.
17985         spawn: improve wrapper support
17986         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
17987         (gl_SPAWN_H_DEFAULTS): New defaults.
17988         * modules/spawn (Makefile.am): Substitute them.
17989         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
17990         Only declare if missing or broken.
17992         sys_times, sys_utsname: use include_next
17993         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
17994         header.
17995         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
17996         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
17997         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
17998         * modules/sys_times (Depends-on): Add include_next.
17999         (Makefile.am): Substitute additional values.
18000         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
18001         * lib/sys_times.in.h (includes): Include native header, if
18002         available.
18003         * lib/sys_utsname.in.h (includes): Likewise.
18004         * tests/test-sys_times.c (main): Enhance test.
18006         fdutimensat: revert prior patch
18007         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
18008         utimens.h.
18009         Reported by Bruno Haible.
18011 2009-12-30  Eric Blake  <ebb9@byu.net>
18013         sys_wait: drop link-warning dependency
18014         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
18015         link-warning efforts.
18016         * lib/sys_wait.in.h: Likewise.
18018         fdutimensat: remove bogus dependency
18019         * modules/fdutimensat (Depends-on): Drop inline.
18021         unistd: fix typo
18022         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
18024 2009-12-30  Bruno Haible  <bruno@clisp.org>
18026         Fix compilation error with Solaris cc.
18027         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
18028         * lib/unicase/u16-is-invariant.c: Likewise.
18029         * lib/unicase/u32-is-invariant.c: Likewise.
18030         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
18032 2009-12-30  Bruno Haible  <bruno@clisp.org>
18034         Fix test crash.
18035         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
18036         locales.
18037         Reported by Simon Josefsson <simon@josefsson.org>.
18039 2009-12-30  Bruno Haible  <bruno@clisp.org>
18041         Fix compilation error on most platforms.
18042         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
18043         Reported by Simon Josefsson <simon@josefsson.org>
18044         and Nelson H. F. Beebe <beebe@math.utah.edu>.
18046 2009-12-30  Eric Blake  <ebb9@byu.net>
18048         futimens, utimensat: work around ntfs-3g bug
18049         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
18050         a ctime bug is present, and expand workaround to cover ntfs-3g.
18051         * lib/utimens.c (fdutimens, lutimens): Likewise.
18052         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
18053         (validate_timespec): Adjust return value.
18054         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
18055         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
18056         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
18058 2009-12-29  Eric Blake  <ebb9@byu.net>
18060         link-warning: make usage consistent
18061         * modules/ctype (Depends-on): Add link-warning.
18062         (Makefile.am): Update rules accordingly.
18063         * modules/langinfo (Depends-on, Makefile.am): Likewise.
18064         * modules/locale (Depends-on, Makefile.am): Likewise.
18065         * modules/sys_file (Makefile.am): Likewise.
18066         * modules/getopt-posix (Makefile.am): Delete unused link warning
18067         efforts.
18068         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
18069         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
18070         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
18071         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
18073         stdio: remove unused variables
18074         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
18075         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
18076         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
18078         tests: test more substitute headers
18079         * modules/ctype-tests: New file.
18080         * modules/dirent-tests: Likewise.
18081         * modules/spawn-tests: Likewise.
18082         * modules/sys_file-tests: Likewise.
18083         * modules/sys_ioctl-tests: Likewise.
18084         * modules/sys_wait-tests: Likewise.
18085         * tests/test-ctype.c: Likewise.
18086         * tests/test-dirent.c: Likewise.
18087         * tests/test-spawn.c: Likewise.
18088         * tests/test-sys_file.c: Likewise.
18089         * tests/test-sys_ioctl.c: Likewise.
18090         * tests/test-sys_wait.c: Likewise.
18091         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
18092         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
18093         whether or not flock is in use.
18095         tests: remove License section from module
18096         * modules/arpa_inet-tests: Remove unneeded section.
18097         * modules/byteswap-tests: Likewise.
18098         * modules/ceilf-tests: Likewise.
18099         * modules/ceill-tests: Likewise.
18100         * modules/crypto/des-tests: Likewise.
18101         * modules/crypto/gc-arcfour-tests: Likewise.
18102         * modules/crypto/gc-arctwo-tests: Likewise.
18103         * modules/crypto/gc-des-tests: Likewise.
18104         * modules/crypto/gc-hmac-md5-tests: Likewise.
18105         * modules/crypto/gc-hmac-sha1-tests: Likewise.
18106         * modules/crypto/gc-md2-tests: Likewise.
18107         * modules/crypto/gc-md4-tests: Likewise.
18108         * modules/crypto/gc-md5-tests: Likewise.
18109         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
18110         * modules/crypto/gc-rijndael-tests: Likewise.
18111         * modules/crypto/gc-sha1-tests: Likewise.
18112         * modules/crypto/gc-tests: Likewise.
18113         * modules/crypto/md2-tests: Likewise.
18114         * modules/crypto/md4-tests: Likewise.
18115         * modules/fcntl-h-tests: Likewise.
18116         * modules/floorf-tests: Likewise.
18117         * modules/floorl-tests: Likewise.
18118         * modules/frexp-nolibm-tests: Likewise.
18119         * modules/frexp-tests: Likewise.
18120         * modules/frexpl-nolibm-tests: Likewise.
18121         * modules/frexpl-tests: Likewise.
18122         * modules/getaddrinfo-tests: Likewise.
18123         * modules/inttypes-tests: Likewise.
18124         * modules/isfinite-tests: Likewise.
18125         * modules/isinf-tests: Likewise.
18126         * modules/ldexpl-tests: Likewise.
18127         * modules/locale-tests: Likewise.
18128         * modules/math-tests: Likewise.
18129         * modules/netdb-tests: Likewise.
18130         * modules/netinet_in-tests: Likewise.
18131         * modules/printf-frexp-tests: Likewise.
18132         * modules/printf-frexpl-tests: Likewise.
18133         * modules/priv-set-tests: Likewise.
18134         * modules/random_r-tests: Likewise.
18135         * modules/round-tests: Likewise.
18136         * modules/roundf-tests: Likewise.
18137         * modules/roundl-tests: Likewise.
18138         * modules/search-tests: Likewise.
18139         * modules/select-tests: Likewise.
18140         * modules/signal-tests: Likewise.
18141         * modules/stdbool-tests: Likewise.
18142         * modules/stddef-tests: Likewise.
18143         * modules/stdint-tests: Likewise.
18144         * modules/stdio-tests: Likewise.
18145         * modules/stdlib-tests: Likewise.
18146         * modules/string-tests: Likewise.
18147         * modules/strings-tests: Likewise.
18148         * modules/sys_select-tests: Likewise.
18149         * modules/sys_socket-tests: Likewise.
18150         * modules/sys_stat-tests: Likewise.
18151         * modules/sys_time-tests: Likewise.
18152         * modules/sys_utsname-tests: Likewise.
18153         * modules/sysexits-tests: Likewise.
18154         * modules/time-tests: Likewise.
18155         * modules/trunc-tests: Likewise.
18156         * modules/truncf-tests: Likewise.
18157         * modules/truncl-tests: Likewise.
18158         * modules/tsearch-tests: Likewise.
18159         * modules/unistd-tests: Likewise.
18160         * modules/wchar-tests: Likewise.
18161         * modules/wctype-tests: Likewise.
18163         tests: fix license on several tests
18164         * tests/test-des.c: Update to GPLv3+.
18165         * tests/test-flock.c: Likewise.
18166         * tests/test-fsync.c: Likewise.
18167         * tests/test-futimens.h: Likewise.
18168         * tests/test-gc-arcfour.c: Likewise.
18169         * tests/test-gc-arctwo.c: Likewise.
18170         * tests/test-gc-des.c: Likewise.
18171         * tests/test-gc-hmac-md5.c: Likewise.
18172         * tests/test-gc-hmac-sha1.c: Likewise.
18173         * tests/test-gc-md2.c: Likewise.
18174         * tests/test-gc-md4.c: Likewise.
18175         * tests/test-gc-md5.c: Likewise.
18176         * tests/test-gc-pbkdf2-sha1.c: Likewise.
18177         * tests/test-gc-rijndael.c: Likewise.
18178         * tests/test-gc-sha1.c: Likewise.
18179         * tests/test-gc.c: Likewise.
18180         * tests/test-getcwd.c: Likewise.
18181         * tests/test-link.c: Likewise.
18182         * tests/test-link.h: Likewise.
18183         * tests/test-lutimens.h: Likewise.
18184         * tests/test-md2.c: Likewise.
18185         * tests/test-md4.c: Likewise.
18186         * tests/test-mkdir.h: Likewise.
18187         * tests/test-rename.c: Likewise.
18188         * tests/test-rename.h: Likewise.
18189         * tests/test-safe-alloc.c: Likewise.
18190         * tests/test-utimens-common.h: Likewise.
18191         * tests/test-utimens.h: Likewise.
18193         maint: sync license texts
18194         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
18195         * doc/gpl-3.0.texi: Revert copyright year update.
18196         * doc/lgpl-3.0.texi: Likewise.
18198 2009-12-29  Jim Meyering  <meyering@redhat.com>
18200         update nearly all FSF copyright year lists to include 2009
18201         The files named by the following are exempted:
18202             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
18203               test -f "$dst" && { echo "$dst"; continue; }
18204               test -d "$dst" || continue
18205               echo "$dst"/$(basename "$src")
18206             done > exempt
18207             git ls-files tests/unictype >> exempt
18208         In the remaining files, convert to all-interval notation if
18209         - there is already at least one year interval like 2000-2003
18210         - the file is maintained by me
18211         - the file is in lib/uni*/, where that style already prevails
18212         Otherwise, use update-copyright's default.
18214 2009-12-29  Simon Josefsson  <simon@josefsson.org>
18215         and Eric Blake  <ebb9@byu.net>
18217         tests: don't require debug system() to pass
18218         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
18219         * tests/test-rmdir.h (test_rmdir_func): Likewise.
18220         * tests/test-unlink.h (test_unlink_func): Likewise.
18221         * tests/test-fstatat.c (main): ...into callers.
18222         * tests/test-lstat.c (main): Likewise.
18223         * tests/test-rmdir.c (main): Likewise.
18224         * tests/test-unlink.c (main): Likewise.
18225         * tests/test-unlinkat.c (main): Likewise.
18226         * tests/test-areadlink-with-size.c (main): Don't require a
18227         debug-only system call to pass, aiding cross-testing to mingw.
18228         * tests/test-areadlink.c (main): Likewise.
18229         * tests/test-areadlinkat-with-size.c (main): Likewise.
18230         * tests/test-areadlinkat.c (main): Likewise.
18231         * tests/test-canonicalize-lgpl.c (main): Likewise.
18232         * tests/test-canonicalize.c (main): Likewise.
18233         * tests/test-chown.c (main): Likewise.
18234         * tests/test-fchownat.c (main): Likewise.
18235         * tests/test-lchown.c (main): Likewise.
18236         * tests/test-fdutimensat.c (main): Likewise.
18237         * tests/test-futimens.c (main): Likewise.
18238         * tests/test-link.c (main): Likewise.
18239         * tests/test-linkat.c (main): Likewise.
18240         * tests/test-mkdir.c (main): Likewise.
18241         * tests/test-mkdirat.c (main): Likewise.
18242         * tests/test-mkfifo.c (main): Likewise.
18243         * tests/test-mkfifoat.c (main): Likewise.
18244         * tests/test-mknod.c (main): Likewise.
18245         * tests/test-readlink.c (main): Likewise.
18246         * tests/test-remove.c (main): Likewise.
18247         * tests/test-rename.c (main): Likewise.
18248         * tests/test-renameat.c (main): Likewise.
18249         * tests/test-symlink.c (main): Likewise.
18250         * tests/test-symlinkat.c (main): Likewise.
18251         * tests/test-utimens.c (main): Likewise.
18252         * tests/test-utimensat.c (main): Likewise.
18254 2009-12-29  Simon Josefsson  <simon@josefsson.org>
18256         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
18257         on $(UNUSED_PARAMETER_H) to avoid build failure.
18259 2009-12-28  Jim Meyering  <meyering@redhat.com>
18261         update-copyright: you may specify a max. line length other than 72
18262         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
18264         maint: use consistent FSF copyright line syntax
18265         * lib/posixtm.c: Add missing comma in FSF copyright line.
18266         * lib/posixtm.h: Likewise.
18267         * lib/getugroups.c: Add missing ", Inc.".
18269         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
18270         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
18271         FSF copyright line.  Remove trailing blanks.
18273 2009-12-28  Eric Blake  <ebb9@byu.net>
18275         test-dup2: reduce dependencies
18276         * modules/cloexec (Configure.ac): Set witness.
18277         * modules/dup2-tests (Depends-on): Drop cloexec.
18278         * tests/test-dup2.c (main): Skip portion of test if cloexec module
18279         not present.
18280         Suggested by Bruno Haible.
18282 2009-12-26  Bruno Haible  <bruno@clisp.org>
18284         Remove an unneeded dependency.
18285         * modules/fseterr (Depends-on): Remove dup2.
18287 2009-12-26  Eric Blake  <ebb9@byu.net>
18289         tests: use macros.h in more places
18290         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
18291         (ASSERT_STREAM): Provide default of stderr.
18292         * tests/test-dirent-safer.c: Include macros.h, using alternate
18293         stream for assertions.
18294         * tests/test-dup-safer.c: Likewise.
18295         * tests/test-freopen-safer.c: Likewise.
18296         * tests/test-getopt.c: Likewise.
18297         * tests/test-openat-safer.c: Likewise.
18298         * tests/test-pipe.c: Likewise.
18299         * tests/test-popen-safer.c: Likewise.
18300         * modules/dirent-safer-tests (Files): Include macros.h.
18301         * modules/unistd-safer-tests (Files): Likewise.
18302         * modules/freopen-safer-tests (Files): Likewise.
18303         * modules/getopt-posix-tests (Files): Likewise.
18304         * modules/openat-safer-tests (Files): Likewise.
18305         * modules/pipe-tests (Files): Likewise.
18307 2009-12-26  Bruno Haible  <bruno@clisp.org>
18309         javacomp: Portability fix.
18310         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
18311         that it also works on Solaris.
18313 2009-12-26  Bruno Haible  <bruno@clisp.org>
18315         localename: Fix storage allocation of gl_locale_name_thread's result.
18316         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
18317         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
18318         all platforms that have 'uselocale'.
18319         (gl_locale_name_thread_unsafe): New function, extracted from
18320         gl_locale_name_thread.
18321         (gl_locale_name_thread): Call struniq on all platforms that have
18322         'uselocale'.
18323         * tests/test-localename.c (test_locale_name_thread): Check that the
18324         resulting strings are permanently allocated.
18325         * modules/localename-tests (Depends-on): Add strdup.
18327 2009-12-26  Bruno Haible  <bruno@clisp.org>
18329         * tests/test-localename.c (categories): Fill in the strings.
18331 2009-12-26  Jim Meyering  <meyering@redhat.com>
18333         isdir: complete the removal of m4/isdir.m4
18334         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
18336         isdir: clean up, since at least grep still uses it
18337         * lib/isdir.c: Include "isdir.h".
18338         (S_ISDIR): Remove now-unneeded definition.
18339         * modules/isdir (Files): Add lib/isdir.h.
18340         * lib/isdir.h: New file, with declaration.
18341         * m4/isdir.m4: Remove file -- unneeded.
18343 2009-12-25  Bruno Haible  <bruno@clisp.org>
18345         selinux-h: Make generated .h files standalone.
18346         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
18347         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
18348         * lib/se-selinux.in.h: Likewise.
18349         * modules/selinux-h (Depends-on): Add unused-parameter.
18350         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
18351         selinux/selinux.h and selinux/context.h.
18352         Suggested by Eric Blake.
18354 2009-12-25  Bruno Haible  <bruno@clisp.org>
18356         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
18357         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
18358         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
18359         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
18360         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
18362 2009-12-24  Bruno Haible  <bruno@clisp.org>
18364         openat: Fix warning.
18365         * lib/openat-proc.c: Include <unistd.h>.
18367 2009-12-24  Bruno Haible  <bruno@clisp.org>
18369         New module 'unused-parameter'.
18370         * build-aux/unused-parameter.h: New file, extracted from earlier
18371         gnulib-common.m4.
18372         * modules/unused-parameter: New file.
18373         * lib/unistr.h: Include unused-parameter.h.
18374         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
18375         _GL_UNUSED.
18376         * modules/unistr/base (Depends-on): Add unused-parameter.
18378 2009-12-24  Bruno Haible  <bruno@clisp.org>
18380         Add missing dependencies to 'extensions' module.
18381         * m4/extensions.m4: Add comment.
18382         * modules/accept4 (Depends-on): Add extensions.
18383         * modules/dup3 (Depends-on): Likewise.
18384         * modules/fcntl (Depends-on): Likewise.
18385         * modules/futimens (Depends-on): Likewise.
18386         * modules/mknod (Depends-on): Likewise.
18387         * modules/pipe2 (Depends-on): Likewise.
18388         * modules/stat-time (Depends-on): Likewise.
18389         * modules/strcasestr-simple (Depends-on): Likewise.
18390         * modules/strsignal (Depends-on): Likewise.
18391         * modules/utimensat (Depends-on): Likewise.
18392         * modules/localcharset (Depends-on): Likewise. Needed because of
18393         gl_FCNTL_O_FLAGS.
18394         * modules/wcrtomb (Depends-on): Likewise. Needed because of
18395         AC_TYPE_MBSTATE_T.
18396         * modules/wcsnrtombs (Depends-on): Likewise.
18397         * modules/wcsrtombs (Depends-on): Likewise.
18399 2009-12-24  Bruno Haible  <bruno@clisp.org>
18401         binary-io: Avoid gcc warning due to SET_BINARY.
18402         * lib/binary-io.h (SET_BINARY): Cast the result to void.
18403         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
18405 2009-12-24  Bruno Haible  <bruno@clisp.org>
18407         Avoid future namespace pollution on glibc systems.
18408         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
18409         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
18410         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
18411         glibc systems.
18413 2009-12-24  Bruno Haible  <bruno@clisp.org>
18415         Refactor common macros used in tests.
18416         * tests/macros.h: New file.
18417         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
18418         and/or <stdlib.h>, if appropriate.
18419         (ASSERT, SIZEOF): Remove macros.
18420         * tests/test-areadlink-with-size.c: Likewise.
18421         * tests/test-areadlinkat.c: Likewise.
18422         * tests/test-areadlinkat-with-size.c: Likewise.
18423         * tests/test-argmatch.c: Likewise.
18424         * tests/test-argv-iter.c: Likewise.
18425         * tests/test-array-mergesort.c: Likewise.
18426         * tests/test-array_list.c: Likewise.
18427         * tests/test-array_oset.c: Likewise.
18428         * tests/test-avltree_list.c: Likewise.
18429         * tests/test-avltree_oset.c: Likewise.
18430         * tests/test-avltreehash_list.c: Likewise.
18431         * tests/test-base64.c: Likewise.
18432         * tests/test-binary-io.c: Likewise.
18433         * tests/test-bitrotate.c: Likewise.
18434         * tests/test-btowc.c: Likewise.
18435         * tests/test-byteswap.c: Likewise.
18436         * tests/test-c-ctype.c: Likewise.
18437         * tests/test-c-stack.c: Likewise.
18438         * tests/test-c-strcasecmp.c: Likewise.
18439         * tests/test-c-strcasestr.c: Likewise.
18440         * tests/test-c-strncasecmp.c: Likewise.
18441         * tests/test-c-strstr.c: Likewise.
18442         * tests/test-canonicalize-lgpl.c: Likewise.
18443         * tests/test-canonicalize.c: Likewise.
18444         * tests/test-carray_list.c: Likewise.
18445         * tests/test-ceilf1.c: Likewise.
18446         * tests/test-ceilf2.c: Likewise.
18447         * tests/test-ceill.c: Likewise.
18448         * tests/test-chown.c: Likewise.
18449         * tests/test-cloexec.c: Likewise.
18450         * tests/test-copy-acl.c: Likewise.
18451         * tests/test-copy-file.c: Likewise.
18452         * tests/test-count-one-bits.c: Likewise.
18453         * tests/test-dprintf-posix.c: Likewise.
18454         * tests/test-dup2.c: Likewise.
18455         * tests/test-dup3.c: Likewise.
18456         * tests/test-duplocale.c: Likewise.
18457         * tests/test-fbufmode.c: Likewise.
18458         * tests/test-fchdir.c: Likewise.
18459         * tests/test-fchownat.c: Likewise.
18460         * tests/test-fcntl-safer.c: Likewise.
18461         * tests/test-fcntl.c: Likewise.
18462         * tests/test-fdopendir.c: Likewise.
18463         * tests/test-fdutimensat.c: Likewise.
18464         * tests/test-fflush2.c: Likewise.
18465         * tests/test-file-has-acl.c: Likewise.
18466         * tests/test-filevercmp.c: Likewise.
18467         * tests/test-flock.c: Likewise.
18468         * tests/test-floorf1.c: Likewise.
18469         * tests/test-floorf2.c: Likewise.
18470         * tests/test-floorl.c: Likewise.
18471         * tests/test-fnmatch.c: Likewise.
18472         * tests/test-fopen.h: Likewise.
18473         * tests/test-fpending.c: Likewise.
18474         * tests/test-fprintf-posix.c: Likewise.
18475         * tests/test-fpurge.c: Likewise.
18476         * tests/test-freadable.c: Likewise.
18477         * tests/test-freadahead.c: Likewise.
18478         * tests/test-freading.c: Likewise.
18479         * tests/test-freadptr.c: Likewise.
18480         * tests/test-freadptr2.c: Likewise.
18481         * tests/test-freadseek.c: Likewise.
18482         * tests/test-freopen.c: Likewise.
18483         * tests/test-frexp.c: Likewise.
18484         * tests/test-frexpl.c: Likewise.
18485         * tests/test-fseek.c: Likewise.
18486         * tests/test-fseeko.c: Likewise.
18487         * tests/test-fstatat.c: Likewise.
18488         * tests/test-fstrcmp.c: Likewise.
18489         * tests/test-fsync.c: Likewise.
18490         * tests/test-ftell.c: Likewise.
18491         * tests/test-ftello.c: Likewise.
18492         * tests/test-func.c: Likewise.
18493         * tests/test-futimens.c: Likewise.
18494         * tests/test-fwritable.c: Likewise.
18495         * tests/test-fwriting.c: Likewise.
18496         * tests/test-getcwd.c: Likewise.
18497         * tests/test-getdate.c: Likewise.
18498         * tests/test-getdelim.c: Likewise.
18499         * tests/test-getdtablesize.c: Likewise.
18500         * tests/test-getgroups.c: Likewise.
18501         * tests/test-getline.c: Likewise.
18502         * tests/test-getndelim2.c: Likewise.
18503         * tests/test-glob.c: Likewise.
18504         * tests/test-hash.c: Likewise.
18505         * tests/test-i-ring.c: Likewise.
18506         * tests/test-iconv-utf.c: Likewise.
18507         * tests/test-iconv.c: Likewise.
18508         * tests/test-idpriv-drop.c: Likewise.
18509         * tests/test-idpriv-droptemp.c: Likewise.
18510         * tests/test-inet_ntop.c: Likewise.
18511         * tests/test-inet_pton.c: Likewise.
18512         * tests/test-isblank.c: Likewise.
18513         * tests/test-isfinite.c: Likewise.
18514         * tests/test-isinf.c: Likewise.
18515         * tests/test-isnan.c: Likewise.
18516         * tests/test-isnand.h: Likewise.
18517         * tests/test-isnanf.h: Likewise.
18518         * tests/test-isnanl.h: Likewise.
18519         * tests/test-lchown.c: Likewise.
18520         * tests/test-ldexpl.c: Likewise.
18521         * tests/test-link.c: Likewise.
18522         * tests/test-linkat.c: Likewise.
18523         * tests/test-linked_list.c: Likewise.
18524         * tests/test-linkedhash_list.c: Likewise.
18525         * tests/test-localename.c: Likewise.
18526         * tests/test-lseek.c: Likewise.
18527         * tests/test-lstat.c: Likewise.
18528         * tests/test-mbmemcasecmp.c: Likewise.
18529         * tests/test-mbmemcasecoll.c: Likewise.
18530         * tests/test-mbrtowc.c: Likewise.
18531         * tests/test-mbscasecmp.c: Likewise.
18532         * tests/test-mbscasestr1.c: Likewise.
18533         * tests/test-mbscasestr2.c: Likewise.
18534         * tests/test-mbscasestr3.c: Likewise.
18535         * tests/test-mbscasestr4.c: Likewise.
18536         * tests/test-mbschr.c: Likewise.
18537         * tests/test-mbscspn.c: Likewise.
18538         * tests/test-mbsinit.c: Likewise.
18539         * tests/test-mbsncasecmp.c: Likewise.
18540         * tests/test-mbsnrtowcs.c: Likewise.
18541         * tests/test-mbspbrk.c: Likewise.
18542         * tests/test-mbspcasecmp.c: Likewise.
18543         * tests/test-mbsrchr.c: Likewise.
18544         * tests/test-mbsrtowcs.c: Likewise.
18545         * tests/test-mbsspn.c: Likewise.
18546         * tests/test-mbsstr1.c: Likewise.
18547         * tests/test-mbsstr2.c: Likewise.
18548         * tests/test-mbsstr3.c: Likewise.
18549         * tests/test-memchr.c: Likewise.
18550         * tests/test-memchr2.c: Likewise.
18551         * tests/test-memcmp.c: Likewise.
18552         * tests/test-memmem.c: Likewise.
18553         * tests/test-memrchr.c: Likewise.
18554         * tests/test-mkdir.c: Likewise.
18555         * tests/test-mkdirat.c: Likewise.
18556         * tests/test-mkfifo.c: Likewise.
18557         * tests/test-mkfifoat.c: Likewise.
18558         * tests/test-mknod.c: Likewise.
18559         * tests/test-nanosleep.c: Likewise.
18560         * tests/test-nl_langinfo.c: Likewise.
18561         * tests/test-obstack-printf.c: Likewise.
18562         * tests/test-open.c: Likewise.
18563         * tests/test-openat.c: Likewise.
18564         * tests/test-pipe-filter-gi1.c: Likewise.
18565         * tests/test-pipe-filter-gi2-main.c: Likewise.
18566         * tests/test-pipe-filter-ii1.c: Likewise.
18567         * tests/test-pipe-filter-ii2-main.c: Likewise.
18568         * tests/test-pipe2.c: Likewise.
18569         * tests/test-popen.h: Likewise.
18570         * tests/test-posixtm.c: Likewise.
18571         * tests/test-pread.c: Likewise.
18572         * tests/test-printf-frexp.c: Likewise.
18573         * tests/test-printf-frexpl.c: Likewise.
18574         * tests/test-printf-posix.c: Likewise.
18575         * tests/test-priv-set.c: Likewise.
18576         * tests/test-quotearg.c: Likewise.
18577         * tests/test-random_r.c: Likewise.
18578         * tests/test-rawmemchr.c: Likewise.
18579         * tests/test-rbtree_list.c: Likewise.
18580         * tests/test-rbtree_oset.c: Likewise.
18581         * tests/test-rbtreehash_list.c: Likewise.
18582         * tests/test-readlink.c: Likewise.
18583         * tests/test-remove.c: Likewise.
18584         * tests/test-rename.c: Likewise.
18585         * tests/test-renameat.c: Likewise.
18586         * tests/test-rmdir.c: Likewise.
18587         * tests/test-round1.c: Likewise.
18588         * tests/test-roundf1.c: Likewise.
18589         * tests/test-roundl.c: Likewise.
18590         * tests/test-safe-alloc.c: Likewise.
18591         * tests/test-sameacls.c: Likewise.
18592         * tests/test-set-mode-acl.c: Likewise.
18593         * tests/test-setenv.c: Likewise.
18594         * tests/test-sigaction.c: Likewise.
18595         * tests/test-signbit.c: Likewise.
18596         * tests/test-sleep.c: Likewise.
18597         * tests/test-snprintf-posix.c: Likewise.
18598         * tests/test-snprintf.c: Likewise.
18599         * tests/test-sprintf-posix.c: Likewise.
18600         * tests/test-stat-time.c: Likewise.
18601         * tests/test-stat.c: Likewise.
18602         * tests/test-strcasestr.c: Likewise.
18603         * tests/test-strchrnul.c: Likewise.
18604         * tests/test-strerror.c: Likewise.
18605         * tests/test-striconv.c: Likewise.
18606         * tests/test-striconveh.c: Likewise.
18607         * tests/test-striconveha.c: Likewise.
18608         * tests/test-strsignal.c: Likewise.
18609         * tests/test-strstr.c: Likewise.
18610         * tests/test-strtod.c: Likewise.
18611         * tests/test-strverscmp.c: Likewise.
18612         * tests/test-symlink.c: Likewise.
18613         * tests/test-symlinkat.c: Likewise.
18614         * tests/test-trunc1.c: Likewise.
18615         * tests/test-trunc2.c: Likewise.
18616         * tests/test-truncf1.c: Likewise.
18617         * tests/test-truncf2.c: Likewise.
18618         * tests/test-truncl.c: Likewise.
18619         * tests/test-uname.c: Likewise.
18620         * tests/test-unlink.c: Likewise.
18621         * tests/test-unlinkat.c: Likewise.
18622         * tests/test-unsetenv.c: Likewise.
18623         * tests/test-usleep.c: Likewise.
18624         * tests/test-utimens.c: Likewise.
18625         * tests/test-utimensat.c: Likewise.
18626         * tests/test-vasnprintf-posix.c: Likewise.
18627         * tests/test-vasnprintf-posix2.c: Likewise.
18628         * tests/test-vasnprintf.c: Likewise.
18629         * tests/test-vasprintf-posix.c: Likewise.
18630         * tests/test-vasprintf.c: Likewise.
18631         * tests/test-vdprintf-posix.c: Likewise.
18632         * tests/test-vfprintf-posix.c: Likewise.
18633         * tests/test-vprintf-posix.c: Likewise.
18634         * tests/test-vsnprintf-posix.c: Likewise.
18635         * tests/test-vsnprintf.c: Likewise.
18636         * tests/test-vsprintf-posix.c: Likewise.
18637         * tests/test-wcrtomb.c: Likewise.
18638         * tests/test-wcsnrtombs.c: Likewise.
18639         * tests/test-wcsrtombs.c: Likewise.
18640         * tests/test-wctype.c: Likewise.
18641         * tests/test-wcwidth.c: Likewise.
18642         * tests/test-xfprintf-posix.c: Likewise.
18643         * tests/test-xmemdup0.c: Likewise.
18644         * tests/test-xprintf-posix.c: Likewise.
18645         * tests/test-xvasprintf.c: Likewise.
18646         * tests/unicase/test-locale-language.c: Likewise.
18647         * tests/unicase/test-mapping-part1.h: Likewise.
18648         * tests/unicase/test-predicate-part1.h: Likewise.
18649         * tests/unicase/test-u8-casecmp.c: Likewise.
18650         * tests/unicase/test-u8-casecoll.c: Likewise.
18651         * tests/unicase/test-u8-casefold.c: Likewise.
18652         * tests/unicase/test-u8-is-cased.c: Likewise.
18653         * tests/unicase/test-u8-is-casefolded.c: Likewise.
18654         * tests/unicase/test-u8-is-lowercase.c: Likewise.
18655         * tests/unicase/test-u8-is-titlecase.c: Likewise.
18656         * tests/unicase/test-u8-is-uppercase.c: Likewise.
18657         * tests/unicase/test-u8-tolower.c: Likewise.
18658         * tests/unicase/test-u8-totitle.c: Likewise.
18659         * tests/unicase/test-u8-toupper.c: Likewise.
18660         * tests/unicase/test-u16-casecmp.c: Likewise.
18661         * tests/unicase/test-u16-casecoll.c: Likewise.
18662         * tests/unicase/test-u16-casefold.c: Likewise.
18663         * tests/unicase/test-u16-is-cased.c: Likewise.
18664         * tests/unicase/test-u16-is-casefolded.c: Likewise.
18665         * tests/unicase/test-u16-is-lowercase.c: Likewise.
18666         * tests/unicase/test-u16-is-titlecase.c: Likewise.
18667         * tests/unicase/test-u16-is-uppercase.c: Likewise.
18668         * tests/unicase/test-u16-tolower.c: Likewise.
18669         * tests/unicase/test-u16-totitle.c: Likewise.
18670         * tests/unicase/test-u16-toupper.c: Likewise.
18671         * tests/unicase/test-u32-casecmp.c: Likewise.
18672         * tests/unicase/test-u32-casecoll.c: Likewise.
18673         * tests/unicase/test-u32-casefold.c: Likewise.
18674         * tests/unicase/test-u32-is-cased.c: Likewise.
18675         * tests/unicase/test-u32-is-casefolded.c: Likewise.
18676         * tests/unicase/test-u32-is-lowercase.c: Likewise.
18677         * tests/unicase/test-u32-is-titlecase.c: Likewise.
18678         * tests/unicase/test-u32-is-uppercase.c: Likewise.
18679         * tests/unicase/test-u32-tolower.c: Likewise.
18680         * tests/unicase/test-u32-totitle.c: Likewise.
18681         * tests/unicase/test-u32-toupper.c: Likewise.
18682         * tests/unicase/test-ulc-casecmp.c: Likewise.
18683         * tests/unicase/test-ulc-casecoll.c: Likewise.
18684         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
18685         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
18686         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
18687         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
18688         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
18689         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
18690         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
18691         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
18692         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
18693         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
18694         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
18695         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
18696         * tests/unictype/test-bidi_byname.c: Likewise.
18697         * tests/unictype/test-bidi_name.c: Likewise.
18698         * tests/unictype/test-bidi_of.c: Likewise.
18699         * tests/unictype/test-bidi_test.c: Likewise.
18700         * tests/unictype/test-block_list.c: Likewise.
18701         * tests/unictype/test-block_of.c: Likewise.
18702         * tests/unictype/test-block_test.c: Likewise.
18703         * tests/unictype/test-categ_and.c: Likewise.
18704         * tests/unictype/test-categ_and_not.c: Likewise.
18705         * tests/unictype/test-categ_byname.c: Likewise.
18706         * tests/unictype/test-categ_name.c: Likewise.
18707         * tests/unictype/test-categ_none.c: Likewise.
18708         * tests/unictype/test-categ_of.c: Likewise.
18709         * tests/unictype/test-categ_or.c: Likewise.
18710         * tests/unictype/test-categ_test_withtable.c: Likewise.
18711         * tests/unictype/test-combining.c: Likewise.
18712         * tests/unictype/test-decdigit.c: Likewise.
18713         * tests/unictype/test-digit.c: Likewise.
18714         * tests/unictype/test-mirror.c: Likewise.
18715         * tests/unictype/test-numeric.c: Likewise.
18716         * tests/unictype/test-pr_byname.c: Likewise.
18717         * tests/unictype/test-pr_test.c: Likewise.
18718         * tests/unictype/test-predicate-part1.h: Likewise.
18719         * tests/unictype/test-scripts.c: Likewise.
18720         * tests/unictype/test-sy_c_ident.c: Likewise.
18721         * tests/unictype/test-sy_java_ident.c: Likewise.
18722         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
18723         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
18724         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
18725         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
18726         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
18727         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
18728         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
18729         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
18730         * tests/uninorm/test-canonical-decomposition.c: Likewise.
18731         * tests/uninorm/test-compat-decomposition.c: Likewise.
18732         * tests/uninorm/test-composition.c: Likewise.
18733         * tests/uninorm/test-decomposing-form.c: Likewise.
18734         * tests/uninorm/test-decomposition.c: Likewise.
18735         * tests/uninorm/test-u8-nfc.c: Likewise.
18736         * tests/uninorm/test-u8-nfd.c: Likewise.
18737         * tests/uninorm/test-u8-nfkc.c: Likewise.
18738         * tests/uninorm/test-u8-nfkd.c: Likewise.
18739         * tests/uninorm/test-u8-normcmp.c: Likewise.
18740         * tests/uninorm/test-u8-normcoll.c: Likewise.
18741         * tests/uninorm/test-u16-nfc.c: Likewise.
18742         * tests/uninorm/test-u16-nfd.c: Likewise.
18743         * tests/uninorm/test-u16-nfkc.c: Likewise.
18744         * tests/uninorm/test-u16-nfkd.c: Likewise.
18745         * tests/uninorm/test-u16-normcmp.c: Likewise.
18746         * tests/uninorm/test-u16-normcoll.c: Likewise.
18747         * tests/uninorm/test-u32-nfc.c: Likewise.
18748         * tests/uninorm/test-u32-nfd.c: Likewise.
18749         * tests/uninorm/test-u32-nfkc.c: Likewise.
18750         * tests/uninorm/test-u32-nfkd.c: Likewise.
18751         * tests/uninorm/test-u32-normalize-big.c: Likewise.
18752         * tests/uninorm/test-u32-normcmp.c: Likewise.
18753         * tests/uninorm/test-u32-normcoll.c: Likewise.
18754         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
18755         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
18756         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
18757         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
18758         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
18759         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
18760         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
18761         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
18762         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
18763         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
18764         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
18765         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
18766         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
18767         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
18768         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
18769         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
18770         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
18771         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
18772         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
18773         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
18774         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
18775         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
18776         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
18777         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
18778         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
18779         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
18780         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
18781         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
18782         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
18783         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
18784         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
18785         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
18786         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
18787         * tests/uniwidth/test-u8-strwidth.c: Likewise.
18788         * tests/uniwidth/test-u8-width.c: Likewise.
18789         * tests/uniwidth/test-u16-strwidth.c: Likewise.
18790         * tests/uniwidth/test-u16-width.c: Likewise.
18791         * tests/uniwidth/test-u32-strwidth.c: Likewise.
18792         * tests/uniwidth/test-u32-width.c: Likewise.
18793         * tests/uniwidth/test-uc_width.c: Likewise.
18794         * tests/uniwidth/test-uc_width2.c: Likewise.
18795         * modules/acl-tests (Files): Add tests/macros.h.
18796         * modules/areadlink-tests (Files): Likewise.
18797         * modules/areadlink-with-size-tests (Files): Likewise.
18798         * modules/areadlinkat-tests (Files): Likewise.
18799         * modules/areadlinkat-with-size-tests (Files): Likewise.
18800         * modules/argmatch-tests (Files): Likewise.
18801         * modules/argv-iter-tests (Files): Likewise.
18802         * modules/array-list-tests (Files): Likewise.
18803         * modules/array-mergesort-tests (Files): Likewise.
18804         * modules/array-oset-tests (Files): Likewise.
18805         * modules/avltree-list-tests (Files): Likewise.
18806         * modules/avltree-oset-tests (Files): Likewise.
18807         * modules/avltreehash-list-tests (Files): Likewise.
18808         * modules/base64-tests (Files): Likewise.
18809         * modules/binary-io-tests (Files): Likewise.
18810         * modules/bitrotate-tests (Files): Likewise.
18811         * modules/btowc-tests (Files): Likewise.
18812         * modules/byteswap-tests (Files): Likewise.
18813         * modules/c-ctype-tests (Files): Likewise.
18814         * modules/c-stack-tests (Files): Likewise.
18815         * modules/c-strcase-tests (Files): Likewise.
18816         * modules/c-strcasestr-tests (Files): Likewise.
18817         * modules/c-strstr-tests (Files): Likewise.
18818         * modules/canonicalize-lgpl-tests (Files): Likewise.
18819         * modules/canonicalize-tests (Files): Likewise.
18820         * modules/carray-list-tests (Files): Likewise.
18821         * modules/ceilf-tests (Files): Likewise.
18822         * modules/ceill-tests (Files): Likewise.
18823         * modules/chown-tests (Files): Likewise.
18824         * modules/cloexec-tests (Files): Likewise.
18825         * modules/copy-file-tests (Files): Likewise.
18826         * modules/count-one-bits-tests (Files): Likewise.
18827         * modules/dprintf-posix-tests (Files): Likewise.
18828         * modules/dup2-tests (Files): Likewise.
18829         * modules/dup3-tests (Files): Likewise.
18830         * modules/duplocale-tests (Files): Likewise.
18831         * modules/fbufmode-tests (Files): Likewise.
18832         * modules/fchdir-tests (Files): Likewise.
18833         * modules/fcntl-safer-tests (Files): Likewise.
18834         * modules/fcntl-tests (Files): Likewise.
18835         * modules/fdopendir-tests (Files): Likewise.
18836         * modules/fdutimensat-tests (Files): Likewise.
18837         * modules/fflush-tests (Files): Likewise.
18838         * modules/filevercmp-tests (Files): Likewise.
18839         * modules/flock-tests (Files): Likewise.
18840         * modules/floorf-tests (Files): Likewise.
18841         * modules/floorl-tests (Files): Likewise.
18842         * modules/fnmatch-tests (Files): Likewise.
18843         * modules/fopen-safer-tests (Files): Likewise.
18844         * modules/fopen-tests (Files): Likewise.
18845         * modules/fpending-tests (Files): Likewise.
18846         * modules/fprintf-posix-tests (Files): Likewise.
18847         * modules/fpurge-tests (Files): Likewise.
18848         * modules/freadable-tests (Files): Likewise.
18849         * modules/freadahead-tests (Files): Likewise.
18850         * modules/freading-tests (Files): Likewise.
18851         * modules/freadptr-tests (Files): Likewise.
18852         * modules/freadseek-tests (Files): Likewise.
18853         * modules/freopen-tests (Files): Likewise.
18854         * modules/frexp-nolibm-tests (Files): Likewise.
18855         * modules/frexp-tests (Files): Likewise.
18856         * modules/frexpl-nolibm-tests (Files): Likewise.
18857         * modules/frexpl-tests (Files): Likewise.
18858         * modules/fseek-tests (Files): Likewise.
18859         * modules/fseeko-tests (Files): Likewise.
18860         * modules/fstrcmp-tests (Files): Likewise.
18861         * modules/fsync-tests (Files): Likewise.
18862         * modules/ftell-tests (Files): Likewise.
18863         * modules/ftello-tests (Files): Likewise.
18864         * modules/func-tests (Files): Likewise.
18865         * modules/futimens-tests (Files): Likewise.
18866         * modules/fwritable-tests (Files): Likewise.
18867         * modules/fwriting-tests (Files): Likewise.
18868         * modules/getcwd-tests (Files): Likewise.
18869         * modules/getdate-tests (Files): Likewise.
18870         * modules/getdelim-tests (Files): Likewise.
18871         * modules/getdtablesize-tests (Files): Likewise.
18872         * modules/getgroups-tests (Files): Likewise.
18873         * modules/getline-tests (Files): Likewise.
18874         * modules/getndelim2-tests (Files): Likewise.
18875         * modules/glob-tests (Files): Likewise.
18876         * modules/hash-tests (Files): Likewise.
18877         * modules/i-ring-tests (Files): Likewise.
18878         * modules/iconv-tests (Files): Likewise.
18879         * modules/iconv_open-utf-tests (Files): Likewise.
18880         * modules/idpriv-drop-tests (Files): Likewise.
18881         * modules/idpriv-droptemp-tests (Files): Likewise.
18882         * modules/inet_ntop-tests (Files): Likewise.
18883         * modules/inet_pton-tests (Files): Likewise.
18884         * modules/isblank-tests (Files): Likewise.
18885         * modules/isfinite-tests (Files): Likewise.
18886         * modules/isinf-tests (Files): Likewise.
18887         * modules/isnan-tests (Files): Likewise.
18888         * modules/isnand-nolibm-tests (Files): Likewise.
18889         * modules/isnand-tests (Files): Likewise.
18890         * modules/isnanf-nolibm-tests (Files): Likewise.
18891         * modules/isnanf-tests (Files): Likewise.
18892         * modules/isnanl-nolibm-tests (Files): Likewise.
18893         * modules/isnanl-tests (Files): Likewise.
18894         * modules/lchown-tests (Files): Likewise.
18895         * modules/ldexpl-tests (Files): Likewise.
18896         * modules/link-tests (Files): Likewise.
18897         * modules/linkat-tests (Files): Likewise.
18898         * modules/linked-list-tests (Files): Likewise.
18899         * modules/linkedhash-list-tests (Files): Likewise.
18900         * modules/localename-tests (Files): Likewise.
18901         * modules/lseek-tests (Files): Likewise.
18902         * modules/lstat-tests (Files): Likewise.
18903         * modules/mbmemcasecmp-tests (Files): Likewise.
18904         * modules/mbmemcasecoll-tests (Files): Likewise.
18905         * modules/mbrtowc-tests (Files): Likewise.
18906         * modules/mbscasecmp-tests (Files): Likewise.
18907         * modules/mbscasestr-tests (Files): Likewise.
18908         * modules/mbschr-tests (Files): Likewise.
18909         * modules/mbscspn-tests (Files): Likewise.
18910         * modules/mbsinit-tests (Files): Likewise.
18911         * modules/mbsncasecmp-tests (Files): Likewise.
18912         * modules/mbsnrtowcs-tests (Files): Likewise.
18913         * modules/mbspbrk-tests (Files): Likewise.
18914         * modules/mbspcasecmp-tests (Files): Likewise.
18915         * modules/mbsrchr-tests (Files): Likewise.
18916         * modules/mbsrtowcs-tests (Files): Likewise.
18917         * modules/mbsspn-tests (Files): Likewise.
18918         * modules/mbsstr-tests (Files): Likewise.
18919         * modules/memchr-tests (Files): Likewise.
18920         * modules/memchr2-tests (Files): Likewise.
18921         * modules/memcmp-tests (Files): Likewise.
18922         * modules/memmem-tests (Files): Likewise.
18923         * modules/memrchr-tests (Files): Likewise.
18924         * modules/mkdir-tests (Files): Likewise.
18925         * modules/mkfifo-tests (Files): Likewise.
18926         * modules/mkfifoat-tests (Files): Likewise.
18927         * modules/mknod-tests (Files): Likewise.
18928         * modules/nanosleep-tests (Files): Likewise.
18929         * modules/nl_langinfo-tests (Files): Likewise.
18930         * modules/obstack-printf-tests (Files): Likewise.
18931         * modules/open-tests (Files): Likewise.
18932         * modules/openat-tests (Files): Likewise.
18933         * modules/pipe-filter-gi-tests (Files): Likewise.
18934         * modules/pipe-filter-ii-tests (Files): Likewise.
18935         * modules/pipe2-tests (Files): Likewise.
18936         * modules/popen-safer-tests (Files): Likewise.
18937         * modules/popen-tests (Files): Likewise.
18938         * modules/posixtm-tests (Files): Likewise.
18939         * modules/pread-tests (Files): Likewise.
18940         * modules/printf-frexp-tests (Files): Likewise.
18941         * modules/printf-frexpl-tests (Files): Likewise.
18942         * modules/printf-posix-tests (Files): Likewise.
18943         * modules/priv-set-tests (Files): Likewise.
18944         * modules/quotearg-tests (Files): Likewise.
18945         * modules/random_r-tests (Files): Likewise.
18946         * modules/rawmemchr-tests (Files): Likewise.
18947         * modules/rbtree-list-tests (Files): Likewise.
18948         * modules/rbtree-oset-tests (Files): Likewise.
18949         * modules/rbtreehash-list-tests (Files): Likewise.
18950         * modules/readlink-tests (Files): Likewise.
18951         * modules/remove-tests (Files): Likewise.
18952         * modules/rename-tests (Files): Likewise.
18953         * modules/renameat-tests (Files): Likewise.
18954         * modules/rmdir-tests (Files): Likewise.
18955         * modules/round-tests (Files): Likewise.
18956         * modules/roundf-tests (Files): Likewise.
18957         * modules/roundl-tests (Files): Likewise.
18958         * modules/safe-alloc-tests (Files): Likewise.
18959         * modules/setenv-tests (Files): Likewise.
18960         * modules/sigaction-tests (Files): Likewise.
18961         * modules/signbit-tests (Files): Likewise.
18962         * modules/sleep-tests (Files): Likewise.
18963         * modules/snprintf-posix-tests (Files): Likewise.
18964         * modules/snprintf-tests (Files): Likewise.
18965         * modules/sprintf-posix-tests (Files): Likewise.
18966         * modules/stat-tests (Files): Likewise.
18967         * modules/stat-time-tests (Files): Likewise.
18968         * modules/strcasestr-tests (Files): Likewise.
18969         * modules/strchrnul-tests (Files): Likewise.
18970         * modules/strerror-tests (Files): Likewise.
18971         * modules/striconv-tests (Files): Likewise.
18972         * modules/striconveh-tests (Files): Likewise.
18973         * modules/striconveha-tests (Files): Likewise.
18974         * modules/strsignal-tests (Files): Likewise.
18975         * modules/strstr-tests (Files): Likewise.
18976         * modules/strtod-tests (Files): Likewise.
18977         * modules/strverscmp-tests (Files): Likewise.
18978         * modules/symlink-tests (Files): Likewise.
18979         * modules/symlinkat-tests (Files): Likewise.
18980         * modules/trunc-tests (Files): Likewise.
18981         * modules/truncf-tests (Files): Likewise.
18982         * modules/truncl-tests (Files): Likewise.
18983         * modules/uname-tests (Files): Likewise.
18984         * modules/unicase/cased-tests (Files): Likewise.
18985         * modules/unicase/ignorable-tests (Files): Likewise.
18986         * modules/unicase/locale-language-tests (Files): Likewise.
18987         * modules/unicase/tolower-tests (Files): Likewise.
18988         * modules/unicase/totitle-tests (Files): Likewise.
18989         * modules/unicase/toupper-tests (Files): Likewise.
18990         * modules/unicase/u8-casecmp-tests (Files): Likewise.
18991         * modules/unicase/u8-casecoll-tests (Files): Likewise.
18992         * modules/unicase/u8-casefold-tests (Files): Likewise.
18993         * modules/unicase/u8-is-cased-tests (Files): Likewise.
18994         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
18995         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
18996         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
18997         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
18998         * modules/unicase/u8-tolower-tests (Files): Likewise.
18999         * modules/unicase/u8-totitle-tests (Files): Likewise.
19000         * modules/unicase/u8-toupper-tests (Files): Likewise.
19001         * modules/unicase/u16-casecmp-tests (Files): Likewise.
19002         * modules/unicase/u16-casecoll-tests (Files): Likewise.
19003         * modules/unicase/u16-casefold-tests (Files): Likewise.
19004         * modules/unicase/u16-is-cased-tests (Files): Likewise.
19005         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
19006         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
19007         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
19008         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
19009         * modules/unicase/u16-tolower-tests (Files): Likewise.
19010         * modules/unicase/u16-totitle-tests (Files): Likewise.
19011         * modules/unicase/u16-toupper-tests (Files): Likewise.
19012         * modules/unicase/u32-casecmp-tests (Files): Likewise.
19013         * modules/unicase/u32-casecoll-tests (Files): Likewise.
19014         * modules/unicase/u32-casefold-tests (Files): Likewise.
19015         * modules/unicase/u32-is-cased-tests (Files): Likewise.
19016         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
19017         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
19018         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
19019         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
19020         * modules/unicase/u32-tolower-tests (Files): Likewise.
19021         * modules/unicase/u32-totitle-tests (Files): Likewise.
19022         * modules/unicase/u32-toupper-tests (Files): Likewise.
19023         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
19024         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
19025         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
19026         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
19027         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
19028         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
19029         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
19030         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
19031         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
19032         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
19033         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
19034         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
19035         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
19036         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
19037         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
19038         * modules/unictype/bidicategory-name-tests (Files): Likewise.
19039         * modules/unictype/bidicategory-of-tests (Files): Likewise.
19040         * modules/unictype/bidicategory-test-tests (Files): Likewise.
19041         * modules/unictype/block-list-tests (Files): Likewise.
19042         * modules/unictype/block-of-tests (Files): Likewise.
19043         * modules/unictype/block-test-tests (Files): Likewise.
19044         * modules/unictype/category-C-tests (Files): Likewise.
19045         * modules/unictype/category-Cc-tests (Files): Likewise.
19046         * modules/unictype/category-Cf-tests (Files): Likewise.
19047         * modules/unictype/category-Cn-tests (Files): Likewise.
19048         * modules/unictype/category-Co-tests (Files): Likewise.
19049         * modules/unictype/category-Cs-tests (Files): Likewise.
19050         * modules/unictype/category-L-tests (Files): Likewise.
19051         * modules/unictype/category-Ll-tests (Files): Likewise.
19052         * modules/unictype/category-Lm-tests (Files): Likewise.
19053         * modules/unictype/category-Lo-tests (Files): Likewise.
19054         * modules/unictype/category-Lt-tests (Files): Likewise.
19055         * modules/unictype/category-Lu-tests (Files): Likewise.
19056         * modules/unictype/category-M-tests (Files): Likewise.
19057         * modules/unictype/category-Mc-tests (Files): Likewise.
19058         * modules/unictype/category-Me-tests (Files): Likewise.
19059         * modules/unictype/category-Mn-tests (Files): Likewise.
19060         * modules/unictype/category-N-tests (Files): Likewise.
19061         * modules/unictype/category-Nd-tests (Files): Likewise.
19062         * modules/unictype/category-Nl-tests (Files): Likewise.
19063         * modules/unictype/category-No-tests (Files): Likewise.
19064         * modules/unictype/category-P-tests (Files): Likewise.
19065         * modules/unictype/category-Pc-tests (Files): Likewise.
19066         * modules/unictype/category-Pd-tests (Files): Likewise.
19067         * modules/unictype/category-Pe-tests (Files): Likewise.
19068         * modules/unictype/category-Pf-tests (Files): Likewise.
19069         * modules/unictype/category-Pi-tests (Files): Likewise.
19070         * modules/unictype/category-Po-tests (Files): Likewise.
19071         * modules/unictype/category-Ps-tests (Files): Likewise.
19072         * modules/unictype/category-S-tests (Files): Likewise.
19073         * modules/unictype/category-Sc-tests (Files): Likewise.
19074         * modules/unictype/category-Sk-tests (Files): Likewise.
19075         * modules/unictype/category-Sm-tests (Files): Likewise.
19076         * modules/unictype/category-So-tests (Files): Likewise.
19077         * modules/unictype/category-Z-tests (Files): Likewise.
19078         * modules/unictype/category-Zl-tests (Files): Likewise.
19079         * modules/unictype/category-Zp-tests (Files): Likewise.
19080         * modules/unictype/category-Zs-tests (Files): Likewise.
19081         * modules/unictype/category-and-not-tests (Files): Likewise.
19082         * modules/unictype/category-and-tests (Files): Likewise.
19083         * modules/unictype/category-byname-tests (Files): Likewise.
19084         * modules/unictype/category-name-tests (Files): Likewise.
19085         * modules/unictype/category-none-tests (Files): Likewise.
19086         * modules/unictype/category-of-tests (Files): Likewise.
19087         * modules/unictype/category-or-tests (Files): Likewise.
19088         * modules/unictype/category-test-withtable-tests (Files): Likewise.
19089         * modules/unictype/combining-class-tests (Files): Likewise.
19090         * modules/unictype/ctype-alnum-tests (Files): Likewise.
19091         * modules/unictype/ctype-alpha-tests (Files): Likewise.
19092         * modules/unictype/ctype-blank-tests (Files): Likewise.
19093         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
19094         * modules/unictype/ctype-digit-tests (Files): Likewise.
19095         * modules/unictype/ctype-graph-tests (Files): Likewise.
19096         * modules/unictype/ctype-lower-tests (Files): Likewise.
19097         * modules/unictype/ctype-print-tests (Files): Likewise.
19098         * modules/unictype/ctype-punct-tests (Files): Likewise.
19099         * modules/unictype/ctype-space-tests (Files): Likewise.
19100         * modules/unictype/ctype-upper-tests (Files): Likewise.
19101         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
19102         * modules/unictype/decimal-digit-tests (Files): Likewise.
19103         * modules/unictype/digit-tests (Files): Likewise.
19104         * modules/unictype/mirror-tests (Files): Likewise.
19105         * modules/unictype/numeric-tests (Files): Likewise.
19106         * modules/unictype/property-alphabetic-tests (Files): Likewise.
19107         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
19108         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
19109         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
19110         Likewise.
19111         * modules/unictype/property-bidi-block-separator-tests (Files):
19112         Likewise.
19113         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
19114         Likewise.
19115         * modules/unictype/property-bidi-common-separator-tests (Files):
19116         Likewise.
19117         * modules/unictype/property-bidi-control-tests (Files): Likewise.
19118         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
19119         Likewise.
19120         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
19121         Likewise.
19122         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
19123         Likewise.
19124         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
19125         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
19126         Likewise.
19127         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
19128         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
19129         Likewise.
19130         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
19131         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
19132         * modules/unictype/property-bidi-segment-separator-tests (Files):
19133         Likewise.
19134         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
19135         * modules/unictype/property-byname-tests (Files): Likewise.
19136         * modules/unictype/property-combining-tests (Files): Likewise.
19137         * modules/unictype/property-composite-tests (Files): Likewise.
19138         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
19139         * modules/unictype/property-dash-tests (Files): Likewise.
19140         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
19141         * modules/unictype/property-default-ignorable-code-point-tests (Files):
19142         Likewise.
19143         * modules/unictype/property-deprecated-tests (Files): Likewise.
19144         * modules/unictype/property-diacritic-tests (Files): Likewise.
19145         * modules/unictype/property-extender-tests (Files): Likewise.
19146         * modules/unictype/property-format-control-tests (Files): Likewise.
19147         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
19148         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
19149         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
19150         * modules/unictype/property-hex-digit-tests (Files): Likewise.
19151         * modules/unictype/property-hyphen-tests (Files): Likewise.
19152         * modules/unictype/property-id-continue-tests (Files): Likewise.
19153         * modules/unictype/property-id-start-tests (Files): Likewise.
19154         * modules/unictype/property-ideographic-tests (Files): Likewise.
19155         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
19156         * modules/unictype/property-ids-trinary-operator-tests (Files):
19157         Likewise.
19158         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
19159         * modules/unictype/property-iso-control-tests (Files): Likewise.
19160         * modules/unictype/property-join-control-tests (Files): Likewise.
19161         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
19162         * modules/unictype/property-line-separator-tests (Files): Likewise.
19163         * modules/unictype/property-logical-order-exception-tests (Files):
19164         Likewise.
19165         * modules/unictype/property-lowercase-tests (Files): Likewise.
19166         * modules/unictype/property-math-tests (Files): Likewise.
19167         * modules/unictype/property-non-break-tests (Files): Likewise.
19168         * modules/unictype/property-not-a-character-tests (Files): Likewise.
19169         * modules/unictype/property-numeric-tests (Files): Likewise.
19170         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
19171         * modules/unictype/property-other-default-ignorable-code-point-tests
19172         (Files): Likewise.
19173         * modules/unictype/property-other-grapheme-extend-tests (Files):
19174         Likewise.
19175         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
19176         * modules/unictype/property-other-id-start-tests (Files): Likewise.
19177         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
19178         * modules/unictype/property-other-math-tests (Files): Likewise.
19179         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
19180         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
19181         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
19182         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
19183         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
19184         * modules/unictype/property-private-use-tests (Files): Likewise.
19185         * modules/unictype/property-punctuation-tests (Files): Likewise.
19186         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
19187         * modules/unictype/property-radical-tests (Files): Likewise.
19188         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
19189         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
19190         * modules/unictype/property-space-tests (Files): Likewise.
19191         * modules/unictype/property-terminal-punctuation-tests (Files):
19192         Likewise.
19193         * modules/unictype/property-test-tests (Files): Likewise.
19194         * modules/unictype/property-titlecase-tests (Files): Likewise.
19195         * modules/unictype/property-unassigned-code-value-tests (Files):
19196         Likewise.
19197         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
19198         * modules/unictype/property-uppercase-tests (Files): Likewise.
19199         * modules/unictype/property-variation-selector-tests (Files): Likewise.
19200         * modules/unictype/property-white-space-tests (Files): Likewise.
19201         * modules/unictype/property-xid-continue-tests (Files): Likewise.
19202         * modules/unictype/property-xid-start-tests (Files): Likewise.
19203         * modules/unictype/property-zero-width-tests (Files): Likewise.
19204         * modules/unictype/scripts-tests (Files): Likewise.
19205         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
19206         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
19207         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
19208         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
19209         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
19210         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
19211         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
19212         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
19213         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
19214         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
19215         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
19216         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
19217         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
19218         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
19219         * modules/uninorm/composition-tests (Files): Likewise.
19220         * modules/uninorm/decomposing-form-tests (Files): Likewise.
19221         * modules/uninorm/decomposition-tests (Files): Likewise.
19222         * modules/uninorm/filter-tests (Files): Likewise.
19223         * modules/uninorm/nfc-tests (Files): Likewise.
19224         * modules/uninorm/nfd-tests (Files): Likewise.
19225         * modules/uninorm/nfkc-tests (Files): Likewise.
19226         * modules/uninorm/nfkd-tests (Files): Likewise.
19227         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
19228         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
19229         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
19230         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
19231         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
19232         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
19233         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
19234         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
19235         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
19236         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
19237         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
19238         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
19239         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
19240         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
19241         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
19242         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
19243         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
19244         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
19245         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
19246         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
19247         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
19248         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
19249         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
19250         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
19251         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
19252         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
19253         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
19254         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
19255         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
19256         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
19257         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
19258         * modules/uniwidth/u8-width-tests (Files): Likewise.
19259         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
19260         * modules/uniwidth/u16-width-tests (Files): Likewise.
19261         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
19262         * modules/uniwidth/u32-width-tests (Files): Likewise.
19263         * modules/uniwidth/width-tests (Files): Likewise.
19264         * modules/unlink-tests (Files): Likewise.
19265         * modules/unsetenv-tests (Files): Likewise.
19266         * modules/usleep-tests (Files): Likewise.
19267         * modules/utimens-tests (Files): Likewise.
19268         * modules/utimensat-tests (Files): Likewise.
19269         * modules/vasnprintf-posix-tests (Files): Likewise.
19270         * modules/vasnprintf-tests (Files): Likewise.
19271         * modules/vasprintf-posix-tests (Files): Likewise.
19272         * modules/vasprintf-tests (Files): Likewise.
19273         * modules/vdprintf-posix-tests (Files): Likewise.
19274         * modules/vfprintf-posix-tests (Files): Likewise.
19275         * modules/vprintf-posix-tests (Files): Likewise.
19276         * modules/vsnprintf-posix-tests (Files): Likewise.
19277         * modules/vsnprintf-tests (Files): Likewise.
19278         * modules/vsprintf-posix-tests (Files): Likewise.
19279         * modules/wcrtomb-tests (Files): Likewise.
19280         * modules/wcsnrtombs-tests (Files): Likewise.
19281         * modules/wcsrtombs-tests (Files): Likewise.
19282         * modules/wctype-tests (Files): Likewise.
19283         * modules/wcwidth-tests (Files): Likewise.
19284         * modules/xmemdup0-tests (Files): Likewise.
19285         * modules/xprintf-posix-tests (Files): Likewise.
19286         * modules/xvasprintf-tests (Files): Likewise.
19288 2009-12-24  Eric Blake  <ebb9@byu.net>
19290         test-nanosleep: fix typo
19291         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
19292         patch.
19293         Reported by Bruno Haible.
19295 2009-12-24  Bruno Haible  <bruno@clisp.org>
19297         Reduce namespace pollution on glibc systems.
19298         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
19299         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
19300         systems.
19301         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
19302         <getopt.h> on glibc systems.
19303         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
19304         systems.
19305         * lib/fcntl.c: Include <unistd.h> here instead.
19307 2009-12-24  Bruno Haible  <bruno@clisp.org>
19309         * lib/stdlib.in.h (includes): Fix typo in today's commit.
19311 2009-12-24  Eric Blake  <ebb9@byu.net>
19313         tests: add signature checks
19314         * tests/signature.h (SIGNATURE_CHECK): New file.
19315         * modules/atexit-tests (Files): Use it.
19316         * modules/btowc-tests (Files): Likewise.
19317         * modules/canonicalize-lgpl-tests (Files): Likewise.
19318         * modules/ceilf-tests (Files): Likewise.
19319         * modules/ceill-tests (Files): Likewise.
19320         * modules/chown-tests (Files): Likewise.
19321         * modules/dprintf-posix-tests (Files): Likewise.
19322         * modules/dup2-tests (Files): Likewise.
19323         * modules/dup3-tests (Files): Likewise.
19324         * modules/duplocale-tests (Files): Likewise.
19325         * modules/fchdir-tests (Files): Likewise.
19326         * modules/fcntl-tests (Files): Likewise.
19327         * modules/fdopendir-tests (Files): Likewise.
19328         * modules/fflush-tests (Files): Likewise.
19329         * modules/flock-tests (Files): Likewise.
19330         * modules/floorf-tests (Files): Likewise.
19331         * modules/floorl-tests (Files): Likewise.
19332         * modules/fnmatch-tests (Files): Likewise.
19333         * modules/fopen-tests (Files): Likewise.
19334         * modules/fprintf-posix-tests (Files): Likewise.
19335         * modules/freopen-tests (Files): Likewise.
19336         * modules/frexp-nolibm-tests (Files): Likewise.
19337         * modules/frexp-tests (Files): Likewise.
19338         * modules/frexpl-nolibm-tests (Files): Likewise.
19339         * modules/frexpl-tests (Files): Likewise.
19340         * modules/fseek-tests (Files): Likewise.
19341         * modules/fseeko-tests (Files): Likewise.
19342         * modules/fsync-tests (Files): Likewise.
19343         * modules/ftell-tests (Files): Likewise.
19344         * modules/ftello-tests (Files): Likewise.
19345         * modules/futimens-tests (Files): Likewise.
19346         * modules/getaddrinfo-tests (Files): Likewise.
19347         * modules/getcwd-tests (Files): Likewise.
19348         * modules/getdelim-tests (Files): Likewise.
19349         * modules/getdtablesize-tests (Files): Likewise.
19350         * modules/getgroups-tests (Files): Likewise.
19351         * modules/gethostname-tests (Files): Likewise.
19352         * modules/getline-tests (Files): Likewise.
19353         * modules/getopt-posix-tests (Files): Likewise.
19354         * modules/gettimeofday-tests (Files): Likewise.
19355         * modules/glob-tests (Files): Likewise.
19356         * modules/iconv-tests (Files): Likewise.
19357         * modules/inet_ntop-tests (Files): Likewise.
19358         * modules/inet_pton-tests (Files): Likewise.
19359         * modules/isblank-tests (Files): Likewise.
19360         * modules/lchown-tests (Files): Likewise.
19361         * modules/ldexpl-tests (Files): Likewise.
19362         * modules/link-tests (Files): Likewise.
19363         * modules/linkat-tests (Files): Likewise.
19364         * modules/lseek-tests (Files): Likewise.
19365         * modules/lstat-tests (Files): Likewise.
19366         * modules/mbrtowc-tests (Files): Likewise.
19367         * modules/mbsinit-tests (Files): Likewise.
19368         * modules/mbsnrtowcs-tests (Files): Likewise.
19369         * modules/mbsrtowcs-tests (Files): Likewise.
19370         * modules/memchr-tests (Files): Likewise.
19371         * modules/memcmp-tests (Files): Likewise.
19372         * modules/memmem-tests (Files): Likewise.
19373         * modules/memrchr-tests (Files): Likewise.
19374         * modules/mkdir-tests (Files): Likewise.
19375         * modules/mkfifo-tests (Files): Likewise.
19376         * modules/mkfifoat-tests (Files): Likewise.
19377         * modules/mknod-tests (Files): Likewise.
19378         * modules/nanosleep-tests (Files): Likewise.
19379         * modules/nl_langinfo-tests (Files): Likewise.
19380         * modules/obstack-printf-tests (Files): Likewise.
19381         * modules/open-tests (Files): Likewise.
19382         * modules/openat-tests (Files): Likewise.
19383         * modules/perror-tests (Files): Likewise.
19384         * modules/pipe2-tests (Files): Likewise.
19385         * modules/poll-tests (Files): Likewise.
19386         * modules/popen-tests (Files): Likewise.
19387         * modules/posix_spawn-tests (Files): Likewise.
19388         * modules/posix_spawnp-tests (Files): Likewise.
19389         * modules/pread-tests (Files): Likewise.
19390         * modules/printf-posix-tests (Files): Likewise.
19391         * modules/pty-tests (Files): Likewise.
19392         * modules/random_r-tests (Files): Likewise.
19393         * modules/rawmemchr-tests (Files): Likewise.
19394         * modules/readlink-tests (Files): Likewise.
19395         * modules/remove-tests (Files): Likewise.
19396         * modules/rename-tests (Files): Likewise.
19397         * modules/renameat-tests (Files): Likewise.
19398         * modules/rmdir-tests (Files): Likewise.
19399         * modules/round-tests (Files): Likewise.
19400         * modules/roundf-tests (Files): Likewise.
19401         * modules/roundl-tests (Files): Likewise.
19402         * modules/select-tests (Files): Likewise.
19403         * modules/setenv-tests (Files): Likewise.
19404         * modules/sigaction-tests (Files): Likewise.
19405         * modules/sleep-tests (Files): Likewise.
19406         * modules/snprintf-posix-tests (Files): Likewise.
19407         * modules/snprintf-tests (Files): Likewise.
19408         * modules/sprintf-posix-tests (Files): Likewise.
19409         * modules/stat-tests (Files): Likewise.
19410         * modules/strcasestr-tests (Files): Likewise.
19411         * modules/strchrnul-tests (Files): Likewise.
19412         * modules/strerror-tests (Files): Likewise.
19413         * modules/strsignal-tests (Files): Likewise.
19414         * modules/strstr-tests (Files): Likewise.
19415         * modules/strtod-tests (Files): Likewise.
19416         * modules/strverscmp-tests (Files): Likewise.
19417         * modules/symlink-tests (Files): Likewise.
19418         * modules/symlinkat-tests (Files): Likewise.
19419         * modules/times-tests (Files): Likewise.
19420         * modules/trunc-tests (Files): Likewise.
19421         * modules/truncf-tests (Files): Likewise.
19422         * modules/truncl-tests (Files): Likewise.
19423         * modules/tsearch-tests (Files): Likewise.
19424         * modules/uname-tests (Files): Likewise.
19425         * modules/unlink-tests (Files): Likewise.
19426         * modules/unsetenv-tests (Files): Likewise.
19427         * modules/usleep-tests (Files): Likewise.
19428         * modules/utimensat-tests (Files): Likewise.
19429         * modules/vasprintf-tests (Files): Likewise.
19430         * modules/vdprintf-posix-tests (Files): Likewise.
19431         * modules/vfprintf-posix-tests (Files): Likewise.
19432         * modules/vprintf-posix-tests (Files): Likewise.
19433         * modules/vsnprintf-posix-tests (Files): Likewise.
19434         * modules/vsnprintf-tests (Files): Likewise.
19435         * modules/vsprintf-posix-tests (Files): Likewise.
19436         * modules/wcrtomb-tests (Files): Likewise.
19437         * modules/wcsnrtombs-tests (Files): Likewise.
19438         * modules/wcsrtombs-tests (Files): Likewise.
19439         * modules/wcwidth-tests (Files): Likewise.
19440         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
19441         * tests/test-isinf.c (isinf): Likewise.
19442         * tests/test-isnan.c (isnan): Likewise.
19443         * tests/test-signbit.c (signbit): Likewise.
19444         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
19445         declaration, either as macro or with correct signature.
19446         (select): Ensure function under test is declared with correct
19447         signature in correct header.
19448         * tests/test-atexit.c (atexit): Likewise.
19449         * tests/test-btowc.c (btowc): Likewise.
19450         * tests/test-canonicalize-lgpl.c (realpath)
19451         (canonicalize_file_name): Likewise.
19452         * tests/test-ceilf1.c (ceilf): Likewise.
19453         * tests/test-ceill.c (ceill): Likewise.
19454         * tests/test-chown.c (chown): Likewise.
19455         * tests/test-dprintf-posix.c (dprintf): Likewise.
19456         * tests/test-dup2.c (dup2): Likewise.
19457         * tests/test-dup3.c (dup3): Likewise.
19458         * tests/test-duplocale.c (duplocale): Likewise.
19459         * tests/test-fchdir.c (fchdir): Likewise.
19460         * tests/test-fchownat.c (fchownat): Likewise.
19461         * tests/test-fcntl.c (fcntl): Likewise.
19462         * tests/test-fdopendir.c (fdopendir): Likewise.
19463         * tests/test-fflush.c (fflush): Likewise.
19464         * tests/test-flock.c (flock): Likewise.
19465         * tests/test-floorf1.c (floorf): Likewise.
19466         * tests/test-floorl.c (floorl): Likewise.
19467         * tests/test-fnmatch.c (fnmatch): Likewise.
19468         * tests/test-fopen.c (fopen): Likewise.
19469         * tests/test-fprintf-posix.c (fprintf): Likewise.
19470         * tests/test-freopen.c (freopen): Likewise.
19471         * tests/test-frexp.c (frexp): Likewise.
19472         * tests/test-frexpl.c (frexpl): Likewise.
19473         * tests/test-fseek.c (fseek): Likewise.
19474         * tests/test-fseeko.c (fseeko): Likewise.
19475         * tests/test-fstatat.c (fstatat): Likewise.
19476         * tests/test-fsync.c (fsync): Likewise.
19477         * tests/test-ftell.c (ftell): Likewise.
19478         * tests/test-ftello.c (ftello): Likewise.
19479         * tests/test-futimens.c (futimens): Likewise.
19480         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
19481         (gai_strerror): Likewise.
19482         * tests/test-getcwd.c (getcwd): Likewise.
19483         * tests/test-getdelim.c (getdelim): Likewise.
19484         * tests/test-getdtablesize.c (getdtablesize): Likewise.
19485         * tests/test-getgroups.c (getgroups): Likewise.
19486         * tests/test-gethostname.c (gethostname): Likewise.
19487         * tests/test-getline.c (getline): Likewise.
19488         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
19489         Likewise.
19490         * tests/test-gettimeofday.c (gettimeofday): Likewise.
19491         * tests/test-glob.c (glob, globfree): Likewise.
19492         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
19493         * tests/test-inet_ntop.c (inet_ntop): Likewise.
19494         * tests/test-inet_pton.c (inet_pton): Likewise.
19495         * tests/test-isblank.c (isblank): Likewise.
19496         * tests/test-lchown.c (lchown): Likewise.
19497         * tests/test-ldexpl.c (ldexpl): Likewise.
19498         * tests/test-link.c (link): Likewise.
19499         * tests/test-linkat.c (linkat): Likewise.
19500         * tests/test-lseek.c (lseek): Likewise.
19501         * tests/test-lstat.c (lstat): Likewise.
19502         * tests/test-mbrtowc.c (mbrtowc): Likewise.
19503         * tests/test-mbsinit.c (mbsinit): Likewise.
19504         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
19505         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
19506         * tests/test-memchr.c (memchr): Likewise.
19507         * tests/test-memcmp.c (memcmp): Likewise.
19508         * tests/test-memmem.c (memmem): Likewise.
19509         * tests/test-memrchr.c (memrchr): Likewise.
19510         * tests/test-mkdir.c (mkdir): Likewise.
19511         * tests/test-mkdirat.c (mkdirat): Likewise.
19512         * tests/test-mkfifo.c (mkfifo): Likewise.
19513         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
19514         * tests/test-mknod.c (mknod): Likewise.
19515         * tests/test-nanosleep.c (nanosleep): Likewise.
19516         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
19517         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
19518         Likewise.
19519         * tests/test-open.c (open): Likewise.
19520         * tests/test-openat.c (openat): Likewise.
19521         * tests/test-perror.c (perror): Likewise.
19522         * tests/test-pipe2.c (pipe2): Likewise.
19523         * tests/test-poll.c (poll): Likewise.
19524         * tests/test-popen.c (popen, pclose): Likewise.
19525         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
19526         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
19527         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
19528         (posix_spawn_file_actions_destroy)
19529         (posix_spawn_file_actions_addclose)
19530         (posix_spawn_file_actions_addopen)
19531         (posix_spawn_file_actions_adddup2): Likewise.
19532         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
19533         * tests/test-pread.c (pread): Likewise.
19534         * tests/test-printf-posix.c (printf): Likewise.
19535         * tests/test-pty.c (openpty, forkpty): Likewise.
19536         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
19537         (random_r): Likewise.
19538         * tests/test-rawmemchr.c (rawmemchr): Likewise.
19539         * tests/test-readlink.c (readlink): Likewise.
19540         * tests/test-remove.c (remove): Likewise.
19541         * tests/test-rename.c (rename): Likewise.
19542         * tests/test-renameat.c (renameat): Likewise.
19543         * tests/test-rmdir.c (rmdir): Likewise.
19544         * tests/test-round1.c (round): Likewise.
19545         * tests/test-roundf1.c (roundf): Likewise.
19546         * tests/test-roundl.c (roundl): Likewise.
19547         * tests/test-setenv.c (setenv): Likewise.
19548         * tests/test-sigaction.c (sigaction): Likewise.
19549         * tests/test-sleep.c (sleep): Likewise.
19550         * tests/test-snprintf.c (snprintf): Likewise.
19551         * tests/test-sprintf-posix.c (sprintf): Likewise.
19552         * tests/test-stat.c (stat): Likewise.
19553         * tests/test-stpncpy.c (stpncpy): Likewise.
19554         * tests/test-strcasestr.c (strcasestr): Likewise.
19555         * tests/test-strchrnul.c (strchrnul): Likewise.
19556         * tests/test-strerror.c (strerror): Likewise.
19557         * tests/test-strsignal.c (strsignal): Likewise.
19558         * tests/test-strstr.c (strstr): Likewise.
19559         * tests/test-strtod.c (strtod): Likewise.
19560         * tests/test-strverscmp.c (strverscmp): Likewise.
19561         * tests/test-symlink.c (symlink): Likewise.
19562         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
19563         * tests/test-times.c (times): Likewise.
19564         * tests/test-trunc1.c (trunc): Likewise.
19565         * tests/test-truncf1.c (truncf): Likewise.
19566         * tests/test-truncl.c (truncl): Likewise.
19567         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
19568         Likewise.
19569         * tests/test-uname.c (uname): Likewise.
19570         * tests/test-unlink.c (unlink): Likewise.
19571         * tests/test-unlinkat.c (unlinkat): Likewise.
19572         * tests/test-unsetenv.c (unsetenv): Likewise.
19573         * tests/test-usleep.c (usleep): Likewise.
19574         * tests/test-utimensat.c (utimensat): Likewise.
19575         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
19576         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
19577         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
19578         * tests/test-vprintf-posix.c (vprintf): Likewise.
19579         * tests/test-vsnprintf.c (vsnprintf): Likewise.
19580         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
19581         * tests/test-wcrtomb.c (wcrtomb): Likewise.
19582         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
19583         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
19584         * tests/test-wcwidth.c (wcwidth): Likewise.
19586         build: pull in conditional headers during GNULIB_POSIXCHECK
19587         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
19588         definitions from any conditionally-included headers.
19589         * lib/stdlib.in.h (includes): Likewise.
19590         * lib/unistd.in.h (includes): Likewise.
19592 2009-12-24  Bruno Haible  <bruno@clisp.org>
19594         * tests/test-argv-iter.c: Include header file being tested immediately
19595         after config.h.
19596         * tests/test-base64.c: Likewise.
19597         * tests/test-flock.c: Likewise.
19598         * tests/test-fsync.c: Likewise.
19599         * tests/test-getdate.c: Likewise.
19600         * tests/test-getndelim2.c: Likewise.
19601         * tests/test-isfinite.c: Likewise.
19602         * tests/test-isinf.c: Likewise.
19603         * tests/test-strerror.c: Likewise.
19604         * tests/test-strsignal.c: Likewise.
19606 2009-12-23  Eric Blake  <ebb9@byu.net>
19608         unistd: work around cygwin bug
19609         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
19610         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
19611         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
19613 2009-12-23  Bruno Haible  <bruno@clisp.org>
19615         localename: More tests.
19616         * tests/test-localename.c (SIZEOF): New macro.
19617         (categories): New variable.
19618         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
19619         test_locale_name_default): Add test w.r.t. thread locale.
19620         (test_locale_name_thread): New function.
19621         (main): Invoke it.
19623         localename: Make aware of thread locale.
19624         * lib/localename.h (gl_locale_name_thread): New declaration.
19625         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
19626         behaviour with respect to thread locale.
19627         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
19628         <langinfo.h>, glthread/lock.h.
19629         (SIZE_BITS): New macro.
19630         (string_hash): New function.
19631         (struct hash_node): New type.
19632         (HASH_TABLE_SIZE): New macro.
19633         (struniq_hash_table, struniq_lock): New variables.
19634         (struniq): New function.
19635         (gl_locale_name_thread): New function.
19636         (gl_locale_name): Invoke it.
19637         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
19638         * modules/localename (Depends-on): Add lock.
19639         Reported by Mike Gran <spk121@yahoo.com>.
19641 2009-12-23  Eric Blake  <ebb9@byu.net>
19643         va-args: new module
19644         * modules/va-args: New file.
19645         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
19646         * MODULES.html.sh (Core language properties): Mention it.
19648         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
19649         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
19650         named alias for __attribute__((__unused__)).
19651         * lib/chown.c: Update client.
19652         * lib/fchmodat.c: Likewise.
19653         * lib/fts.c: Likewise.
19654         * lib/getdate.y: Likewise.
19655         * lib/getgroups.c: Likewise.
19656         * lib/getopt.c: Likewise.
19657         * lib/getugroups.c: Likewise.
19658         * lib/mkdir.c: Likewise.
19659         * lib/mkfifo.c: Likewise.
19660         * lib/mkfifoat.c: Likewise.
19661         * lib/mknod.c: Likewise.
19662         * lib/mknodat.c: Likewise.
19663         * lib/readlink.c: Likewise.
19664         * lib/se-context.in.h: Likewise.
19665         * lib/se-selinux.in.h: Likewise.
19666         * lib/sockets.c: Likewise.
19667         * lib/symlink.c: Likewise.
19668         * lib/symlinkat.c: Likewise.
19669         * lib/unicodeio.c: Likewise.
19670         * lib/unistr.h: Likewise.
19671         * tests/test-areadlink.c: Likewise.
19672         * tests/test-areadlinkat.c: Likewise.
19673         * tests/test-filenamecat.c: Likewise.
19674         * tests/test-fseeko.c: Likewise.
19675         * tests/test-ftello.c: Likewise.
19676         * tests/test-getdate.c: Likewise.
19677         * tests/test-getgroups.c: Likewise.
19678         * tests/test-gethostname.c: Likewise.
19679         * tests/test-quotearg.c: Likewise.
19680         * tests/test-version-etc.c: Likewise.
19681         * tests/test-xalloc-die.c: Likewise.
19682         * tests/test-xfprintf-posix.c: Likewise.
19683         * tests/test-xprintf-posix.c: Likewise.
19684         * tests/test-xvasprintf.c: Likewise.
19686         tests: avoid compiler warnings
19687         * tests/test-fcntl.c (main): Delete unused parameters.
19688         * tests/test-freopen-safer.c (main): Likewise.
19689         * tests/test-xalloc-die.c (main): Mark unused parameters.
19690         * tests/test-fseeko.c (main): Likewise.
19691         * tests/test-ftello.c (main): Likewise.
19692         * tests/test-nanosleep.c (main): Avoid declaration warning.
19693         * tests/test-sleep.c (main): Likewise.
19694         * tests/test-unsetenv.c (main): Silence warning about string
19695         literal.
19696         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
19698 2009-12-23  Bruno Haible  <bruno@clisp.org>
19700         * tests/test-localename.c (test_locale_name): New function, extracted
19701         from main. Also test mixed situations.
19702         (test_locale_name_posix, test_locale_name_environ,
19703         test_locale_name_default): New functions.
19704         (main): Invoke them all.
19705         * modules/localename-tests (configure.ac): Test for newlocale.
19707 2009-12-23  Bruno Haible  <bruno@clisp.org>
19709         unistd: Ensure getcwd gets declared before being overridden.
19710         * lib/unistd.in.h: Conditionally include <io.h>.
19712 2009-12-22  Bruno Haible  <bruno@clisp.org>
19714         wchar: Diagnose broken combination of glibc and gcc versions and flags.
19715         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
19716         (gl_WCHAR_H): Invoke it.
19717         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
19718         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
19719         Reported by Karl Berry <karl@freefriends.org>.
19721 2009-12-22  Eric Blake  <ebb9@byu.net>
19723         math, unistd: avoid redundant includes
19724         * lib/math.in.h (isnan): No need to re-include <math.h>.
19725         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
19727         getsubopt: work around cygwin bug
19728         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
19729         avoid conflicting with system getsubopt.
19730         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
19731         bug.
19733         getopt: synchronize from glibc
19734         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
19735         parameter order.  Adjust all callers.
19736         (_getopt_internal_r, main): Adjust quoting in error messages.
19737         Drop considerations for outdated POSIX 1003.2 error message.
19738         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
19739         callers.
19740         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
19742         test-getopt: test stderr behavior
19743         * modules/getopt-posix-tests (Depends-on): Add dup2.
19744         * tests/test-getopt.c (ASSERT): Avoid stderr.
19745         (main): Move stderr to a temporary file.
19746         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
19747         Instead, add parameter to inform caller if output occurred.
19748         (test_getopt): Adjust all existing tests to expect silence, and
19749         add new tests of leading ":".
19750         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
19751         glibc shortcomings with leading "-:" or "+:" in optstring.
19752         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
19753         Likewise.
19754         * doc/posix-functions/getopt.texi (getopt): Likewise.
19756         test-getopt: enhance test
19757         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
19758         supports optind=0.
19759         * tests/test-getopt.c (OPTIND_MIN): Move...
19760         * tests/test-getopt.h (OPTIND_MIN): ...here.
19761         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
19762         Require that optind=0 works, since modern BSD supports it in
19763         addition to optreset, and since coreutils expects it.
19764         (test_getopt_long_only): New test.
19765         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
19766         glibc shortcomings with 'W;', and enforcement of optind=0.
19767         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
19768         Likewise.
19770 2009-12-21  Bruno Haible  <bruno@clisp.org>
19772         localename: Improvements for MacOS X and Cygwin.
19773         * lib/localename.h (gl_locale_name_environ): New declaration.
19774         * lib/localename.c (gl_locale_name_environ): New function, extracted from
19775         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
19776         (gl_locale_name_posix): Invoke it.
19777         (gl_locale_name_default): Add comments. Use Windows native API also on
19778         Cygwin.
19780 2009-12-21  Bruno Haible  <bruno@clisp.org>
19782         Update list of Win32 locale ids.
19783         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
19784         (LANG_SAMI): Renamed from LANG_SAAMI.
19785         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
19786         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
19787         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
19788         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
19789         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
19790         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
19791         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
19792         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
19793         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
19794         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
19795         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
19796         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
19797         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
19798         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
19799         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
19800         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
19801         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
19802         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
19803         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
19804         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
19805         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
19806         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
19807         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
19808         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
19809         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
19810         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
19811         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
19812         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
19813         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
19814         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
19815         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
19816         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
19817         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
19818         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
19819         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
19820         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
19821         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
19822         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
19823         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
19824         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
19825         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
19826         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
19827         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
19828         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
19829         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
19830         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
19831         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
19832         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
19833         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
19834         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
19835         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
19836         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
19837         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
19838         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
19839         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
19840         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
19841         Add more languages and countries for Sami, Sorbian. Add more countries
19842         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
19843         for Pashto. Change country for Syriac, Tswana.
19845 2009-12-21  Eric Blake  <ebb9@byu.net>
19847         test-utimens: avoid spurious failure
19848         * tests/test-chown.h (nap): Factor...
19849         * tests/nap.h: ...into new file.
19850         * tests/test-lchown.h (nap): Avoid duplication.
19851         * tests/test-utimens-common.h (nap): Use shared implementation,
19852         necessary on file systems with 1-second resolution.
19853         * modules/chown-tests (Files): Include new file.
19854         * modules/fdutimensat-tests (Files): Likewise.
19855         * modules/futimens-tests (Files): Likewise.
19856         * modules/lchown-tests (Files): Likewise.
19857         * modules/openat-tests (Files): Likewise.
19858         * modules/utimens-tests (Files): Likewise.
19859         * modules/utimensat-tests (Files): Likewise.
19861 2009-12-19  Eric Blake  <ebb9@byu.net>
19863         futimens, utimensat: work around Linux bug
19864         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
19865         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
19866         * lib/utimensat.c (rpl_utimensat): Work around it.
19867         * lib/futimens.c (rpl_futimens): Adjust comment.
19869         utimens: work around Linux ctime bug
19870         * lib/utimens.c (detect_ctime_bug): New helper function.
19871         (update_timespec): Differentiate between workaround needed for
19872         this bug vs. what is needed for systems that lack utimensat.
19873         (fdutimens, lutimens): Work around bug.
19875         utimens: check for ctime update
19876         * tests/test-utimens-common.h (check_ctime): Define.
19877         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
19878         * tests/test-futimens.h (test_futimens): Likewise.
19879         * tests/test-lutimens.h (test_lutimens): Likewise.
19880         * doc/posix-functions/futimens.texi (futimens): Document the bug.
19881         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
19883 2009-12-19  Bruno Haible  <bruno@clisp.org>
19885         dprintf-posix: Check against memory leak fixed on 2009-12-15.
19886         * tests/test-dprintf-posix2.sh: New file.
19887         * tests/test-dprintf-posix2.c: New file.
19888         * modules/dprintf-posix-tests (Files): Add them.
19889         (configure.ac): Check for getrlimit and setrlimit.
19890         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
19892 2009-12-19  Bruno Haible  <bruno@clisp.org>
19894         fprintf-posix: Check against memory leak fixed on 2009-12-15.
19895         * tests/test-fprintf-posix3.sh: New file.
19896         * tests/test-fprintf-posix3.c: New file.
19897         * modules/fprintf-posix-tests (Files): Add them.
19898         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
19900 2009-12-19  Eric Blake  <ebb9@byu.net>
19902         dirfd: fix prototype
19903         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
19904         * lib/dirfd.c (dirfd): Likewise.
19906         canonicalize: reduce memory usage
19907         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
19908         allocation to size.
19909         Reported by Solar Designer <solar@openwall.com>.
19911 2009-12-19  Bruno Haible  <bruno@clisp.org>
19913         New module attribute 'Applicability'.
19914         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
19915         * gnulib-tool: New option --extract-applicability.
19916         (func_usage): Document it.
19917         (sed_extract_prog): Recognize it.
19918         (func_get_applicability): New function.
19919         (func_import): Generalize handling of 'link-warning' module.
19920         * modules/link-warning (Applicability): New section.
19921         * modules/arg-nonnull (Applicability): New section.
19922         Repoted by Simon Josefsson <simon@josefsson.org>.
19924 2009-12-19  Bruno Haible  <bruno@clisp.org>
19926         fflush: tweak
19927         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
19928         * lib/fseeko.c (rpl_fseeko): Likewise.
19930 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
19932         * lib/gl_list.h: Fix typo in comment.
19934 2009-12-16  Eric Blake  <ebb9@byu.net>
19936         fcntl: use to simplify other modules
19937         * modules/cloexec (Depends-on): Add fcntl.
19938         * modules/fchdir (Depends-on): Likewise.
19939         * modules/fd-safer-flag (Depends-on): Likewise.
19940         * modules/unistd-safer (Depends-on): Likewise.
19941         * modules/dup3 (configure.ac): Set module indicator.
19942         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
19943         missing.
19944         * lib/fchdir.c (_gl_register_dup): Fix comment.
19945         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
19946         * lib/dup-safer.c (dup_safer): Likewise.
19947         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
19948         * lib/dup3.c (dup3): Likewise.
19949         * tests/test-fchdir.c (main): Enhance test.
19950         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
19952         fcntl: port portions of fcntl to mingw
19953         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
19954         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
19955         replacement for mingw.
19956         * modules/fcntl (Description): Update.
19957         (Depends-on): Add dup2.
19958         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
19959         * modules/fcntl-h (Makefile.am): Substitute it.
19960         * lib/fcntl.in.h (fcntl): Update declaration.
19961         (F_DUPFD, F_GETFD): New macros, when needed.
19962         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
19963         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
19964         * tests/test-fcntl.c (check_flags, main): Enhance test for items
19965         we now guarantee.
19967         fcntl: work around cygwin bug in F_DUPFD
19968         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
19969         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
19970         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
19971         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
19972         * doc/posix-functions/fcntl.texi (fcntl): Document it.
19974         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
19975         * modules/fcntl (Files): List new files.
19976         (configure.ac): Run a test.
19977         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
19978         * lib/fcntl.c (rpl_fcntl): Likewise.
19979         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
19980         (gl_FCNTL_H): Always replace fcntl.h.
19981         * modules/fcntl-h (Makefile.am): Substitute witnesses.
19982         * lib/fcntl.in.h (fcntl): Declare replacement.
19983         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
19984         needed, plus a witness.
19985         * doc/posix-functions/fcntl.texi (fcntl): Document this.
19986         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
19987         * tests/test-fcntl.c: New file.
19988         * modules/fcntl-tests: Likewise.
19990         binary-io: avoid potential compilation warning
19991         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
19992         directives.
19994         fflush: avoid compilation error on NetBSD
19995         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
19996         between off_t and fpos_t, since the latter is sometimes a struct.
19997         * lib/fseeko.c (rpl_fseeko): Likewise.
19998         Reported by Alexander Nasonov <alnsn@yandex.ru>.
20000 2009-12-15  Eric Blake  <ebb9@byu.net>
20002         fcntl-h, stdio, sys_ioctl: fix declarations
20003         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
20004         function must not take arguments.
20005         * lib/sys_ioctl.in.h (ioctl): Likewise.
20006         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
20007         (open): Add a link warning.
20009 2009-12-15  Jim Meyering  <meyering@redhat.com>
20011         areadlink, areadlink-with-size: relax license to LGPLv2+
20012         * modules/areadlink (License): Relax to LGPLv2+.
20013         * modules/areadlink-with-size (License): Likewise.
20015 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
20016             Bruno Haible  <bruno@clisp.org>
20018         *printf: Fix memory leak.
20019         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
20020         * lib/vfprintf.c (vfprintf): Likewise.
20021         * lib/dprintf.c (dprintf): Likewise.
20022         * lib/vdprintf.c (vdprintf): Likewise.
20024 2009-12-14  Eric Blake  <ebb9@byu.net>
20026         accept4: adjust module dependencies
20027         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
20029         utimens: one more try at avoiding compiler warning
20030         * lib/utimens.c (lutimens): Lower scope of result.
20032 2009-12-13  Bruno Haible  <bruno@clisp.org>
20034         Move the malloc checking from module 'list' to new module 'xlist'.
20035         * modules/xlist: New file.
20036         * lib/gl_xlist.h: New file.
20037         * lib/gl_xlist.c: New file.
20038         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
20039         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
20040         gl_list_add_last, gl_list_add_before, gl_list_add_after,
20041         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
20042         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
20043         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
20044         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
20045         gl_sortedlist_nx_add): New declarations.
20046         (struct gl_list_implementation): Rename and change methods accordingly.
20047         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
20048         (gl_list_nx_create): Renamed from gl_list_create.
20049         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
20050         (gl_list_nx_set_at): Renamed from gl_list_set_at.
20051         (gl_list_nx_add_first): Renamed from gl_list_add_first.
20052         (gl_list_nx_add_last): Renamed from gl_list_add_last.
20053         (gl_list_nx_add_before): Renamed from gl_list_add_before.
20054         (gl_list_nx_add_after): Renamed from gl_list_add_after.
20055         (gl_list_nx_add_at): Renamed from gl_list_add_at.
20056         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
20057         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
20058         gl_list_create_empty.
20059         (gl_list_nx_create): Renamed from gl_list_create.
20060         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
20061         (gl_list_nx_set_at): Renamed from gl_list_set_at.
20062         (gl_list_nx_add_first): Renamed from gl_list_add_first.
20063         (gl_list_nx_add_last): Renamed from gl_list_add_last.
20064         (gl_list_nx_add_before): Renamed from gl_list_add_before.
20065         (gl_list_nx_add_after): Renamed from gl_list_add_after.
20066         (gl_list_nx_add_at): Renamed from gl_list_add_at.
20067         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
20068         * lib/gl_array_list.c: Don't include xalloc.h.
20069         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
20070         NULL upon out-of-memory.
20071         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
20072         out-of-memory.
20073         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
20074         Change return type to 'int'.
20075         (gl_array_nx_set_at): Renamed from gl_array_set_at.
20076         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
20077         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
20078         upon out-of-memory.
20079         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
20080         upon out-of-memory.
20081         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
20082         upon out-of-memory.
20083         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
20084         upon out-of-memory.
20085         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
20086         out-of-memory.
20087         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
20088         Update.
20089         (gl_array_list_implementation): Update.
20090         * lib/gl_carray_list.c: Don't include xalloc.h.
20091         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
20092         Return NULL upon out-of-memory.
20093         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
20094         out-of-memory.
20095         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
20096         Change return type to 'int'.
20097         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
20098         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
20099         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
20100         upon out-of-memory.
20101         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
20102         upon out-of-memory.
20103         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
20104         out-of-memory.
20105         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
20106         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
20107         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
20108         Update.
20109         (gl_carray_list_implementation): Update.
20110         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
20111         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
20112         gl_linked_create_empty. Return NULL upon out-of-memory.
20113         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
20114         out-of-memory.
20115         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
20116         Change return type to 'int'. Return -1 upon out-of-memory.
20117         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
20118         out-of-memory.
20119         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
20120         upon out-of-memory.
20121         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
20122         upon out-of-memory.
20123         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
20124         NULL upon out-of-memory.
20125         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
20126         upon out-of-memory.
20127         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
20128         out-of-memory.
20129         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
20130         Update.
20131         * lib/gl_linked_list.c: Don't include xalloc.h.
20132         (gl_linked_list_implementation): Update.
20133         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
20134         (add_to_bucket): Change return type to 'int'.
20135         (gl_linkedhash_list_implementation): Update.
20136         * lib/gl_anytree_list1.h (free_subtree): New function.
20137         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
20138         gl_tree_create_empty. Return NULL upon out-of-memory.
20139         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
20140         Change return type to 'int'. Return -1 upon out-of-memory.
20141         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
20142         out-of-memory.
20143         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
20144         (gl_tree_remove_node): New function, moved here from
20145         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
20146         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
20147         Update.
20148         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
20149         malloc, not xmalloc. Return NULL upon out-of-memory.
20150         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
20151         out-of-memory.
20152         (gl_tree_remove_node_from_tree): New function, extracted from
20153         gl_tree_remove_node.
20154         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
20155         upon out-of-memory.
20156         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
20157         out-of-memory.
20158         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
20159         upon out-of-memory.
20160         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
20161         upon out-of-memory.
20162         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
20163         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
20164         not xmalloc. Return NULL upon out-of-memory.
20165         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
20166         out-of-memory.
20167         (gl_tree_remove_node_from_tree): New function, extracted from
20168         gl_tree_remove_node.
20169         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
20170         upon out-of-memory.
20171         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
20172         out-of-memory.
20173         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
20174         upon out-of-memory.
20175         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
20176         upon out-of-memory.
20177         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
20178         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
20179         gl_anytree_list1.h before gl_anyavltree_list2.h.
20180         (gl_avltree_list_implementation): Update.
20181         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
20182         gl_anytree_list1.h before gl_anyavltree_list2.h.
20183         (gl_rbtree_list_implementation): Update.
20184         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
20185         Change return type to 'int'. Return -1 upon out-of-memory. Use
20186         __builtin_expect.
20187         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
20188         (gl_avltreehash_list_implementation): Update.
20189         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
20190         (gl_rbtreehash_list_implementation): Update.
20191         * modules/array-list (Depends-on): Remove xalloc.
20192         * modules/carray-list (Depends-on): Likewise.
20193         * modules/linked-list (Depends-on): Likewise.
20194         * modules/linkedhash-list (Depends-on): Likewise.
20195         * modules/avltree-list (Depends-on): Likewise.
20196         * modules/rbtree-list (Depends-on): Likewise.
20197         * modules/avltreehash-list (Depends-on): Likewise.
20198         * modules/rbtreehash-list (Depends-on): Likewise.
20200         * modules/xsublist: New file.
20201         * lib/gl_xsublist.h: New file.
20202         * lib/gl_xsublist.c: New file.
20203         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
20204         (gl_sublist_nx_create): New declaration.
20205         * lib/gl_sublist.c: Don't include xalloc.h.
20206         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
20207         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
20208         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
20209         Change return type to 'int'. Return -1 upon out-of-memory.
20210         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
20211         upon out-of-memory.
20212         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
20213         NULL upon out-of-memory.
20214         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
20215         upon out-of-memory.
20216         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
20217         NULL upon out-of-memory.
20218         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
20219         NULL upon out-of-memory.
20220         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
20221         upon out-of-memory.
20222         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
20223         (gl_sublist_list_implementation): Update.
20224         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
20225         upon out-of-memory.
20226         * modules/sublist (Depends-on): Remove xalloc.
20228         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
20229         * tests/test-carray_list.c: Likewise.
20230         * tests/test-linked_list.c: Likewise.
20231         * tests/test-linkedhash_list.c: Likewise.
20232         * tests/test-avltree_list.c: Likewise.
20233         * tests/test-rbtree_list.c: Likewise.
20234         * tests/test-avltreehash_list.c: Likewise.
20235         * tests/test-rbtreehash_list.c: Likewise.
20236         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
20237         * modules/carray-list-tests (Makefile.am): Likewise.
20238         * modules/linked-list-tests (Makefile.am): Likewise.
20239         * modules/linkedhash-list-tests (Makefile.am): Likewise.
20240         * modules/avltree-list-tests (Makefile.am): Likewise.
20241         * modules/rbtree-list-tests (Makefile.am): Likewise.
20242         * modules/avltreehash-list-tests (Makefile.am): Likewise.
20243         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
20245         * NEWS: Mention the changes.
20247         * lib/clean-temp.c: Include gl_xlist.h.
20248         * modules/clean-temp (Depends-on): Add xlist.
20250         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
20251         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
20253         * tests/test-array_oset.c: Include gl_xlist.h.
20254         * modules/array-oset-tests (Depends-on): Add xlist.
20256         Reported by José E. Marchesi <jemarch@gnu.org>.
20258 2009-12-13  Bruno Haible  <bruno@clisp.org>
20260         Move the malloc checking from module 'oset' to new module 'xoset'.
20261         * modules/xoset: New file.
20262         * lib/gl_xoset.h: New file.
20263         * lib/gl_xoset.c: New file.
20264         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
20265         declarations.
20266         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
20267         (struct gl_oset_implementation): Rename and change methods accordingly.
20268         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
20269         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
20270         'int'. Mark as __warn_unused_result__.
20271         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
20272         gl_oset_create_empty.
20273         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
20274         'int'.
20275         * lib/gl_array_oset.c: Don't include xalloc.h.
20276         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
20277         malloc, not xmalloc.
20278         (grow): Change return type to 'int'. Don't call xalloc_die.
20279         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
20280         to 'int'.
20281         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
20282         'int'.
20283         (gl_array_oset_implementation): Update.
20284         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
20285         gl_tree_create_empty.
20286         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
20287         'int'.
20288         * lib/gl_avltree_oset.c: Don't include xalloc.h.
20289         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
20290         xmalloc.
20291         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
20292         not xmalloc.
20293         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
20294         xmalloc.
20295         (gl_avltree_oset_implementation): Update.
20296         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
20297         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
20298         xmalloc.
20299         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
20300         not xmalloc.
20301         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
20302         xmalloc.
20303         (gl_rbtree_oset_implementation): Update.
20304         * modules/array-oset (Depends-on): Remove xalloc.
20305         * modules/avltree-oset (Depends-on): Likewise.
20306         * modules/rbtree-oset (Depends-on): Likewise.
20307         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
20308         * tests/test-avltree_oset.c: Likewise.
20309         * tests/test-rbtree_oset.c: Likewise.
20310         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
20311         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
20312         * modules/rbtree-oset-tests (Makefile.am): Likewise.
20313         * NEWS: Mention the change.
20315 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
20317         maint.mk: allow a project to override release-prep commands
20318         * top/maint.mk (alpha, beta, stable): Move release-preparatory
20319         commands into a new rule.
20320         (release-prep): New rule.
20321         (release-prep-hook): New overridable variable.
20323 2009-12-13  Bruno Haible  <bruno@clisp.org>
20325         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
20327 2009-12-13  Jim Meyering  <meyering@redhat.com>
20329         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
20330         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
20332 2009-12-12  Bruno Haible  <bruno@clisp.org>
20334         duplocale: Tweak.
20335         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
20337 2009-12-12  Karl Berry  <karl@gnu.org>
20339         * config/srclist.txt (strtoll.c): tab changes, no more sync.
20341 2009-12-12  Bruno Haible  <bruno@clisp.org>
20343         * m4/po.m4: Undo incorrect untabification.
20345 2009-12-12  Bruno Haible  <bruno@clisp.org>
20347         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
20348         * modules/c-strtod (Depends-on): Add locale.
20349         * modules/c-strtold (Depends-on): Likewise.
20351 2009-12-12  Bruno Haible  <bruno@clisp.org>
20353         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
20355 2009-12-11  Eric Blake  <ebb9@byu.net>
20357         setenv: relax requirement in light of POSIX ruling
20358         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
20359         not NULL.
20360         * tests/test-setenv.c (main): Relax test.
20361         * tests/test-unsetenv.c (main): Likewise.
20362         * doc/posix-functions/setenv.texi (setenv): Document this.
20363         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
20365 2009-12-11  Bruno Haible  <bruno@clisp.org>
20367         New module 'fd-safer-flag'.
20368         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
20369         * lib/dup-safer.c (dup_safer_flag): Remove function.
20370         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
20371         * lib/fd-safer.c (fd_safer_flag): Remove function.
20372         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
20373         * modules/cloexec (configure.ac): Drop indicator macro.
20374         * modules/fd-safer-flag: New file.
20375         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
20376         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
20377         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
20379 2009-12-11  Bruno Haible  <bruno@clisp.org>
20381         Tests for module 'nl_langinfo'.
20382         * modules/nl_langinfo-tests: New file.
20383         * tests/test-nl_langinfo.sh: New file.
20384         * tests/test-nl_langinfo.c: New file.
20386         New module 'nl_langinfo'.
20387         * lib/nl_langinfo.c: New file.
20388         * m4/nl_langinfo.m4: New file.
20389         * modules/nl_langinfo: New file.
20390         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
20392 2009-12-11  Bruno Haible  <bruno@clisp.org>
20394         Tests for module 'langinfo'.
20395         * modules/langinfo-tests: New file.
20396         * tests/test-langinfo.c: New file.
20398         New module 'langinfo'.
20399         * lib/langinfo.in.h: New file.
20400         * m4/langinfo_h.m4: New file.
20401         * modules/langinfo: New file.
20402         * doc/posix-headers/langinfo.texi: Mention the new module.
20404 2009-12-11  Bruno Haible  <bruno@clisp.org>
20406         * lib/config.charset: Untabify.
20408 2009-12-11  Bruno Haible  <bruno@clisp.org>
20410         * modules/unistd-safer (configure.ac): Drop indicator macro.
20412 2009-12-11  Bruno Haible  <bruno@clisp.org>
20414         Move pipe2-safer code to its own file.
20415         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
20416         * lib/pipe-safer.c (pipe2_safer): Remove function.
20417         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
20418         (Makefile.am): Add it to lib_SOURCES.
20420 2009-12-10  Bruno Haible  <bruno@clisp.org>
20422         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
20424 2009-12-10  Bruno Haible  <bruno@clisp.org>
20426         Declare which arguments expect non-NULL values, for GCC and clang.
20427         * build-aux/arg-nonnull.h: New file.
20428         * modules/arg-nonnull: New file.
20429         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
20430         (inet_ntop, inet_pton): Use it.
20431         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
20432         (closedir, dirfd, opendir, scandir, alphasort): Use it.
20433         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
20434         (open, openat): Use it.
20435         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
20436         (fnmatch): Use it.
20437         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
20438         (getopt, getopt_long, getopt_long_only): Use it.
20439         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
20440         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
20441         Use it.
20442         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
20443         (iconv_open): Use it.
20444         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
20445         (strtoimax, strtoumax): Use it.
20446         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
20447         (duplocale): Use it.
20448         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
20449         (frexp, frexpl): Use it.
20450         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
20451         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
20452         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
20453         (tsearch, tfind, tdelete, twalk): Use it.
20454         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
20455         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
20456         sigpending): Use it.
20457         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
20458         (posix_spawn, posix_spawnp, posix_spawnattr_init,
20459         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
20460         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
20461         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
20462         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
20463         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
20464         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
20465         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
20466         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
20467         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
20468         Use it.
20469         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
20470         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
20471         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
20472         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
20473         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
20474         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
20475         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
20476         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
20477         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
20478         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
20479         strtoull, unsetenv): Use it.
20480         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
20481         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
20482         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
20483         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
20484         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
20485         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
20486         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
20487         (strcasecmp, strncasecmp): Use it.
20488         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
20489         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
20490         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
20491         rpl_setsockopt): Use it.
20492         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
20493         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
20494         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
20495         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
20496         (gettimeofday): Use it.
20497         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
20498         (times): Use it.
20499         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
20500         (uname): Use it.
20501         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
20502         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
20503         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
20504         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
20505         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
20506         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
20507         unlinkat, write): Use it.
20508         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
20509         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
20510         * lib/argv-iter.h: Include arg-nonnull.h.
20511         (_ATTRIBUTE_NONNULL_): Remove macro.
20512         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
20513         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
20514         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
20515         optimization.
20516         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
20517         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
20518         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
20519         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
20520         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
20521         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
20522         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
20523         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
20524         * modules/arpa_inet (Depends-on): Add arg-nonnull.
20525         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
20526         * modules/dirent (Depends-on): Add arg-nonnull.
20527         (Makefile.am): Insert arg-nonnull.h into dirent.h.
20528         * modules/fcntl-h (Depends-on): Add arg-nonnull.
20529         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
20530         * modules/fnmatch (Depends-on): Add arg-nonnull.
20531         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
20532         * modules/getopt-posix (Depends-on): Add arg-nonnull.
20533         (Makefile.am): Insert arg-nonnull.h into getopt.h.
20534         * modules/glob (Depends-on): Add arg-nonnull.
20535         (Makefile.am): Insert arg-nonnull.h into glob.h.
20536         * modules/iconv_open (Depends-on): Add arg-nonnull.
20537         (Makefile.am): Insert arg-nonnull.h into iconv.h.
20538         * modules/inttypes (Depends-on): Add arg-nonnull.
20539         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
20540         * modules/locale (Depends-on): Add arg-nonnull.
20541         (Makefile.am): Insert arg-nonnull.h into locale.h.
20542         * modules/math (Depends-on): Add arg-nonnull.
20543         (Makefile.am): Insert arg-nonnull.h into math.h.
20544         * modules/netdb (Depends-on): Add arg-nonnull.
20545         (Makefile.am): Insert arg-nonnull.h into netdb.h.
20546         * modules/search (Depends-on): Add arg-nonnull.
20547         (Makefile.am): Insert arg-nonnull.h into search.h.
20548         * modules/signal (Depends-on): Add arg-nonnull.
20549         (Makefile.am): Insert arg-nonnull.h into signal.h.
20550         * modules/spawn (Depends-on): Add arg-nonnull.
20551         (Makefile.am): Insert arg-nonnull.h into spawn.h.
20552         * modules/stdio (Depends-on): Add arg-nonnull.
20553         (Makefile.am): Insert arg-nonnull.h into stdio.h.
20554         * modules/stdlib (Depends-on): Add arg-nonnull.
20555         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
20556         * modules/string (Depends-on): Add arg-nonnull.
20557         (Makefile.am): Insert arg-nonnull.h into string.h.
20558         * modules/strings (Depends-on): Add arg-nonnull.
20559         (Makefile.am): Insert arg-nonnull.h into strings.h.
20560         * modules/sys_socket (Depends-on): Add arg-nonnull.
20561         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
20562         * modules/sys_stat (Depends-on): Add arg-nonnull.
20563         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
20564         * modules/sys_time (Depends-on): Add arg-nonnull.
20565         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
20566         * modules/sys_times (Depends-on): Add arg-nonnull.
20567         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
20568         * modules/sys_utsname (Depends-on): Add arg-nonnull.
20569         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
20570         * modules/time (Depends-on): Add arg-nonnull.
20571         (Makefile.am): Insert arg-nonnull.h into time.h.
20572         * modules/unistd (Depends-on): Add arg-nonnull.
20573         (Makefile.am): Insert arg-nonnull.h into unistd.h.
20574         * modules/wchar (Depends-on): Add arg-nonnull.
20575         (Makefile.am): Insert arg-nonnull.h into wchar.h.
20576         * modules/argv-iter (Depends-on): Add arg-nonnull.
20577         * tests/test-canonicalize.c (null_ptr): New function.
20578         (main): Use it.
20579         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
20580         (main): Use it.
20581         * tests/test-memmem.c (null_ptr): New function.
20582         (main): Use it.
20583         Reported by Jim Meyering.
20585 2009-12-10  Bruno Haible  <bruno@clisp.org>
20587         Use spaces for indentation, not tabs.
20588         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
20589         * m4/*.m4: Untabify.
20590         * build-aux/*.h: Untabify.
20591         * tests/**/*.[hc]: Untabify.
20592         * README: New section "Indent with spaces, not TABs", based on
20593         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
20594         * NEWS: Mention the change.
20596 2009-12-10  Bruno Haible  <bruno@clisp.org>
20598         pty test: Fix link error.
20599         * modules/pty-tests (Makefile.am): Add the default LDADD value to
20600         test_pty_LDADD.
20602 2009-12-07  Simon Josefsson  <simon@josefsson.org>
20604         * modules/pty: New file.
20605         * modules/pty-tests: New file.
20606         * m4/pty.m4: New file.
20607         * tests/test-pty.c: New file.
20608         * doc/glibc-headers/pty.texi: Modified.
20609         * doc/glibc-functions/forkpty.texi: Modified.
20610         * doc/glibc-functions/openpty.texi: Modified.
20612 2009-12-10  Bruno Haible  <bruno@clisp.org>
20614         Avoid syntax error in C++ mode.
20615         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
20617 2009-12-10  Bruno Haible  <bruno@clisp.org>
20619         Use sed with option -e.
20620         * gnulib-tool (func_version, func_emit_copyright_notice,
20621         func_emit_initmacro_end, func_import, func_create_testdir): Pass
20622         option -e to sed.
20623         * modules/link-warning (Makefile.am): Likewise.
20625 2009-12-10  Jim Meyering  <meyering@redhat.com>
20627         mgetgroups: do not write bytes beyond end of malloc'd buffer
20628         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
20629         username, we call getgroups with a one-element-shorter buffer,
20630         but still told it the length was original, max_n_groups.
20632 2009-12-09  Eric Blake  <ebb9@byu.net>
20634         cloexec: relax license
20635         * modules/cloexec (Maintainer): Add myself.
20636         (License): Use LGPL, not GPL.
20638         link-warning: optimize generation
20639         * modules/link-warning (Makefile.am): Reduce process usage.
20641 2009-12-09  Bruno Haible  <bruno@clisp.org>
20643         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
20644         workaround was added on 2009-11-17.
20646 2009-12-09  Jim Meyering  <meyering@redhat.com>
20647             Bruno Haible  <bruno@clisp.org>
20649         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
20650         * modules/link-warning (Makefile.am): Make the comment-removing sed
20651         command more robust in the face of bootstrap-prepended comment lines.
20653 2009-12-09  Bruno Haible  <bruno@clisp.org>
20655         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
20656         most one group.
20658 2009-12-09  Simon Josefsson <simon@josefsson.org>
20659             Bruno Haible  <bruno@clisp.org>
20661         * build-aux/link-warning.h: Add copyright notice.
20662         * modules/link-warning (Makefile.am): Generate link-warning.h from
20663         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
20664         * NEWS: Mention change in link-warning module.
20665         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
20666         * modules/dirent (Makefile.am): Add dependency to dirent.h.
20667         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
20668         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
20669         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
20670         * modules/math (Makefile.am): Add dependency to math.h.
20671         * modules/search (Makefile.am): Add dependency to search.h.
20672         * modules/signal (Makefile.am): Add dependency to signal.h.
20673         * modules/spawn (Makefile.am): Add dependency to spawn.h.
20674         * modules/stdio (Makefile.am): Add dependency to stdio.h.
20675         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
20676         * modules/string (Makefile.am): Add dependency to string.h.
20677         * modules/strings (Makefile.am): Add dependency to strings.h.
20678         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
20679         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
20680         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
20681         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
20682         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
20683         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
20684         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
20685         * modules/unistd (Makefile.am): Add dependency to unistd.h.
20686         * modules/wchar (Makefile.am): Add dependency to wchar.h.
20688 2009-12-09  Bruno Haible  <bruno@clisp.org>
20690         fchdir: Optimize away rpl_fstat when possible.
20691         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
20692         REPLACE_OPEN_DIRECTORY.
20693         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
20695 2009-12-09  Bruno Haible  <bruno@clisp.org>
20697         * lib/fchdir.c: Update comment.
20699 2009-12-09  Bruno Haible  <bruno@clisp.org>
20701         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
20703 2009-12-08  Eric Blake  <ebb9@byu.net>
20705         fchdir: avoid memory leak on re-registration.
20706         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
20708 2009-12-08  Jim Meyering  <meyering@redhat.com>
20710         init.sh: avoid Solaris 10 /bin/sh portability problem
20711         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
20712         sourced script:
20713           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
20714           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
20715           bar
20716         tests/init.sh relied on that, accepting a --set-path=DIR argument,
20717         and two tests used that idiom.
20718         * tests/init.sh: Update suggested usage comments.
20719         (path_prepend_): New function, to be used in place
20720         of the --src-path=DIR option.
20721         (setup_): Move PATH-prepending code into path_prepend_.
20722         * tests/test-pread.sh: Adapt to new usage.
20723         * tests/test-xalloc-die.sh: Likewise.
20725 2009-12-08  Simon Josefsson  <simon@josefsson.org>
20727         * doc/gnulib.texi (Glibc pty.h): Add.
20728         * doc/glibc-functions/forkpty.texi: Add.
20729         * doc/glibc-functions/openpty.texi: Add.
20730         Suggested by Bruno Haible.
20732 2009-12-08  Eric Blake  <ebb9@byu.net>
20734         fchdir: fix logic bugs
20735         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
20736         * tests/test-fchdir.c (main): Enhance test.
20737         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
20738         is in use.
20740         dup2: fix logic bugs
20741         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
20742         REPLACE_DUP2 to decide when rpl_dup2 is needed.
20743         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
20744         exists.
20745         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
20747 2009-12-07  Eric Blake  <ebb9@byu.net>
20749         unlink: fix m4 detection
20750         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
20752         unistd-safer: add unit test
20753         * modules/unistd-safer-tests: New file.
20754         * tests/test-dup-safer.c: Likewise.
20755         * tests/test-cloexec.c (setmode): Avoid compiler warning.
20756         * tests/test-dup2.c (setmode): Likewise.
20757         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
20759         cloexec: preserve text vs. binary across dup_cloexec
20760         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
20761         mode.
20762         * modules/dup2-tests (Depends-on): Add binary-io.
20763         * modules/cloexec-tests (Depends-on): Likewise.
20764         * tests/test-dup2.c (setmode, is_mode): New helpers.
20765         (main): Add tests that translation mode is preserved.
20766         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
20767         Reported by Bruno Haible.
20769         mgetgroups: reduce duplicate listings
20770         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
20771         resulting array.
20772         * tests/test-chown.h (test_chown): Simplify client.
20773         * tests/test-lchown.h (test_lchown): Likewise.
20775 2009-12-06  Bruno Haible  <bruno@clisp.org>
20777         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
20778         value.
20780 2009-12-06  Bruno Haible  <bruno@clisp.org>
20782         * lib/progname.c: Include stdio.h, stdlib.h.
20783         (set_program_name): Reject a NULL argument.
20785 2009-12-05  Eric Blake  <ebb9@byu.net>
20787         pipe2-safer: new module
20788         * modules/pipe2-safer: New file.
20789         * lib/unistd-safer.h (pipe2_safer): New prototype.
20790         * lib/unistd--.h (pipe2): New wrapper.
20791         * lib/pipe-safer.c (pipe2_safer): New function.
20792         * modules/pipe (Depends-on): Add pipe2-safer.
20793         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
20795         stdlib-safer: preserve cloexec flag for mkostemp[s]
20796         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
20797         fd_safer_flag.
20799         unistd-safer: allow preservation of cloexec status via flag
20800         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
20801         prototypes.
20802         * lib/dup-safer.c (dup_safer_flag): New function.
20803         * lib/fd-safer.c (fd_safer_flag): Likewise.
20804         * modules/cloexec (configure.ac): Set witness.
20806         test-dup2: enhance test
20807         * modules/dup2-tests (Depends-on): Add cloexec.
20808         * tests/test-dup2.c (main): Enhance test.
20810         cloexec: add dup_cloexec
20811         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
20812         header and comments.
20813         * lib/cloexec.c (set_cloexec_flag): Add comments.
20814         (dup_cloexec): New function, with mingw implementation borrowed
20815         from...
20816         * lib/w32spawn.h (dup_noinherit): ...here.
20817         * modules/execute (Depends-on): Add cloexec.
20818         * modules/pipe (Depends-on): Likewise.
20819         * modules/cloexec (Depends-on): Add dup2.
20820         * modules/cloexec-tests (Files): New file.
20821         * tests/test-cloexec.c: Likewise.
20823         test-xalloc-die: fix test for mingw
20824         * modules/xalloc-die-tests (Files): Add tests/init.sh.
20825         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
20826         directory and .exe suffix off argv[0] output.
20828         test-fseeko: fix test for mingw
20829         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
20830         than undefining fseek, so test will pass on mingw.
20832 2009-12-05  Bruno Haible  <bruno@clisp.org>
20834         * lib/progname.h (set_program_name): Clarify specification.
20835         * lib/progname.c (set_program_name): Likewise.
20836         Reported by Jim Meyering.
20838 2009-12-05  Jim Meyering  <meyering@redhat.com>
20840         maint.mk: backslash-escape parens in default regexp
20841         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
20842         backslash-escape the literal parentheses.
20844         maint.mk: news-date-check: use grep -E
20845         * top/maint.mk (today): Define a Make variable, not a...
20846         (news-date-check): ...shell variable.
20847         (news-date-regexp): Use the Make variable.
20848         Use grep's -E option.  Change the failing diagnostic to mention
20849         the variable, $(news-date-regexp).
20851 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
20853         maintainer-makefile: allow customization of NEWS entry format
20854         * top/maint.mk (news-date-regexp): New overridable variable.
20855         (news-date-check): Use it.
20857 2009-12-04  Eric Blake  <ebb9@byu.net>
20859         mgetgroups: add xgetgroups, and avoid ENOSYS failures
20860         * lib/mgetgroups.h (xgetgroups): New prototype.
20861         * lib/mgetgroups.c (xgetgroups): New wrapper.
20862         (mgetgroups): Handle ENOSYS.
20863         * modules/mgetgroups (Depends-on): Add realloc.
20864         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
20866         mgetgroups: avoid argument promotion issues with -1
20867         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
20868         for invalid gid_t.
20869         * tests/test-chown.h (getegid, test_chown): Likewise.
20870         * tests/test-lchown.h (getegid, test_lchown): Likewise.
20872 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
20874         exclude: Fix header file problems.
20875         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
20877 2009-12-01  Jim Meyering  <meyering@redhat.com>
20879         fts: fts_open: do not let an empty string cause immediate failure
20880         This is required in support of GNU rm, for which the command
20881         "rm A '' B" must process and remove both A and B, in spite of
20882         the empty string argument.
20883         * lib/fts.c (fts_open): Do not let the presence of an empty string
20884         cause fts_open to fail immediately.  Most fts-using tools must be
20885         able to process all arguments, in order, and can be expected to
20886         diagnose such arguments themselves.
20888 2009-11-30  Eric Blake  <ebb9@byu.net>
20890         utimens: fix compilation error
20891         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
20892         Declare variable at right scope.
20894 2009-11-29  Jim Meyering  <meyering@redhat.com>
20896         bootstrap: handle perl-5.11's changed --version output
20897         * build-aux/bootstrap (get_version): Handle perl separately,
20898         since perl-5.11's --version output is different.
20900 2009-11-28  Jim Meyering  <meyering@redhat.com>
20902         userspec: depend on the inttostr module, too
20903         * modules/userspec (Depends-on): Add inttostr.
20905         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
20906         * lib/userspec.c (parse_with_separator): Do not accept a user ID
20907         number of MAXUID when it evaluates to (uid_t) -1.
20908         Likewise for group ID.  Reported by Matt McCutchen in
20909         <http://savannah.gnu.org/bugs/?28113>
20911         userspec: reformat to use spaces, not TABs
20912         * lib/userspec.c: Expand TABs to spaces.
20913         Add Emacs' "indent-tabs-mode: nil" hint.
20915 2009-11-27  Eric Blake  <ebb9@byu.net>
20917         getopt-gnu: flush out another BSD bug
20918         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
20919         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
20920         flush out BSD bug.
20921         * tests/test-getopt.h (test_getopt): End lists with NULL.
20922         * tests/test-getopt_long.h (test_getopt_long): Likewise.
20923         (test_getopt_long_posix): Enhance test.
20924         * modules/getopt-posix-tests (Depends-on): Add stdbool.
20925         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
20926         getopt-gnu.
20927         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
20928         Likewise.
20930 2009-11-27  Simon Josefsson  <simon@josefsson.org>
20932         * modules/idpriv-droptemp-tests (Notice): Fix text.
20934 2009-11-27  Jim Meyering  <meyering@redhat.com>
20936         test-xalloc-die: avoid spurious failure due to libtool argv difference
20937         In a libtool-enabled project, this test would fail due to a difference
20938         in the emitted program name, e.g.,
20939         -test-xalloc-die: memory exhausted
20940         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
20941         Use program to avoid that.
20942         * modules/xalloc-die-tests (Depends-on): Add progname.
20943         * tests/test-xalloc-die.c: Include progname.h".
20944         (program_name): Remove decl.
20945         (main): Call set_program_name.
20946         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
20948 2009-11-26  Richard Jones  <rjones@redhat.com>
20950         w32sock: leave win32 error in place.
20951         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
20953 2009-11-26  Eric Blake  <ebb9@byu.net>
20955         init.sh: suggest to use skip_ and fail_ functions in comments
20956         * tests/init.sh: Add a sentence.
20958 2009-11-25  Bruno Haible  <bruno@clisp.org>
20960         init.sh: add documentation in comments
20961         * tests/init.sh: Add some developer and user documentation.
20963 2009-11-26  Jim Meyering  <meyering@redhat.com>
20965         init.sh: accommodate even those who specify bogus srcdir manually
20966         * tests/init.sh: Normally, srcdir is guaranteed by automake and
20967         configure-time tests to be sanitized, so that there is no need to
20968         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
20969         (with no double quotes) suffices.  However, since tests may be
20970         invoked manually, and since you may explicitly set srcdir to the
20971         name of a directory containing spaces, do quote its uses here.
20972         * tests/test-pread.sh: Likewise.
20973         Suggested by Bruno Haible.
20975         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
20976         * tests/test-pread.sh: Write no data into the pipe, because
20977         test-pread actually reads none.  This avoids a diagnostic,
20978         "bash: echo: write error: Broken pipe", that arises in the unusual
20979         event something is ignoring SIGPIPE, and might be interpreted
20980         as some sort of failure.  Reported by Bruno Haible.
20982 2009-11-25  Jim Meyering  <meyering@redhat.com>
20984         test-pread: cover failure with ESPIPE and EINVAL
20985         * tests/test-pread.c (main): Test for failure, too.
20986         * tests/test-pread.sh: Invoke with stdin on a pipe.
20987         Suggested by Eric Blake.
20989         pread: improvement and fix
20990         * modules/pread (Depends-on): Depend on lseek, for portability to
20991         e.g., mingw.  Suggested by Eric Blake.
20992         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
20994         unistd.in.h: correct declaration of pread
20995         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
20996         Reported by Richard W.M. Jones.
20998         test-pread.sh: distribute the test script
20999         * modules/pread-tests (Files): Include test-pread.sh.
21001         test-pread.sh: clean up
21002         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
21003         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
21004         That is unnecessary, since it's always ".".
21005         Suggestion from Eric Blake.
21007         test-pread.sh: make executable
21008         * tests/test-pread.sh: Set executable bit.
21009         Reported by Eric Blake.
21011         correct typo in test-pread.sh
21012         * tests/test-pread.sh: Add #! line.
21014         test pread
21015         * tests/test-pread.c: New file.
21016         * tests/test-pread.sh: Likewise.
21017         * modules/pread-tests: Likewise.
21019         pread: new module
21020         * modules/pread: New file.
21021         * lib/unistd.in.h (pread): Define/declare.
21022         * lib/pread.c (pread): New file.
21023         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
21024         * modules/unistd (Makefile.am): Substitute witnesses.
21025         * doc/posix-functions/pread.texi (pread): Update.
21026         * MODULES.html.sh: Add pread.
21028 2009-11-25  Jim Meyering  <meyering@redhat.com>
21030         tests/init.sh: new file to be used via most *.sh tests
21031         * tests/init.sh: New file.
21033 2009-11-25  Eric Blake  <ebb9@byu.net>
21035         utimens: work around older Linux failure with symlinks
21036         * lib/utimens.c (lutimensat_works_really): New variable.
21037         (fdutimens, lutimens): Use it to manage kernels that support
21038         nanosecond times on files, but not on symlinks.
21039         Reported by OndÅ™ej Vašík.
21041         utimes: fix configure grammar
21042         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
21044 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
21046         regex: Fix fastmap for multibyte character ranges.
21047         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
21048         characters when a multibyte character range is included.
21050 2009-11-22  Andy Wingo  <wingo@pobox.com>
21052         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
21053         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
21055 2009-11-24  Bruno Haible  <bruno@clisp.org>
21057         doc: Most *_l functions exist in MacOS X 10.5.
21058         * doc/posix-functions/duplocale.texi: Update platforms list.
21059         * doc/posix-functions/freelocale.texi: Likewise.
21060         * doc/posix-functions/newlocale.texi: Likewise.
21061         * doc/posix-functions/uselocale.texi: Likewise.
21062         * doc/posix-functions/isalnum_l.texi: Likewise.
21063         * doc/posix-functions/isalpha_l.texi: Likewise.
21064         * doc/posix-functions/isblank_l.texi: Likewise.
21065         * doc/posix-functions/iscntrl_l.texi: Likewise.
21066         * doc/posix-functions/isdigit_l.texi: Likewise.
21067         * doc/posix-functions/isgraph_l.texi: Likewise.
21068         * doc/posix-functions/islower_l.texi: Likewise.
21069         * doc/posix-functions/isprint_l.texi: Likewise.
21070         * doc/posix-functions/ispunct_l.texi: Likewise.
21071         * doc/posix-functions/isspace_l.texi: Likewise.
21072         * doc/posix-functions/isupper_l.texi: Likewise.
21073         * doc/posix-functions/iswalnum_l.texi: Likewise.
21074         * doc/posix-functions/iswalpha_l.texi: Likewise.
21075         * doc/posix-functions/iswblank_l.texi: Likewise.
21076         * doc/posix-functions/iswcntrl_l.texi: Likewise.
21077         * doc/posix-functions/iswctype_l.texi: Likewise.
21078         * doc/posix-functions/iswdigit_l.texi: Likewise.
21079         * doc/posix-functions/iswgraph_l.texi: Likewise.
21080         * doc/posix-functions/iswlower_l.texi: Likewise.
21081         * doc/posix-functions/iswprint_l.texi: Likewise.
21082         * doc/posix-functions/iswpunct_l.texi: Likewise.
21083         * doc/posix-functions/iswspace_l.texi: Likewise.
21084         * doc/posix-functions/iswupper_l.texi: Likewise.
21085         * doc/posix-functions/iswxdigit_l.texi: Likewise.
21086         * doc/posix-functions/isxdigit_l.texi: Likewise.
21087         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
21088         * doc/posix-functions/strcasecmp_l.texi: Likewise.
21089         * doc/posix-functions/strcoll_l.texi: Likewise.
21090         * doc/posix-functions/strfmon_l.texi: Likewise.
21091         * doc/posix-functions/strftime_l.texi: Likewise.
21092         * doc/posix-functions/strncasecmp_l.texi: Likewise.
21093         * doc/posix-functions/strxfrm_l.texi: Likewise.
21094         * doc/posix-functions/tolower_l.texi: Likewise.
21095         * doc/posix-functions/toupper_l.texi: Likewise.
21096         * doc/posix-functions/towctrans_l.texi: Likewise.
21097         * doc/posix-functions/towlower_l.texi: Likewise.
21098         * doc/posix-functions/towupper_l.texi: Likewise.
21099         * doc/posix-functions/wcscoll_l.texi: Likewise.
21100         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
21101         * doc/posix-functions/wctrans_l.texi: Likewise.
21102         * doc/posix-functions/wctype_l.texi: Likewise.
21103         * doc/glibc-functions/strptime_l.texi: Likewise.
21104         * doc/glibc-functions/strtod_l.texi: Likewise.
21105         * doc/glibc-functions/strtof_l.texi: Likewise.
21106         * doc/glibc-functions/strtol_l.texi: Likewise.
21107         * doc/glibc-functions/strtold_l.texi: Likewise.
21108         * doc/glibc-functions/strtoll_l.texi: Likewise.
21109         * doc/glibc-functions/strtoul_l.texi: Likewise.
21110         * doc/glibc-functions/strtoull_l.texi: Likewise.
21111         * doc/glibc-functions/wcsftime_l.texi: Likewise.
21112         * doc/glibc-functions/wcstod_l.texi: Likewise.
21113         * doc/glibc-functions/wcstof_l.texi: Likewise.
21114         * doc/glibc-functions/wcstol_l.texi: Likewise.
21115         * doc/glibc-functions/wcstold_l.texi: Likewise.
21116         * doc/glibc-functions/wcstoll_l.texi: Likewise.
21117         * doc/glibc-functions/wcstoul_l.texi: Likewise.
21118         * doc/glibc-functions/wcstoull_l.texi: Likewise.
21120 2009-11-24  Bruno Haible  <bruno@clisp.org>
21122         duplocale: Fix logic bug.
21123         * lib/duplocale.c: Don't include <langinfo.h>.
21124         (_NL_LOCALE_NAME): Remove macro.
21125         (rpl_duplocale): Use setlocale instead of nl_langinfo.
21126         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
21128 2009-11-23  Jim Meyering  <meyering@redhat.com>
21130         test-update-copyright: don't hard-code /usr/bin/perl
21131         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
21132         perl to print the current year.  Gilles Espinasse reported that
21133         the replaced use of perl was hard-coded as /usr/bin/perl.
21135 2009-11-23  Bruno Haible  <bruno@clisp.org>
21137         duplocale: Add support for glibc 2.3.x.
21138         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
21140 2009-11-22  Bruno Haible  <bruno@clisp.org>
21142         vasnprintf: Tiny optimization.
21143         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
21144         MacOS X.
21146 2009-11-22  Bruno Haible  <bruno@clisp.org>
21148         Tests for module 'duplocale'.
21149         * modules/duplocale-tests: New file.
21150         * tests/test-duplocale.c: New file.
21152         New module 'duplocale'.
21153         * m4/duplocale.m4: New file.
21154         * lib/locale.in.h (duplocale): New declaration.
21155         * lib/duplocale.c: New file.
21156         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
21157         gl_LOCALE_H_DEFAULTS): New macros.
21158         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
21159         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
21160         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
21161         REPLACE_DUPLOCALE.
21162         * modules/duplocale: New file.
21163         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
21165 2009-11-22  Bruno Haible  <bruno@clisp.org>
21167         * modules/locale-tests (configure.ac): Test for newlocale function.
21168         * tests/test-locale.c: When the system has extended locale functions,
21169         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
21171         locale: Make locale_t available when possible.
21172         * lib/locale.in.h: Include <xlocale.h> when it exists.
21173         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
21174         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
21175         * modules/locale (Depends-on): Add extensions.
21176         (Makefile.am): Also substitute HAVE_XLOCALE_H.
21177         * doc/posix-headers/locale.texi: Document the problem with locale_t.
21179 2009-11-22  Bruno Haible  <bruno@clisp.org>
21181         Add comments.
21182         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
21183         invocation.
21184         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
21185         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
21186         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
21188 2009-11-22  Bruno Haible  <bruno@clisp.org>
21190         error: account for the possibility of freopen (stdout).
21191         * lib/error.c: Include <unistd.h>.
21192         (flush_stdout): New function, extracted from error and error_at_line.
21193         Determine stdout's fd dynamically.
21194         (error, error_at_line): Invoke flush_stdout.
21195         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
21196         * modules/error (Depends-on): Add unistd.
21198 2009-11-22  Bruno Haible  <bruno@clisp.org>
21200         diffseq: Add comment.
21201         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
21203 2009-11-22  Jim Meyering  <meyering@redhat.com>
21205         c-stack: avoid defining an unused static function
21206         * lib/c-stack.c (find_stack_direction): Do not define this function
21207         when it will not be used.
21209         diffseq: avoid spurious gcc warnings
21210         * lib/diffseq.h (IF_LINT2): Define.
21211         (compareseq): Use it to initialize two members of "part".
21212         This avoids two used-uninitialized warnings.
21214 2009-11-21  Jim Meyering  <meyering@redhat.com>
21216         c-stack: avoid "ignoring return value of `write'" warning
21217         * lib/c-stack.c: Include "ignore-value.h".
21218         (die): Explicitly ignore each write return value.
21219         * modules/c-stack (Depends-on): Add ignore-value.
21221 2009-11-21  Bruno Haible  <bruno@clisp.org>
21223         diffseq: reduce scope of variable 'best'.
21224         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
21225         variable, earlier used for two different purposes.
21227 2009-11-21  Jim Meyering  <meyering@redhat.com>
21229         diffseq: remove useless assignment to "best"
21230         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
21231         assignment.  At that point "best" is already guaranteed to be zero.
21233 2009-11-20  Eric Blake  <ebb9@byu.net>
21235         build: mention ftp redirector in release announcements
21236         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
21237         values that used to come from cfg.mk; mention FTP redirect URL.
21238         * build-aux/announce-gen: Mention the mirror list.
21239         Suggested by Karl Berry.
21241         nanosleep: improve port to mingw
21242         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
21243         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
21244         LIB_NANOSLEEP, but only when needed.
21245         * modules/select (Link): Document LIBSOCKET.
21246         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
21247         enough.
21249         nanosleep: work around cygwin bug
21250         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
21251         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
21252         bug.
21253         (getnow): Delete, not needed.
21254         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
21255         LIB_CLOCK_GETTIME.
21256         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
21257         clock-time, gettime.
21258         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
21259         bug.
21260         * modules/nanosleep-tests: New test.
21261         * tests/test-nanosleep.c: New file.
21263         sleep: work around cygwin bug
21264         * lib/sleep.c (rpl_sleep): Work around the bug.
21265         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
21266         (gl_PREREQ_SLEEP): Delete unused macro.
21267         * modules/sleep (Depends-on): Add verify.
21268         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
21269         * modules/unistd (Makefile.am): Substitute witness.
21270         * lib/unistd.in.h (sleep): Update prototype.
21271         * doc/posix-functions/sleep.texi (sleep): Document the bug.
21272         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
21273         * modules/sleep-tests (Depends-on): Check for alarm.
21275 2009-11-20  Jim Meyering  <meyering@redhat.com>
21277         maint.mk: improve sc_prohibit_magic_number_exit
21278         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
21279         so it does not match uses like System.exit(1).
21280         Add comments showing how to correct all offenders.
21282 2009-11-19  Eric Blake  <ebb9@byu.net>
21284         xalloc-die-tests: add missing library
21285         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
21287         test-xvasprintf: silence compiler warnings
21288         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
21289         empty string from gcc.
21291 2009-11-19  Jim Meyering  <meyering@redhat.com>
21293         xfreopen: new module, from coreutils
21294         * modules/xfreopen: New module.
21295         * lib/xfreopen.c: New file.
21296         * lib/xfreopen.h: New file.
21297         * MODULES.html.sh (File stream based Input/Output"): Add it.
21299 2009-11-19  Eric Blake  <ebb9@byu.net>
21301         manywarnings: depend on warnings
21302         * modules/manywarnings (Depends-on): Add warnings.
21304         build: avoid compiler warnings
21305         * lib/select.c (rpl_select): Delete unused variable.
21306         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
21308 2009-11-18  Eric Blake  <ebb9@byu.net>
21310         tests: avoid false negative with --with-packager
21311         * tests/test-version-etc.sh: Discard packager information.
21312         * tests/test-argp-version-etc-1.sh: Likewise.
21313         Reported by Mike Frysinger.
21315         utimens: fix regression on Solaris
21316         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
21317         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
21318         can only change fd timestamps via futimesat.  Instead, use an
21319         additional witness macro to avoid BSD bug.
21320         Reported by Jim Meyering.
21322 2009-11-17  Eric Blake  <ebb9@byu.net>
21324         usleep: use it to simplify tests
21325         * modules/stat-time-tests (Depends-on): Add usleep.
21326         (configure.ac): Drop usleep check.
21327         * modules/chown-tests (Depends-on, configure.ac): Likewise.
21328         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
21329         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
21330         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
21331         * modules/openat-tests (Depends-on, configure.ac): Likewise.
21332         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
21333         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
21334         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
21335         Likewise.
21336         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
21337         * tests/test-lchown.h (nap): Likewise.
21338         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
21339         * tests/test-stat-time.c (nap): Likewise.
21340         * tests/test-utimens-common.h (nap): Update comments.
21342         usleep: new module
21343         * modules/usleep: New file.
21344         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
21345         * lib/usleep.c (usleep): Likewise.
21346         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
21347         * modules/unistd (Makefile.am): Substitute witnesses.
21348         * lib/unistd.in.h (usleep): Add declaration.
21349         * doc/pastposix-functions/usleep.texi (usleep): Document this.
21350         * MODULES.html.sh (Date and time): Likewise.
21351         * modules/usleep-tests (Depends-on): New test.
21352         * tests/test-usleep.c: New file.
21354         chown: work around OpenBSD bug
21355         * lib/chown.c (rpl_chown): Work around the bug.
21356         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
21357         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
21358         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
21359         * modules/chown (Depends-on): Add stdbool.
21360         * modules/lchown (Depends-on): Likewise.
21361         * doc/posix-functions/chown.texi (chown): Document the bug.
21362         * doc/posix-functions/lchown.texi (lchown): Likewise.
21363         * tests/test-lchown.h (test_chown): Relax test.
21365         mkstemp: avoid conflict with C++ keyword template
21366         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
21367         * lib/mkostemp.c (mkostemp): Likewise.
21368         * lib/mkostemps.c (mkostemps): Likewise.
21369         * lib/mkstemp.c (mkstemp): Likewise.
21370         * lib/mkstemps.c (mkstemps): Likewise.
21372         xalloc-die-tests: optimize
21373         * tests/test-xalloc-die.sh: Reduce number of processes.
21375 2009-11-17  Simon Josefsson  <simon@josefsson.org>
21377         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
21378         patch from ludo@gnu.org (Ludovic Courtès).
21380 2009-11-17  Jim Meyering  <meyering@redhat.com>
21382         version-etc: use proper license string
21383         * modules/version-etc (License): Use LGPL, not LGPLv3+.
21384         * modules/version-etc-fsf: Likewise.
21386 2009-11-17  Simon Josefsson  <simon@josefsson.org>
21388         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
21389         printed to stdout.  Deal with EOL differences.
21391 2009-11-17  Eric Blake  <ebb9@byu.net>
21393         unsetenv: work around Solaris bug
21394         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
21395         * lib/unsetenv.c (rpl_unsetenv): Work around it.
21396         Reported by Jim Meyering.
21398         vasnprintf: avoid compiler warnings
21399         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
21400         variables.
21401         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
21403 2009-11-17  Simon Josefsson  <simon@josefsson.org>
21405         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
21406         settings since xalloc-die is no longer the self test,
21407         xalloc-die.sh is.
21409 2009-11-17  Jim Meyering  <meyering@redhat.com>
21411         test-xalloc-die.sh: make the code agree with the commit log
21412         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
21413         at the end, just in case you happen to have a test-xalloc-die
21414         program in some other PATH directory.
21416         test-xalloc-die.sh: fix a portability bug
21417         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
21418         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
21419         Otherwise, argv[0] (as often seen in diagnostics) would be too
21420         system-dependent, sometimes with, and sometimes without the leading "./".
21422         version-etc-fsf: relax license to LGPLv3+
21423         * modules/version-etc-fsf (License): Relax license.
21425 2009-11-16  Eric Blake  <ebb9@byu.net>
21427         xalloc-die-tests: avoid printing null pointer
21428         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
21429         shell script.
21430         * tests/test-xalloc-die.c (program_name): Declare.
21431         * tests/test-xalloc-die.sh (tmpfiles): New file.
21433         setenv, unsetenv: work around various bugs
21434         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
21435         (setenv) [HAVE_SETENV]: Work around bugs.
21436         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
21437         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
21438         for bugs.
21439         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
21440         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
21441         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
21442         * modules/stdlib (Makefile.am): Update substitutions.
21443         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
21444         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
21445         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
21446         * modules/setenv-tests: New test.
21447         * modules/unsetenv-tests: Likewise.
21448         * tests/test-setenv.c: New file.
21449         * tests/test-unsetenv.c: Likewise.
21451 2009-11-16  Jim Meyering  <meyering@redhat.com>
21453         version-etc: relax license to LGPLv3+
21454         * modules/version-etc (License): Relax license.
21456         better AC_REQUIRE expanded-before-required-warning avoidance
21457         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
21458         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
21459         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
21460         which is no longer needed.
21462 2009-11-16  Eric Blake  <ebb9@byu.net>
21464         test-freading: clean up temporary file
21465         * tests/test-freading.c (main): Remove file on success, and use
21466         ASSERT more liberally.
21467         Reported by Jim Meyering.
21469 2009-11-16  Jim Meyering  <meyering@redhat.com>
21471         avoid new AC_REQUIRE expanded-before-required warnings
21472         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
21473         merely using it.
21474         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
21475         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
21477 2009-11-15  Simon Josefsson  <simon@josefsson.org>
21479         * tests/test-xalloc-die.c: New file.
21480         * modules/xalloc-die-tests: New file.
21481         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
21482         XFAIL_TESTS so it can be appended by modules.
21484 2009-11-15  Simon Josefsson  <simon@josefsson.org>
21486         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
21487         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
21489 2009-11-14  Eric Blake  <ebb9@byu.net>
21491         fnmatch: avoid compiler warning
21492         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
21493         to silence compiler warning about mismatch signedness in ?:.
21494         Reported by Robert Millan.
21496         intprops: add double-inclusion guard
21497         * lib/intprops.h: Allow idempotent includes.
21498         Suggested by Bruce Korb.
21500         openat: detect Solaris fchownat bug
21501         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
21502         penalizing glibc chownat when only lchownat is broken.
21503         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
21504         trailing slash bugs.
21505         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
21506         * modules/openat-tests (Files): Include more files.
21507         (Depends-on): Add mgetgroups, sleep, stat-time.
21508         (configure.ac): Add additional checks.
21509         (Makefile.am): Build new test.
21510         * tests/test-fchownat.c: New file.
21512         lchown: detect Solaris and FreeBSD bug
21513         * lib/lchown.c (rpl_lchown): Work around bug.
21514         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
21515         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
21516         * modules/unistd (Makefile.am): Populate it.
21517         * lib/unistd.in.h (lchown): Update declaration.
21518         * doc/posix-functions/lchown.texi (lchown): Document the bug.
21519         * modules/lchown-tests: New file.
21520         * tests/test-lchown.h (test_lchown): Likewise.
21521         * tests/test-lchown.c (main): Likewise.
21523         chown: detect Solaris and FreeBSD bug
21524         * lib/chown.c (rpl_chown): Work around bug.
21525         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
21526         (gl_PREREQ_CHOWN): Delete.
21527         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
21528         * modules/unistd (Makefile.am): Populate it.
21529         * lib/unistd.in.h (chown): Update declaration.
21530         * lib/lchown.c (chown): Update client.
21531         * modules/lchown (Depends-on): Add lstat.
21532         * doc/posix-functions/chown.texi (chown): Document the bug.
21533         * doc/posix-functions/getgroups.texi (getgroups): Document
21534         getgroups pitfall.
21535         * modules/chown-tests: New file.
21536         * tests/test-chown.h (test_chown): Likewise.
21537         * tests/test-chown.c (main): Likewise.
21539 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
21541         gnulib-tool: correctly detect absence of m4 directories
21542         * gnulib-tool: Avoid extra newline on data passed to wc -l.
21544 2009-11-14  Jim Meyering  <meyering@redhat.com>
21546         maint.mk: Prohibit inclusion of "xalloc.h" without use.
21547         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
21549 2009-11-14  John W. Eaton  <jwe@gnu.org>
21551         strftime.h: wrap funtion declaration in extern "C" block
21552         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
21554 2009-11-13  Eric Blake  <ebb9@byu.net>
21556         getgroups: avoid compiler warning
21557         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
21559         getgroups: work around FreeBSD bug
21560         * lib/getgroups.c (rpl_getgroups): Work around the bug.
21561         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
21562         * doc/posix-functions/getgroups.texi (getgroups): Document it.
21563         * tests/test-getgroups.c (main): Fix buffer overrun.
21565         getgroups: avoid compilation failure
21566         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
21567         * modules/getgroups (Depends-on): Add stdint.
21569 2009-11-13  Jim Meyering  <meyering@redhat.com>
21571         test-getgroups: avoid compilation failure
21572         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
21574 2009-11-13  Eric Blake  <ebb9@byu.net>
21576         mgetgroups: new module, taken from coreutils
21577         * modules/mgetgroups: New file.
21578         * lib/mgetgroups.h: Likewise.
21579         * lib/mgetgroups.c (mgetgroups): Likewise.
21580         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
21581         * MODULES.html.sh (Users and groups): Mention it.
21583         getgroups: don't expose GETGROUPS_T to user
21584         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
21585         an element at a time if GETGROUPS_T is wrong size.
21586         * lib/getugroups.h (getugroups): Change signature.
21587         * lib/unistd.in.h (getgroups): Likewise.
21588         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
21589         signature needs fixing.
21590         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
21591         AC_TYPE_GETGROUPS.
21592         * modules/group-member (Depends-on): Add getgroups.
21593         * lib/group-member.c (group_info, get_group_info): Use gid_t.
21594         (group_member): Rely on getgroups replacement.
21595         * lib/getugroups.c (getugroups): Use gid_t.
21596         * tests/test-getgroups.c (main): Likewise.
21597         * NEWS: Mention the signature change.
21598         * doc/posix-functions/getgroups.texi (getgroups): Mention the
21599         problem with signature.
21600         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
21601         GETGROUPS_T is still useful for setgroups.
21603         getgroups, getugroups: provide stubs for mingw
21604         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
21605         * lib/getugroups.c (getugroups): Likewise.
21606         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
21607         function.  Modernize replacement scheme.
21608         (gl_PREREQ_GETGROUPS): Delete.
21609         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
21610         * modules/getgroups (configure.ac): Declare witness.
21611         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
21612         * modules/unistd (Depends-on): Substitute witness.
21613         * lib/unistd.in.h (getgroups): Declare replacement.
21615         getgroups: avoid calling exit
21616         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
21617         drop xalloc.
21618         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
21619         dependencies.
21620         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
21621         exiting, in the rare case of malloc failure.
21623         getgroups: fix logic error
21624         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
21625         has more than 20 groups.
21626         * modules/getgroups-tests: New test.
21627         * tests/test-getgroups.c: New file.
21629 2009-11-13  Simon Josefsson  <simon@josefsson.org>
21631         * tests/test-base64.c: Improve.
21633 2009-11-13  Simon Josefsson  <simon@josefsson.org>
21635         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
21636         Blake <ebb9@byu.net>.
21638 2009-11-13  Simon Josefsson  <simon@josefsson.org>
21640         * tests/test-xvasprintf.c: Add %s%s related checks.
21642 2009-11-12  Eric Blake  <ebb9@byu.net>
21644         version-etc: match standards.texi style
21645         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
21646         and use <> only for URLs.
21648 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
21650         fts: do not fail on a submount during traversal
21651         * lib/fts.c (fts_build): Read the stat info again after opening
21652         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
21653         Original report at http://bugzilla.redhat.com/501848.
21655 2009-11-12  Jim Meyering  <meyering@redhat.com>
21657         bootstrap: sync from coreutils
21658         * build-aux/bootstrap (bootstrap_epilogue): New function.
21659         Use git_modules_config in one more place.  This make bootstrap's
21660         --gnulib-srcdir option more useful for testing.
21662         bootstrap: generalize autoheader check
21663         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
21664         AC_CONFIG_HEADERS.
21666 2009-11-11  Eric Blake  <ebb9@byu.net>
21668         mkfifoat: use new modules for Solaris and BSD bugs
21669         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
21670         * lib/mkfifoat.c (mknodat): Split...
21671         * lib/mknodat.c (mknodat): ...into new file.
21672         * modules/mkfifoat (Files): Ship new file.
21673         (Depends-on): Add mkfifo, mknod.
21674         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
21675         (Depends-on): Add symlink.
21676         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
21677         redundant with test_mkfifo.h.
21678         (do_mkfifoat, do_mknodat): New helpers.
21680         mknod: new module
21681         * modules/mknod: New file.
21682         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
21683         * lib/mknod.c (mknod): Likewise.
21684         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
21685         defaults.
21686         * modules/sys_stat (Makefile.am): Substitute them.
21687         * lib/sys_stat.in.h (mknod): Declare replacement.
21688         * MODULES.html.sh (Support for systems lacking POSIX:2008):
21689         Document it.
21690         * doc/posix-functions/mknod.texi (mknod): Likewise.
21691         * modules/mknod-tests: New test.
21692         * tests/test-mknod.c: Likewise.
21694         mkfifo: new module
21695         * modules/mkfifo: New file.
21696         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
21697         * lib/mkfifo.c (mkfifo): Likewise.
21698         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
21699         defaults.
21700         * modules/sys_stat (Makefile.am): Substitute them.
21701         * lib/sys_stat.in.h (mkfifo): Declare replacement.
21702         * MODULES.html.sh (Support for systems lacking POSIX:2008):
21703         Document it.
21704         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
21705         * modules/mkfifo-tests: New test.
21706         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
21707         from test-mkfifoat.c.
21708         * tests/test-mkfifo.c: New file.
21710         readlink: detect FreeBSD bug
21711         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
21712         slash on symlink.
21713         * doc/posix-functions/readlink.texi (readlink): Document the bug.
21714         * tests/test-readlink.h (test_readlink): Enhance test.
21716         symlink: detect FreeBSD bug
21717         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
21718         slash on symlink.
21719         * doc/posix-functions/symlink.texi (symlink): Document the bug.
21720         * tests/test-symlink.h (test_symlink): Enhance test.
21722 2009-11-10  Eric Blake  <ebb9@byu.net>
21724         link: detect FreeBSD bug
21725         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
21726         symlink.
21727         * doc/posix-functions/link.texi (link): Document the bug.
21728         * tests/test-link.h (test_link): Enhance test.
21729         * tests/test-linkat.c (main): Update caller.
21731         unlink, remove: detect FreeBSD bug
21732         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
21733         slash on symlink.
21734         * doc/posix-functions/unlink.texi (unlink): Document the bug.
21735         * doc/posix-functions/remove.texi (remove): Likewise.
21736         * tests/test-unlink.h (test_unlink): Enhance test.
21737         * tests/test-remove.c (main): Likewise.
21739 2009-11-09  Eric Blake  <ebb9@byu.net>
21741         rename: detect FreeBSD bug
21742         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
21743         slash on symlink.
21744         * modules/renameat-tests (Depends-on): Add filenamecat.
21745         * tests/test-rename.h (test_rename): Allow one more errno.
21746         * tests/test-renameat.c (main): Likewise.
21747         * doc/posix-functions/rename.texi (rename): Document the bug.
21749         open: detect FreeBSD bug
21750         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
21751         symlink.
21752         * doc/posix-functions/open.texi (open): Document the bug.
21753         * doc/posix-functions/utimes.texi (utimes): Likewise.
21754         * tests/test-open.h (test_open): Add parameters, and test symlink
21755         handling.
21756         * tests/test-open.c (main): Adjust caller.
21757         * tests/test-fcntl-safer.c (main): Likewise.
21758         * modules/open-tests (Depends-on): Add stdbool, symlink.
21759         * modules/fcntl-safer-tests (Depends-on): Likewise.
21760         * tests/test-openat.c (main): Add test-open tests.
21762         stat: detect FreeBSD bug
21763         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
21764         symlink.
21765         * doc/posix-functions/stat.texi (stat): Document the bug.
21766         * tests/test-stat.h (test_stat_func): Add argument.
21767         * tests/test-stat.c (main): Adjust caller.
21768         * tests/test-fstatat.c (main): Likewise.
21769         * modules/stat-tests (Depends-on): Add stdbool, symlink.
21770         Reported by Jim Meyering.
21772 2009-11-09  James Youngman  <jay@gnu.org>
21774         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
21775         * lib/strftime.c: Correct placement of #include "ignore-value.h".
21777 2009-11-08  Jim Meyering  <meyering@redhat.com>
21779         utimens: remove invalid futimesat call
21780         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
21781         It used the file descriptor of the target file as the DIR_FD
21782         parameter and NULL as the file name.  That caused failure with
21783         errno == EFAULT on FreeBSD-8.0-rc2
21785 2009-11-07  Eric Blake  <ebb9@byu.net>
21787         fflush, freadseek: use fseeko, not fseek
21788         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
21789         (clear_ungetc_buffer): Avoid potential problems on large files.
21790         * lib/freadseek.c (freadseek): Likewise.
21791         * modules/freadseek (Depends-on): Add fseeko.
21792         * modules/fseek (configure.ac): Set a witness.
21793         * tests/test-fflush.c (main): Use fseeko.
21794         * tests/test-fpurge.c (fseek): Disable link warning.
21795         * tests/test-freadable.c (fseek): Likewise.
21796         * tests/test-freading.c (fseek): Likewise.
21797         * tests/test-fseeko.c (fseek): Likewise.
21798         * tests/test-ftell.c (fseek): Likewise.
21799         * tests/test-ftello.c (fseek): Likewise.
21800         * tests/test-fwritable.c (fseek): Likewise.
21801         * tests/test-fwriting.c (fseek): Likewise.
21803 2009-11-06  Simon Josefsson  <simon@josefsson.org>
21805         * modules/memchr (Depends-on): Drop getpagesize dependency.
21807 2009-11-06  Simon Josefsson  <simon@josefsson.org>
21809         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
21810         Reported by Ludovic Courtès.
21811         * build-aux/pmccabe2html: Improve example usage.
21812         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
21814 2009-11-06  Jim Meyering  <meyering@redhat.com>
21816         do-release-commit-and-tag: New module.
21817         Automate the release-commit and tag process.
21818         * build-aux/do-release-commit-and-tag: New script, from coreutils.
21819         * modules/do-release-commit-and-tag: New file.
21820         * MODULES.html.sh (Support for maintaining and releasing): Add it.
21822 2009-11-06  Simon Josefsson  <simon@josefsson.org>
21824         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
21825         because test-select.c uses inet_pton.
21827 2009-11-06  Simon Josefsson  <simon@josefsson.org>
21829         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
21830         GETADDRINFO_LIB.  Bump serial number.
21831         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
21832         Suggested by Eric Blake <ebb9@byu.net>.
21834 2009-11-05  Eric Blake  <ebb9@byu.net>
21836         strtod: detect darwin bug
21837         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
21838         Reported by Leo Davis.
21840         freopen-safer: new module
21841         * modules/freopen-safer: New module.
21842         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
21843         * lib/freopen-safer.c (freopen_safer): New file.
21844         * lib/stdio-safer.h (freopen_safer): New declaration.
21845         * lib/stdio--.h (freopen): New override.
21846         * MODULES.html.sh (File stream based Input/Output): Mention it.
21847         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
21848         freopen-safer module.
21849         * doc/posix-functions/stderr.texi (stderr): Likewise.
21850         * doc/posix-functions/stdin.texi (stdin): Likewise.
21851         * doc/posix-functions/stdout.texi (stdout): Likewise.
21852         * modules/freopen-safer-tests: New test.
21853         * tests/test-reopen-safer.c: New file.
21855 2009-11-05  Jim Meyering  <meyering@redhat.com>
21857         maint.mk: Prohibit inclusion of "close-stream.h" without use.
21858         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
21860 2009-11-05  Simon Josefsson  <simon@josefsson.org>
21862         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
21864 2009-11-05  Simon Josefsson  <simon@josefsson.org>
21866         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
21868 2009-11-05  Simon Josefsson  <simon@josefsson.org>
21870         Fix link error.
21871         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
21872         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
21874 2009-11-05  Simon Josefsson  <simon@josefsson.org>
21876         * tests/test-func.c: Also test value of __func__.
21878 2009-11-05  Simon Josefsson  <simon@josefsson.org>
21880         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
21881         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
21883 2009-11-05  Bruno Haible  <bruno@clisp.org>
21885         Fix link error.
21886         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
21887         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
21888         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
21890 2009-11-05  Bruno Haible  <bruno@clisp.org>
21892         Tests for module 'inet_pton'.
21893         * modules/inet_pton-tests: New file.
21894         * tests/test-inet_pton.c: New file.
21896 2009-11-05  Bruno Haible  <bruno@clisp.org>
21898         Tests for module 'inet_ntop'.
21899         * modules/inet_ntop-tests: New file.
21900         * tests/test-inet_ntop.c: New file.
21902 2009-11-04  Eric Blake  <ebb9@byu.net>
21904         stdlib-safer: wrap all mkstemp variants
21905         * modules/mkostemp (configure.ac): Set witness.
21906         * modules/mkostemps (configure.ac): Likewise.
21907         * modules/mkstemps (configure.ac): Likewise.
21908         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
21909         (mkstemps_safer): Wrap more functions.
21910         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
21911         wrapping.
21912         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
21913         (mkstemps_safer): Implement the wrappers.
21915         mkstemps, mkostemps: new modules
21916         * modules/mkostemps: New module.
21917         * modules/mkstemps: Likewise.
21918         * lib/mkostemps.c (mkostemps): New file.
21919         * lib/mkstemps.c (mkstemps): Likewise.
21920         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
21921         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
21922         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
21923         * modules/stdlib (Makefile.am): Substitute them.
21924         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
21925         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
21926         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
21927         * doc/gnulib.texi (Glibc stdlib.h): Include them.
21928         * MODULES.html.sh (File system functions): Mention them.
21930         tempname: resync from glibc
21931         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
21932         same values for __GT_FILE as glibc.  Abort even when assertions
21933         are disabled.
21934         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
21935         match its value otherwise.  Allow idempotent inclusion.
21936         * lib/mkdtemp.c (mkdtemp): Adjust caller.
21937         * lib/mkostemp.c (mkostemp): Likewise.
21938         * lib/mkstemp.c (mkstemp): Likewise.
21939         * lib/tmpfile.c (tmpfile): Likewise.
21940         * NEWS: Document this.
21942         utimens: fix use of futimens on older Linux
21943         * lib/utimens.c (fdutimens): Use updated, rather than original,
21944         timespec to avoid bug in older Linux kernel.
21945         Reported by Simon Josefsson.
21947 2009-11-04  Bruno Haible  <bruno@clisp.org>
21949         Make num_processors more flexible and consistent.
21950         * lib/nproc.h (enum nproc_query): New type.
21951         (num_processors): Add a 'query' argument.
21952         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
21953         (num_processors): Add a 'query' argument. Test the value of the
21954         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
21955         mingw, count the number of CPUs available for the current process.
21956         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
21957         Check for sched_getaffinity and sched_getaffinity_np.
21958         * modules/nproc (Depends-on): Add c-ctype, extensions.
21959         * NEWS: Mention the change.
21961 2009-11-03  Bruno Haible  <bruno@clisp.org>
21963         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
21965 2009-11-03  Jim Meyering  <meyering@redhat.com>
21967         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
21968         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
21969         if it is defined.
21971 2009-11-02  Eric Blake  <ebb9@byu.net>
21973         mktime, timegm: share common declaration
21974         * lib/mktime-internal.h: New file.
21975         * lib/mktime.c: Use it rather than open-coding a declaration.
21976         * lib/timegm.c: Likewise.
21977         * modules/mktime (Files): Ship it.
21978         * modules/timegm (Files): Likewise.
21979         Suggested by Bruno Haible.
21981         test-update-copyright: update test to match script changes
21982         * tests/test-update-copyright.sh: Avoid hard-coding perl
21983         location.  Don't update *.bak created by earlier runs.
21985 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
21986             Simon Josefsson  <simon@josefsson.org>
21987             Bruno Haible  <bruno@clisp.org>
21989         Fix link error on Solaris 8.
21990         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
21991         also in libnsl. Define also INET_PTON_LIB.
21992         * modules/inet_pton (Link): New section.
21994 2009-11-02  Simon Josefsson  <simon@josefsson.org>
21995             Bruno Haible  <bruno@clisp.org>
21997         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
21998         * modules/inet_ntop (Link): New section.
21999         Reported by Boyan Kasarov <bkasarov@gmail.com>.
22001 2009-11-02  Eric Blake  <ebb9@byu.net>
22003         maint: avoid compiler warnings in m4 macros
22004         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
22005         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
22007 2009-11-02  Simon Josefsson  <simon@josefsson.org>
22009         * m4/pmccabe2html.m4: Remove file.
22010         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
22011         function.  Change maintainer.
22012         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
22013         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
22014         Courtès).
22016 2009-10-31  Eric Blake  <ebb9@byu.net>
22018         fseeko: fix m4 regression
22019         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
22020         regression from 2009-10-27.
22021         Reported by Ralf Wildenhues.
22023 2009-10-31  Jim Meyering  <meyering@redhat.com>
22025         inttostr: aesthetics and improved (compile-time) safety
22026         Define inttype_is_signed rather than inttype_is_unsigned,
22027         since the sole use is via "#if inttype_is_signed".
22028         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
22029         inttype_is_unsigned.
22030         * lib/offtostr.c (inttype_is_signed): Likewise.
22031         * lib/uinttostr.c (inttype_is_signed): Likewise.
22032         * lib/umaxtostr.c (inttype_is_signed): Likewise.
22033         * lib/inttostr.c (inttostr): Use verify to cross-check the
22034         inttype_is_signed value and the signedness of the actual type.
22035         * modules/inttostr (Depends-on): Add verify.
22037 2009-10-30  Eric Blake  <ebb9@byu.net>
22039         build: avoid compiler warnings
22040         * lib/fchmodat.c (lchmod): Mark unused variables.
22041         * lib/getopt.c (_getopt_initialize): Likewise.
22042         * lib/mktime.c (__mktime_internal): Provide prototype.
22043         * lib/inttostr.c (inttostr): Avoid compiler warning even with
22044         older gcc that do not understand #pragma GCC diagnostic.
22045         * lib/uinttostr.c (inttype_is_unsigned): Define.
22046         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
22048 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
22050         stat: fix compilation on AIX
22051         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
22052         only see struct stat64.
22054 2009-10-30  Eric Blake  <ebb9@byu.net>
22056         exclude: make more robust
22057         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
22058         rather than masking a coding bug.
22059         Suggested by Bruno Haible.
22061 2009-10-30  Jim Meyering  <meyering@redhat.com>
22063         perl scripts: remove #!/usr/bin/perl in favor of more portable...
22064         Rather than putting #!/usr/bin/perl on the first line,
22065         start with a variant of what's recommended by "man perlrun" that
22066         invokes the first "perl" program from your shell's search path.
22067         * build-aux/gitlog-to-changelog: Replace #!... as above.
22068         Add a "Local Variables" perl mode setting.
22069         Prompted by a patch from Ludovic Courtès.
22070         Improved by Eric Blake.
22071         * build-aux/useless-if-before-free: Likewise.
22072         * build-aux/announce-gen: Likewise.
22073         * build-aux/update-copyright: Likewise.
22075 2009-10-29  Eric Blake  <ebb9@byu.net>
22077         filenamecat-lgpl: adjust clients
22078         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
22079         filenamecat.
22080         * modules/renameat (Depends-on): Likewise.
22082         filenamecat: split into filenamecat-lgpl
22083         * modules/filenamecat-lgpl: New module.
22084         * modules/filenamecat (Files): Move library-safe files into
22085         filenamecat-lgpl.
22086         (Depends-on): Add filenamecat-lgpl.
22087         (configure.ac): Declare witness.
22088         * lib/filenamecat.h (file_name_concat): Only declare when using
22089         GPL module.
22090         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
22091         Move...
22092         * lib/filenamecat-lgpl.c: ...into new file.
22093         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
22094         (gl_FILE_NAME_CONCAT): Use it.
22095         * MODULES.html.sh (File system functions): Mention new module.
22097         argp: avoid memory leak
22098         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
22099         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
22100         base_name, since the latter malloc()s and can call exit().
22101         Leak introduced 2006-07-03.
22103         dirname-lgpl: adjust clients that don't need full dirname
22104         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
22105         * modules/filenamecat (Depends-on): Likewise.
22106         * modules/linkat (Depends-on): Likewise.
22107         * modules/mkancesdirs (Depends-on): Likewise.
22108         * modules/mkdir (Depends-on): Likewise.
22109         * modules/openat (Depends-on): Likewise.
22110         * modules/savewd (Depends-on): Likewise.
22111         * modules/rename (Depends-on): Likewise.
22112         (License): Relax license.
22113         * modules/mkdir-tests (Depends-on): Drop progname.
22114         (Makefile.am): Delete unneeded LDADD.
22115         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
22117         dirname: split into dirname-lgpl
22118         * modules/dirname-lgpl: New module.
22119         * modules/dirname (Files): Move library-safe files into
22120         dirname-lgpl.
22121         (Depends-on): Add dirname-lgpl.
22122         (configure.ac): Declare witness.
22123         * modules/double-slash-root (License): Relax license.
22124         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
22125         module.
22126         * lib/dirname.c (dir_len, mdir_name): Move...
22127         * lib/dirname-lgpl.c: ...into new file.
22128         * lib/basename.c (last_component, base_len): Move...
22129         * lib/basename-lgpl.c: ...into new file.
22130         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
22131         (gl_DIRNAME): Use it.
22132         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
22133         Mention new module.
22134         * modules/dirname-tests (Depends-on): Add progname.
22135         * tests/test-dirname.c (program_name): Delete.
22137         mkdir: make safe for libraries
22138         * modules/mkdir (Depends-on): Drop xalloc.
22139         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
22140         exit.
22142         tests: avoid some compiler warnings
22143         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
22144         literals.
22145         * tests/test-memchr.c (main): Avoid type mismatch.
22146         * tests/test-arpa_inet.c (main): Avoid unused parameters.
22147         * tests/test-base64.c (main): Likewise.
22148         * tests/test-getdelim.c (main): Likewise.
22149         * tests/test-gethostname.c (main): Likewise.
22150         * tests/test-getline.c (main): Likewise.
22151         * tests/test-netinet_in.c (main): Likewise.
22152         * tests/test-select.c (open_server_socket, main): Likewise.
22153         * tests/test-select-stdin.c (main): Likewise.
22154         * tests/test-sockets.c (main): Likewise.
22155         * tests/test-strsignal.c (main): Likewise.
22156         * tests/test-sys_select.c (main): Likewise.
22157         * tests/test-sys_socket.c (main): Likewise.
22158         * tests/test-u64.c (main): Likewise.
22159         * tests/test-xfprintf-posix.c (main): Likewise.
22160         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
22162         sockets: avoid compiler warning
22163         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
22165         maint: detect usage(1) and other suspicious exits
22166         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
22168 2009-10-29  Jim Meyering  <meyering@redhat.com>
22170         timespec: long-to-int truncation could make timespec_cmp malfunction
22171         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
22172         a multiple of 2^32 nanoseconds as no difference.
22174 2009-10-28  Jim Meyering  <meyering@redhat.com>
22176         fprintftime: wrap macro code argument in "do {...} while(0)"
22177         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
22178         cpy macro must be a statement that can be followed by a semicolon.
22179         Now that the else clause contains a comment and is hence longer
22180         than one line, I require curly braces.  That in turn requires
22181         that we wrap this code block in the standard do...while(0).
22183         fprintftime: remove stray semicolon from previous change
22184         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
22186         fprintftime: avoid a warning about ignored fwrite return value
22187         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
22188         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
22189         that is unsafe.
22190         * modules/fprintftime (Depends-on): Add ignore-value.
22192         exclude: avoid an unwarranted warning
22193         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
22195 2009-10-27  Eric Blake  <ebb9@byu.net>
22197         fseek: avoid compilation failure when fflush is replaced
22198         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
22199         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
22200         module is in use.
22201         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
22202         module is not in use; since REPLACE_FSEEK worked otherwise.
22203         (GNULIB_FTELLO): Likewise for ftell.
22204         Reported by Ian Beckwith and others.
22206 2009-10-27  Bruno Haible  <bruno@clisp.org>
22208         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
22209         Reported by Jim Meyering.
22211 2009-10-27  Jim Meyering  <jim@meyering.net>
22212             Bruno Haible  <bruno@clisp.org>
22214         Avoid warning despite dropping the return value of fwrite.
22215         * lib/unicodeio.c: Include ignore-value.h.
22216         (fwrite_success_callback): Explicitly ignore fwrite's return value.
22217         * modules/unicodeio (Depends-on): Add ignore-value.
22219 2009-10-26  Eric Blake  <ebb9@byu.net>
22221         areadlinkat: fix fallback path
22222         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
22223         pointer and zero.
22225 2009-10-22  Pádraig Brady  <P@draigBrady.com>
22227         Use a better IO block size for modern systems
22228         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
22229         * lib/md2.c: Likewise.
22230         * lib/md4.c: Likewise.
22231         * lib/md5.c: Likewise.
22232         * lib/sha1.c: Likewise.
22233         * lib/sha256.c: Likewise.
22234         * lib/sha512.c: Likewise.
22236 2009-10-22  Eric Blake  <ebb9@byu.net>
22238         tests: avoid several compiler warnings
22239         * tests/test-getcwd.c (main): Avoid buffer underflow.
22240         * tests/test-getdate.c (main): String literals are not safe with
22241         putenv, so use setenv.  Declare unused argument.
22242         * modules/getdate-tests (Depends-on): Add setenv.
22243         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
22244         problems with string literals in char *.
22245         * tests/test-hash.c (main): Avoid shadowing declaration.
22246         (insert_new): Treat string literals as char const *.
22247         * tests/test-getopt.h (test_getopt): Likewise.
22248         (getopt_loop): Alter types to minimize casting elsewhere.
22249         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
22250         (test_getopt_long_posix): Likewise.
22251         (do_getopt_long): Add wrapper to minimize casting.
22252         * tests/test-atexit.c (clear_temp_file): Use void.
22253         * tests/test-areadlink-with-size.c (main): Declare unused
22254         arguments.
22255         * tests/test-areadlink.c (main): Likewise.
22256         * tests/test-areadlinkat-with-size.c (main): Likewise.
22257         * tests/test-areadlinkat.c (main): Likewise.
22258         * tests/test-canonicalize-lgpl.c (main): Likewise.
22259         * tests/test-canonicalize.c (main): Likewise.
22260         * tests/test-dirent-safer.c (main): Likewise.
22261         * tests/test-dirname.c (main): Likewise.
22262         * tests/test-dup2.c (main): Likewise.
22263         * tests/test-fchdir.c (main): Likewise.
22264         * tests/test-fcntl-h.c (main): Likewise.
22265         * tests/test-fcntl-safer.c (main): Likewise.
22266         * tests/test-fdopendir.c (main): Likewise.
22267         * tests/test-fdutimensat.c (main): Likewise.
22268         * tests/test-fflush.c (main): Likewise.
22269         * tests/test-filenamecat.c (main): Likewise.
22270         * tests/test-filevercmp.c (main): Likewise.
22271         * tests/test-fopen-safer.c (main): Likewise.
22272         * tests/test-fopen.c (main): Likewise.
22273         * tests/test-fpending.c (main): Likewise.
22274         * tests/test-fpurge.c (main): Likewise.
22275         * tests/test-freading.c (main): Likewise.
22276         * tests/test-fstatat.c (main): Likewise.
22277         * tests/test-fsync.c (main): Likewise.
22278         * tests/test-futimens.c (main): Likewise.
22279         * tests/test-getndelim2.c (main): Likewise.
22280         * tests/test-gettimeofday.c (main): Likewise.
22281         * tests/test-getopt.c (main): Likewise.
22282         * tests/test-i-ring.c (main): Likewise.
22283         * tests/test-inttypes.c (main): Likewise.
22284         * tests/test-link.c (main): Likewise.
22285         * tests/test-lstat.c (main): Likewise.
22286         * tests/test-math.c (main): Likewise.
22287         * tests/test-md5.c (main): Likewise.
22288         * tests/test-memchr2.c (main): Likewise.
22289         * tests/test-memrchr.c (main): Likewise.
22290         * tests/test-mkdir.c (main): Likewise.
22291         * tests/test-mkdirat.c (main): Likewise.
22292         * tests/test-mkfifoat.c (main): Likewise.
22293         * tests/test-open.c (main): Likewise.
22294         * tests/test-openat-safer.c (main): Likewise.
22295         * tests/test-openat.c (main): Likewise.
22296         * tests/test-quotearg.c (main): Likewise.
22297         * tests/test-rawmemchr.c (main): Likewise.
22298         * tests/test-readlink.c (main): Likewise.
22299         * tests/test-remove.c (main): Likewise.
22300         * tests/test-rename.c (main): Likewise.
22301         * tests/test-renameat.c (main): Likewise.
22302         * tests/test-rmdir.c (main): Likewise.
22303         * tests/test-sha1.c (main): Likewise.
22304         * tests/test-signal.c (main): Likewise.
22305         * tests/test-sigaction.c (main): Likewise.
22306         * tests/test-stat.c (main): Likewise.
22307         * tests/test-stat-time.c (main): Likewise.
22308         * tests/test-stddef.c (main): Likewise.
22309         * tests/test-stdint.c (main): Likewise.
22310         * tests/test-stdio.c (main): Likewise.
22311         * tests/test-stdlib.c (main): Likewise.
22312         * tests/test-strchrnul.c (main): Likewise.
22313         * tests/test-strerror.c (main): Likewise.
22314         * tests/test-string.c (main): Likewise.
22315         * tests/test-strtod.c (main): Likewise.
22316         * tests/test-strverscmp.c (main): Likewise.
22317         * tests/test-symlink.c (main): Likewise.
22318         * tests/test-symlinkat.c (main): Likewise.
22319         * tests/test-sys_stat.c (main): Likewise.
22320         * tests/test-sys_time.c (main): Likewise.
22321         * tests/test-time.c (main): Likewise.
22322         * tests/test-unistd.c (main): Likewise.
22323         * tests/test-unlink.c (main): Likewise.
22324         * tests/test-unlinkat.c (main): Likewise.
22325         * tests/test-utimens.c (main): Likewise.
22326         * tests/test-utimensat.c (main): Likewise.
22327         * tests/test-version-etc.c (main): Likewise.
22328         * tests/test-wchar.c (main): Likewise.
22329         * tests/test-wctype.c (main): Likewise.
22330         * tests/test-xprintf-posix.c (main): Likewise.
22331         * tests/test-posixtm.c (main): Likewise.
22332         (STREQ): Delete unused macro.
22333         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
22334         shadowed variables.
22335         * tests/test-memchr.c (main): Likewise.
22337 2009-10-21  Eric Blake  <ebb9@byu.net>
22339         areadlinkat: avoid failure on older glibc
22340         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
22341         rather than mis-comparing 0 against FUNC_RESULT of char*.
22343 2009-10-21  Bruno Haible  <bruno@clisp.org>
22345         * modules/stpncpy (License): Relicense under LGPLv2+.
22346         Reported by David Lutterkort <lutter@redhat.com>.
22348 2009-10-20  Eric Blake  <ebb9@byu.net>
22350         utimensat: work around Solaris 9 bug
22351         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
22352         has trailing slash bugs.
22353         * tests/test-lutimens.h (test_lutimens): Enhance test.
22354         * tests/test-utimens.h (test_utimens): Likewise.
22355         * doc/posix-functions/utime.texi (utime): Enhance documentation.
22356         * doc/posix-functions/utimes.texi (utimes): Likewise.
22357         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
22358         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
22359         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
22360         * doc/posix-functions/futimens.texi (futimens): Likewise.
22362         fdutimensat: new module
22363         * modules/fdutimensat: New file.
22364         * lib/fdutimensat.c (fdutimensat): Likewise.
22365         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
22366         * MODULES.html.sh (File system functions): Mention module.
22367         * modules/fdutimensat-tests: New test.
22368         * tests/test-fdutimensat.c: Likewise.
22370         doc: regenerate INSTALL
22371         * doc/INSTALL: Reflect recent autoconf update.
22372         * doc/INSTALL.ISO: Likewise.
22373         * doc/INSTALL.UTF-8: Likewise.
22375 2009-10-20  Pádraig Brady  <P@draigBrady.com>
22377         acl: warn if ACL support is not detected
22378         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
22380 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
22382         * lib/nproc.h: Add extern "C" block for C++.
22384 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
22385             Bruno Haible  <bruno@clisp.org>
22387         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
22388         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
22389         * doc/posix-functions/isalpha.texi: Likewise.
22390         * doc/posix-functions/isblank.texi: Likewise.
22391         * doc/posix-functions/iscntrl.texi: Likewise.
22392         * doc/posix-functions/isdigit.texi: Likewise.
22393         * doc/posix-functions/isgraph.texi: Likewise.
22394         * doc/posix-functions/islower.texi: Likewise.
22395         * doc/posix-functions/isprint.texi: Likewise.
22396         * doc/posix-functions/ispunct.texi: Likewise.
22397         * doc/posix-functions/isspace.texi: Likewise.
22398         * doc/posix-functions/isupper.texi: Likewise.
22399         * doc/posix-functions/isxdigit.texi: Likewise.
22401 2009-10-18  Bruno Haible  <bruno@clisp.org>
22403         Tests for module 'isblank'.
22404         * modules/isblank-tests: New file.
22405         * tests/test-isblank.c: New file.
22407         New module 'isblank'.
22408         * lib/isblank.c: New file.
22409         * m4/isblank.m4: New file.
22410         * modules/isblank: New file.
22411         * doc/posix-functions/isblank.texi: Mention the new module.
22413 2009-10-18  Bruno Haible  <bruno@clisp.org>
22415         New module 'ctype'.
22416         * lib/ctype.in.h: New file.
22417         * m4/ctype.m4: New file.
22418         * modules/ctype: New file.
22419         * doc/posix-headers/ctype.texi: Mention the new module.
22421 2009-10-18  Jim Meyering  <meyering@redhat.com>
22423         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
22424         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
22425         right after its initialization, rather than farther down.
22426         Keeping these in close proximity makes it easier to ensure
22427         that each such variable is initialized.  E.g.,
22429             LIB_CLOCK_GETTIME=
22430             AC_SUBST([LIB_CLOCK_GETTIME])
22432         This change also increments these serial numbers.
22433         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
22434         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
22435         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
22437 2009-10-18  Bruno Haible  <bruno@clisp.org>
22439         Don't let environment variables perturb build.
22440         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
22441         (gl_PREREQ_GETHRXTIME): ... not here.
22443 2009-10-18  Bruno Haible  <bruno@clisp.org>
22445         Avoid symlink attack in localcharset module.
22446         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
22447         (O_NOFOLLOW): Define fallback.
22448         (get_charset_aliases): Don't open the file if it is a symbolic link.
22449         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
22450         gl_FCNTL_H.
22451         (gl_FCNTL_H): Require it.
22452         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
22453         * modules/localcharset (Files): Add m4/fcntl_h.m4.
22454         Reported by Fergal Glynn <fglynn@veracode.com>.
22456 2009-10-18  Bruno Haible  <bruno@clisp.org>
22458         Implement nproc for mingw.
22459         * lib/nproc.c: Include <windows.h>
22460         (num_processors): On native Windows platforms, try GetSystemInfo.
22462 2009-10-18  Bruno Haible  <bruno@clisp.org>
22464         Implement nproc for IRIX.
22465         * lib/nproc.c: Include <sys/sysmp.h>.
22466         (num_processors): On IRIX systems, try sysmp.
22467         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
22469 2009-10-18  Bruno Haible  <bruno@clisp.org>
22471         Implement nproc for HP-UX.
22472         * lib/nproc.c: Include <sys/pstat.h>
22473         (num_processors): On HP-UX systems, try pstat_getdynamic.
22474         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
22475         pstat_getdynamic.
22477 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
22478             Bruno Haible  <bruno@clisp.org>
22480         Implement nproc for NetBSD, OpenBSD.
22481         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
22482         (ARRAY_SIZE): New macro.
22483         (num_processors): On BSD systems, try sysctl of HW_NCPU.
22484         * m4/nproc.m4: New file.
22485         * modules/nproc (Files): Add m4/nproc.m4.
22486         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
22487         (Makefile.am): Instead, augment lib_SOURCES.
22489 2009-10-18  Bruno Haible  <bruno@clisp.org>
22491         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
22492         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
22493         sys/param.h.
22495 2009-10-16  Eric Blake  <ebb9@byu.net>
22497         utimensat: new module
22498         * modules/utimensat: New file.
22499         * lib/utimensat.c (utimensat): Likewise.
22500         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
22501         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
22502         so we can work around Linux bugs.
22503         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
22504         * modules/sys_stat (Makefile.am): Substitute them.
22505         * lib/sys_stat.in.h (utimensat): Declare it.
22506         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
22507         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
22508         * modules/utimensat-tests: New test.
22509         * tests/test-utimensat.c: Likewise.
22511         utimens: let lutimens work on non-symlinks
22512         * lib/utimens.c (lutimens): Fall back to utimens rather than
22513         failing with ENOSYS, when file is not a symlink.
22514         (utimens): Reduce redirection.
22515         * tests/test-lutimens.h (test_lutimens): Update test to cover
22516         non-symlinks.
22517         * tests/test-utimens.h (test_utimens): Update test to cover
22518         symlinks.
22519         * tests/test-utimens.c (main): Update caller.
22521         utimens: cache whether utimensat syscall works
22522         * lib/utimens.c (utimensat_works_really): New cache variable.
22523         (fdutimens, lutimens): Use it to avoid failing syscall.
22525         test-stat-time, test-utimens: improve portability
22526         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
22527         ext4 on alpha, and for cygwin.
22528         * tests/test-utimens-common.h: New file.
22529         (nap): Factor delays into single function.
22530         * tests/test-lutimens.h (test_lutimens): Use new header.
22531         * tests/test-futimens.h (test_futimens): Likewise.
22532         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
22533         timestamps to occur from same machine, as was done previously for
22534         test_utimens.
22535         * modules/utimens-tests (Files): Ship new file.
22536         * modules/futimens-tests (Files): Likewise.
22537         Reported in part by Jim Meyering.
22539         sys_stat: sort replacement declarations
22540         * lib/sys_stat.in.h: Sort declarations.
22541         * lib/futimens.c (futimens): Fix typo.
22543 2009-10-15  Jim Meyering  <meyering@redhat.com>
22545         don't let environment settings perturb build
22546         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
22547         could cause a configure-time and/or build-time malfunction.
22548         Typically, a configure-time function-in-library test is performed
22549         via code like this:
22551           LIB_VAR=
22552           AC_SUBST([LIB_VAR])
22553           prefix_saved_LIBS=$LIBS
22554             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
22555                        [test "$ac_cv_search_FUNC" = "none required" ||
22556                         LIB_VAR=$ac_cv_search_FUNC])
22557           LIBS=$prefix_saved_LIBS
22559         However, in each of the files affected by this change, the LIB_VAR=
22560         initialization was omitted.  Thus, when set in the environment, its
22561         value would propagate into generated Makefiles when FUNC is not found
22562         in LIB_NAME.
22563         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
22564         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
22565         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
22567 2009-10-14  Eric Blake  <ebb9@byu.net>
22569         fchdir: avoid infinite recursion in mingw
22570         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
22571         recursing.
22573         test-stat-time: port to mingw
22574         * tests/test-stat-time.c (force_unlink): Return a value.
22575         (test_ctime) [W32]: Fix compilation error.
22576         (nap): Don't call usleep with too large an argument.  Use
22577         force_unlink.
22578         * doc/pastposix-functions/usleep.texi (usleep): Document the
22579         portability issue.
22581 2009-10-13  Jim Meyering  <meyering@redhat.com>
22583         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
22584         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
22585         * modules/pipe-filter-ii: Likewise.
22586         * modules/sys_socket-tests: Likewise.
22587         * modules/tsearch-tests: Likewise.
22588         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
22589         (check): Depend on it.
22591 2009-10-12  Eric Blake  <ebb9@byu.net>
22593         utimens-tests: port to NFS file systems
22594         * tests/test-utimens.h (test_utimens): Refactor utimecmp
22595         comparisons to avoid spurious failures from timestamp drift
22596         between NFS machines.
22598 2009-10-12  Eric Blake  <ebb9@byu.net>
22600         stat-time-tests: minor cleanups
22601         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
22602         * tests/test-stat-time.c (nap): Separate assignment from call.
22603         Suggested by Paolo Bonzini and Bruno Haible.
22605         sys_stat: guarantee struct timespec
22606         * lib/sys_stat.in.h (includes): Always include <time.h>
22607         * modules/sys_stat (Depends-on): Add time.
22608         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
22609         mode_t permission values.
22610         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
22611         get at subsecond timestamps.
22613 2009-10-10  Eric Blake  <ebb9@byu.net>
22615         futimens: new module
22616         * modules/futimens: New file.
22617         * lib/futimens.c (futimens): Likewise.
22618         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
22619         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
22620         we can work around Linux bugs.
22621         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
22622         * modules/sys_stat (Makefile.am): Substitute them.
22623         * lib/sys_stat.in.h (futimens): Declare it.
22624         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
22625         * doc/posix-functions/futimens.texi (futimens): Likewise.
22626         * modules/futimens-tests: New test.
22627         * tests/test-futimens.c: Likewise.
22629         utimens: introduce fdutimens
22630         * lib/utimens.h (fdutimens): New prototype.
22631         * lib/utimens.c (gl_futimens): Move guts...
22632         (fdutimens): ...to new interface.
22633         * tests/test-utimens.c (do_fdutimens): Use it.
22635         utimens: add UTIME_NOW and UTIME_OMIT support
22636         * lib/utimens.c (validate_timespec, update_timespec): New helper
22637         functions.
22638         (gl_futimens, lutimens): Use them.
22639         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
22640         stdbool, sys_stat.
22641         (Link): Mention resulting library dependency.
22642         * modules/utimecmp (Link): Likewise.
22643         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
22644         (Makefile.am): Pick up library dependency.
22645         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
22646         definition.
22647         * tests/test-sys_stat.c: Test the definitions.
22648         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
22649         * NEWS: Document library dependency.
22651         utimecmp: support symlink timestamps
22652         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
22653         hashing when possible.  Use pathconf when available.
22654         (SYSCALL_RESOLUTION): Recognize tighter resolution.
22655         * modules/utimecmp (Depends-on): Add lstat.
22657         utimens: add lutimens interface
22658         * lib/utimens.c (lutimens): New function.
22659         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
22660         * lib/utimens.h (lutimens): Declare new interface.
22661         * tests/test-utimens.c (main): Enhance test.
22662         * tests/test-lutimens.h (test_lutimens): New file.
22663         * modules/utimens-tests (Files): Distribute it.
22664         (Depends-on): Add symlink.
22665         (configure.ac): Check for usleep.
22667         utimens: validate futimens usage
22668         * lib/utimens.c (gl_futimens): Require valid fd up front, using
22669         fewer syscalls on failure later on.  Avoid compiler warning on
22670         mingw.
22671         * modules/utimens (Depends-on): Add dup2.
22673         utimens: add test
22674         * modules/utimens-tests: New test.
22675         * tests/test-utimens.h: New file.
22676         * tests/test-futimens.h: Likewise.
22677         * tests/test-utimens.c: Likewise.
22679         doc: mention timestamp portability issues
22680         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
22681         instead.
22682         * doc/posix-functions/utime.texi (utime): Likewise.
22683         * doc/posix-functions/utimes.texi (utimes): Likewise.
22684         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
22685         instead.
22686         * doc/posix-functions/futimens.texi (futimens): Mention utimens
22687         module.
22688         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
22689         Mention weakness with symlink timestamps.
22690         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
22691         to utimensat/futimens instead.
22692         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
22694         test-dup2: enhance test
22695         * tests/test-dup2.c (main): Also check AT_FDCWD.
22697         test-stat-time: avoid more spurious failures
22698         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
22699         xfs; and avoid race if the two timestamps cross quantization edge.
22701         relocatable: prefer 'file system' over 'filesystem'
22702         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
22703         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
22704         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
22705         * doc/relocatable.texi (Enabling Relocatability): Likewise.
22706         * lib/relocatable.c (compute_curr_prefix): Likewise.
22708 2009-10-10  Jim Meyering  <meyering@redhat.com>
22710         stat-time-tests: check for the usleep function
22711         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
22713 2009-10-10  Bruno Haible  <bruno@clisp.org>
22715         * modules/xnanosleep: Put the Link section after the Include section.
22717 2009-10-09  Eric Blake  <ebb9@byu.net>
22719         dup2: work around FreeBSD 6.1 bug
22720         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
22721         * doc/posix-functions/dup2.texi (dup2): Document it.
22722         Reported by Nelson H. F. Beebe and Jim Meyering.
22724         test-stat-time: port to buggy NFS clients
22725         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
22726         (test_ctime): Also skip test if mtime and ctime are skewed.
22728         maint: prefer 'file system' over 'filesystem'
22729         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
22730         * doc/posix-functions/lstat.texi (lstat): Likewise.
22731         * lib/file-has-acl.c (file_has_acl): Likewise.
22732         * lib/fwriteerror.c [TEST]: Likewise.
22733         * tests/test-areadlink.h (test_areadlink): Likewise.
22734         * tests/test-areadlinkat-with-size.c (main): Likewise.
22735         * tests/test-areadlinkat.c (main): Likewise.
22736         * tests/test-canonicalize-lgpl.c (main): Likewise.
22737         * tests/test-canonicalize.c (main): Likewise.
22738         * tests/test-fstatat.c (main): Likewise.
22739         * tests/test-linkat.c (main): Likewise.
22740         * tests/test-lstat.h (test_lstat_func): Likewise.
22741         * tests/test-mkdir.h (test_mkdir): Likewise.
22742         * tests/test-readlink.h (test_readlink): Likewise.
22743         * tests/test-remove.c (main): Likewise.
22744         * tests/test-rename.h (test_rename): Likewise.
22745         * tests/test-renameat.c (main): Likewise.
22746         * tests/test-rmdir.h (test_rmdir_func): Likewise.
22747         * tests/test-symlink.h (test_symlink): Likewise.
22748         * tests/test-symlinkat.c (main): Likewise.
22749         * tests/test-unlink.h (test_unlink_func): Likewise.
22750         * tests/test-unlinkat.c (main): Likewise.
22752         maint: make realtime library usage explicit
22753         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
22754         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
22755         * modules/settime (Link): Likewise.
22756         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
22758         test-stat-time: speed up execution
22759         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
22760         warning on mingw.
22761         (nap): New helper function.
22762         (prepare_test): Use it to reduce sleep time.
22763         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
22764         execution.
22765         * modules/stat-time-tests (configure.ac): Check for usleep.
22767 2009-10-09  Jim Meyering  <meyering@redhat.com>
22769         selinux-h: always use getfilecon wrappers
22770         * lib/getfilecon.c: New file.
22771         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
22772         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
22773         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
22774         (fgetfilecon): Provide a stub.
22775         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
22776         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
22777         file unconditionally.
22778         When <selinux/selinux.h> is found, arrange to use wrappers.
22779         * modules/selinux-h (Files): Add getfilecon.c.
22780         (Makefile.am): Substitute include-next-related bits
22781         into the now-always-generated selinux/selinux.h file.
22782         * doc/glibc-functions/lgetfilecon.texi: New file.
22783         * doc/glibc-functions/fgetfilecon.texi: New file.
22784         * doc/glibc-functions/getfilecon.texi: New file.
22785         * doc/glibc-functions/getfilecon-desc.texi: New file.
22786         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
22787         which to pull in the new files.
22788         * MODULES.html.sh (Misc): Add selinux-h.
22790 2009-10-08  Jim Meyering  <meyering@redhat.com>
22792         unistd: fix comment typo
22793         * lib/unistd.in.h (euidaccess): Fix a comment typo.
22795 2009-10-08  Eric Blake  <ebb9@byu.net>
22797         areadlink: use SIZE_MAX consistently
22798         * modules/areadlink (Depends-on): Add stdint.
22799         * modules/areadlink-with-size (Depends-on): Likewise.
22800         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
22801         gives NULL; drop sys/types, since unistd gives size_t; and add
22802         stdint for SIZE_MAX.
22803         (SIZE_MAX): Rely on headers.
22804         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
22805         and add stdint.
22806         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
22807         (SIZE_MAX): Likewise.
22808         (INITIAL_BUF_SIZE): Turn into enum.
22809         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
22811 2009-10-08  Jim Meyering  <meyering@redhat.com>
22813         areadlinkat: avoid compilation failure
22814         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
22815         Fix typo in comment.
22817 2009-10-07  Eric Blake  <ebb9@byu.net>
22819         areadlinkat-with-size: new module
22820         * modules/areadlinkat-with-size: New module.
22821         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
22822         * lib/areadlink.h (areadlinkat): Declare it.
22823         * MODULES.html.sh (File system functions): Mention it.
22824         * modules/areadlinkat-with-size-tests: New test.
22825         * tests/test-areadlinkat-with-size.c: New file.
22827         xreadlinkat: new module
22828         * modules/xreadlinkat: New module.
22829         * lib/xreadlinkat.c (xreadlinkat): New file.
22830         * lib/xreadlink.h (xreadlinkat): Declare it.
22831         * MODULES.html.sh (File system functions): Mention it.
22833         areadlinkat: new module
22834         * lib/at-func.c (FUNC_FAIL): New define.
22835         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
22836         * modules/areadlinkat: New module.
22837         * lib/linkat.c (areadlinkat): Move...
22838         * lib/areadlinkat.c (areadlinkat): ...to new file.
22839         * lib/areadlink.h (areadlinkat): Declare it.
22840         * modules/linkat (Depends-on): Add areadlinkat.
22841         * MODULES.html.sh (File system functions): Mention it.
22842         * modules/areadlinkat-tests: New test.
22843         * tests/test-areadlinkat.c: New file.
22845         areadlink, areadlink-with-size: add tests
22846         * modules/areadlink-tests: New test.
22847         * modules/areadlink-with-size-tests: Likewise.
22848         * tests/test-areadlink.h: New file.
22849         * tests/test-areadlink.c: Likewise.
22850         * tests/test-areadlink-with-size.c: Likewise.
22852         maint: minor cleanups
22853         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
22854         _UNUSED_PARAMETER_ instead.
22855         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
22856         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
22857         * modules/linkat-tests (Files): Distribute test-link.h.
22859         openat, utimens: whitespace cleanup
22860         * lib/openat.c: Prefer space throughout, rather than mix of 8
22861         spaces vs. tabs.
22862         * lib/at-func.c: Likewise.
22863         * lib/utimens.c: Likewise.
22865         openat: avoid using wrong fd
22866         * lib/openat.c (openat_permissive): Reject user's fd if saving the
22867         working directory chooses same fd.
22868         * lib/at-func.c (AT_FUNC_NAME): Likewise.
22870         mkdir, mkdirat: fix cygwin 1.5.x bug
22871         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
22872         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
22873         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
22874         bug.
22875         (gl_PREREQ_MKDIR): Delete unused macro.
22876         * modules/mkdir (Files): Track file rename.
22877         (configure.ac): Update macro name.
22878         * modules/openat (Depends-on): Add mkdir.
22879         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
22881         mkdir, mkdirat: add tests
22882         * modules/mkdir-tests: New test.
22883         * tests/test-mkdir.h: New file.
22884         * tests/test-mkdir.c: Likewise.
22885         * tests/test-mkdirat.c: Likewise.
22886         * modules/openat-tests (Files): Add new files.
22887         (Makefile.am): Run new test.
22889 2009-10-06  Eric Blake  <ebb9@byu.net>
22891         doc: tweak *at function documentation
22892         * doc/posix-functions/faccessat.texi (faccessat): Mention
22893         known issue with replacement.
22894         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
22895         * doc/posix-functions/linkat.texi (linkat): Likewise.
22896         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
22897         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
22898         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
22899         * doc/posix-functions/renameat.texi (renameat): Likewise.
22900         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
22902         openat: fix GNU/Hurd bug in unlinkat
22903         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
22904         broken.
22905         * doc/posix-functions/unlink.texi (unlink): Document this.
22906         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
22908         fdopendir: fix GNU/Hurd bug
22909         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
22910         allowing non-directory fds.
22911         * lib/fdopendir.c (rpl_fdopendir): Work around it.
22912         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
22913         * modules/dirent (Makefile.am): Substitute it.
22914         * lib/dirent.in.h (fdopendir): Declare replacement.
22915         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
22916         * tests/test-fdopendir.c (main): Test something other than
22917         /dev/null, since on Hurd that behaves like a directory.
22919         test-symlink: port to GNU/Hurd
22920         * tests/test-symlink.h (test_symlink): Relax expected errno.
22922         doc: tweak more cygwin information
22923         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
22924         now compatible with glibc.
22925         * doc/posix-functions/getopt.texi (getopt): Likewise.
22927         getopt-gnu: add another test
22928         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
22929         guarantee behavior relied on by m4.
22930         * tests/test-getopt.c (main): Use it.
22931         * modules/getopt-posix-tests (Depends-on): Add setenv.
22932         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
22934         getopt: fix compilation on darwin
22935         * lib/getopt.in.h (includes): Leave breadcrumbs during system
22936         include.
22937         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
22938         Reported by Ludovic Courtès.
22940 2009-10-06  Bruno Haible  <bruno@clisp.org>
22942         * modules/size_max (Description): Discourage its use.
22943         Reported by Simon Josefsson.
22945 2009-10-06  Jim Meyering  <meyering@redhat.com>
22947         linkat: avoid compilation failure
22948         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
22950 2009-10-05  Eric Blake  <ebb9@byu.net>
22952         linkat: support Linux 2.6.17
22953         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
22954         linkat on Linux, but allow cache variable override.
22955         * lib/linkat.c (rpl_linkat): Define override.
22956         * modules/linkat (Depends-on): Add symlinkat.
22957         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
22958         * modules/unistd (Makefile.am): Substitute it.
22959         * lib/unistd.in.h (linkat): Declare replacement.
22960         Reported by Pádraig Brady.
22962         quotearg: port test to systems with C.UTF-8 locale
22963         * tests/test-quotearg.c (struct result_strings): Add another
22964         member, differentiating between C.ASCII and C.UTF-8 handling.
22965         (compare_strings): Add parameter.
22966         (main): Adjust all callers.
22968         getopt: avoid clash with FreeBSD _getopt_internal
22969         * lib/getopt.in.h (_getopt_internal): Override the name.
22970         * lib/getopt_int.h (includes): Pick up any overrides.
22971         Reported by Reuben Thomas.
22973         hash: allow C89 compilation
22974         * lib/hash.c (check_tuning): Move declaration before statement.
22975         Reported by Reuben Thomas.
22977 2009-10-05  Karl Berry  <karl@gnu.org>
22979         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
22981 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
22982             Bruno Haible  <bruno@clisp.org>
22984         * lib/uname.c (uname): Use a table-driven algorithm to compute
22985         Windows NT versions.
22987 2009-10-04  Bruno Haible  <bruno@clisp.org>
22989         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
22990         program_invocation_short_name.
22991         * modules/progname (configure.ac): Test for presence of
22992         program_invocation_short_name.
22993         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
22995 2009-10-04  Bruno Haible  <bruno@clisp.org>
22997         * lib/progname.c (set_program_name): Fix comment.
22998         Reported by Jim Meyering.
23000 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
23001             Bruno Haible  <bruno@clisp.org>
23003         * lib/uname.c: Include <string.h>.
23004         (uname): Do only one call to GetVersionEx in the common case.
23006 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
23007             Bruno Haible  <bruno@clisp.org>
23009         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
23010         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
23011         (uname): Add support for Windows CE and various non-x86 CPU types.
23013 2009-10-03  Bruno Haible  <bruno@clisp.org>
23015         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
23016         invocation to tests/configure.ac.
23017         Reported by Ian Beckwith <ianb@erislabs.net>.
23019 2009-10-02  Eric Blake  <ebb9@byu.net>
23021         fchdir: avoid compiler warning
23022         * lib/fchdir.c (canonicalize_file_name)
23023         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
23025         test-open: support mingw errno values
23026         * tests/test-open.h (test_open): Relax test.
23027         * tests/test-fopen.h (test_fopen): Likewise.
23028         * tests/test-openat-safer.c (main): Likewise.
23030         open: fix opening directory on mingw
23031         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
23033         test-open: on GNU/Hurd, /dev/null is a directory
23034         * tests/test-fopen.h (main): Rename...
23035         (test_fopen): ...to this.  Use a guaranteed non-directory when
23036         confirming open behavior on trailing slash.
23037         * tests/test-openat-safer.c (main): Likewise.
23038         * tests/test-open.h (main): Likewise....
23039         (test_open): ...to this.
23040         * tests/test-fopen.c (main): Adjust caller.
23041         * tests/test-fopen-safer.c (main): Likewise.
23042         * tests/test-open.c (main): Likewise.
23043         * tests/test-fcntl-safer.c (main): Likewise.
23044         Reported by Samuel Thibault.
23046         rename, fchdir: don't ignore chdir failure
23047         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
23048         * lib/rename.c (rpl_rename) [W32]: Likewise.
23049         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
23050         an empty destination directory if source cannot be renamed,
23051         although there is still possibility for failure.
23052         * doc/posix-functions/rename.texi (rename): Document the race.
23053         Reported by Jim Meyering.
23055         maint: cleanup whitespace in recent commits
23056         * lib/rename.c (rpl_rename): Remove tabs.
23057         * tests/test-link.h (test_link): Likewise.
23058         * lib/fchdir.c (get_name): Likewise.
23059         Reported by Jim Meyering.
23061 2009-10-02  Ben Pfaff  <blp@gnu.org>
23063         relocatable-prog-wrapper: Add missing dependency on
23064         double-slash-root.
23065         * modules/relocatable-prog-wrapper: Add dependency.
23066         Reported by Ian Beckwith <ianb@erislabs.net>.
23068 2009-10-02  Eric Blake  <ebb9@byu.net>
23070         renameat: fix Solaris bugs
23071         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
23072         needed fixing.
23073         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
23074         * modules/stdio (Makefile.am): Substitute it.
23075         * lib/stdio.in.h (renameat): Declare replacement.
23076         * lib/renameat.c (rpl_renameat): Implement fix.
23078         renameat: new module
23079         * modules/renameat: New file.
23080         * lib/renameat.c (renameat): Likewise.
23081         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
23082         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
23083         * modules/stdio (Makefile.am): Substitute them.
23084         * lib/stdio.in.h (renameat): Declare it.
23085         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
23086         * doc/posix-functions/renameat.texi (renameat): Likewise.
23087         * modules/renameat-tests: New test.
23088         * tests/test-renameat.c: Likewise.
23090         rename: fix mingw bugs
23091         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
23092         directory overwrite bugs.
23094         rename: fix another cygwin 1.5 bug
23095         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
23096         checks.
23097         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
23098         unnecessary cygwin workarounds.  Also work around bug with moving
23099         full directory onto an empty one.
23100         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
23102         rename-dest-slash: merge into rename module
23103         * modules/rename-dest-slash (Status): Mark obsolete.
23104         (Depends-on): Add rename.
23105         (Files): Let rename do it all.
23106         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
23107         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
23108         * m4/rename-dest-slash.m4: ...so this file can be deleted.
23109         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
23110         * lib/rename.c (rpl_rename): Update comments.
23112         rename: fix cygwin 1.5.x bugs
23113         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
23114         * lib/rename.c (rpl_rename): Work around them.
23115         * modules/rename (Depends-on): Add same-inode.
23117         rename: fix Solaris 10 bug
23118         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
23119         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
23120         was the only bug.
23122         rename: fix Solaris 9 bug
23123         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
23124         on non-directory.  Avoid calling exit.
23125         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
23126         strdup.
23127         * modules/rename-tests (Depends-on): Drop lstat.
23128         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
23129         (gl_PREREQ_RENAME): Delete unused macro.
23131         rename-dest-slash: fix NetBSD bug
23132         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
23133         links.
23134         * modules/rename-dest-slash (Depends-on): Add same-inode.
23136         rename-tests: new test, exposes several platform bugs
23137         * modules/rename-tests: New file.
23138         * tests/test-rename.h: Likewise.
23139         * tests/test-rename.c: Likewise.
23140         * doc/posix-functions/rename.texi (rename): Improve documentation,
23141         including bugs that will eventually be fixed in gnulib.
23143 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
23145         * lib/uname.c: Include <stdlib.h>
23146         (uname): Assume version info is available.
23148 2009-10-02  Jim Meyering  <meyering@redhat.com>
23150         gnu-web-doc-update: correct --help output
23151         * build-aux/gnu-web-doc-update: Make --help output relevant.
23153         gnu-web-doc-update: add standard options
23154         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
23156         gnu-web-doc-update: New module.
23157         Use this script to automatically update the on-line web documentation
23158         for your GNU project at http://www.gnu.org/software/$pkg/manual/
23159         * modules/gnu-web-doc-update: New file, from coreutils.
23160         * build-aux/gnu-web-doc-update: New script.
23162 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
23164         link: LoadLibrary is not needed.
23165         * lib/link.c: Use GetModuleHandle.
23167 2009-10-01  Eric Blake  <ebb9@byu.net>
23169         getopt: bump serial number
23170         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
23171         change.
23173         tests: tighten link, rmdir, and remove tests
23174         * tests/test-link.h (includes): No need to use <config.h> here.
23175         Clean up if directory hard link was created, otherwise test for
23176         trailing '.'.
23177         * tests/test-linkat.c (main): Simplify.
23178         * tests/test-remove.c (main): Enhance test for trailing '.'.
23179         * tests/test-rmdir.h (test_rmdir_func): Likewise.
23181 2009-10-01  Jim Meyering  <meyering@redhat.com>
23183         maint.mk: requiring "make major" was annoying, for a "minor" release.
23184         What is intended is "stable", to contrast with alpha and beta,
23185         so require "make stable", not "make major".
23186         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
23187         (get_tool_versions): Likewise.
23188         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
23190 2009-09-30  Ben Pfaff  <blp@gnu.org>
23192         Fix broken build of replacement for Windows tmpfile().
23193         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
23194         flags argument added along with the 'mkostemp' module.
23196 2009-09-28  Bruno Haible  <bruno@clisp.org>
23198         Avoid identifier clash with POSIX function 'remove' defined as a macro.
23199         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
23200         to 'remove_elt'.
23201         (gl_list_remove): Update.
23202         * lib/gl_list.c (gl_list_remove): Update.
23203         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
23204         to 'remove_elt'.
23205         (gl_oset_remove): Update.
23206         * lib/gl_list.c (gl_oset_remove): Update.
23207         Reported by Eric Blake.
23209 2009-09-28  Eric Blake  <ebb9@byu.net>
23211         doc: mention yet more cygwin 1.7 status
23212         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
23213         cygwin.
23214         * doc/glibc-functions/execvpe.texi (execvpe): New file.
23215         * doc/gnulib.texi (Glibc unistd.h): Mention it.
23217         argp: fix test failure
23218         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
23219         that are not upper-case.  Pass correct range to tolower.
23221 2009-09-27  Jim Meyering  <meyering@redhat.com>
23223         test-yesno: work around sparc-dash here-document infelicity
23224         Without this change, the literal \177 byte in a here document
23225         would make dash 0.5.5.1-3 access uninitialized memory.
23226         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
23227         Instead, use a marker, "@", and filter through tr to create the desired
23228         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
23230 2009-09-27  Bruno Haible  <bruno@clisp.org>
23232         Disable untested support for new flavours of ACLs on AIX.
23233         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
23234         progress.
23235         * lib/set-mode-acl.c (qset_acl): Likewise.
23237 2008-12-07  Bruno Haible  <bruno@clisp.org>
23239         Add support for new flavours of ACLs on AIX. (Untested.)
23240         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
23241         (file_has_acl): Add support for newer AIX.
23242         * lib/set-mode-acl.c (qset_acl): Likewise.
23243         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
23244         Rainer Tammer <tammer@tammer.net>.
23246 2009-09-26  Eric Blake  <ebb9@byu.net>
23248         argp: fix compilation of getopt
23249         * lib/getopt.in.h (includes): Use different guard than glibc.
23250         Reported by Sergey Poznyakoff.
23252         doc: mention more cygwin 1.7 status
23253         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
23254         bug.
23255         * doc/posix-functions/execl.texi (execl): Likewise.
23256         * doc/posix-functions/execle.texi (execle): Likewise.
23257         * doc/posix-functions/execlp.texi (execlp): Likewise.
23258         * doc/posix-functions/execv.texi (execv): Likewise.
23259         * doc/posix-functions/execve.texi (execve): Likewise.
23260         * doc/posix-functions/execvp.texi (execvp): Likewise.
23261         * doc/glibc-functions/canonicalize_file_name.texi
23262         (canonicalize_file_name): Cygwin 1.7 now provides this.
23263         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
23264         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
23265         on AT_SYMLINK_NOFOLLOW.
23267 2009-09-24  Eric Blake  <ebb9@byu.net>
23269         test-linkat: make test more robust
23270         * tests/test-linkat.c (main): Avoid collision with EEXIST.
23272         getopt: fix inclusion guards for cygwin
23273         * modules/getopt-posix (Depends-on): Add include-next.
23274         (Makefile.am): Substitute more items in replacement header.
23275         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
23276         <getopt.h>.
23277         * lib/getopt.in.h (includes): Use split inclusion guard, and
23278         prefer <getopt.h> over include <unistd.h> when one is present.
23279         (option): Also override name of 'struct option'.
23281         same-inode: revert prior change; it is not yet ready
23282         * NEWS: Undo mention of this change.
23283         * lib/same-inode.h (same-inode.h): Undo tri-state change.
23284         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
23285         * lib/cycle-check.c (cycle_check): Likewise.
23286         * lib/same.c (same_name): Likewise.
23287         * lib/at-func2.c (at_func2): Likewise.
23289 2009-09-23  Eric Blake  <ebb9@byu.net>
23291         linkat: new module
23292         * modules/linkat: New file.
23293         * lib/at-func2.c (at_func2): Likewise.
23294         * lib/linkat.c (linkat): Likewise.
23295         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
23296         * lib/openat-priv.h (at_func2): Add declaration.
23297         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
23298         * modules/unistd (Makefile.am): Substitute them.
23299         * lib/unistd.in.h (linkat): Declare it.
23300         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
23301         * doc/posix-functions/linkat.texi (linkat): Likewise.
23302         * doc/posix-functions/link.texi (link): Tweak wording.
23303         * tests/test-link.c (main): Move guts...
23304         * tests/test-link.h (test_link): ...into new file.
23305         * modules/linkat-tests: New test.
23306         * tests/test-linkat.c: Likewise.
23307         * modules/link-tests (Files): Ship new file.
23308         (Depends-on): Add stdbool.
23310         dirname: add library-safe mdir_name
23311         * lib/dirname.h (mdir_name): New prototype.
23312         * lib/dirname.c (dir_name): Move guts...
23313         (mdir_name): ...to new function that avoids xalloc_die.
23315         fchdir: another mingw fix
23316         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
23317         * lib/fchdir.c (get_name): New helper method; skips canonicalize
23318         on mingw (where it has not yet been ported), and make it optional
23319         elsewhere.
23320         (_gl_register_fd): Use it.
23322         same-inode: make SAME_INODE tri-state, to port to mingw
23323         * NEWS: Mention this change.
23324         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
23325         st_ino always being 0.
23326         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
23327         * lib/cycle-check.c (cycle_check): Likewise.
23328         * lib/same.c (same_name): Likewise.
23330         lstat: avoid mingw compilation error
23331         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
23332         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
23333         lstat ourselves.
23334         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
23335         was adequate.
23336         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
23337         the checks for lstat.
23338         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
23340         link: fix test failure on Solaris 9
23341         * lib/link.c (rpl_link): Don't assume link will catch bogus
23342         trailing slash on source.
23344         test-symlinkat: enhance test
23345         * tests/test-readlink.c (main): Move guts...
23346         * tests/test-readlink.h (test_readlink): ...into new file.
23347         * tests/test-symlink.c (main): Move guts...
23348         * tests/test-symlink.h (test_symlink): ...into new file.
23349         * tests/test-symlinkat.c (main): Use new files for further
23350         coverage.
23351         (do_symlink, do_readlink): New helper functions.
23352         * modules/symlink-tests (Files): Ship new file.
23353         (Depends-on): Add stdbool.
23354         * modules/readlink-tests (Files): Ship new file.
23355         (Depends-on): Add stdbool.
23356         * modules/symlinkat-tests (Files): Use new files.
23358 2009-09-23  Eric Blake  <ebb9@byu.net>
23360         readlink: document portability issue with symlink length
23361         * doc/posix-functions/lstat.texi (lstat): Mention that some file
23362         systems have bogus st_size on symlinks, and mention the
23363         areadlink-with-size module.
23364         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
23365         * doc/posix-functions/readlink.texi (readlink): Mention the
23366         areadlink module, and ERANGE failure.
23367         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
23368         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
23370         readlink: fix Solaris 9 bug with trailing slash
23371         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
23372         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
23373         * doc/posix-functions/readlink.texi (readlink): Document this.
23374         * modules/readlink-tests: New test.
23375         * tests/test-readlink.c: Likewise.
23377         readlink: fix cygwin 1.5.x bug with return type
23378         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
23379         * lib/unistd.in.h (readlink): Use ssize_t.
23380         * lib/readlink.c (readlink): Likewise.
23381         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
23382         * modules/unistd (Makefile.am): Substitute it.
23383         * lib/unistd.in.h (readlink): Declare replacement.
23384         * doc/posix-functions/readlink.texi (readlink): Document this.
23386         symlink: use throughout gnulib
23387         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
23388         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
23389         symlink is not used.
23390         * modules/symlinkat (Depends-on): Add symlink.
23391         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
23392         * modules/canonicalize-tests (Depends-on): Likewise.
23393         * modules/lstat-tests (Depends-on): Likewise.
23394         * modules/openat-tests (Depends-on): Likewise.
23395         * modules/remove-tests (Depends-on): Likewise.
23396         * modules/rmdir-tests (Depends-on): Likewise.
23397         * modules/unlink-tests (Depends-on): Likewise.
23398         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
23399         * tests/test-canonicalize.c (symlink): Likewise.
23400         * tests/test-fstatat.c (symlink): Likewise.
23401         * tests/test-lstat.c (symlink): Likewise.
23402         * tests/test-remove.c (symlink): Likewise.
23403         * tests/test-rmdir.c (symlink): Likewise.
23404         * tests/test-unlink.c (symlink): Likewise.
23405         * tests/test-unlinkat.c (symlink): Likewise.
23407         symlink: new module, for Solaris 9 bug
23408         * modules/symlink: New file.
23409         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
23410         * lib/symlink.c: Likewise.
23411         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
23412         * modules/unistd (Makefile.am): Substitute them.
23413         * lib/unistd.in.h (symlink): Declare replacement.
23414         * MODULES.html.sh (File system functions): Mention it.
23415         * doc/posix-functions/symlink.texi (symlink): Likewise.
23416         * modules/symlink-tests: New test.
23417         * tests/test-symlink.c: Likewise.
23419 2009-09-23  Bruno Haible  <bruno@clisp.org>
23421         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
23422         when needed.
23423         Test case: gnulib-tool --import --with-tests atexit inttypes.
23424         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
23426 2009-09-23  Bruno Haible  <bruno@clisp.org>
23428         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
23429         subcommand, not in a subshell.
23431 2009-09-22  Eric Blake  <ebb9@byu.net>
23433         unistd: sort replacement declarations
23434         * lib/unistd.in.h: Sort declarations.
23436         open, openat: minor optimization
23437         * lib/open.c (open): If open succeeded, len is non-zero.
23438         * lib/openat.c (rpl_openat): Likewise.
23440         link-follow: ensure correct result
23441         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
23442         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
23443         distinguish between possible failures.
23445 2009-09-21  Eric Blake  <ebb9@byu.net>
23447         fts: avoid compiler warning
23448         * lib/fts.c (dirent_inode_sort_may_be_useful)
23449         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
23451 2009-09-19  Bruno Haible  <bruno@clisp.org>
23453         * lib/progreloc.c (canonicalize_file_name): New declaration.
23455 2009-09-19  Eric Blake  <ebb9@byu.net>
23457         link: fix quoting
23458         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
23460         openat: fix openat bugs on Solaris 9
23461         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
23462         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
23463         * modules/openat (Depends-on): Add open.
23464         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
23465         * modules/fcntl-h (Makefile.am): Substitute it.
23466         * lib/fcntl.in.h (openat): Declare replacement.
23467         * doc/posix-functions/openat.texi (openat): Document this.
23469         openat: move fstatat and unlinkat into correct files
23470         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
23471         compiled.
23472         * lib/openat.c (fstatat, unlinkat): Move...
23473         * lib/fstatat.c (fstatat): ...into correct files.
23474         * lib/unlinkat.c (unlinkat): Likewise.
23476         openat: fix unlinkat bugs on Solaris 9
23477         * lib/unlinkat.c (unlinkat): New file.
23478         * modules/openat (Depends-on): Add unlink.
23479         (Files): Distribute it.
23480         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
23481         trailing slash behavior is broken.
23482         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
23483         * modules/unistd (Makefile.am): Substitute it.
23484         * lib/unistd.in.h (unlinkat): Declare replacement.
23485         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
23487         openat: fix fstatat bugs on Solaris 9
23488         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
23489         stat.
23490         * doc/posix-functions/fstatat.texi (fstatat): Document this.
23492         test-unlinkat: enhance test, to expose Solaris 9 bug
23493         * tests/test-unlink.c (main): Factor guts...
23494         * tests/test-unlink.h (test_rmdir_func): ...into new file.
23495         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
23496         * tests/test-rmdir.c (main): Adjust caller.
23497         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
23498         (unlinker): New helper function.
23499         (rmdirat): Enhance check.
23500         * modules/rmdir-tests (Depends-on): Add stdbool.
23501         * modules/unlink-tests (Depends-on): Likewise.
23502         (Files): Add test-unlink.h.
23503         * modules/openat-tests (Files): Likewise.
23504         (Depends-on): Add unlinkdir.
23506         test-fstatat: new test, to expose Solaris 9 bugs
23507         * tests/test-stat.c (main): Factor guts...
23508         * tests/test-stat.h (test_stat_func): ...into new file.
23509         * tests/test-lstat.c (main): Factor guts...
23510         * tests/test-lstat.h (test_lstat_func): ...into new file.
23511         * tests/test-fstatat.c: New file.
23512         * modules/stat-tests (Files): Add test-stat.h.
23513         * modules/lstat-tests (Files): Add test-lstat.h.
23514         (Depends-on): Add stdbool.
23515         * modules/openat-tests (Depends-on): Add pathmax.
23516         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
23517         (Makefile.am): Run new test.
23519         remove: new module, for mingw and Solaris 9 bugs
23520         * modules/remove: New file.
23521         * lib/remove.c: Likewise.
23522         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
23523         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
23524         * modules/stdio (Makefile.am): Use them.
23525         * lib/stdio.in.h (remove): Declare replacement.
23526         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
23527         * doc/posix-functions/remove.texi (remove): Likewise.
23528         * modules/remove-tests: New test.
23529         * tests/test-remove.c: Likewise.
23531         unlink: new module, for Solaris 9 bug
23532         * modules/unlink: New file.
23533         * lib/unlink.c: Likewise.
23534         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
23535         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
23536         * modules/unistd (Makefile.am): Use them.
23537         * lib/unistd.in.h (stat): Declare replacement.
23538         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
23539         * doc/posix-functions/unlink.texi (unlink): Likewise.
23540         * modules/unlink-tests: New test.
23541         * tests/test-unlink.c: Likewise.
23543         lstat: fix Solaris 9 bug
23544         * lib/lstat.c (lstat): Also check for trailing slash on
23545         non-symlink, non-directories.  Use stat module to simplify logic.
23546         * doc/posix-functions/lstat.texi (lstat): Document it.
23547         * modules/lstat-tests (Depends-on): Add errno, same-inode.
23548         (configure.ac): Check for symlink.
23549         * tests/test-lstat.c (main): Add more tests.
23551         stat: add as dependency to other modules
23552         * modules/chown (Depends-on): Add stat.
23553         * modules/euidaccess (Depends-on): Likewise.
23554         * modules/fchdir (Depends-on): Likewise.
23555         * modules/isdir (Depends-on): Likewise.
23556         * modules/link (Depends-on): Likewise.
23557         * modules/lstat (Depends-on): Likewise.
23558         * modules/mkdir-p (Depends-on): Likewise.
23559         * modules/modechange (Depends-on): Likewise.
23560         * modules/open (Depends-on): Likewise.
23561         * modules/readlink (Depends-on): Likewise.
23562         * modules/same (Depends-on): Likewise.
23564         stat: fix Solaris 9 bug
23565         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
23566         slash.
23567         * lib/stat.c (rpl_stat): Work around it.
23568         * doc/posix-functions/stat.texi (stat): Update documentation.
23570         stat: new module, for mingw bug
23571         * modules/stat: New file.
23572         * lib/stat.c: Likewise.
23573         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
23574         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
23575         * modules/sys_stat (Makefile.am): Use them.
23576         * lib/sys_stat.in.h (stat): Declare replacement.
23577         * lib/openat.c (fstatat): Deal with lstat and stat being function
23578         macros.
23579         * modules/openat (Depends-on): Add inline.
23580         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
23581         * doc/posix-functions/stat.texi (stat): Likewise.
23582         * modules/stat-tests: New test.
23583         * tests/test-stat.c: Likewise.
23585 2009-09-19  Jim Meyering  <meyering@redhat.com>
23587         syntax-check: detect unnecessary inclusion of canonicalize.h
23588         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
23590 2009-09-19  Eric Blake  <ebb9@byu.net>
23592         canonicalize-lgpl: adjust clients to use correct header
23593         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
23594         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
23595         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
23596         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
23597         * lib/progreloc.c (includes): Likewise.
23599 2009-09-19  Jim Meyering  <meyering@redhat.com>
23601         test-posixtm.c: correct a comment
23602         * tests/test-posixtm.c: Correct first-line comment.
23603         Spotted by Eric Blake.
23605 2009-09-16  Jim Meyering  <meyering@redhat.com>
23607         posixtm-tests: make T const-correct; add a test case
23608         * tests/test-posixtm.c (T): Declare const.
23609         Add a test for -(2^31+1).
23610         Remove useless can-succeed-only-in-2002 test.
23612         posixtm-tests: adjust the sole failing test
23613         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
23614         expected output matches what mktime now produces.  Cross-checked via
23615         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
23617         posixtm: move #ifdef'd tests into a new module
23618         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
23619         * tests/test-posixtm.c: ... this new file.
23620         * modules/posixtm-tests: New module.
23622 2009-09-19  Eric Blake  <ebb9@byu.net>
23624         openat: simplify use of at-func.c
23625         * lib/at-func.c (includes): Include prerequisites here, to
23626         simplify requirements on client files.
23627         * lib/openat-priv.h: Add double-inclusion guard.
23628         * lib/faccessat.c (includes): Simplify.
23629         * lib/fchmodat.c (includes): Likewise.
23630         * lib/fchownat.c (includes): Likewise.
23631         * lib/mkdirat.c (includes): Likewise.
23632         * lib/mkfifoat.c (includes): Likewise.
23633         * lib/symlinkat.c (includes): Likewise.
23635         openat: allow return of fd 0
23636         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
23637         * modules/save-cwd (Depends-on): Replace fcntl-safer with
23638         unistd-safer.
23639         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
23640         <fcntl.h>; this module does not leak fds.
23641         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
23642         must be allowed to return 0, leaving openat_safer to add the
23643         safety.
23644         (openat_permissive): Avoid writing to just-opened fd 2 if
23645         restoring the current directory fails.
23646         * lib/openat-die.c (openat_restore_fail): Add comment.
23647         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
23648         (save_cwd): Guarantee safe fd, but without use of open_safer.
23649         * tests/test-openat.c: New test.
23650         * modules/openat-tests (Files, Makefile.am): Distribute and build
23651         new file.
23653         relocatable-prog-wrapper: fix build
23654         * modules/relocatable-prog-wrapper (Files): Update name of
23655         canonicalize m4 file, broken on 2009-09-17.
23656         Reported by emad hajjar <aleppos@hotmail.com>.
23658 2009-09-19  Bruno Haible  <bruno@clisp.org>
23660         * lib/safe-alloc.h: Use the standard header with GPL copyright.
23661         * lib/safe-alloc.c: Likewise.
23662         Reported by Ian Beckwith <ianb@erislabs.net>.
23664 2009-09-18  Bruno Haible  <bruno@clisp.org>
23666         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
23667         Reported by <erobles@sensacd.com.mx>.
23669 2009-09-17  Eric Blake  <ebb9@byu.net>
23671         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
23672         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
23673         slashes when checking if last component is missing.
23674         * tests/test-canonicalize.c (main): Test this.
23676         canonicalize, canonicalize-lgpl: honor // if distinct from /
23677         * modules/canonicalize (Files): Add double-slash-root.m4.
23678         * modules/canonicalize-lgpl (Files): Likewise.
23679         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
23680         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
23681         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
23682         fallback definition.
23683         (canonicalize_filename_mode): Use it to protect //.
23684         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
23685         (__realpath): Likewise.
23686         * tests/test-canonicalize.c (main): Test this.
23687         * tests/test-canonicalize-lgpl.c (main): Likewise.
23688         * modules/canonicalize-tests (Depends-on): Add same-inode.
23689         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
23691         canonicalize-lgpl: fix glibc bug with trailing slash
23692         * m4/canonicalize-lgpl.m4: Move contents...
23693         * m4/canonicalize.m4: ...here.
23694         (gl_CANONICALIZE_LGPL): Factor realpath check...
23695         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
23696         glibc 2.3.5 bug, fixed 2005-04-27.
23697         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
23698         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
23699         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
23700         * modules/canonicalize-lgpl (Files): Manage file rename.
23701         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
23702         * modules/stdlib (Makefile.am): Substitute witness.
23703         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
23704         is needed.
23705         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
23706         replacement is required.
23707         * lib/canonicalize.c (canonicalize_file_name): Likewise.
23708         * doc/glibc-functions/canonicalize_file_name.texi
23709         (canonicalize_file_name): Document this.
23710         * doc/posix-functions/realpath.texi (realpath): Likewise.
23712         canonicalize-lgpl: reject non-directory with trailing slash
23713         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
23714         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
23715         catches failures in glibc 2.3.5.
23716         * tests/test-canonicalize.c (main): Likewise.
23718         canonicalize-lgpl: use native realpath if it works
23719         * lib/canonicalize-lgpl.c (realpath): Guard with
23720         FUNC_REALPATH_WORKS.
23721         * lib/stdlib.in.h (realpath): Make declaration optional based on
23722         HAVE_REALPATH.
23723         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
23724         native realpath works.
23725         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
23726         * modules/stdlib (Makefile.am): Substitute witness.
23728         canonicalize, canonicalize-lgpl: use <stdlib.h>
23729         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
23730         (Include): Mention <stdlib.h>.
23731         (configure.ac): Mention functions we provide.
23732         * modules/canonicalize (configure.ac): Likewise.
23733         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
23734         realpath if canonicalize_file_name is missing.
23735         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
23736         * modules/stdlib (Makefile.am): Substitute witnesses.
23737         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
23738         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
23739         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
23740         * NEWS: Document this.
23741         * doc/glibc-functions/canonicalize_file_name.texi
23742         (canonicalize_file_name): Likewise.
23743         * doc/posix-functions/realpath.texi (realpath): Likewise.
23744         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
23746         test-canonicalize: consolidate into single C program
23747         * tests/test-canonicalize.sh: Delete; move setup into...
23748         * tests/test-canonicalize.c (main): ...the program, making it
23749         easier to run in debugger.  Add some tests.
23750         * modules/canonicalize-tests (Files): Remove unused file.
23751         (Depends-on): Add progname.
23752         (configure.ac, Makefile.am): Simplify.
23754         test-canonicalize-lgpl: consolidate into single C program
23755         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
23756         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
23757         easier to run in debugger.  Add some tests.
23758         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
23759         (configure.ac, Makefile.am): Simplify.
23761         canonicalize: avoid resolvepath
23762         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
23763         unnecessary checks.
23764         * lib/canonicalize.c (includes): Simplify.
23765         (canonicalize_file_name): Drop resolvepath implementation.
23766         * modules/canonicalize (Depends-on): Drop filenamecat.
23768         canonicalize: don't lose errno
23769         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
23770         over calls to free.
23772         canonicalize: simplify errno handling
23773         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
23774         assignment.
23776         canonicalize, canonicalize-lgpl: update module dependencies
23777         * modules/canonicalize (Depends-on): Add extensions, lstat,
23778         pathmax, stdlib.
23779         (Files): Drop pathmax.h.
23780         (configure.ac): Adjust macro name.
23781         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
23782         lstat, stdlib, sys_stat.
23783         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
23784         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
23785         extensions.
23786         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
23787         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
23788         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
23789         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
23790         declaration, if available.
23791         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
23792         we can rely on the readlink module.
23793         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
23794         (includes): Use <unistd.h> unconditionally.
23796 2009-09-17  Eric Blake  <ebb9@byu.net>
23798         maint: make Include sections of modules consistent
23799         * modules/alloca: Use only header name; no need to list #include.
23800         * modules/alloca-opt: Likewise.
23801         * modules/arpa_inet: Likewise.
23802         * modules/canon-host: Likewise.
23803         * modules/configmake: Likewise.
23804         * modules/dirent: Likewise.
23805         * modules/eealloc: Likewise.
23806         * modules/environ: Likewise.
23807         * modules/fchdir: Likewise.
23808         * modules/fcntl: Likewise.
23809         * modules/fcntl-h: Likewise.
23810         * modules/gethrxtime: Likewise.
23811         * modules/gettime: Likewise.
23812         * modules/ignore-value: Likewise.
23813         * modules/inet_ntop: Likewise.
23814         * modules/inet_pton: Likewise.
23815         * modules/inttypes: Likewise.
23816         * modules/isnand-nolibm: Likewise.
23817         * modules/isnanf-nolibm: Likewise.
23818         * modules/mbchar: Likewise.
23819         * modules/mbfile: Likewise.
23820         * modules/mbiter: Likewise.
23821         * modules/mbuiter: Likewise.
23822         * modules/netdb: Likewise.
23823         * modules/netinet_in: Likewise.
23824         * modules/nproc: Likewise.
23825         * modules/pagealign_alloc: Likewise.
23826         * modules/poll: Likewise.
23827         * modules/printf-frexp: Likewise.
23828         * modules/pthread: Likewise.
23829         * modules/putenv: Likewise.
23830         * modules/random_r: Likewise.
23831         * modules/relocatable-prog: Likewise.
23832         * modules/search: Likewise.
23833         * modules/select: Likewise.
23834         * modules/selinux-h: Likewise.
23835         * modules/settime: Likewise.
23836         * modules/signal: Likewise.
23837         * modules/size_max: Likewise.
23838         * modules/socklen: Likewise.
23839         * modules/ssize_t: Likewise.
23840         * modules/stdarg: Likewise.
23841         * modules/stdbool: Likewise.
23842         * modules/stddef: Likewise.
23843         * modules/stdint: Likewise.
23844         * modules/stdio: Likewise.
23845         * modules/stdlib: Likewise.
23846         * modules/string: Likewise.
23847         * modules/strings: Likewise.
23848         * modules/sys_file: Likewise.
23849         * modules/sys_ioctl: Likewise.
23850         * modules/sys_select: Likewise.
23851         * modules/sys_socket: Likewise.
23852         * modules/sys_stat: Likewise.
23853         * modules/sys_time: Likewise.
23854         * modules/sys_times: Likewise.
23855         * modules/sys_utsname: Likewise.
23856         * modules/sys_wait: Likewise.
23857         * modules/sysexits: Likewise.
23858         * modules/time: Likewise.
23859         * modules/times: Likewise.
23860         * modules/tmpfile: Likewise.
23861         * modules/trim: Likewise.
23862         * modules/unistd: Likewise.
23863         * modules/wchar: Likewise.
23864         * modules/wctype: Likewise.
23866 2009-09-17  Bruno Haible  <bruno@clisp.org>
23868         Make getdate.y compile on QNX and NetBSD 5 / i386.
23869         * m4/getdate.m4 (gl_GETDATE): Conditionally define
23870         TIME_T_FITS_IN_LONG_INT.
23871         * lib/getdate.y (long_time_t): New type.
23872         (relative_time): Change type of 'seconds' field to long_time_t.
23873         (get_date): Update types of local variables. Check against overflow
23874         during conversion from long_time_t to time_t.
23875         Reported by Matt Kraai <kraai@ftbfs.org>
23876         and Hasso Tepper <hasso@netbsd.org>.
23878 2009-09-17  Bruno Haible  <bruno@clisp.org>
23880         * modules/COPYING: Update copyright years.
23881         * modules/README: Likeiwse.
23882         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
23883         Reported by Ian Beckwith <ianb@erislabs.net>.
23885 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
23887         * users.txt: Update references for gnuit package.
23889 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
23891         * m4/getdelim.m4: Fix typo in copyright line.
23893 2009-09-17  Bruno Haible  <bruno@clisp.org>
23895         * lib/atoll.c: Use the standard header with GPL copyright.
23896         * lib/argz.in.h: Likewise.
23897         * lib/glob.c: Likewise.
23898         * lib/glob-libc.h: Likewise.
23899         * lib/random_r.c: Likewise.
23900         * lib/siglist.h: Likewise.
23901         * lib/strsignal.c: Likewise.
23902         Reported by Ian Beckwith <ianb@erislabs.net>.
23904 2009-09-17  Eric Blake  <ebb9@byu.net>
23906         rmdir: ensure correct dependency order
23907         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
23909 2009-09-17  Bruno Haible  <bruno@clisp.org>
23911         Disable assertion that fails on NetBSD 5 / i386.
23912         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
23913         Reported by Sam Steingold <sds@gnu.org>
23914         and Hasso Tepper <hasso@netbsd.org>.
23916 2009-09-16  Eric Blake  <ebb9@byu.net>
23918         unlinkdir: port to mingw
23919         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
23920         on which no one can unlink a directory.
23922         stdlib: sort witness names
23923         * modules/stdlib (Makefile.am): Sort replacements.
23924         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
23925         * lib/stdlib.in.h: Likewise.
23927         parse-duration-tests: avoid link failure
23928         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
23929         LIBINTL.
23930         Reported by Tom G. Christensen.
23932         openat-tests: ensure unlinkat behaves like rmdir
23933         * tests/test-rmdir.c (main): Factor guts...
23934         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
23935         * modules/rmdir-tests (Files): Ship new file.
23936         * modules/openat-tests: New test.
23937         * tests/test-unlinkat.c: Likewise.
23939         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
23940         * modules/rmdir-errno (Status, Notice): Now obsolete.
23942         rmdir: work around cygwin 1.5.x and mingw bugs
23943         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
23944         * lib/rmdir.c (rmdir): Work around it.
23945         * modules/rmdir (Status, Notice): No longer obsolete.
23946         (Files): Add dos.m4.
23947         (Depends-on): Add unistd.
23948         (configure.ac): Set witnesses.
23949         (License): Relax to LGPLv2+.
23950         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
23951         * modules/unistd (Makefile.am): Substitute witnesses.
23952         * lib/unistd.in.h (rmdir): Declare replacement.
23953         * doc/posix-functions/rmdir.texi (rmdir): Document this.
23954         * modules/rmdir-tests: New tests.
23955         * tests/test-rmdir.c: Likewise.
23957 2009-09-15  Eric Blake  <ebb9@byu.net>
23959         fchdir: improve use of replacement functions
23960         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
23961         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
23962         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
23963         REPLACE_CLOSEDIR.
23964         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
23965         * modules/sys_stat (Makefile.am): Substitute correct witness.
23966         * modules/dirent (Makefile.am): Likewise.
23967         * modules/unistd (Makefile.am): Likewise.
23968         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
23969         * lib/unistd.in.h (dup): Likewise.
23970         * lib/sys_stat.in.h (fstat): Likewise.
23972         maint: ignore gnulib-tool temp files
23973         * .gitignore: Ignore files created during gnulib-tool --test.
23975 2009-09-13  Jim Meyering  <meyering@redhat.com>
23977         posixtm: don't reject a time that specify "60" as the number of seconds
23978         * lib/posixtm.c (posixtime): The code to reject invalid dates
23979         would also reject a time specified with the .60 suffix.
23980         But POSIX allows that, in order to accommodate leap seconds.
23981         So don't reject it.
23982         (main): Adjust tests accordingly.
23983         * modules/posixtm (Depends-on): Add stpcpy.
23985 2009-09-11  Jim Meyering  <meyering@redhat.com>
23987         announce-gen: include [$release_type] in emitted Subject:
23988         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
23989         e.g., [stable] in the emitted Subject: line.
23991 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23993         Remove obsolete macros from several modules.
23994         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
23995         obsolete Autoconf macros with their modern counterparts.
23996         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
23997         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
23998         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
23999         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
24000         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
24001         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
24002         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
24003         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
24004         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
24005         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
24006         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
24007         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
24008         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
24009         * m4/sockets.m4 (gl_SOCKETS): Likewise.
24010         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
24011         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
24012         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
24013         * m4/time_r.m4 (gl_TIME_R): Likewise.
24014         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
24015         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
24016         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
24018         Fix copyright header in build-aux scripts.
24019         * build-aux/git-version-gen: Fix copyright header to match GPLv3
24020         recommendation.
24021         * build-aux/ncftpput-ftp: Likewise.
24022         * build-aux/update-copyright: Likewise.
24024 2009-09-09  Eric Blake  <ebb9@byu.net>
24026         test-link: allow Linux choice of errno
24027         * tests/test-link.c (main): Relax test for alternate error.
24029         strndup: fix improper m4 caching
24030         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
24031         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
24032         (gl_PREREQ_STRNDUP): Delete.
24033         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
24034         * modules/string (Makefile.am): Substitute it.
24035         * lib/string.in.h (strndup): Modernize prototype.
24037         getcwd: port to mingw
24038         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
24039         different from the POSIX assumptions made throughout the getcwd
24040         module; fortunately, the mingw getcwd does not need replacement.
24041         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
24042         * modules/getcwd-tests: New test.
24043         * tests/test-getcwd.c: Likewise.
24045         link: fix platform bugs
24046         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
24047         * lib/link.c (link): Work around them.  Fix related mingw bug.
24048         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
24049         * modules/unistd (Makefile.am): Substitute it.
24050         * lib/unistd.in.h (link): Declare replacement.
24051         * doc/posix-functions/link.texi (link): Document this.
24052         * modules/link (Depends-on): Add strdup-posix, sys_stat.
24054         test-link: consolidate into single C program, test more cases
24055         * tests/test-link.sh: Delete.
24056         * tests/test-link.c: Test more error conditions.  Exposes bugs on
24057         at least Cygwin and Solaris.
24058         * modules/link-tests (Files): Remove unused file.
24059         (Depends-on): Add errno, sys_stat.
24060         (Makefile.am): Simplify.
24062 2009-09-08  Bruno Haible  <bruno@clisp.org>
24064         Work around towlower, towupper bug on mingw.
24065         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
24066         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
24067         * doc/posix-functions/towlower.texi: Mention the mingw bug.
24068         * doc/posix-functions/towupper.texi: Likewise.
24069         Reported by Eric Blake.
24071 2009-09-08  Jim Meyering  <meyering@redhat.com>
24073         build: don't try to run autoheader if we don't use it
24074         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
24075         is not used in configure.ac.
24077 2009-09-08  Eric Blake  <ebb9@byu.net>
24079         euidaccess: fix compilation error
24080         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
24082         rawmemchr: relax license
24083         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
24084         okay.
24085         Reported by Jim Meyering.
24087         mkfifoat: new module
24088         * modules/mkfifoat: New file.
24089         * lib/mkfifoat.c: Likewise.
24090         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
24091         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
24092         * modules/sys_stat (Makefile.am): Use them.
24093         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
24094         * MODULES.html.sh (File system functions): Mention module.
24095         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
24096         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
24097         * modules/mkfifoat-tests: New test.
24098         * tests/test-mkfifoat.c: Likewise.
24100         strchrnul: relax license
24101         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
24102         okay.
24103         Reported by Jim Meyering.
24105 2009-09-08  Eric Blake  <ebb9@byu.net>
24107         fstatat: fix compilation on Solaris
24108         * lib/fstatat.c (includes): Add fcntl.h.
24109         Reported by Pádraig Brady.
24111 2009-09-07  Eric Blake  <ebb9@byu.net>
24113         rename: modernize replacement
24114         * modules/rename (Depends-on): Add stdio.
24115         (configure.ac): Declare witness.
24116         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
24117         stdio take care of replacement.
24118         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
24119         * modules/stdio (Makefile.am): Substitute them.
24120         * lib/stdio.in.h (rename): Declare replacement.
24121         * lib/rename.c (includes): Allow cross-compilation to non-windows
24122         machines.
24123         * doc/posix-functions/rename.texi (rename): Improve
24124         documentation.
24126         stdio: sort witness names
24127         * modules/stdio (Makefile.am): Sort replacements.
24128         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
24129         * lib/stdio.in.h: Likewise.
24131         getcwd: minor cleanups
24132         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
24133         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
24135         openat: provide more convenience names
24136         * modules/faccessat (configure.ac): Add C witness.
24137         * lib/unistd.in.h (readlinkat): Fix typo.
24138         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
24139         convenience wrappers.
24140         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
24141         wrappers in syntax checks.
24143 2009-09-06  Eric Blake  <ebb9@byu.net>
24145         doc: fix comments in recent patches
24146         * lib/faccessat.c: Mention correct function.
24147         * lib/fchmodat.c: Likewise.
24148         * lib/fchownat.c: Likewise.
24149         * lib/symlinkat.c: Likewise.
24150         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
24151         constants.
24153         faccessat, symlinkat: continue cleanup of previous patch
24154         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
24155         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
24156         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
24157         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
24158         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
24159         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
24160         set.
24162 2009-09-06  Bruno Haible  <bruno@clisp.org>
24164         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
24165         (fstatat): Declare if GNULIB_FSTATAT is set.
24166         (mkdirat): Declare if GNULIB_MKDIRAT is set.
24167         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
24168         (unlinkat): Declare if GNULIB_UNLINKAT is set.
24169         * modules/fcntl-h (Files): Remove m4/openat.m4.
24170         * modules/sys_stat (Files): Remove m4/openat.m4.
24171         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
24172         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
24173         * modules/unistd (Files): Remove m4/openat.m4.
24174         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
24175         GNULIB_OPENAT.
24176         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
24177         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
24178         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
24179         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
24180         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
24181         gl_OPENAT_DEFAULTS.
24182         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
24183         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
24184         Don't require gl_OPENAT_DEFAULTS.
24185         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
24186         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
24187         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
24188         (gl_OPENAT_DEFAULTS): Remove macro.
24190 2009-09-06  Bruno Haible  <bruno@clisp.org>
24192         * modules/openat (configure.ac): Remove unneeded witness.
24194 2009-09-06  Bruno Haible  <bruno@clisp.org>
24196         Set errno to ENOSYS when a function is entirely unsupported.
24197         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
24198         EOPNOTSUPP.
24199         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
24200         * modules/chown (Depends-on): Remove errno.
24202 2009-09-06  Bruno Haible  <bruno@clisp.org>
24204         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
24206 2009-09-06  Bruno Haible  <bruno@clisp.org>
24208         * lib/sys_stat.in.h: Fix preprocessor command indentation.
24210 2009-09-06  Ben Pfaff  <blp@gnu.org>
24211             Bruno Haible  <bruno@clisp.org>
24213         Work around a glibc bug in strtok_r.
24214         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
24215         Undefine if UNDEFINE_STRTOK_R is set.
24216         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
24217         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
24218         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
24219         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
24220         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
24221         UNDEFINE_STRTOK_R.
24222         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
24224 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
24226         exclude: minor fix
24227         * lib/exclude.c: Include wctype.h
24229 2009-09-06  Akim Demaille  <demaille@gostai.com>
24231         bootstrap: improve error message
24232         * build-aux/bootstrap (find_tool): Upon failure, report the list
24233         of candidates.
24234         Honor the initial value of the envvar.
24236 2009-09-05  Eric Blake  <ebb9@byu.net>
24238         symlinkat: new module
24239         * modules/symlinkat: New file.
24240         * lib/symlinkat.c: Likewise.
24241         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
24242         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
24243         * modules/unistd (Makefile.am): Use them.
24244         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
24245         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
24246         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
24247         * MODULES.html.sh (File system functions): Mention module.
24248         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
24249         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
24250         * modules/symlinkat-tests: New test.
24251         * tests/test-symlinkat.c: Likewise.
24253         test-openat-safer: add more checks
24254         * tests/test-openat-safer.c (main): Check more code paths.
24256 2009-09-05  Jim Meyering  <meyering@redhat.com>
24258         syntax-check: detect unnecessary inclusion of openat.h
24259         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
24261 2009-09-05  Bruno Haible  <bruno@clisp.org>
24263         Support towlower, towupper.
24264         * doc/posix-functions/towlower.texi: Mention module wctype.
24265         * doc/posix-functions/towupper.texi: Likewise.
24266         * lib/wctype.in.h (towlower, towupper): New functions.
24267         * tests/test-wctype.c: Include stdio.h, stdlib.h.
24268         (ASSERT): New macro.
24269         (e): New variable.
24270         (main): Test also towlower, towupper. Test WEOF argument.
24271         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
24273 2009-09-05  Bruno Haible  <bruno@clisp.org>
24275         Fix conversion behaviour when the input is invalid.
24276         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
24277         mark occurring in first pass of indirect conversion.
24278         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
24279         input.
24280         Found by clang's static analyzer.
24282 2009-09-05  Bruno Haible  <bruno@clisp.org>
24284         * tests/test-striconveh.c (main): Test indirect conversion on platforms
24285         where direct conversion is possible.
24287 2009-09-04  Eric Blake  <ebb9@byu.net>
24289         openat: fail with ENOENT on empty name
24290         * lib/openat-proc.c (openat_proc_name): Special-case the empty
24291         buffer.
24293         link-follow: fix logic bug in prior patch
24294         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
24295         reversed sense of yes and no in prior patch.  Avoid confusing
24296         compilation failure with desired semantics.
24298         link-follow: accomodate mingw and cross-compilation
24299         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
24300         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
24301         cross-compilation results to -1, to make linkat easier to
24302         implement when cross-compiling.  Trivially support mingw.
24303         * modules/link-follow (configure.ac): Call new name.
24304         * NEWS: Mention this.
24306 2009-09-03  Eric Blake  <ebb9@byu.net>
24308         faccessat: compile replacement
24309         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
24310         needed.
24312         fts: fix compilation error
24313         * lib/fts.c (includes): Re-add "openat.h", for
24314         openat_needs_fchdir.
24316         faccessat: new module
24317         * modules/faccessat: New file.
24318         * lib/faccessat.c: Likewise.
24319         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
24320         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
24321         * modules/unistd (Makefile.am): Use it.
24322         * lib/unistd.in.h (faccessat): Declare it.
24323         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
24324         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
24325         * MODULES.html.sh (File system functions): Mention it.
24326         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
24327         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
24329         euidaccess: prefer POSIX over non-standard implementation
24330         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
24331         * lib/euidaccess.c (euidaccess): Use it if available.
24333         openat: make template easier to use
24334         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
24335         AT_FUNC_F2 to be undefined.
24336         (VALIDATE_FLAG): New macro; use it to reject bad flags.
24337         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
24338         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
24339         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
24340         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
24341         Likewise.
24342         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
24343         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
24344         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
24345         Likewise.
24347         openat: declare in POSIX headers
24348         * NEWS: Mention this.
24349         * modules/openat (configure.ac): Declare witnesses.
24350         (Depends-on): Add fcntl-h, sys_stat, unistd.
24351         (Include): Mention correct headers.
24352         * modules/fcntl-h (Depends-on): Add link-warning.
24353         (Files): Add openat.m4.
24354         (Makefile.am): Substitute witnesses.
24355         * modules/sys_stat (Files, Makefile.am): Likewise.
24356         * modules/unistd (Files, Makefile.am): Likewise.
24357         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
24358         (gl_OPENAT_DEFAULTS): New macro.
24359         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
24360         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
24361         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
24362         (SYS_STAT_H): Remove unused variable.
24363         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
24364         * lib/fcntl--.h (includes): Remove unneeded header.
24365         * lib/openat-safer.c (includes): Likewise.
24366         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
24367         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
24368         appropriate headers.
24369         (__OPENAT_PREFIX): Delete.
24370         * lib/fcntl.in.h (openat): Provide declaration.
24371         (AT_FDCWD): Fix Solaris bug.
24372         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
24373         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
24374         * lib/fchmodat.c (includes):  Adjust to find declaration.
24375         * lib/fchownat.c (includes): Likewise.
24376         * lib/mkdirat.c (includes): Likewise.
24377         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
24378         still visible.
24380 2009-09-02  Eric Blake  <ebb9@byu.net>
24382         errno: use consistently
24383         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
24384         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
24385         * lib/canonicalize.c (ELOOP): Likewise.
24386         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
24387         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
24388         * lib/lchown.c (EOPNOTSUPP): Likewise.
24389         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
24390         * lib/savewd.c (ESTALE): Likewise.
24391         * lib/settime.c (ENOSYS): Likewise.
24392         * lib/utimens.c (ENOSYS): Likewise.
24393         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
24394         * lib/chdir-safer.c (ELOOP): Likewise.
24395         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
24396         * modules/c-stack (Depends-on): Add errno.
24397         * modules/canonicalize (Depends-on): Likewise.
24398         * modules/chdir-safer (Depends-on): Likewise.
24399         * modules/fdopendir (Depends-on): Likewise.
24400         * modules/inet_ntop (Depends-on): Likewise.
24401         * modules/inet_pton (Depends-on): Likewise.
24402         * modules/lchown (Depends-on): Likewise.
24403         * modules/openat (Depends-on): Likewise.
24404         * modules/savewd (Depends-on): Likewise.
24405         * modules/settime (Depends-on): Likewise.
24406         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
24408         fts: avoid leaking fds
24409         * modules/fts (Depends-on): Add cloexec.
24410         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
24411         flag.
24413         fts: make directory fds more robust
24414         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
24415         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
24417         backupfile, chdir-long, fts, savedir: make safer
24418         * lib/backupfile.c (includes): Use "dirent--.h", since
24419         numbered_backup can write to stderr during readdir.
24420         * lib/savedir.c (includes): Likewise.
24421         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
24422         emulation can write to stderr on failure.
24423         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
24424         * lib/getcwd.c: Document why opendir_safer is unused.
24425         * lib/glob.c: Likewise.
24426         * lib/scandir.c: Likewise.
24427         * lib/openat-proc.c: Likewise, for open_safer.
24428         * modules/backupfile (Depends-on): Add dirent-safer.
24429         * modules/savedir (Depends-on): Likewise.
24430         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
24431         * modules/chdir-long (Depends-on): Add openat-safer.
24433         openat-safer: new module
24434         * modules/openat-safer: New file.
24435         * lib/openat-safer.c: Likewise.
24436         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
24437         * lib/fcntl-safer.h (openat_safer): Declare.
24438         * lib/fcntl--.h (openat): Override.
24439         * MODULES.html.sh (File descriptor based I/O): Mention it.
24440         * lib/openat.h: Add double-inclusion guards.
24441         * lib/openat.c (includes): Only include "fcntl-safer.h", not
24442         "fcntl--.h", so we can implement openat.
24443         * modules/openat-safer-tests: New test.
24444         * tests/test-openat-safer.c: New file.
24446         dirent-safer: new module
24447         * modules/dirent-safer: New file.
24448         * lib/dirent--.h: Likewise.
24449         * lib/dirent-safer.h: Likewise.
24450         * lib/opendir-safer.c: Likewise.
24451         * m4/dirent-safer.m4: Likewise.
24452         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
24453         * modules/dirent-safer-tests: New test.
24454         * tests/test-dirent-safer.c: New file.
24455         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
24457         fdopendir: optimize on mingw
24458         * lib/unistd.in.h (_gl_directory_name): New prototype.
24459         * lib/fchdir.c (_gl_directory_name): Implement it.
24460         (fchdir): Use it to simplify implementation.
24461         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
24462         fchdir, when available, to avoid calling [f]chdir().
24464         fdopendir: split into its own module
24465         * lib/openat.c (fdopendir): Move...
24466         * lib/fdopendir.c: ...into new file.
24467         * modules/fdopendir: New module.
24468         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
24469         * modules/openat (Depends-on): Add fdopendir.
24470         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
24471         fdopendir here.
24472         * modules/savedir (Depends-on): Only need fdopendir, not full
24473         openat.
24474         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
24475         * lib/openat.h (fdopendir): Drop prototype.
24476         * lib/dirent.in.h (fdopendir): Provide prototype.
24477         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
24478         * modules/dirent (Makefile.am): Substitute them.
24479         * MODULES.html.sh (File system functions): Mention it.
24480         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
24481         * modules/fdopendir-tests: New file.
24482         * tests/test-fdopendir.c: Likewise.
24484         fchdir: use more consistent macro convention
24485         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
24486         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
24487         REPLACE_FCHDIR, rather than relying on config.h macros.
24488         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
24489         inside a single make-time REPLACE_FCHDIR block, rather than using
24490         the config.h FCHDIR_REPLACEMENT.
24491         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
24492         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
24493         Manage fstat replacement.
24494         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
24495         REPLACE_FCHDIR.
24496         * modules/sys_stat (Files): Add m4/unistd_h.m4.
24497         (Makefile.am): Substitute REPLACE_FCHDIR.
24498         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
24499         FCHDIR_REPLACEMENT.
24500         * lib/dup-safer.c (dup_safer): Likewise.
24501         * lib/dup2.c (rpl_dup2): Likewise.
24502         * lib/dup3.c (rpl_dup3): Likewise.
24503         * lib/open.c (rpl_open): Likewise.
24505         fchdir: simplify error handling, and support dup3
24506         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
24507         stdbool, malloc-posix, realloc-posix.
24508         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
24509         (ensure_dirs_slot): Return false on allocation failure.
24510         (rpl_dup2): Delete.
24511         (_gl_register_dup): New function.
24512         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
24513         (_gl_register_fd): Close fd on allocation failure.
24514         * lib/fcntl.in.h (_gl_register_fd): Update signature.
24515         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
24516         prototype.
24517         (rpl_dup2_fchdir): Delete prototype.
24518         * lib/open.c (open): Update caller.
24519         * lib/dup2.c (dup2): Track fchdir metadata.
24520         * lib/dup3.c (dup3): Likewise.
24521         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
24522         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
24524 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24526         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
24527         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
24528         don't pass arguments to AC_OUTPUT.
24530 2009-09-02  Bruno Haible  <bruno@clisp.org>
24532         * modules/mkdtemp (License): Relicense under LGPLv2+.
24533         Reported by Paolo Bonzini.
24535 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24537         Replace uses of obsolete autoconf macros in Jim's modules.
24538         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
24539         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
24540         can evoke a warning from autoconf when run with -Wobsolete
24541         enabled.  They were declared obsolete for good reasons (see
24542         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
24543         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
24544         should not continue using the deprecated macros.
24545         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
24546         obsolete Autoconf macros with modern counterparts.
24547         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
24548         * m4/dos.m4 (gl_AC_DOS): Likewise.
24549         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
24550         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
24551         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
24552         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
24553         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
24554         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
24555         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
24556         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
24557         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
24558         Likewise.
24559         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
24560         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
24561         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
24562         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
24563         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
24564         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
24566 2009-09-01  Eric Blake  <ebb9@byu.net>
24568         fchdir: fix off-by-one bug in previous patch
24569         * lib/fchdir.c (rpl_fstat): Use correct bounds.
24570         (_gl_unregister_fd): Delete useless if.
24572 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
24574         maint.mk: sort the list of syntax-check rules
24575         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
24576         easier to get a sense of progress when the rules are run sequentially
24577         and take a long time.
24579 2009-09-01  Simon Josefsson  <simon@josefsson.org>
24581         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
24582         * modules/netinet_in: Likewise.
24583         * modules/sys_file: Likewise.
24584         * modules/sys_ioctl: Likewise.
24585         * modules/sys_select: Likewise.
24586         * modules/sys_socket: Likewise.
24587         * modules/sys_stat: Likewise.
24588         * modules/sys_time: Likewise.
24589         * modules/sys_times: Likewise.
24590         * modules/sys_utsname: Likewise.
24591         * modules/sys_wait: Likewise.
24593 2009-09-01  Jim Meyering  <meyering@redhat.com>
24595         fts: help ensure that return values are not ignored
24596         * lib/fts_.h (__GNUC_PREREQ): Define.
24597         (__attribute_warn_unused_result__): Define.
24598         (fts_children, fts_close, fts_open, fts_read): Declare with
24599         __attribute_warn_unused_result__.
24601         fts: fts_close now fails also when closing a dir file descriptor fails
24602         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
24603         and propagate to caller, along with errno.
24605         announce-gen: correct formatting in --help output
24606         * build-aux/announce-gen (usage): Move the one-line description in
24607         --help output "up", to where it belongs, just after Usage:.
24609 2009-08-31  Eric Blake  <ebb9@byu.net>
24611         fchdir: port to mingw
24612         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
24613         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
24614         opened, then use a substitute.
24615         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
24616         replacement.
24617         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
24618         (_gl_register_fd): No need to check stat if open already filters
24619         all directories.
24620         (fchdir): Fix error condition to match POSIX.
24621         * modules/fchdir (Depends-on): Add sys_stat.
24622         * doc/posix-functions/open.texi (open): Document the limitation.
24623         * modules/fchdir-tests: New file.
24624         * tests/test-fchdir.c: Likewise.
24626         canonicalize: allow cross-testing from cygwin to mingw
24627         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
24628         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
24629         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
24630         Likewise.
24631         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
24632         target does not support symlinks.
24633         * tests/test-canonicalize-lgpl.sh: Likewise.
24635         chown: avoid compilation warning on mingw
24636         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
24637         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
24638         mingw.
24639         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
24640         * modules/chown (Depends-on): Add errno.
24642 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
24644         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
24645         command.
24647 2009-08-31  Jim Meyering  <meyering@redhat.com>
24649         canonicalize: remove useless initialization
24650         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
24651         initialization of local, "end".
24653 2009-08-30  Bruno Haible  <bruno@clisp.org>
24655         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
24656         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
24657         ENOSYS.
24659 2009-08-30  Bruno Haible  <bruno@clisp.org>
24661         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
24662         /usr/xpg4/bin/tr when it exists.
24663         * tests/test-pipe-filter-gi1.sh: Likewise.
24665 2009-08-30  Bruno Haible  <bruno@clisp.org>
24667         Work around deficient /usr/bin/id program on Solaris.
24668         * tests/test-file-has-acl.sh (ID): New variable.
24669         * tests/test-set-mode-acl.sh (ID): Likewise.
24670         * tests/test-copy-acl.sh (ID): Likewise.
24671         * tests/test-copy-file.sh (ID): Likewise.
24673 2009-08-30  Bruno Haible  <bruno@clisp.org>
24675         New module 'xstriconveh'.
24676         * lib/xstriconveh.h: New file.
24677         * lib/xstriconveh.c: New file.
24678         * modules/xstriconveh: New file.
24680 2009-08-30  Bruno Haible  <bruno@clisp.org>
24682         Make it easier to use mem_cd_iconveh.
24683         * lib/striconveh.h (iconveh_t): New type.
24684         (iconveh_open, iconveh_close): New declarations.
24685         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
24686         with a single 'const iconveh_t *' argument.
24687         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
24688         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
24689         with a single 'const iconveh_t *' argument.
24690         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
24691         * tests/test-striconveh.c (main): Update.
24692         * NEWS: Mention the change.
24694 2009-08-30  Bruno Haible  <bruno@clisp.org>
24696         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
24697         problem.
24699 2009-08-30  Bruno Haible  <bruno@clisp.org>
24701         Work around iconv_open problem on Solaris.
24702         * lib/iconv_open-solaris.gperf: New file.
24703         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
24704         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
24705         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
24706         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
24707         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
24708         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
24710 2009-08-29  Jim Meyering  <meyering@redhat.com>
24712         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
24713         * top/maint.mk (cvs-check): Remove target; it was just an alias
24714         to the better-named vc-diff-check.
24715         (maintainer-distcheck): Remove rule.  It was used only from
24716         the (alpha/beta/major) target, and all of its commands but one
24717         were coreutils-specific.
24718         (vc-dist): Remove rule.
24719         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
24720         Run vc-diff-check, not vc-dist.
24721         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
24723 2009-08-27  Bruno Haible  <bruno@clisp.org>
24725         * tests/test-bitrotate.c (main): Remove test that uses a shift count
24726         of 0.
24728 2009-08-27  Bruno Haible  <bruno@clisp.org>
24730         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
24731         compilers.
24732         * doc/func.texi: Document the SunPRO C bug.
24734 2009-08-27  Bruno Haible  <bruno@clisp.org>
24736         Fix link error on Solaris.
24737         * tests/test-parse-duration.c (xstrdup): Remove function.
24739 2009-08-26  Pádraig Brady  <P@draigbrady.com>
24741         ignore-value: handle pointer types, too
24742         * lib/ignore-value.h (__attribute__): Remove definition.
24743         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
24744         of a more concise and more-often effective "(void) i" statement.
24745         (ignore_ptr): New function to suppress warnings from functions that
24746         return pointers, and to make it explicit that one function doesn't
24747         handle all cases.
24749 2009-08-25  Bruno Haible  <bruno@clisp.org>
24751         dup2: work around a Linux bug.
24752         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
24753         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
24754         * doc/posix-functions/dup2.texi: Mention the Linux bug.
24755         Reported by Simon Josefsson.
24757 2009-08-25  Jim Meyering  <meyering@redhat.com>
24759         libguestfs uses gnulib
24760         * users.txt: Add libguestfs.
24762 2009-08-24  Eric Blake  <ebb9@byu.net>
24764         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
24765         * lib/pipe2.c (includes): Add binary-io.h.
24766         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
24768 2009-08-24  Bruno Haible  <bruno@clisp.org>
24770         Tolerate declared but missing accept4 syscall.
24771         * lib/accept4.c (accept4): Invoke original accept4 function first, if
24772         available.
24773         * lib/sys_socket.in.h (accept4): If the function is already present,
24774         override it.
24775         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
24776         * modules/accept4 (Makefile.am): Compile accept4.c always.
24777         Reported by Paolo Bonzini and Eric Blake.
24779 2009-08-23  Bruno Haible  <bruno@clisp.org>
24781         New module 'accept4'.
24782         * lib/sys_socket.in.h (accept4): New declaration.
24783         * lib/accept4.c: New file.
24784         * m4/accept4.m4: New file.
24785         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
24786         GNULIB_ACCEPT4, HAVE_ACCEPT4.
24787         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
24788         HAVE_ACCEPT4.
24789         * modules/accept4: New file.
24790         * doc/glibc-functions/accept4.texi: Mention the new module.
24792 2009-08-24  Jim Meyering  <meyering@redhat.com>
24794         progname: also set global program_invocation_name, when possible
24795         Before this change, a libtool-enabled program that calls glibc's
24796         error function would report the program name as
24797         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
24798         * modules/progname (configure.ac): Check for a declaration of
24799         program_invocation_name.
24800         * lib/progname.c:  Include <errno.h>.
24801         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
24802         Set program_invocation_name.
24804 2009-08-23  Bruno Haible  <bruno@clisp.org>
24806         * lib/dup3.c: Include <string.h>.
24808 2009-08-23  Bruno Haible  <bruno@clisp.org>
24810         * lib/dup3.c (dup3): Test only once whether the system actually exists.
24811         * lib/pipe2.c (pipe2): Likewise.
24812         Suggested by Eric Blake.
24814 2009-08-23  Bruno Haible  <bruno@clisp.org>
24816         Tolerate declared but missing dup3 syscall.
24817         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
24818         * lib/unistd.in.h (dup3): If the function is already present,
24819         override it.
24820         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
24821         * modules/dup3 (Makefile.am): Compile dup3.c always.
24822         Reported by Paolo Bonzini.
24824 2009-08-23  Bruno Haible  <bruno@clisp.org>
24826         Tolerate declared but missing pipe2 syscall.
24827         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
24828         available.
24829         * lib/unistd.in.h (pipe2): If the function is already present,
24830         override it.
24831         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
24832         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
24833         Reported by Paolo Bonzini.
24835 2009-08-23  Bruno Haible  <bruno@clisp.org>
24837         * lib/pipe2.c (pipe2): Move #ifs inside function.
24839 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
24841         quotearg: document limitations of quote_these_too
24842         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
24843         those limitations are created.
24844         * lib/quotearg.h (set_char_quoting): Document that digits and
24845         letters that are special after backslash are not permitted.
24846         (quotearg_char): Cross-reference set_char_quoting documentation.
24848 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
24850         quotearg: implement custom_quoting_style
24851         * lib/quotearg.c: (struct quoting_options): Add left_quote and
24852         right_quote fields.
24853         (set_custom_quoting): New public function.
24854         (quotearg_buffer_restyled): Add left_quote and right_quote
24855         arguments, handle them very much like locale quoting, and update
24856         all uses.
24857         (quotearg_n_custom): New public function.
24858         (quotearg_n_custom_mem): New public function.
24859         (quotearg_custom): New public function.
24860         (quotearg_custom_mem): New public function.
24861         * lib/quotearg.h: Prototype and document new public functions.
24862         (enum quoting_style): For escape_quoting_style and
24863         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
24864         ignored even though they're otherwise like c_quoting_style.
24865         Add custom_quoting_style member and document with comparison to
24866         clocale_quoting_style.
24867         * tests/test-quotearg.c (custom_quotes): New array.
24868         (custom_results): New array.
24869         (main): Extend to test custom quoting.
24871 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
24873         quotearg: fix right quote escaping when it's in quote_these_too
24874         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
24875         quote, be sure to prepend only one backslash.
24876         * tests/test-quotearg.c (use_quote_double_quotes): New function.
24877         (main): Test it.
24879 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
24881         quotearg-tests: test escaping of embedded locale quotes
24882         * tests/test-quotearg.c (struct result_strings): Add member for
24883         new input.
24884         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
24885         (inputs): Add new input.
24886         (results_g): Add expected results.
24887         (flag_results): Likewise.
24888         (locale_results): Likewise.
24889         (compare_strings): Check those.
24891 2009-08-23  Bruno Haible  <bruno@clisp.org>
24893         Tests for module 'dup3'.
24894         * modules/dup3-tests: New file.
24895         * tests/test-dup3.c: New file.
24897         New module 'dup3'.
24898         * lib/unistd.in.h (dup3): New declaration.
24899         * lib/dup3.c: New file.
24900         * m4/dup3.m4: New file.
24901         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
24902         HAVE_DUP3.
24903         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
24904         * modules/dup3: New file.
24905         * doc/glibc-functions/dup3.texi: Mention the new module.
24907 2009-08-23  Bruno Haible  <bruno@clisp.org>
24909         Tweak the dup2 test.
24910         * tests/test-dup2.c (main): Create the test file empty. Verify that an
24911         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
24912         the test file is still empty. Fix argument order of lseek.
24914 2009-08-23  Bruno Haible  <bruno@clisp.org>
24916         Avoid test link errors when the modules getopt-gnu, gettext are used.
24917         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
24918         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
24920 2009-08-23  Bruno Haible  <bruno@clisp.org>
24922         Fix getdtablesize() on mingw.
24923         * lib/getdtablesize.c (getdtablesize): Implement differently.
24924         * lib/unistd.in.h (getdtablesize): Improve comment.
24926 2009-08-23  Bruno Haible  <bruno@clisp.org>
24928         New module 'mkostemp'.
24929         Based on Ulrich Drepper's 2007-08-10 change in glibc.
24930         * lib/stdlib.in.h (mksotemp): New declaration.
24931         * lib/mkostemp.c: New file, from glibc with modifications.
24932         * lib/tempname.h (GT_FILE): Remove outdated comment.
24933         (gen_tempname): Add flags argument.
24934         * lib/tempname.c (__GT_BIGFILE): Remove macro.
24935         (__GT_FILE): Map to 1.
24936         (small_open, large_open): Remove macros.
24937         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
24938         * lib/mkstemp.c (mkstemp): Update.
24939         * lib/mkdtemp.c (mkdtemp): Likewise.
24940         * m4/mkostemp.m4: New file.
24941         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
24942         HAVE_MKOSTEMP.
24943         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
24944         HAVE_MKOSTEMP.
24945         * modules/mkostemp: New file, based on modules/mkstemp.
24946         * doc/glibc-functions/mkostemp.texi: Mention the new module.
24947         * NEWS: Mention the change.
24949 2009-08-23  Bruno Haible  <bruno@clisp.org>
24951         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
24952         Reported by Eric Blake.
24954 2009-08-23  Bruno Haible  <bruno@clisp.org>
24956         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
24957         Reported by Eric Blake.
24959 2009-08-23  Bruno Haible  <bruno@clisp.org>
24961         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
24962         * modules/pipe2 (Depends-on): Likewise.
24964 2009-08-23  Eric Blake  <ebb9@byu.net>
24966         fcntl-h: add O_TTY_INIT support
24967         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
24968         * tests/test-fcntl-h.c (o): Test it.
24969         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
24971         fcntl-h: rename from fcntl, in preparation for fcntl(2)
24972         * modules/fcntl: Move <fcntl.h> header replacement...
24973         * modules/fcntl-h: ...to new name, so as not to collide with
24974         like-named function.
24975         * tests/test-fcntl.c: Rename...
24976         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
24977         * modules/fcntl-tests: Rename...
24978         * modules/fcntl-h-tests: ...to this.  Update test file name.
24979         * modules/chdir-long (Depends-on): Update clients.
24980         * modules/chdir-safer (Depends-on): Likewise.
24981         * modules/fcntl-safer (Depends-on): Likewise.
24982         * modules/fts (Depends-on): Likewise.
24983         * modules/mkancesdirs (Depends-on): Likewise.
24984         * modules/mkdir-p (Depends-on): Likewise.
24985         * modules/open (Depends-on): Likewise.
24986         * modules/savewd (Depends-on): Likewise.
24987         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
24988         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
24990 2009-08-22  Bruno Haible  <bruno@clisp.org>
24992         * modules/binary-io (License): Relicense under LGPL.
24993         * modules/pipe2 (License): Likewise.
24995 2009-08-22  Bruno Haible  <bruno@clisp.org>
24997         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
24998         return value.
24999         * lib/pipe-filter-gi.c (filter_init): Likewise.
25000         Reported by Eric Blake.
25002 2009-08-22  Bruno Haible  <bruno@clisp.org>
25004         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
25005         * modules/pipe (Depends-on): Add pipe2.
25007 2009-08-22  Bruno Haible  <bruno@clisp.org>
25009         Tests for module 'pipe2'.
25010         * modules/pipe2-tests: New file.
25011         * tests/test-pipe2.c: New file.
25013         New module 'pipe2'.
25014         * lib/unistd.in.h (pipe2): New declaration.
25015         * lib/pipe2.c: New file.
25016         * m4/pipe2.m4: New file.
25017         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
25018         HAVE_PIPE2.
25019         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
25020         * modules/pipe2: New file.
25021         * doc/glibc-functions/pipe2.texi: Mention the new module.
25023 2009-08-22  Bruno Haible  <bruno@clisp.org>
25025         Reference some new glibc functions.
25026         * doc/glibc-functions/accept4.texi: New file.
25027         * doc/glibc-functions/dup3.texi: New file.
25028         * doc/glibc-functions/mkostemp.texi: New file.
25029         * doc/glibc-functions/pipe2.texi: New file.
25030         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
25031         (Glibc sys/socket.h): Refer to accept4.
25032         (Glibc unistd.h): Refer to dup3, pipe2.
25033         Reported by Eric Blake.
25035 2009-08-22  Jim Meyering  <meyering@redhat.com>
25036             Bruno Haible  <bruno@clisp.org>
25038         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
25039         This makes it so packages using automake-1.11's silent-rules option
25040         can print e.g., a single "GEN    configmake.h" line, rather than
25041         the 30+ statements that perform the job.  If you want to see the
25042         actual commands, you can still run "make V=1".
25043         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
25044         so that make output is abbreviated when those variables are defined
25045         appropriately.
25046         * modules/argz: Likewise.
25047         * modules/arpa_inet: Likewise.
25048         * modules/byteswap: Likewise.
25049         * modules/configmake: Likewise.
25050         * modules/dirent: Likewise.
25051         * modules/errno: Likewise.
25052         * modules/fcntl: Likewise.
25053         * modules/float: Likewise.
25054         * modules/fnmatch: Likewise.
25055         * modules/getopt-posix: Likewise.
25056         * modules/glob: Likewise.
25057         * modules/iconv_open: Likewise.
25058         * modules/inttypes: Likewise.
25059         * modules/localcharset: Likewise.
25060         * modules/locale: Likewise.
25061         * modules/math: Likewise.
25062         * modules/netdb: Likewise.
25063         * modules/netinet_in: Likewise.
25064         * modules/poll: Likewise.
25065         * modules/posix_spawnp-tests: Likewise.
25066         * modules/sched: Likewise.
25067         * modules/search: Likewise.
25068         * modules/selinux-h: Likewise.
25069         * modules/signal: Likewise.
25070         * modules/spawn: Likewise.
25071         * modules/stdarg: Likewise.
25072         * modules/stdbool: Likewise.
25073         * modules/stddef: Likewise.
25074         * modules/stdint: Likewise.
25075         * modules/stdio: Likewise.
25076         * modules/stdlib: Likewise.
25077         * modules/string: Likewise.
25078         * modules/strings: Likewise.
25079         * modules/sys_file: Likewise.
25080         * modules/sys_ioctl: Likewise.
25081         * modules/sys_select: Likewise.
25082         * modules/sys_socket: Likewise.
25083         * modules/sys_stat: Likewise.
25084         * modules/sys_time: Likewise.
25085         * modules/sys_times: Likewise.
25086         * modules/sys_utsname: Likewise.
25087         * modules/sys_wait: Likewise.
25088         * modules/sysexits: Likewise.
25089         * modules/time: Likewise.
25090         * modules/unistd: Likewise.
25091         * modules/wchar: Likewise.
25092         * modules/wctype: Likewise.
25094 2009-08-22  Jim Meyering  <meyering@redhat.com>
25096         announce-gen: detect write failure
25097         * build-aux/announce-gen: Add Coda at end.
25098         Remove equivalent-but-more-verbose block at top.
25100 2009-08-19  Akim Demaille  <demaille@gostai.com>
25102         bootstrap: --help to stdout.
25103         * bootstrap (usage): Don't send --help to stderr.
25104         Use a here doc instead of a long string.
25106 2009-08-21  Eric Blake  <ebb9@byu.net>
25108         test-popen-safer: split from test-popen
25109         * tests/test-popen.c (main): Move...
25110         * tests/test-popen.h: ...into new file.
25111         * tests/test-popen-safer2.c: New file.
25112         * modules/popen-tests (Files): Add test-popen.h.
25113         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
25114         Suggested by Bruno Haible.
25116         test-fcntl-safer: split from test-open
25117         * tests/test-open.c (main): Move...
25118         * tests/test-open.h: ...into new file.
25119         * tests/test-fcntl-safer.c: New file.
25120         * modules/open-tests (Files): Add test-open.h.
25121         * modules/fcntl-safer-tests: New file.
25122         Suggested by Bruno Haible.
25124         test-fopen-safer: split from test-fopen
25125         * tests/test-fopen.c (main): Move...
25126         * tests/test-fopen.h: ...into new file.
25127         * tests/test-fopen-safer.c: New file.
25128         * modules/fopen-tests (Files): Add test-fopen.h.
25129         * modules/fopen-safer-tests: New file.
25130         Suggested by Bruno Haible.
25132 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
25134         popen-safer: test O_CLOEXEC at run-time.
25135         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
25137 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
25139         fcntl: move more flags to the header
25140         * lib/cloexec.c: Do not define FD_CLOEXEC here.
25141         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
25142         * lib/fcntl.in.h: Do both things here.
25144 2009-08-21  Jim Meyering  <meyering@redhat.com>
25146         consistently remove $@-t before redirecting to it
25147         * modules/argz: Remove $@-t and $@ before redirecting to the former.
25148         * modules/alloca-opt: Likewise.
25149         * modules/byteswap: Likewise.
25150         * modules/fnmatch: Likewise.
25151         * modules/getopt-posix: Likewise.
25152         * modules/glob: Likewise.
25153         * modules/poll: Likewise.
25154         * modules/posix_spawnp-tests: Likewise.
25155         * modules/sys_socket: Likewise.
25156         * modules/sysexits: Likewise.
25158 2009-08-21  Eric Blake  <ebb9@byu.net>
25160         popen: simplify access to original popen
25161         * lib/popen.c (rpl_popen): No need to worry about popen being a
25162         macro.
25163         Reported by Bruno Haible.
25165 2009-08-20  Eric Blake  <ebb9@byu.net>
25167         build: avoid some compiler warnings
25168         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
25169         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
25170         type.
25171         (new_exclude_segment, excluded_file_pattern_p)
25172         (excluded_file_name_p): Reduce scope.
25173         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
25174         old-style declaration.
25176 2009-08-20  Simon Josefsson  <simon@josefsson.org>
25178         * tests/test-exclude1.sh: Handle Windows EOL.
25179         * tests/test-exclude2.sh: Likewise.
25180         * tests/test-exclude3.sh: Likewise.
25181         * tests/test-exclude4.sh: Likewise.
25182         * tests/test-exclude5.sh: Likewise.
25183         * tests/test-exclude6.sh: Likewise.
25184         * tests/test-exclude7.sh: Likewise.
25186 2009-08-19  Akim Demaille  <demaille@gostai.com>
25188         bootstrap: find sha1sum when named gsha1sum.
25189         * bootstrap (find_tool): New.
25190         ($SHA1SUM): New.
25191         Use it.
25193 2009-08-20  Jim Meyering  <meyering@redhat.com>
25195         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
25196         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
25197         expression that converts "." in a file name to "\." in the resulting
25198         regexp.  Start with a dummy statement, so that prior shell variable
25199         definitions are expanded portably.  Reported by Simon Josefsson.
25201 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
25203         Fix polling for writeability of a screen buffer.
25204         * lib/poll.c: Distinguish input and screen buffers for the
25205         Win32 implementation.
25206         * lib/select.c: Likewise.
25208 2009-08-19  Eric Blake  <ebb9@byu.net>
25210         popen-safer: prevent popen from clobbering std descriptors
25211         * modules/popen-safer: New file.
25212         * lib/popen-safer.c: Likewise.
25213         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
25214         * lib/stdio--.h (popen): Provide override.
25215         * lib/stdio-safer.h (popen_safer): Provide declaration.
25216         * tests/test-popen.c (includes): Partially test this.
25217         * modules/popen-safer-tests: New file, for more tests.
25218         * tests/test-popen-safer.c: Likewise.
25219         * MODULES.html.sh (file stream based Input/Output): Mention it.
25221         tests: test some of the *-safer modules
25222         * modules/fopen-safer (Depends-on): Add fopen.
25223         * modules/fcntl-safer (Depends-on): Add fcntl.
25224         * modules/stdlib-safer (Depends-on): Add stdlib.
25225         (configure.ac): Set indicator.
25226         * modules/unistd-safer (configure.ac): Likewise.
25227         * modules/tmpfile-safer (configure.ac): Likewise.
25228         (Depends-on): Add tmpfile.
25229         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
25230         active.
25231         * tests/test-fopen.c (includes): Test safer versions when they are
25232         in use.
25233         * tests/test-open.c (includes): Likewise.
25235         popen: fix cygwin 1.5 bug when stdin closed
25236         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
25237         * modules/popen: New file.
25238         * modules/popen-tests: Likewise.
25239         * tests/test-popen.c: Likewise.
25240         * m4/popen.m4: Likewise.
25241         * lib/popen.c: Likewise.
25242         * lib/stdio.in.h (popen): New declaration.
25243         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
25244         * modules/stdio (Makefile.am): Likewise.
25245         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
25247 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
25249         maint.mk: give full control over update-copyright exclusions
25250         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
25251         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
25252         (update-copyright): Don't force inclusion of top-level
25253         ChangeLog.  Don't force exclusion of all COPYING files, but make
25254         them the default exclusion instead.
25256 2009-08-16  Bruno Haible  <bruno@clisp.org>
25258         Fix test failures on Solaris 10.
25259         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
25260         tests when Solaris iconv() is used.
25261         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
25262         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
25263         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
25264         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
25265         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
25267 2009-08-16  Bruno Haible  <bruno@clisp.org>
25269         Fix test failures on Solaris 10.
25270         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
25271         'tr' program and pass it as first argument.
25272         * tests/test-pipe-filter-gi1.sh: Likewise.
25273         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
25274         program as first argument.
25275         * tests/test-pipe-filter-gi1.c (main): Likewise.
25277 2009-08-16  Eric Blake  <ebb9@byu.net>
25279         fpurge: fix previous commits
25280         * modules/fpurge (Makefile.am): Make replacement conditional,
25281         partially reverting 2007-04-29 change; missed in previous
25282         attempt.
25283         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
25284         is missing.
25286 2009-08-16  Bruno Haible  <bruno@clisp.org>
25288         Clarify fpurge's effect on the file position.
25289         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
25290         * tests/test-fpurge.c (main): Make a second pass for checking the file
25291         position.
25293 2009-08-16  Bruno Haible  <bruno@clisp.org>
25295         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
25296         declaration of fpurge is missing.
25297         * tests/test-fpurge.c (main): Check that the file has not more contents
25298         than expected. Close the file before removing it.
25300 2009-08-15  Eric Blake  <ebb9@byu.net>
25302         fpurge: don't wrap working cygwin implementation
25303         * lib/fpurge.c (fpurge): Fix comment typo.
25304         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
25305         1.7 to avoid replacement.
25306         * tests/test-fpurge.c (main): Enhance test.
25308 2009-08-15  Eric Blake  <ebb9@byu.net>
25309         and Jim Meyering  <meyering@redhat.com>
25311         test-update-copyright: skip if perl is insufficient
25312         * tests/test-update-copyright.sh: Failure to run maintainer tool
25313         should not cause testsuite failure on cygwin 1.5.
25315 2009-08-14  Eric Blake  <ebb9@byu.net>
25317         doc: mention more functions added in cygwin 1.7.0
25318         * doc/posix-headers/limits.texi (limits.h): Update for recent
25319         cygwin additions.
25320         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
25321         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
25322         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
25323         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
25324         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
25326 2009-08-14  Eric Blake  <ebb9@byu.net>
25328         maint.mk: simplify update-copyright rule
25329         * top/maint.mk (update-copyright-local): Delete, and document how
25330         to do it in cfg.mk instead.
25331         (update-copyright-exclude-regexp): Delete, and document how to do
25332         it in .x-update-copyright instead.
25333         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
25334         exclude ChangeLog.
25336 2009-08-14  Bruno Haible  <bruno@clisp.org>
25338         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
25340 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
25342         maint.mk: support update-copyright-env
25343         * top/maint.mk (update-copyright-env): Define place-holder.
25344         (update-copyright): Expand $(update-copyright-env) before
25345         invoking update-copyright.
25347 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
25349         update-copyright: implement forced reformatting
25350         * build-aux/update-copyright: Implement and document
25351         UPDATE_COPYRIGHT_FORCE.
25352         * tests/test-update-copyright.sh: Test it.
25354 2009-08-14  Eric Blake  <ebb9@byu.net>
25355         and Bruno Haible  <bruno@clisp.org>
25357         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
25358         * tests/test-locale.c: Revert previous patch related to NULL.
25359         * tests/test-stdio.c: Likewise.
25360         * tests/test-stdlib.c: Likewise.
25361         * tests/test-string.c: Likewise.
25362         * tests/test-unistd.c: Likewise.
25363         * modules/time-tests (Depends-on): Add verify.
25364         * modules/wchar-tests (Depends-on): Likewise.
25365         * tests/test-time.c: Test for NULL compliance.
25366         * tests/test-wchar.c: Likewise.
25367         * modules/locale (Depends-on): Add stddef.
25368         * modules/stdio (Depends-on): Likewise.
25369         * modules/stdlib (Depends-on): Likewise.
25370         * modules/string (Depends-on): Likewise.
25371         * modules/time (Depends-on): Likewise.
25372         * modules/unistd (Depends-on): Likewise.
25373         * modules/wchar (Depends-on): Likewise.
25374         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
25375         * lib/stdlib.in.h (includes): Likewise.
25376         * lib/string.in.h (includes): Likewise.
25377         * lib/time.in.h (includes): Likewise.
25378         * lib/unistd.in.h (includes): Likewise.
25379         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
25380         replaced.
25381         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
25382         * m4/stddef_h.m4: New file.
25383         * modules/stddef: Likewise.
25384         * lib/stddef.in.h: Likewise.
25385         * modules/stddef-tests: Likewise.
25386         * tests/test-stddef.c: Likewise.
25387         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
25388         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
25389         * doc/posix-headers/locale.texi (locale.h): Likewise.
25390         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
25391         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
25392         * doc/posix-headers/string.texi (string.h): Likewise.
25393         * doc/posix-headers/time.texi (time.h): Likewise.
25394         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
25395         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
25397 2009-08-14  Eric Blake  <ebb9@byu.net>
25399         doc: improve git diff of texinfo files
25400         * .gitattributes: Add rule for *.texi files, with hint on how to
25401         use it.
25402         Copied from m4, and based on a report by Bruno Haible.
25404 2009-08-14  Bruno Haible  <bruno@clisp.org>
25406         Disable multithread support by default on Cygwin 1.5.x for real.
25407         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
25409 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
25411         update-copyright: much ado about intervals
25412         * build-aux/update-copyright: Implement and document
25413         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
25414         of copyright year intervals.
25415         Also, document UPDATE_COPYRIGHT_YEAR.
25416         * tests/test-update-copyright.sh: Test it.
25418         update-copyright: convert 2-digit to 4-digit years
25419         * build-aux/update-copyright: Implement and document.
25420         * tests/test-update-copyright.sh: Update.
25422 2009-08-14  Jim Meyering  <meyering@redhat.com>
25424         test-exclude: avoid coreutils "make check" failure
25425         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
25426         just as in test-argmatch.c.
25428 2009-08-13  Eric Blake  <ebb9@byu.net>
25430         test-dup2: fix bad assumption
25431         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
25432         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
25434         test-version-etc: fix CRLF portability issue
25435         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
25436         recognize \r.
25437         * tests/test-argp-version-etc-1.sh: Likewise.
25439         getopt: update client modules
25440         * modules/argp (Depends-on): Use getopt-gnu.
25441         * modules/git-merge-changelog (Depends-on): Likewise.
25442         * modules/long-options (Depends-on): Likewise.
25443         * modules/xstrtol (Depends-on): Likewise.
25445 2009-08-13  Simon Josefsson  <simon@josefsson.org>
25447         * tests/test-version-etc.sh: Don't fail on different
25448         project/version.  Don't fail on CRLF differences.  Rewrite to use
25449         multiple -e instead of multiple sed forks, suggested by Eric Blake
25450         <ebb9@byu.net>.
25451         * tests/test-argp-version-etc-1.sh: Likewise.
25453 2009-08-13  Simon Josefsson  <simon@josefsson.org>
25455         * tests/test-version-etc.sh: Don't fail on different
25456         project/version.
25458 2009-08-12  Bruno Haible  <bruno@clisp.org>
25460         Tests for modules 'getopt-posix', 'getopt-gnu'.
25461         * modules/getopt-posix-tests: New file.
25462         * tests/test-getopt.c: New file.
25463         * tests/test-getopt.h: New file.
25464         * tests/test-getopt_long.h: New file.
25466         New modules 'getopt-posix', 'getopt-gnu'.
25467         * modules/getopt-gnu: New file, renamed from modules/getopt.
25468         * modules/getopt-posix: New file.
25469         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
25470         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
25471         (gl_GETOPT): Remove macro.
25472         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
25473         Disable the test against BSD systems that declare optreset. Test
25474         against mingw bug. Test against lack of support of optional arguments
25475         on many platforms.
25476         * doc/glibc-headers/getopt.texi: Update module name and list of
25477         relevant platforms.
25478         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
25479         'getopt-gnu' and more portability problems.
25480         * NEWS: Mention the changes.
25482 2009-08-12  Bruno Haible  <bruno@clisp.org>
25484         Ensure that optarg etc. get declared by <unistd.h>.
25485         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
25486         AC_USE_SYSTEM_EXTENSIONS.
25487         * modules/getopt (Depends-on): Add 'extensions'.
25489 2009-08-12  Bruno Haible  <bruno@clisp.org>
25491         Avoid test link errors.
25492         * modules/pipe-filter-ii-tests (Makefile.am): Define
25493         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
25494         * modules/pipe-filter-gi-tests (Makefile.am): Define
25495         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
25496         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25498 2009-08-12  Bruno Haible  <bruno@clisp.org>
25500         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
25501         gl_GETOPT_SUBSTITUTE before.
25502         (gl_GETOPT): Use it.
25503         * m4/argp.m4 (gl_ARGP): Update.
25504         Reported by Sergey Poznyakoff.
25506         * m4/getopt.m4: Reorder macros.
25507         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
25508         (gl_GETOPT_SUBSTITUTE): Remove macro.
25510 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
25512         Minor improvement in gitlog-to-changelog
25514         * build-aux/gitlog-to-changelog: New option `--format' makes
25515         output format string configurable.
25517 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
25519         Optimize exclude: use hash tables for non-wildcard patterns.
25521         * lib/exclude.c: Include hash.h and mbuiter.h
25522         (struct exclude_pattern, exclude_segment): New data types.
25523         (struct exclude): Rewrite.
25524         (fnmatch_pattern_has_wildcards): New function.
25525         (new_exclude_segment, free_exclude_segment): New functions.
25526         (excluded_file_pattern_p, excluded_file_name_p): New functions.
25527         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
25528         * lib/exclude.h (is_fnmatch_pattern): New prototype.
25529         * modules/exclude: Depend on hash and mbuiter.
25531         * modules/exclude-tests: New file.
25532         * tests/test-exclude.c: New file.
25533         * tests/test-exclude1.sh: New file.
25534         * tests/test-exclude2.sh: New file.
25535         * tests/test-exclude3.sh: New file.
25536         * tests/test-exclude4.sh: New file.
25537         * tests/test-exclude5.sh: New file.
25538         * tests/test-exclude6.sh: New file.
25539         * tests/test-exclude7.sh: New file.
25541 2009-08-12  Bruno Haible  <bruno@clisp.org>
25543         Ensure that getopt() gets declared by <unistd.h>.
25544         * lib/unistd.in.h: Conditionally include getopt.h.
25545         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
25546         Set GNULIB_UNISTD_H_GETOPT.
25547         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
25548         GNULIB_UNISTD_H_GETOPT.
25549         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
25551 2009-08-12  Bruno Haible  <bruno@clisp.org>
25553         Clarify logic.
25554         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
25555         gl_replace_getopt instead of GETOPT_H.
25557 2009-08-12  Bruno Haible  <bruno@clisp.org>
25559         * m4/getopt.m4: Add comments.
25561 2009-08-12  Bruno Haible  <bruno@clisp.org>
25563         Disable multithread support by default on Cygwin 1.5.x.
25564         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
25565         set gl_use_threads=no if not specified otherwise.
25567 2009-08-11  Bruno Haible  <bruno@clisp.org>
25569         Avoid compilation error on NetBSD 5.0.
25570         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
25571         * tests/test-stdio.c: Likewise.
25572         * tests/test-stdlib.c: Likewise.
25573         * tests/test-string.c: Likewise.
25574         * tests/test-unistd.c: Likewise.
25575         Reported by Greg Troxel <gdt@ir.bbn.com>
25576         at <https://savannah.gnu.org/support/?106973>.
25578 2009-08-11  Bruno Haible  <bruno@clisp.org>
25580         * modules/dup2-tests (Depends-on): Remove close.
25582         Undo 2009-07-19 commit.
25583         * modules/acl-tests (Depends-on): Remove close.
25584         * modules/binary-io-tests (Depends-on): Likewise.
25585         * modules/closein-tests (Depends-on): Likewise.
25586         * modules/flock-tests (Depends-on): Likewise.
25587         * modules/fsync-tests (Depends-on): Likewise.
25588         * modules/lseek-tests (Depends-on): Likewise.
25589         * modules/pipe-tests (Depends-on): Likewise.
25590         * modules/posix_spawn-tests (Depends-on): Likewise.
25591         * modules/posix_spawnp-tests (Depends-on): Likewise.
25592         * modules/stat-time-tests (Depends-on): Likewise.
25593         * modules/yesno-tests (Depends-on): Likewise.
25595 2009-08-10  Bruno Haible  <bruno@clisp.org>
25597         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
25599 2009-08-10  Bruno Haible  <bruno@clisp.org>
25601         Fix a gcc warning.
25602         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
25604 2009-08-10  Bruno Haible  <bruno@clisp.org>
25606         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
25607         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
25608         not only the first time.
25609         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
25610         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
25611         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
25612         is 1, not only the the first time.
25614 2009-08-10  Bruno Haible  <bruno@clisp.org>
25616         Make it possible to use module 'gethostname' without module 'close'.
25617         * lib/unistd.in.h (close): Evoke a link error only if
25618         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
25619         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
25620         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
25621         * modules/unistd (Makefile.am): Substitute
25622         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
25623         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
25624         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
25625         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
25626         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
25627         * modules/sys_ioctl (Makefile.am): Substitute
25628         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
25629         * modules/socket (configure.ac): On native Windows, set
25630         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
25631         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
25632         Reported by Sam Steingold <sds@gnu.org>.
25634 2009-08-10  Bruno Haible  <bruno@clisp.org>
25636         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
25637         * modules/ioctl (configure.ac): Likewise.
25639 2009-08-10  Bruno Haible  <bruno@clisp.org>
25641         Avoid collision between gnulib wrapper and libintl wrapper.
25642         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
25643         already defined in intl/printf.c.
25644         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
25645         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
25647 2009-08-09  Bruno Haible  <bruno@clisp.org>
25649         Make <sys/select.h> really self-contained, also on Solaris 10.
25650         * lib/sys_select.in.h: Include <string.h>.
25651         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
25652         Solaris 10 problem.
25653         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
25654         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
25655         Reported by Jim Meyering.
25657 2009-08-09  Bruno Haible  <bruno@clisp.org>
25659         Avoid warnings from 'aclocal' that are due to a use of macro name
25660         AM_XGETTEXT_OPTION that is not defined in automake.
25661         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
25662         automake.
25663         * modules/error (configure.ac): Likewise.
25664         * modules/propername (configure.ac): Likewise.
25665         * modules/vasprintf (configure.ac): Likewise.
25666         * modules/verror (configure.ac): Likewise.
25667         * modules/xprintf (configure.ac): Likewise.
25668         * modules/xvasprintf (configure.ac): Likewise.
25670 2009-08-08  Bruno Haible  <bruno@clisp.org>
25672         Avoid compilation error in C++ mode.
25673         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
25674         Reported by Sam Steingold <sds@gnu.org>.
25676 2009-08-08  Bruno Haible  <bruno@clisp.org>
25678         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
25679         for the various Unix platforms.
25680         * doc/posix-headers/limits.texi: Update platforms list regarding
25681         HOST_NAME_MAX.
25682         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25684 2009-08-07  Jim Meyering  <meyering@redhat.com>
25686         selinux-at: fix typo in a comment
25687         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
25688         Spotted by Paolo Bonzini.
25690         selinux-at: remove redundant m4 code, add documentation
25691         * modules/selinux-at (configure.ac): Remove redundant code.
25692         LIB_SELINUX is already set via the dependent module, selinux-h.
25693         (Include): Add quotes around selinux-at.h.
25694         * lib/selinux-at.h: Add documentation.
25695         Reported by Bruno Haible in
25696         http://marc.info/?l=gnulib-bug&m=124958988300749
25698 2009-08-07  Bruno Haible  <bruno@clisp.org>
25700         Avoid link error on MacOS X 10.3 and 10.4.
25701         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
25702         on non-ELF systems.
25703         * lib/argp-pv.c (argp_program_version): Likewise.
25704         Reported by Simon Josefsson.
25706 2009-08-07  Simon Josefsson  <simon@josefsson.org>
25708         * tests/test-version-etc.sh: Use $EXEEXT.
25710 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
25712         update-copyright: update documentation to point to maint.mk
25713         * build-aux/update-copyright: Here.
25715 2009-08-06  Jim Meyering  <meyering@redhat.com>
25717         maint.mk: support update-copyright-local
25718         * top/maint.mk (update-copyright-local): Define place-holder.
25719         (update-copyright): Depend on $(update-copyright-local).
25721 2009-08-06  Jim Meyering  <meyering@redhat.com>
25723         selinux-at: new module
25724         Initially written for coreutils, this module will soon be
25725         used by findutils, too.
25726         * MODULES.html.sh [Misc]: Add selinux-at.
25727         * lib/selinux-at.h: New file, from coreutils.
25728         * lib/selinux-at.c: Likewise.
25729         * modules/selinux-at: Likewise.
25730         (License): Change from LGPL to GPL, since it depends
25731         on the GPL'd openat module.
25733         doc: update README
25734         * README: Remove references to cogito.
25735         Remove cvs-repo-updating instructions from 2007.
25736         Don't imply that CVS is better if you have limited disk space.
25738 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
25740         update-copyright: support C-style comments
25741         * build-aux/update-copyright: Implement and document.
25742         * tests/test-update-copyright.sh: Test.
25744 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
25746         update-copyright: support omitted "(C)"
25747         * build-aux/update-copyright: Implement and document.  Also,
25748         allow variable whitespace before "(C)".
25749         * tests/test-update-copyright.sh: Test.
25751 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
25753         update-copyright: don't trip on non-FSF copyright statements
25754         * build-aux/update-copyright: Fix so that the first correctly
25755         formatted FSF copyright statement is recognized no matter what
25756         appears before it.  Update documentation.
25757         * tests/test-update-copyright.sh: Test that.
25759 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
25761         update-copyright: clean up code a little
25762         * build-aux/update-copyright: Append "_re" to the name of any
25763         variable holding a regular expression.
25764         Replace "old" and "new" with "stmt" in variable names.
25765         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
25766         handled correctly.
25767         Format code more consistently.
25769 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
25771         update-copyright-tests: improve portability
25772         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
25773         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
25775 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
25777         update-copyright: support @copyright{} and &copy;
25778         * build-aux/update-copyright: Implement and document.
25779         * tests/test-update-copyright.sh: Test.
25781 2009-08-04  Jim Meyering  <meyering@redhat.com>
25783         update-copyright-tests: correctly test EOL=\r\n handling
25784         * tests/test-update-copyright.sh: Put \r at the end of some lines
25785         for the dos-eol tests.  Based on a patch by Joel E. Denny.
25787         maint.mk: make update-copyright exclusion list more configurable
25788         * top/maint.mk (update-copyright): Default to excluding COPYING,
25789         but allow an override, in case someone does want to update that file.
25791         maint.mk: don't update copyright date in COPYING
25792         * top/maint.mk (update-copyright): Exclude COPYING.
25794         maint.mk: add a copyright-updating rule
25795         * top/maint.mk (update-copyright): New rule.
25796         Derived from coreutils/Makefile.am.
25798         update-copyright: rename some variables
25799         * build-aux/update-copyright: Rename a few variables for clarity.
25800         Tweak syntax.  List Joel E. Denny as coauthor.
25802 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
25804         update-copyright: fix bug for 2-digit last year and add tests
25805         * build-aux/update-copyright: Fix bug.
25806         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
25807         specified.
25808         * modules/update-copyright-tests: New
25809         * tests/test-update-copyright.sh: New.
25811 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
25813         update-copyright: handle leading tabs in line prefix
25814         * build-aux/update-copyright: Count leading tabs as 8 spaces
25815         when computing margin.  This helps with the formatting of
25816         ChangeLogs, for example.
25817         Fix documentation a little.
25819 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
25821         update-copyright: support EOL=\r\n
25822         * build-aux/update-copyright: Implement that.
25824 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
25826         update-copyright: automatically format copyright statements
25827         * build-aux/update-copyright: Implement that.
25828         Also, be a little more predictable and safer by always failing
25829         when the full copyright format is not perfectly recognized as an
25830         unbroken whole.  Discussed at
25831         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
25832         Rewrite documentation.
25834 2009-08-03  Bruno Haible  <bruno@clisp.org>
25836         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
25838 2009-08-02  Bruno Haible  <bruno@clisp.org>
25840         Tests for module 'uname'.
25841         * modules/uname-tests: New file.
25842         * tests/test-uname.c: New file.
25844         New module 'uname'.
25845         * lib/uname.c: New file.
25846         * m4/uname.m4: New file.
25847         * modules/uname: New file.
25848         * doc/posix-functions/uname.texi: Mention the new module.
25850 2009-08-02  Bruno Haible  <bruno@clisp.org>
25852         Tests for module 'sys_utsname'.
25853         * modules/sys_utsname-tests: New file.
25854         * tests/test-sys_utsname.c: New file.
25856         New module 'sys_utsname'.
25857         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
25858         * m4/sys_utsname_h.m4: New file.
25859         * modules/sys_utsname: New file.
25860         * doc/posix-headers/sys_utsname.texi: Mention the new module.
25862 2009-08-02  Bruno Haible  <bruno@clisp.org>
25864         Implicitly initialize the sockets library.
25865         * lib/gethostname.c: Include sockets.h.
25866         (rpl_gethostname): Invoke gl_sockets_startup.
25867         * lib/socket.c: Include sockets.h.
25868         (rpl_socket): Invoke gl_sockets_startup.
25869         * modules/gethostname (Depends-on): Add sockets.
25870         * modules/socket (Depends-on): Likewise.
25871         * tests/test-poll.c: Don't include sockets.h.
25872         (main): Don't invoke gl_sockets_startup.
25873         * tests/test-select.c: Don't include sockets.h.
25874         (main): Don't invoke gl_sockets_startup.
25876 2009-08-02  Bruno Haible  <bruno@clisp.org>
25878         Allow multiple calls to gl_sockets_startup.
25879         * lib/sockets.c (initialized_sockets_version): New variable.
25880         (gl_sockets_startup): Do nothing if already called for this or a higher
25881         version.
25882         (gl_sockets_cleanup): Reset initialized_sockets_version.
25884 2009-08-03  Simon Josefsson  <simon@josefsson.org>
25886         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
25887         different project/version.
25889 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
25890             Bruno Haible  <bruno@clisp.org>
25892         Tests for module 'pipe-filter-gi'.
25893         * modules/pipe-filter-gi-tests: New file.
25894         * tests/test-pipe-filter-gi1.sh: New file.
25895         * tests/test-pipe-filter-gi1.c: New file.
25896         * tests/test-pipe-filter-gi2.sh: New file.
25897         * tests/test-pipe-filter-gi2-main.c: New file.
25898         * tests/test-pipe-filter-gi2-child.c: New file.
25900         New module 'pipe-filter-gi'.
25901         * lib/pipe-filter-gi.c: New file.
25902         * modules/pipe-filter-gi: New file.
25904 2009-08-02  Bruno Haible  <bruno@clisp.org>
25905             Paolo Bonzini  <bonzini@gnu.org>
25907         Tests for module 'pipe-filter-ii'.
25908         * modules/pipe-filter-ii-tests: New file.
25909         * tests/test-pipe-filter-ii1.sh: New file.
25910         * tests/test-pipe-filter-ii1.c: New file.
25911         * tests/test-pipe-filter-ii2.sh: New file.
25912         * tests/test-pipe-filter-ii2-main.c: New file.
25913         * tests/test-pipe-filter-ii2-child.c: New file.
25915         New module 'pipe-filter-ii'.
25916         * lib/pipe-filter.h: New file.
25917         * lib/pipe-filter-ii.c: New file.
25918         * lib/pipe-filter-aux.h: New file.
25919         * modules/pipe-filter-ii: New file.
25921 2009-08-02  Simon Josefsson  <simon@josefsson.org>
25923         * lib/gc-libgcrypt.c: Change copyright to FSF.
25924         * lib/gc-gnulib.c: Likewise.
25926 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
25928         * lib/gethostname.c: Include limits.h.
25930 2009-08-02  Simon Josefsson  <simon@josefsson.org>
25931             Bruno Haible  <bruno@clisp.org>
25933         Ensure HOST_NAME_MAX as part of the gethostname module.
25934         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
25935         define also HOST_NAME_MAX.
25936         * tests/test-gethostname.c: Include <limits.h>.
25937         (main): Check also HOST_NAME_MAX.
25938         * doc/posix-headers/limits.texi: Document the mingw problem.
25940 2009-08-02  Bruno Haible  <bruno@clisp.org>
25942         * lib/gethostname.c (gethostname): Fix handling of large len argument.
25943         Add comments.
25945 2009-03-31  Simon Josefsson  <simon@josefsson.org>
25947         * lib/gethostname.c: Add Windows wrapper.
25948         * m4/gethostname.m4: Look for gethostname in -lws2_32.
25949         * modules/gethostname: Depend on sys_socket & errno, for also
25950         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
25951         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
25953 2009-07-31  Jim Meyering  <meyering@redhat.com>
25955         getloadavg: fix symbol name in comment
25956         * lib/getloadavg.c: Correct a typo I introduced when adding
25957         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
25958         Matt Kraai spotted the problem.
25960 2009-07-29  Matt Kraai  <mkraai@beckman.com>
25962         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
25963         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
25964         code also if ! defined N_NAME_POINTER.
25965         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
25966         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
25967         but the n_name member is a 12-byte array.
25969 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
25971         update-copyright: generalize comment handling
25972         * build-aux/update-copyright: Handle copyright statements
25973         within more comment styles.
25974         Document usage.
25975         Report any file with an external copyright holder or parse failure.
25977 2009-07-29  Jim Meyering  <meyering@redhat.com>
25979         mktime: correct setting of REPLACE_MKTIME
25980         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
25982         update-copyright: new module
25983         * modules/update-copyright: New file.
25984         * build-aux/update-copyright: New file.
25985         * MODULES.html.sh (maint+release support): Add update-copyright.
25987 2009-07-27  Bruno Haible  <bruno@clisp.org>
25989         Fix compilation error when <ctime> is used and mktime is replaced.
25990         * lib/time.in.h (mktime): New declaration.
25991         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
25992         REPLACE_MKTIME instead of defining mktime in config.h.
25993         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
25994         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
25995         Reported by Ross McFarland <rwmcfa1@neces.com>.
25997 2009-07-27  Bruno Haible  <bruno@clisp.org>
25999         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
26000         Reported by Matt Kraai <mkraai@beckman.com>.
26002 2009-07-25  Jim Meyering  <meyering@redhat.com>
26004         maint.mk: avoid warnings about missing files
26005         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
26006         diagnostic when .prev-version does not exist.
26007         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
26008         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
26009         nonexistent cfg.mk.
26010         Suggestions from Simon Josefsson.
26012 2009-07-25  Bruno Haible  <bruno@clisp.org>
26014         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
26015         defined as macros. Needed on QNX 6.4.1.
26016         Reported by Matt Kraai <mkraai@beckman.com>.
26018 2009-07-23  Jim Meyering  <meyering@redhat.com>
26020         maint.mk: invoke "make dist" with a working value of XZ_OPT
26021         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
26023 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
26025         Make fseeko.c compile on QNX.
26026         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
26028 2009-07-22  Peter Simons  <simons@cryp.to>
26030         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
26031         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
26032         * lib/md4.h: Likewise.
26033         * lib/md5.h: Likewise.
26034         * lib/sha1.h: Likewise.
26035         * lib/sha256.h: Likewise.
26036         * lib/sha512.h: Likewise.
26038         tests-sha1: don't assign literal string to 'char *' variable
26039         * tests/test-sha1.c (main): Declare locals with "const" to match
26040         attributes of the right hand side.
26042 2009-07-21  Eric Blake  <ebb9@byu.net>
26044         dup2: fix more mingw problems
26045         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
26046         fd to itself.
26047         * doc/posix-functions/dup2.texi (dup2): Document the bug.
26048         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
26049         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
26050         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
26051         care of mingw bugs.
26053 2009-07-21  Jim Meyering  <meyering@redhat.com>
26055         vc-list-files: avoid failure when /bin/sh is dash
26056         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
26057         On some Debian based systems, /bin/sh is a symlink to dash, and running
26058         this command would omit the "/" following each 'tests' prefix:
26059           dash -x build-aux/vc-list-files -C . tests
26060         That is because bash and dash work differently:
26061           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
26062           bash ok
26063           dash odd
26065 2009-07-21  Eric Blake  <ebb9@byu.net>
26067         dup2-tests: test previous patch
26068         * modules/dup2-tests: New file.
26069         * tests/test-dup2.c: Likewise.
26070         * tests/test-open.c (main): Avoid unspecified behavior.
26071         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
26072         test.
26074         dup2: work around mingw and cygwin 1.5 bug
26075         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
26076         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
26077         * modules/unistd (Makefile.am): Substitute it.
26078         * lib/unistd.in.h (dup2): Declare the replacement.
26079         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
26080         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
26081         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
26082         * modules/execute (Depends-on): Add dup2.
26083         * modules/fseterr (Depends-on): Likewise.
26084         * modules/pipe (Depends-on): Likewise.
26085         * modules/posix_spawn-internal (Depends-on): Likewise.
26087 2009-07-21  Bruno Haible  <bruno@clisp.org>
26089         * modules/.gitattributes: New file.
26091 2009-07-20  Bruno Haible  <bruno@clisp.org>
26093         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
26094         (main): Use it.
26096 2009-07-20  Eric Blake  <ebb9@byu.net>
26098         test-pipe: make a bit more robust.
26099         * tests/test-pipe.c (myerr): Allow error messages regardless of
26100         what we do to stderr.
26101         (test_pipe): Rearrange to avoid deadlock.
26102         (child_main): Try a larger read, to ensure we avoided deadlock.
26103         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
26104         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
26105         if misused.
26107 2009-07-19  Jim Meyering  <meyering@redhat.com>
26109         fts: avoid false-positive cycle-detection
26110         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
26111         for each new command line argument.
26113 2009-07-19  Bruno Haible  <bruno@clisp.org>
26115         Fix build error on mingw with the modules sys_select and unistd.
26116         * modules/acl-tests (Depends-on): Add close.
26117         * modules/binary-io-tests (Depends-on): Likewise.
26118         * modules/closein-tests (Depends-on): Likewise.
26119         * modules/flock-tests (Depends-on): Likewise.
26120         * modules/fsync-tests (Depends-on): Likewise.
26121         * modules/lseek-tests (Depends-on): Likewise.
26122         * modules/pipe-tests (Depends-on): Likewise.
26123         * modules/posix_spawn-tests (Depends-on): Likewise.
26124         * modules/posix_spawnp-tests (Depends-on): Likewise.
26125         * modules/stat-time-tests (Depends-on): Likewise.
26126         * modules/yesno-tests (Depends-on): Likewise.
26128 2009-07-19  Bruno Haible  <bruno@clisp.org>
26130         Unify conditionals.
26131         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
26132         macros, not at the compiler macros.
26133         * lib/pipe.c: Likewise.
26134         * lib/execute.c: Likewise.
26135         * lib/spawni.c: Likewise.
26137 2009-07-19  Bruno Haible  <bruno@clisp.org>
26139         Fix handling of closed stdin/stdout/stderr on mingw.
26140         * lib/w32spawn.h: Include unistd.h.
26141         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
26142         file descriptor with O_NOINHERIT flag.
26143         (fd_safer_noinherit): New function, based on fd-safer.c.
26144         (dup_safer_noinherit): New function, based on dup-safer.c.
26145         (undup_safer_noinherit): New function.
26146         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
26147         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
26148         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
26149         instead of fd_safer.
26150         * tests/test-pipe.c: Include <windows.h>.
26151         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
26153         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
26154         from main.
26155         (test_pipe): Pass an extra argument for disambiguation.
26156         (main): Invoke parent_main or child_main.
26158         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
26159         consistently.
26161 2009-07-18  Eric Blake  <ebb9@byu.net>
26163         test-pipe: fix mingw build
26164         * tests/test-pipe.c (main): Avoid fcntl on mingw.
26166 2009-07-18  Bruno Haible  <bruno@clisp.org>
26168         * modules/pipe-tests (Makefile.am): Fix typo.
26170 2009-07-18  Eric Blake  <ebb9@byu.net>
26172         error: fix mingw build
26173         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
26174         Reported by Bruno Haible.
26176         error: avoid undefined use of stdout
26177         * lib/error.c (error, error_at_line): Check that fd 1 is open
26178         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
26179         is handling faults and the close_stdout module wants to report the
26180         detection of closed stdout as an error.
26182 2009-07-17  Eric Blake  <ebb9@byu.net>
26184         pipe: be robust in face of closed fds
26185         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
26186         should cause child to misbehave.
26187         * modules/pipe-tests: New module.
26188         * tests/test-pipe.c: New file.
26189         * tests/test-pipe.sh: New file.
26190         Reported by Akim Demaille.
26192 2009-07-14  Bruno Haible  <bruno@clisp.org>
26194         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
26195         Reported by anonymous kc.
26197 2009-07-07  Jim Meyering  <meyering@redhat.com>
26199         maint.mk: don't look for translatable strings in *.m4 or *.mk
26200         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
26201         when searching for translatable strings.
26203 2009-07-05  Jim Meyering  <meyering@redhat.com>
26205         remove superfluous parentheses in STREQ definition
26206         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
26207         * lib/getugroups.c (STREQ): Likewise.
26208         * lib/fnmatch.c (STREQ): Likewise.
26209         Spotted by Bruno Haible.
26211 2009-07-04  Jim Meyering  <meyering@redhat.com>
26213         argv-iter: new module
26214         * MODULES.html.sh: Add argv-iter.
26215         * lib/argv-iter.c, lib/argv-iter.h: New files.
26216         * modules/argv-iter: New file.
26217         * modules/argv-iter-tests: New file.
26218         * tests/test-argv-iter.c: Test it.
26220 2009-07-04  Bruno Haible  <bruno@clisp.org>
26222         Fix assertion.
26223         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
26224         contains more exact copies of a given entry than file2, leave the extra
26225         copies unpaired rather than aborting.
26226         Reported by Eric Blake.
26228 2009-07-02  Bruno Haible  <bruno@clisp.org>
26230         Speedup git-merge-changelog for git cherry-pick.
26231         * lib/git-merge-changelog.c (struct entries_mapping): New type.
26232         (entries_mapping_get): New function, extracted from compute_mapping.
26233         (entries_mapping_reverse_get): New function.
26234         (compute_mapping): Add a 'full' argument. Return the result in a
26235         'struct entries_mapping'.
26236         (main): Update. Access the mappings through entries_mapping_get.
26237         Reported by Eric Blake.
26239 2009-07-02  Bruno Haible  <bruno@clisp.org>
26241         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
26242         best_i.
26244 2009-07-02  Bruno Haible  <bruno@clisp.org>
26246         Speed up approximate search for matching ChangeLog entries.
26247         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
26248         argument. Call fstrcmp_bounded instead of fstrcmp.
26249         (compute_mapping, try_split_merged_entry, main): Update callers.
26251 2009-07-02  Bruno Haible  <bruno@clisp.org>
26253         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
26255 2009-06-30  Bruno Haible  <bruno@clisp.org>
26257         Reduce the number of uc_is_cased calls.
26258         * lib/unicase.h (casing_suffix_context_t): Add
26259         'first_char_except_ignorable' field.
26260         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
26261         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
26262         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
26263         Update initializer.
26264         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
26265         case-ignorable characters.
26266         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
26267         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
26268         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
26269         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
26270         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
26272 2009-06-30  Bruno Haible  <bruno@clisp.org>
26274         Tests for module 'unicase/ignorable'.
26275         * modules/unicase/ignorable-tests: New file.
26276         * tests/unicase/test-ignorable.c: New file, generated by
26277         gen-uni-tables.
26279         Tests for module 'unicase/cased'.
26280         * modules/unicase/cased-tests: New file.
26281         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
26282         * tests/unicase/test-predicate-part1.h: New file, derived from
26283         tests/unictype/test-predicate-part1.h.
26284         * tests/unicase/test-predicate-part2.h: New file, same as
26285         tests/unictype/test-predicate-part2.h.
26287         Fix evaluation of "Before C" condition of FINAL_SIGMA.
26288         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
26289         (output_casing_properties): New function.
26290         (main): Call it.
26291         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
26292         * lib/unicase/cased.c: Include unictype/bitmap.h.
26293         (uc_is_cased): Define through a bitmap lookup.
26294         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
26295         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
26296         (uc_is_case_ignorable): Define through a bitmap lookup.
26297         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
26298         lib/unictype/bitmap.h.
26299         (Depends-on): Add inline. Clean up.
26300         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
26301         lib/unictype/bitmap.h.
26302         (Depends-on): Add inline. Clean up.
26303         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
26304         recognition.
26305         * tests/unicase/test-u16-tolower.c (main): Likewise.
26306         * tests/unicase/test-u32-tolower.c (main): Likewise.
26308 2009-06-30  Bruno Haible  <bruno@clisp.org>
26310         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
26311         * lib/unicase/u16-casemap.c: Likewise.
26312         * lib/unicase/u32-casemap.c: Likewise.
26314 2009-06-29  Bruno Haible  <bruno@clisp.org>
26316         Define u32_casefold as a wrapper around u32_ct_casefold.
26317         * lib/unicase/u32-casefold.c: Update.
26318         * modules/unicase/u32-casefold (Depends-on): Add
26319         unicase/u32-ct-casefold, unicase/empty-prefix-context,
26320         unicase/empty-suffix-context. Clean up.
26322         Define u16_casefold as a wrapper around u16_ct_casefold.
26323         * lib/unicase/u16-casefold.c: Update.
26324         * modules/unicase/u16-casefold (Depends-on): Add
26325         unicase/u16-ct-casefold, unicase/empty-prefix-context,
26326         unicase/empty-suffix-context. Clean up.
26328         Define u8_casefold as a wrapper around u8_ct_casefold.
26329         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
26330         * lib/unicase/u8-casefold.c: Update.
26331         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
26332         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
26334         Define u32_totitle as a wrapper around u32_ct_totitle.
26335         * lib/unicase/u32-totitle.c: Update.
26336         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
26337         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
26339         Define u16_totitle as a wrapper around u16_ct_totitle.
26340         * lib/unicase/u16-totitle.c: Update.
26341         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
26342         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
26344         Define u8_totitle as a wrapper around u8_ct_totitle.
26345         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
26346         functions.
26347         (FUNC): Delegate to U_CT_TOTITLE.
26348         * lib/unicase/u8-totitle.c: Update.
26349         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
26350         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
26352         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
26353         invocation.
26354         * modules/unicase/u32-tolower (Depends-on): Add
26355         unicase/empty-prefix-context, unicase/empty-suffix-context.
26357         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
26358         invocation.
26359         * modules/unicase/u16-tolower (Depends-on): Add
26360         unicase/empty-prefix-context, unicase/empty-suffix-context.
26362         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
26363         * modules/unicase/u8-tolower (Depends-on): Add
26364         unicase/empty-prefix-context, unicase/empty-suffix-context.
26366         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
26367         invocation.
26368         * modules/unicase/u32-toupper (Depends-on): Add
26369         unicase/empty-prefix-context, unicase/empty-suffix-context.
26371         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
26372         invocation.
26373         * modules/unicase/u16-toupper (Depends-on): Add
26374         unicase/empty-prefix-context, unicase/empty-suffix-context.
26376         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
26377         * modules/unicase/u8-toupper (Depends-on): Add
26378         unicase/empty-prefix-context, unicase/empty-suffix-context.
26380         New module 'unicase/u32-ct-casefold'.
26381         * lib/unicase/u32-ct-casefold.c: New file.
26382         * modules/unicase/u32-ct-casefold: New file.
26384         New module 'unicase/u16-ct-casefold'.
26385         * lib/unicase/u16-ct-casefold.c: New file.
26386         * modules/unicase/u16-ct-casefold: New file.
26388         New module 'unicase/u8-ct-casefold'.
26389         * lib/unicase/u8-ct-casefold.c: New file.
26390         * lib/unicase/u-ct-casefold.h: New file, derived from
26391         lib/unicase/u-casefold.h.
26392         * modules/unicase/u8-ct-casefold: New file.
26394         New module 'unicase/u32-ct-totitle'.
26395         * lib/unicase/u32-ct-totitle.c: New file.
26396         * modules/unicase/u32-ct-totitle: New file.
26398         New module 'unicase/u16-ct-totitle'.
26399         * lib/unicase/u16-ct-totitle.c: New file.
26400         * modules/unicase/u16-ct-totitle: New file.
26402         New module 'unicase/u8-ct-totitle'.
26403         * lib/unicase/u8-ct-totitle.c: New file.
26404         * lib/unicase/u-ct-totitle.h: New file, derived from
26405         lib/unicase/u-totitle.h.
26406         * modules/unicase/u8-ct-totitle: New file.
26408         New module 'unicase/u32-ct-tolower'.
26409         * lib/unicase/u32-ct-tolower.c: New file.
26410         * modules/unicase/u32-ct-tolower: New file.
26412         New module 'unicase/u16-ct-tolower'.
26413         * lib/unicase/u16-ct-tolower.c: New file.
26414         * modules/unicase/u16-ct-tolower: New file.
26416         New module 'unicase/u8-ct-tolower'.
26417         * lib/unicase/u8-ct-tolower.c: New file.
26418         * modules/unicase/u8-ct-tolower: New file.
26420         New module 'unicase/u32-ct-toupper'.
26421         * lib/unicase/u32-ct-toupper.c: New file.
26422         * modules/unicase/u32-ct-toupper: New file.
26424         New module 'unicase/u16-ct-toupper'.
26425         * lib/unicase/u16-ct-toupper.c: New file.
26426         * modules/unicase/u16-ct-toupper: New file.
26428         New module 'unicase/u8-ct-toupper'.
26429         * lib/unicase/u8-ct-toupper.c: New file.
26430         * modules/unicase/u8-ct-toupper: New file.
26432         Add context arguments to u*_casemap functions.
26433         * lib/unicase/unicasemap.h: Include unicase.h.
26434         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
26435         suffix_context arguments.
26436         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
26437         functions.
26438         (FUNC): Add prefix_context and suffix_context arguments. Use
26439         uc_is_cased and uc_is_case_ignorable.
26440         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
26441         * lib/unicase/u16-casemap.c: Likewise.
26442         * lib/unicase/u32-casemap.c: Likewise.
26443         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
26444         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
26445         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
26446         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
26447         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
26448         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
26450         New module 'unicase/u32-suffix-context'.
26451         * lib/unicase/u32-suffix-context.c: New file.
26452         * modules/unicase/u32-suffix-context: New file.
26454         New module 'unicase/u16-suffix-context'.
26455         * lib/unicase/u16-suffix-context.c: New file.
26456         * modules/unicase/u16-suffix-context: New file.
26458         New module 'unicase/u8-suffix-context'.
26459         * lib/unicase/u8-suffix-context.c: New file.
26460         * lib/unicase/u-suffix-context.h: New file.
26461         * modules/unicase/u8-suffix-context: New file.
26463         New module 'unicase/empty-suffix-context'.
26464         * lib/unicase/empty-suffix-context.c: New file.
26465         * modules/unicase/empty-suffix-context: New file.
26467         New module 'unicase/u32-prefix-context'.
26468         * lib/unicase/u32-prefix-context.c: New file.
26469         * modules/unicase/u32-prefix-context: New file.
26471         New module 'unicase/u16-prefix-context'.
26472         * lib/unicase/u16-prefix-context.c: New file.
26473         * modules/unicase/u16-prefix-context: New file.
26475         New module 'unicase/u8-prefix-context'.
26476         * lib/unicase/u8-prefix-context.c: New file.
26477         * lib/unicase/u-prefix-context.h: New file.
26478         * lib/unicase/context.h: New file.
26479         * modules/unicase/u8-prefix-context: New file.
26481         New module 'unicase/empty-prefix-context'.
26482         * lib/unicase/empty-prefix-context.c: New file.
26483         * modules/unicase/empty-prefix-context: New file.
26485         New module 'unicase/ignorable'.
26486         * lib/unicase/ignorable.c: New file.
26487         * modules/unicase/ignorable: New file.
26489         New module 'unicase/cased'.
26490         * lib/unicase/caseprop.h: New file.
26491         * lib/unicase/cased.c: New file.
26492         * modules/unicase/cased: New file.
26494         New functions for case mapping of substrings.
26495         * lib/unicase.h (casing_prefix_context_t): New type.
26496         (unicase_empty_prefix_context): New variable.
26497         (u8_casing_prefix_context, u16_casing_prefix_context,
26498         u32_casing_prefix_context, u8_casing_prefixes_context,
26499         u16_casing_prefixes_context, u32_casing_prefixes_context): New
26500         declarations.
26501         (casing_suffix_context_t): New type.
26502         (unicase_empty_suffix_context): New variable.
26503         (u8_casing_suffix_context, u16_casing_suffix_context,
26504         u32_casing_suffix_context, u8_casing_suffixes_context,
26505         u16_casing_suffixes_context, u32_casing_suffixes_context,
26506         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
26507         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
26508         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
26509         declarations.
26511 2009-06-28  Jim Meyering  <meyering@redhat.com>
26513         boostrap: indent only with spaces
26514         * build-aux/bootstrap: Indent only with spaces, never TABs.
26516         bootstrap: split long lines
26517         * build-aux/bootstrap: Keep line length < 80.
26519         bootstrap: sync from coreutils
26520         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
26521         just as autoreconf does.  Verify a list of prerequisite
26522         package-name,version-number pairs if defined in bootstrap.conf.
26523         Refer to README-prereq, if prerequisites are not satisfied.
26525 2009-06-27  Eric Blake  <ebb9@byu.net>
26527         tests: add test for bogus NULL definition
26528         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
26529         * tests/test-stdlib.c: Likewise.
26530         * tests/test-string.c: Likewise.
26531         * tests/test-locale.c: Likewise.
26532         * tests/test-unistd.c: Likewise.
26533         * modules/stdio-tests (Depends-on): Add verify.
26534         * modules/stdlib-tests (Depends-on): Likewise.
26535         * modules/string-tests (Depends-on): Likewise.
26536         * modules/locale-tests (Depends-on): Likewise.
26537         * modules/unistd-tests (Depends-on): Likewise.
26539 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
26541         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
26542         self-explaining comment.
26543         * m4/selinux-selinux-h: Update serial.
26544         (gl_LIBSELINUX): New macro, adding a warning for missing development
26545         packages to code extracted from...
26546         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
26547         Add warning for missing development packages here, too.
26549 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
26551         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
26553 2009-06-25  Eric Blake  <ebb9@byu.net>
26555         version-etc: fix regression
26556         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
26557         gcc.
26558         (version_etc): Use it, to catch bugs with trailing NULL.
26559         * lib/version-etc.c (version_etc_arn): Delete unused argument.
26560         (version_etc_va): Fix logic bug.
26561         * modules/version-etc-tests: Add test.
26562         * tests/test-version-etc.c: New file.
26563         * tests/test-version-etc.sh: Likewise.
26565 2009-06-25  Sam Steingold  <sds@gnu.org>
26567         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
26568         mbtowc declaration.
26570 2009-06-25  Eric Blake  <ebb9@byu.net>
26572         fpurge: migrate into <stdio.h>
26573         * lib/fpurge.h: Delete...
26574         * lib/stdio.in.h (fpurge): ...and declare here, instead.
26575         * lib/fpurge.c (fpurge): Change declaring header.
26576         * modules/fpurge (Files): Drop deleted file.
26577         (Depends-on): Add stdio.
26578         (configure.ac): Set witness.
26579         * modules/stdio (Makefile.am): Support fpurge macros.
26580         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
26581         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
26582         * lib/fflush.c: Update client.
26583         * tests/test-fpurge.c: Likewise.
26584         * NEWS: Mention the change.
26586 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
26588         * lib/argp-version-etc.c (program_authors): Add const
26589         qualifier.
26590         * lib/version-etc.c: Fix typos in the comments.
26591         * modules/argp-version-etc: Depends on version-etc.
26593 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
26595         argp-version-etc: new module.
26597         * lib/argp-version-etc.c: New file.
26598         * lib/argp-version-etc.h: New file.
26599         * modules/argp-version-etc: New file.
26600         * modules/argp-version-etc-tests: New file.
26601         * tests/test-argp-version-etc.c: New test.
26602         * tests/test-argp-version-etc-1.sh: New test.
26604 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
26606         Provide additional interfaces and documentation for version-etc
26607         module.
26609         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
26610         interfaces.
26611         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
26612         prototypes.
26614 2009-06-24  Bruno Haible  <bruno@clisp.org>
26616         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
26617         HAVE_LIB${NAME} macro.
26618         Reported by Sam Steingold <sds@gnu.org>.
26620 2009-06-23  Simon Josefsson  <simon@josefsson.org>
26622         * modules/hash-tests (test_hash_LDADD): Link to libintl when
26623         needed.
26625 2009-06-21  Bruno Haible  <bruno@clisp.org>
26627         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
26628         work.
26629         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
26630         together with LIB${NAME}, LTLIB${NAME}.
26631         Reported by Sam Steingold <sds@gnu.org>.
26633 2009-06-20  Jim Meyering  <meyering@redhat.com>
26635         tests: make sc_require_test_exit_idiom more generic
26636         * top/maint.mk (Exit_witness_file): New overridable variable.
26637         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
26638         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
26640 2009-06-19  Jim Meyering  <meyering@redhat.com>
26642         hash: reverse order of src/dst parameters in an internal interface
26643         * lib/hash.c (transfer_entries): Reverse order of parameters to
26644         put DST before SRC.  Adjust callers.
26646         tests: test-hash: avoid wholesale duplication
26647         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
26648         Instead, use a loop and add a single conditional.
26650         tests: test-hash: allow seed selection via a command line argument
26651         * tests/test-hash.c (get_seed): New function.
26652         (main): Use it.
26654 2009-06-19  Eric Blake  <ebb9@byu.net>
26656         hash: avoid memory leak on allocation failure
26657         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
26658         failure.  Factor repeated algorithm...
26659         (transfer_entries): ...into new helper routine.
26660         (hash_delete): React to hash_rehash return value.
26662         hash: reduce memory pressure in hash_rehash no-op case
26663         * lib/hash.c (next_prime): Avoid overflow.
26664         (hash_initialize): Factor bucket size computation...
26665         (compute_bucket_size): ...into new helper function.
26666         (hash_rehash): Use new function and open coding to reduce memory
26667         pressure, and avoid a memory leak in USE_OBSTACK code.
26668         Reported by Jim Meyering.
26670 2009-06-18  Eric Blake  <ebb9@byu.net>
26672         hash: make rotation more obvious
26673         * modules/hash (Depends-on): Add bitrotate and stdint.
26674         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
26675         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
26676         (SIZE_MAX): Rely on headers for definition.
26677         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
26678         (raw_hasher): Use rotr_sz.
26679         Suggested by Jim Meyering.
26681         hash: fix memory leak in last patch
26682         * lib/hash.c (hash_rehash): Avoid memory leak.
26684         hash: avoid no-op rehashing
26685         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
26687         hash: provide default callback functions
26688         * lib/hash.c (raw_hasher, raw_comparator): New functions.
26689         (hash_initialize): Use them as defaults.
26690         * tests/test-hash.c (main): Test this.
26692         hash: minor optimization
26693         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
26694         when possible.
26695         (hash_initialize): Document this promise.
26696         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
26697         * tests/test-hash.c (hash_compare_strings): Test this.
26699 2009-06-18  Bruno Haible  <bruno@clisp.org>
26701         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
26702         going to be replaced anyway.
26704 2009-06-18  Bruno Haible  <bruno@clisp.org>
26706         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
26707         in one place.
26708         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
26709         be replaced anyway.
26711 2009-06-18  Eric Blake  <ebb9@byu.net>
26713         hash: check for resize before insertion
26714         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
26715         threshold before insertion, so that a pathological hash_rehash
26716         that fills every bucket can still trigger another rehash.
26718 2009-06-18  Jim Meyering  <meyering@redhat.com>
26720         hash-tests: add a loop around the small tests
26721         * tests/test-hash.c (main): Repeat small tests with selected
26722         small initial table sizes.
26724 2009-06-17  Eric Blake  <ebb9@byu.net>
26726         hash: minor cleanups
26727         * lib/hash.h (hash_entry): Make opaque, by moving...
26728         * lib/hash.c (hash_entry): ...here.
26729         (hash_insert): Clarify restrictions on what can be inserted.
26730         (hash_get_next): Clarify when it is safe to remove an element
26731         during traversal.
26732         (check_tuning): Skip verification when tuning is known safe.
26733         (hash_initialize): Clarify restrictions on tuning.
26735 2009-06-17  Jim Meyering  <jim@meyering.net>
26736         and Eric Blake  <ebb9@byu.net>
26738         hash-tests: new module
26739         * modules/hash-tests: New file.
26740         * tests/test-hash.c: New file.
26742 2009-06-17  Eric Blake  <ebb9@byu.net>
26744         strstr-simple: document new module
26745         * MODULES.html.sh: Document new module.
26747         strstr, strcasestr: replace on platforms with broken memchr
26748         * modules/strstr: Split into...
26749         * modules/strstr-simple: ...new module that does not care about
26750         performance, but does care about glibc bug.
26751         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
26752         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
26753         if platform memchr is broken, per Debian bug 521737.
26754         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
26755         memchr.
26756         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
26757         * doc/posix-functions/strstr.texi (strstr): Document the fix.
26758         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
26759         * modules/mountlist (Depends-on): Add strstr-simple.
26760         * modules/gen-uni-tables (Depends-on): Likewise.
26761         * modules/argz (Depends-on): Add strstr.
26763 2009-06-17  Bruno Haible  <bruno@clisp.org>
26765         * modules/posix_spawn-internal (Depends-on): Add errno.
26767 2009-06-17  Bruno Haible  <bruno@clisp.org>
26769         Define missing ESTALE on Interix 3.5.
26770         * lib/errno.in.h (ESTALE): Assign a value if missing.
26771         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
26772         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
26773         missing.
26774         * doc/posix-headers/errno.texi: Mention the Interix bug.
26775         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
26777 2009-06-15  Eric Blake  <ebb9@byu.net>
26779         memchr, memchr2: add valgrind exception
26780         * lib/memchr.valgrind: New file.
26781         * lib/memchr2.valgrind: New file.
26782         * modules/memchr (Files): Distribute valgrind file.
26783         * modules/memchr2 (Files): Likewise.
26785         docs: memchr is no longer obsolete
26786         * MODULES.html.sh: Move memchr from obsolete to string.h section.
26787         * lib/string.in.h (memchr): Simplify logic.
26789 2009-06-14  Jim Meyering  <meyering@redhat.com>
26791         link-follow: fix the "checking..." message to not mention trailing slash
26792         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
26793         never considered trailing slashes.
26795 2009-06-14  Bruno Haible  <bruno@clisp.org>
26797         * m4/memchr.m4: Mention also the bug on IA-64.
26798         * doc/posix-functions/memchr.texi: Likewise.
26800 2009-06-12  Eric Blake  <ebb9@byu.net>
26802         memchr: detect broken x86_64 and alpha implementations
26803         * modules/memchr-tests (Depends-on): Move mmap detection...
26804         * modules/memchr (Depends-on): ...here.
26805         (configure.ac): Set indicator.
26806         * lib/string.in.h (memchr): Declare replacement.
26807         * modules/string (Makefile.am): Trigger replacement.
26808         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
26809         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
26810         bugs.
26811         * doc/posix-functions/memchr.texi (memchr): Document the bug.
26812         * modules/getpagesize (License): Relax license.
26814 2009-06-11  Bruno Haible  <bruno@clisp.org>
26816         * lib/idpriv.h: Add more references.
26818 2009-06-08  Bruno Haible  <bruno@clisp.org>
26820         Tests for module 'idpriv-droptemp'.
26821         * modules/idpriv-droptemp-tests: New file.
26822         * tests/test-idpriv-droptemp.sh: New file.
26823         * tests/test-idpriv-droptemp.su.sh: New file.
26824         * tests/test-idpriv-droptemp.c: New file.
26826         New module 'idpriv-droptemp'.
26827         * lib/idpriv-droptemp.c: New file.
26828         * modules/idpriv-droptemp: New file.
26830 2009-06-08  Bruno Haible  <bruno@clisp.org>
26832         Tests for module 'idpriv-drop'.
26833         * modules/idpriv-drop-tests: New file.
26834         * tests/test-idpriv-drop.sh: New file.
26835         * tests/test-idpriv-drop.su.sh: New file.
26836         * tests/test-idpriv-drop.c: New file.
26838         New module 'idpriv-drop'.
26839         * lib/idpriv.h: New file.
26840         * lib-idpriv-drop.c: New file.
26841         * m4/idpriv.m4: New file.
26842         * modules/idpriv-drop: New file.
26844 2009-06-08  Bruno Haible  <bruno@clisp.org>
26846         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
26847         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
26848         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
26849         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
26850         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
26851         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
26852         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
26854 2009-06-08  Eric Blake  <ebb9@byu.net>
26856         test-strstr: use memory fence, when possible
26857         * tests/test-strstr.c (main): Use memory fence, in order to be
26858         more likely to trigger Debian bug 521737.
26859         * modules/strstr-tests (Files): Pull in additional files.
26861         memchr: no longer obsolete, for wider field testing
26862         * modules/memchr (Status, Notice): Delete, this module is no
26863         longer obsolete.
26864         * modules/vasnprintf (Depends-on): Add memchr.
26866 2009-06-07  Jim Meyering  <meyering@redhat.com>
26868         hash: declare some functions with the warn_unused_result attribute
26869         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
26871 2009-06-07  Bruno Haible  <bruno@clisp.org>
26873         * tests/test-alignof.c: Don't test int64_t if it does not exist.
26874         Reported by Eric Blake.
26876 2009-06-06  Eric Blake  <ebb9@byu.net>
26878         test-alignof: fix typo with long double
26879         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
26880         compiler error.
26882 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
26884         Escape non-texinfo { and }s.
26885         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
26886         markup error.
26888 2009-06-04  Jim Meyering  <meyering@redhat.com>
26890         gitlog-to-changelog: don't infloop on an empty commit log
26891         * build-aux/gitlog-to-changelog: Warn about an empty log message.
26892         Reported by Boris Petersen <transacid@centerim.org>.
26894 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
26896         version-etc: extend for packagers
26897         Add three new configure options, intended for packagers:
26898           --with-packager="packager name"
26899           --with-packager-version="packager-specific version"
26900           --with-packager-bug-reports="packager bug reporting"
26901         An example with coreutils:
26902           $ ./configure \
26903             --with-packager=Gentoo \
26904             --with-packager-bug-report=http://bugs.gentoo.org/ \
26905             --with-packager-version="patchset 1.6"
26906           $ ./src/ls --version | head -n2
26907           ls (GNU coreutils) 7.1-dirty
26908           Packaged by Gentoo (patchset 1.6)
26909         Note that the bug reporting info via --help doesn't show up because
26910         coreutils uses its own custom emit_bug_reporting_address() implementation
26911         in src/system.h.  If it didn't, it'd look like:
26912           $ ./src/ls --help | tail -n4
26913           Report bugs to <bug-coreutils@gnu.org>.
26914           Report Gentoo bugs to <http://bugs.gentoo.org/>.
26915           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
26916           General help using GNU software: <http://www.gnu.org/gethelp/>.
26917         * lib/version-etc.c: Print new information, if provided.
26918         * m4/version-etc.m4: New file.
26919         * modules/version-etc (Files): Add m4/version-etc.m4.
26920         (configure.ac): Add gl_VERSION_ETC.
26922 2009-05-31  Bruno Haible  <bruno@clisp.org>
26924         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
26925         and 'int64_t'.
26926         * modules/alignof-tests (Dependencies): Add stdint.
26927         Reported by Eric Blake.
26929 2009-05-31  Bruno Haible  <bruno@clisp.org>
26931         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
26932         restriction due to compiler bugs.
26933         Reported by Eric Blake.
26935 2009-05-31  Simon Josefsson  <simon@josefsson.org>
26936             Bruno Haible  <bruno@clisp.org>
26938         Fix test-alignof failure.
26939         * lib/alignof.h (alignof_slot): New macro.
26940         (alignof_type): New macro, with the same semantics as the previous
26941         'alignof'.
26942         (alignof): Alias to alignof_slot.
26943         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
26944         check that the results are usable as constant expressions.
26946 2009-05-31  Bruno Haible  <bruno@clisp.org>
26948         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
26949         * tests/test-memchr.c (main): Check that memchr does not read past the
26950         first occurrence of the byte.
26951         * tests/test-strstr.c (main): Update comment.
26952         Suggested by Eric Blake.
26954 2009-05-30  Bruno Haible  <bruno@clisp.org>
26956         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
26957         detail how to use dumpbin.
26958         Reported by David Byron <dbyron@dbyron.com>.
26960 2009-06-02  Simon Josefsson  <simon@josefsson.org>
26962         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
26964 2009-06-02  Simon Josefsson  <simon@josefsson.org>
26966         * m4/manywarnings.m4: Add GCC 4.4 warnings.
26968 2009-05-28  Bruno Haible  <bruno@clisp.org>
26970         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
26971         build-aux/ files.
26973 2009-05-28  Simon Josefsson  <simon@josefsson.org>
26975         * gnulib-tool (func_import): Transform license on build-aux/ files too.
26977 2009-05-27  Simon Josefsson  <simon@josefsson.org>
26979         * gnulib-tool (sed_transform_main_lib_file)
26980         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
26981         regexps.
26983 2009-05-26  Simon Josefsson  <simon@josefsson.org>
26985         * tests/test-strstr.c: Add another self-test.
26986         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
26987         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
26989 2009-05-23  Bruno Haible  <bruno@clisp.org>
26991         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
26992         change.
26994 2009-05-21  Bruno Haible  <bruno@clisp.org>
26996         Simplify use of mode_t varargs.
26997         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
26998         uses 'mode_t' or 'int'.
26999         * lib/openat.c (openat): Likewise.
27000         * lib/open-safer.c (open_safer): Likewise.
27001         * m4/mode_t.m4: New file.
27002         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
27003         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
27004         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
27005         * modules/open (Files): Add m4/mode_t.m4.
27006         * modules/openat (Files): Likewise.
27007         * modules/fcntl-safer (Files): Likewise.
27008         Suggested by Eric Blake.
27010 2009-05-21  Pádraig Brady  <P@draigbrady.com>
27012         * doc/glibc-functions/fallocate.texi: New file.
27013         * doc/gnulib.texi: Include it.
27015 2009-05-21  Eric Blake  <ebb9@byu.net>
27016             Bruno Haible  <bruno@clisp.org>
27018         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
27019         invocations.
27020         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
27022 2009-05-21  Eric Blake  <ebb9@byu.net>
27023             Bruno Haible  <bruno@clisp.org>
27025         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
27026         include_next. Fix of 2008-11-20 commit.
27027         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
27028         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
27029         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
27030         NEXT_MATH_H.
27031         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
27032         instead of NEXT_MATH_H.
27034 2009-05-21  Bruno Haible  <bruno@clisp.org>
27036         Avoid redefinition warnings for SIZE_MAX.
27037         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
27038         Reported by Simon Josefsson.
27040 2009-05-21  Bruno Haible  <bruno@clisp.org>
27042         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
27043         AC_CACHE_VAL.
27045 2009-05-20  Bruno Haible  <bruno@clisp.org>
27047         Make zeroptr.h work on mingw.
27048         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
27049         mprotect.
27050         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
27051         * modules/memchr2-tests (configure.ac): Likewise.
27052         * modules/memcmp-tests (configure.ac): Likewise.
27053         * modules/memmem-tests (configure.ac): Likewise.
27054         * modules/memrchr-tests (configure.ac): Likewise.
27055         Reported by Simon Josefsson.
27057 2009-05-20  Simon Josefsson  <simon@josefsson.org>
27059         * tests/test-glob.c: Include string.h for strcmp prototype.
27061 2009-05-20  Simon Josefsson  <simon@josefsson.org>
27063         * modules/getdelim (Depends-on): Add explicit stdint, although it
27064         was implicitly already pulled in via realloc-posix.
27065         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
27067 2009-05-20  Simon Josefsson  <simon@josefsson.org>
27069         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
27070         G. Christensen" <tgc@jupiterrise.com>.
27071         * m4/sys_socket_h.m4: Check for sa_family_t.
27072         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
27073         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
27074         * tests/test-sys_socket.c: Check that sa_family_t works.
27076 2009-05-18  Eric Blake  <ebb9@byu.net>
27078         maint.mk: allow gnulib_dir in VPATH build
27079         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
27081 2009-05-15  Jim Meyering  <meyering@redhat.com>
27083         maint.mk: Give gnulib_dir a default definition.
27084         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
27085         Thus, most packages no longer need to specify this variable in cfg.mk
27087 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
27089         rename.m4: fix typos that would make non-mingw cross-configure fail
27090         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
27092 2009-05-13  Eric Blake  <ebb9@byu.net>
27094         mmap-anon: avoid out-of-order autoconf expansion
27095         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
27096         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
27097         * modules/memchr-tests (Depends-on): Add extensions.
27098         * modules/memchr2-tests (Depends-on): Add extensions.
27099         * modules/memcmp-tests (Depends-on): Add extensions.
27100         * modules/memmem-tests (Depends-on): Add extensions.
27101         * modules/memrchr-tests (Depends-on): Add extensions.
27103 2009-05-13  Bruno Haible  <bruno@clisp.org>
27105         Make some tests ISO C 99 compliant.
27106         * tests/zerosize-ptr.h: New file.
27107         * tests/test-memchr.c: Include zerosize-ptr.h.
27108         (main): Use a zero-size object pointer instead of NULL.
27109         * tests/test-memchr2.c: Include zerosize-ptr.h.
27110         (main): Use a zero-size object pointer instead of NULL.
27111         * tests/test-memcmp.c: Include zerosize-ptr.h.
27112         (main): Use a zero-size object pointer instead of NULL.
27113         * tests/test-memmem.c: Include zerosize-ptr.h.
27114         (main): Use a zero-size object pointer instead of NULL.
27115         * tests/test-memrchr.c: Include zerosize-ptr.h.
27116         (main): Use a zero-size object pointer instead of NULL.
27117         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
27118         m4/mmap-anon.m4.
27119         (Depends-on): Add getpagesize.
27120         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
27121         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
27122         m4/mmap-anon.m4.
27123         (Depends-on): Add getpagesize.
27124         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
27125         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
27126         m4/mmap-anon.m4.
27127         (Depends-on): Add getpagesize.
27128         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
27129         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
27130         m4/mmap-anon.m4.
27131         (Depends-on): Add getpagesize.
27132         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
27133         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
27134         m4/mmap-anon.m4.
27135         (Depends-on): Add getpagesize.
27136         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
27138 2009-05-12  Bruno Haible  <bruno@clisp.org>
27140         Tests for module 'alignof'.
27141         * modules/alignof-tests: New file.
27142         * tests/test-alignof.c: New file.
27144 2009-05-12  Bruno Haible  <bruno@clisp.org>
27146         Fix alignof macro.
27147         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
27148         vendor compilers that are always correct.
27150 2009-05-12  Bruno Haible  <bruno@clisp.org>
27152         Make the MAP_ANONYMOUS detection work on HP-UX 11.
27153         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
27154         not whether its fully works.
27156 2009-05-12  Bruno Haible  <bruno@clisp.org>
27158         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
27160 2009-05-12  Jim Meyering  <meyering@redhat.com>
27162         * top/maint.mk: Adjust backslash alignment.
27164 2009-05-11  Simon Josefsson  <simon@josefsson.org>
27166         * top/maint.mk: Make $(srcdir)/build-aux configurable.
27168 2009-05-11  Eric Blake  <ebb9@byu.net>
27170         argp: avoid undefined behavior
27171         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
27172         macros.
27174 2009-05-08  Simon Josefsson  <simon@josefsson.org>
27176         * tests/test-vc-list-files-git.sh: Do git config of user.email and
27177         user.name to prevent git commit from complaining.
27179 2009-05-10  Bruno Haible  <bruno@clisp.org>
27181         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
27182         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
27183         it rewrites every file name only once.
27184         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
27186 2009-05-08  Bruno Haible  <bruno@clisp.org>
27188         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
27189         instead of 'max'.
27191 2009-05-08  Simon Josefsson  <simon@josefsson.org>
27193         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
27194         sockaddr_storage test.
27196 2009-05-07  Simon Josefsson  <simon@josefsson.org>
27198         * modules/sys_socket (Makefile.am): Substitute
27199         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
27200         * m4/sys_socket_h.m4: Check for sockaddr_storage.
27201         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
27202         * tests/test-sys_socket.c: Check sockaddr_storage.
27204 2009-05-08  Bruno Haible  <bruno@clisp.org>
27206         New module 'alignof'.
27207         * lib/alignof.h: New file.
27208         * modules/alignof: New file.
27210 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
27211             Bruno Haible  <bruno@clisp.org>
27213         Fix test-file-has-acl on FreeBSD.
27214         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
27215         mask is implicitly added.
27216         * tests/test-file-has-acl.c: Include <signal.h>.
27217         (main): Terminate the test after 5 seconds.
27218         * modules/acl-tests (configure.ac): Check for alarm function.
27220 2009-05-04  Bruno Haible  <bruno@clisp.org>
27222         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
27223         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
27224         * modules/errno (configure.ac): Drop AC_REQUIRE.
27225         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
27226         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
27228 2009-05-04  Simon Josefsson  <simon@josefsson.org>
27230         * modules/glob-tests: New module.
27231         * tests/test-glob.c: Add.
27233 2009-05-04  Simon Josefsson  <simon@josefsson.org>
27235         * modules/fnmatch-tests: New module.
27236         * tests/test-fnmatch.c: Add.
27238 2009-05-04  Eric Blake  <ebb9@byu.net>
27240         maint: make the new no-submodule-changes rule VPATH-safe
27241         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
27243 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
27244             Bruno Haible  <bruno@clisp.org>
27246         acl: Fix infinite loop on FreeBSD.
27247         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
27248         of return value from acl_get_entry.
27249         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
27250         Likewise.
27252 2009-05-03  Bruno Haible  <bruno@clisp.org>
27254         * lib/acl-internal.h (acl_entries): Clarify return value.
27255         * lib/acl_entries.c (acl_entries): Likewise.
27257 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
27259         Bug fix in acl module.
27260         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
27262 2009-05-03  Bruno Haible  <bruno@clisp.org>
27264         Create gperf-generated file in the source dir, not in the build dir.
27265         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
27266         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
27267         * modules/unicase/locale-language (unicase/locale-languages.h):
27268         Likewise.
27269         * modules/unicase/special-casing (unicase/special-casing-table.h):
27270         Likewise.
27271         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
27272         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
27273         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
27274         Reported by Ralf Wildenhues.
27276 2009-05-03  Bruno Haible  <bruno@clisp.org>
27278         * modules/fnmatch (Description, configure.ac): Taken from
27279         fnmatch-posix.
27280         * modules/fnmatch-posix: Turn into a symbolic reference to the
27281         'fnmatch' module, and deprecate.
27282         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
27284 2009-05-03  Bruno Haible  <bruno@clisp.org>
27286         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
27287         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
27288         Reported by Ralf Wildenhues.
27290 2009-05-04  Simon Josefsson  <simon@josefsson.org>
27292         * m4/fnmatch.m4: Fix fnmatch re-define.
27294 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
27296         priv-set: new module and tests; adapt write-any-file
27297         * lib/priv-set.c: New file.
27298         * lib/priv-set.h: New file.
27299         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
27300         * lib/write-any-file.c: Simplify by using priv-set module.
27301         * m4/priv-set.m4: New file.
27302         * modules/priv-set: New file.
27303         * modules/unlinkdir: Add dependency on priv-set module.
27304         * modules/write-any-file: Likewise.
27306         Tests for module 'priv-set'.
27307         * modules/priv-set-tests: New file.
27308         * tests/test-priv-set.c: New file.
27310 2009-05-03  Jim Meyering  <meyering@redhat.com>
27311             Bruno Haible  <bruno@clisp.org>
27313         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
27314         use the converted UTF-8 variant of the name instead.
27316 2009-05-03  Jim Meyering  <meyering@redhat.com>
27318         tests: tighten some getdate tests
27319         * tests/test-getdate.c (main): Tighten tests: require equality,
27320         not just greater than.  Set TZ envvar to UTC0.
27322 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
27324         getdate: correctly interpret "next monday" when run on a Monday
27325         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
27326         that e.g., "next tues" (when run on a tuesday) results in a date
27327         that is one week in the future, and not today's date.
27328         I.e., add a week when the wday is the same as the current one.
27329         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
27330         and earlier by Martin Bernreuther and Jan Minář.
27331         * tests/test-getdate.c (main): Check that "next DAY" is always in
27332         the future and that "last DAY" is always in the past.
27334 2009-05-02  Jim Meyering  <meyering@redhat.com>
27336         build: ensure that a release build fails when a submodule is unclean
27337         * top/maint.mk (no-submodule-changes): New rule.
27338         (alpha beta major): Depend on it.
27340 2009-05-02  Bruno Haible  <bruno@clisp.org>
27342         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
27343         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
27344         shell variable gl_fnmatch_required to detect which variant is
27345         requested.
27346         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
27347         gl_FUNC_FNMATCH_POSIX.
27348         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
27349         exclude fnmatch-posix.
27351 2009-05-02  Bruno Haible  <bruno@clisp.org>
27353         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
27354         * modules/mbsrtowcs (License): Change to LGPLv2+.
27355         * modules/strnlen1 (License): Likewise.
27356         Reported by Simon Josefsson.
27358 2009-05-02  Bruno Haible  <bruno@clisp.org>
27360         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
27361         "cross".
27362         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
27363         gnulib-tool was called with option --source-base=lib.
27365 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27367         Use automake *-local hooks without commands, for extensibility.
27368         * modules/localcharset (Makefile.am): Rename install-exec-local
27369         rule to install-exec-localcharset, and make it a prerequisite of
27370         install-exec-local.  Likewise, rename the uninstall-local rule to
27371         uninstall-localcharset, and make it a prerequisite of the former.
27373 2009-05-01  Bruno Haible  <bruno@clisp.org>
27375         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
27376         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
27377         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
27378         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
27379         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
27380         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
27381         m4/locale-zh.m4, m4/codeset.m4.
27383         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
27384         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
27385         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
27386         m4/locale-zh.m4.
27388         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
27389         REPLACE_WCRTOMB if mbstate_t must be replaced.
27390         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
27391         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
27393 2009-05-01  Bruno Haible  <bruno@clisp.org>
27395         Avoid compiler warnings when redefining macros defined by <libintl.h>.
27396         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
27397         dngettext, dcngettext, textdomain, bindtextdomain,
27398         bind_textdomain_codeset): Undefine before redefining.
27400 2009-04-30  Bruno Haible  <bruno@clisp.org>
27402         Fix bug introduced on 2009-04-25.
27403         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
27404         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
27405         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
27406         is defined.
27407         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
27408         is defined.
27409         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
27410         is defined.
27411         Reported by Elbert_Pol <elbert.pol@gmail.com>.
27413 2009-04-28  Bruno Haible  <bruno@clisp.org>
27415         Comment tweaks.
27416         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
27417         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
27418         * lib/unicase.h (u*_casexfrm): Likewise.
27419         Reported by Paolo Bonzini.
27421 2009-04-28  Bruno Haible  <bruno@clisp.org>
27423         Fix a compilation error.
27424         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
27425         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
27426         Reported by Jim Meyering.
27428 2009-04-27  Bruno Haible  <bruno@clisp.org>
27430         New module 'libunistring'.
27431         * modules/libunistring: New file.
27432         * m4/libunistring.m4: New file.
27433         * MODULES.html.sh (Unicode string functions): Add it.
27435 2009-04-27  Eric Blake  <ebb9@byu.net>
27437         maint.mk: allow package-specific header to provide <config.h>
27438         * top/maint.mk (sc_require_config_h): New variable.
27439         (sc_require_config_h, sc_require_config_h_first): Use it.
27441 2009-04-27  Simon Josefsson  <simon@josefsson.org>
27443         * top/maint.mk (sc_avoid_if_before_free): Except
27444         useless-if-before-free script.
27446 2009-04-27  Eric Blake  <ebb9@byu.net>
27448         maintainer-makefile: depend on all required helper scripts
27449         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
27450         useless-if-before-free.
27451         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
27452         version, rather than assuming gnulib checkout is available.
27453         Reported by Simen Josefsson.
27455 2009-04-26  Bruno Haible  <bruno@clisp.org>
27457         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
27458         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
27459         "../" or "..".
27461 2009-04-26  Bruno Haible  <bruno@clisp.org>
27463         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
27464         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
27465         AC_LIB_HAVE_LINKFLAGS.
27467 2009-04-26  Bruno Haible  <bruno@clisp.org>
27469         Simplify calling convention of u*_conv_from_encoding.
27470         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
27471         u32_conv_from_encoding): Expect a resultbuf argument and return the
27472         result directly as a pointer.
27473         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
27474         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
27475         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
27476         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
27477         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
27478         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
27479         Update.
27480         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
27481         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
27482         * lib/vasnprintf.c (VASNPRINTF): Update.
27483         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
27484         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
27485         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
27486         * NEWS: Mention the change.
27488 2009-04-26  Bruno Haible  <bruno@clisp.org>
27490         Simplify calling convention of u*_conv_to_encoding.
27491         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
27492         u32_conv_to_encoding): Expect a resultbuf argument and return the
27493         result directly as a pointer.
27494         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
27495         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
27496         freeing scaled_offsets if mem_iconveha failed.
27497         * lib/unicase/u-casexfrm.h (FUNC): Update.
27498         * lib/uninorm/u-normxfrm.h (FUNC): Update.
27499         * lib/vasnprintf.c (VASNPRINTF): Update.
27500         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
27501         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
27502         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
27503         * NEWS: Mention the change.
27505 2009-04-26  Bruno Haible  <bruno@clisp.org>
27507         Avoid test failures on AIX and OSF/1.
27508         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
27509         malloc(0).
27510         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
27511         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
27512         Likewise.
27513         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
27514         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
27515         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
27516         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
27517         * doc/posix-functions/malloc.texi: Document the portability problem
27518         related to malloc(0).
27520 2009-04-26  Bruno Haible  <bruno@clisp.org>
27522         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
27523         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
27524         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
27526 2009-04-25  Bruno Haible  <bruno@clisp.org>
27528         Avoid link error when creating a namespace clean library.
27529         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
27530         as macro with arguments if already defined as an alias.
27531         * lib/signbitf.c (gl_signbitf): Don't undefine.
27532         * lib/signbitd.c (gl_signbitd): Don't undefine.
27533         * lib/signbitl.c (gl_signbitl): Don't undefine.
27535 2009-04-25  Jim Meyering  <meyering@redhat.com>
27537         vc-list-files: fix another quoting bug
27538         * build-aux/vc-list-files: Avoid sed backslash expansion
27539         of pathological directory names.
27541 2009-04-25  Eric Blake  <ebb9@byu.net>
27543         vc-list-files: fix shell quoting error
27544         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
27545         timestamp.
27547 2009-04-25  Jim Meyering  <meyering@redhat.com>
27549         vc-list-files: restore lost functionality with subdir argument
27550         * build-aux/vc-list-files: When given a non-"." sub-directory
27551         argument, substitute the $dir/ prefix back onto each resulting name.
27552         Otherwise, coreutils' root_tests check would fail.
27554 2009-04-24  Eric Blake  <ebb9@byu.net>
27556         vc-list-files: ignore git symlinks
27557         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
27558         than ls-files, to ignore git symlinks.
27560         maint.mk: import improvements from m4
27561         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
27562         (move_if_change): Delete unused macro.
27563         (news-date-check, vc-diff-check): Support VPATH builds.
27564         (announcement): Likewise.  Split --bootstrap-tools list...
27565         (boostrap-tools): ...into separate list, which can be overridden
27566         in cfg.mk.
27567         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
27568         requiring dependency on useless-if-before-free module.
27569         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
27570         Support VPATH builds.
27572 2009-04-24  Jim Meyering  <meyering@redhat.com>
27574         maint.mk: remove coreutils-specific rules and variables
27575         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
27576         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
27577         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
27579         maint.mk: remove obsolete rule
27580         * top/maint.mk (rel-check): Remove rule.
27581         (WGET, WGETFLAGS): Remove now-unused variables.
27583 2009-04-24  Simon Josefsson  <simon@josefsson.org>
27585         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
27586         consistency.
27588         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
27589         '$(PATH_SEPARATOR)' instead of ':'.
27591 2009-04-24  Simon Josefsson  <simon@josefsson.org>
27593         * lib/getopt1.c (main): Use 'const' for static array.
27595 2009-04-24  Simon Josefsson  <simon@josefsson.org>
27597         * top/maint.mk: Sync with coreutils.
27598         * NEWS: Explain incompatibilities.
27600 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27601             Bruno Haible  <bruno@clisp.org>
27603         Fix cross-compilation results.
27604         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
27605         statement, as third argument of AC_TRY_RUN.
27606         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
27607         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
27608         Likewise.
27609         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
27610         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
27611         Likewise.
27612         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
27613         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
27614         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
27616 2009-04-20  Bruno Haible  <bruno@clisp.org>
27618         Avoid test failure on mingw.
27619         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
27621 2009-04-20  Bruno Haible  <bruno@clisp.org>
27623         Avoid compilation error on mingw.
27624         * modules/localename-tests (Depends-on): Add locale.
27626 2009-04-19  Bruno Haible  <bruno@clisp.org>
27628         Support for building a shared library on Windows platforms.
27629         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
27630         (main): Test the presence of UNINORM_NFC here.
27631         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
27632         (main): Test the presence of UNINORM_NFD here.
27633         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
27634         (main): Test the presence of UNINORM_NFKC here.
27635         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
27636         (main): Test the presence of UNINORM_NFKD here.
27638 2009-04-19  Bruno Haible  <bruno@clisp.org>
27640         Avoid a compiler warning.
27641         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
27642         Change type of variable 'sequence'.
27644 2009-04-19  Bruno Haible  <bruno@clisp.org>
27646         * modules/configmake (Makefile.am): When the contents of configmake.h
27647         does not change, arrange to preserve its modification time.
27649 2009-04-17  Simon Josefsson  <simon@josefsson.org>
27651         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
27652         gettext domain.
27654 2009-04-16  Jim Meyering  <meyering@redhat.com>
27656         useless-if-before-free: improve conversion code
27657         * build-aux/useless-if-before-free: Adjust code-in-comment to match
27658         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
27660 2009-04-14  Bruno Haible  <bruno@clisp.org>
27662         * modules/fcntl (Depends-on): Add extensions.
27663         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
27665 2009-04-12  Ben Pfaff  <blp@gnu.org>
27667         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
27668         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
27670 2009-03-20  Ben Pfaff  <blp@gnu.org>
27672         Make rename replace existing destinations on Windows.
27673         * m4/rename.m4: Add test for Mingw.
27674         * lib/rename.c: Add rename replacement that uses MoveFileEx with
27675         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
27676         * doc/posix-functions/rename.texi: Document.
27678 2009-04-10  Bruno Haible  <bruno@clisp.org>
27680         New include file "iconveh.h".
27681         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
27682         * lib/striconveh.h: Include it.
27683         (enum iconv_ilseq_handler): Remove definition.
27684         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
27685         striconveh.h.
27686         * lib/striconveha.c: Include striconveh.h.
27687         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
27688         * modules/striconveh (Files): Add lib/iconveh.h.
27689         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
27690         lib/striconveh.h.
27692 2009-04-10  Bruno Haible  <bruno@clisp.org>
27694         * lib/uniconv.h: Update comment.
27696 2009-04-10  Bruno Haible  <bruno@clisp.org>
27698         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
27699         always.
27700         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
27701         * lib/unistr/u16-mbtouc-aux.c: Likewise.
27702         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
27703         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
27704         "unistring-notinline.h", so that the function gets defined always.
27705         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
27706         * lib/unistr/u8-uctomb.c: Likewise.
27707         * lib/unistr/u16-mbtouc.c: Likewise.
27708         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
27709         * lib/unistr/u16-uctomb.c: Likewise.
27710         * lib/unistr/u32-mbtouc.c: Likewise.
27711         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
27712         * lib/unistr/u32-uctomb.c: Likewise.
27714 2009-04-10  Bruno Haible  <bruno@clisp.org>
27716         Mark 'utime' obsolete.
27717         * modules/utime (Status, Notice): New sections.
27718         Suggested by Jim Meyering.
27720         Fix cross-compile guess for utime test.
27721         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
27722         autoconf.
27723         * doc/posix-functions/utime.texi: Give more precisions.
27724         Reported by Jan <ipif@ymail.com>.
27726 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
27728         filevercmp: correct today's change
27729         * lib/filevercmp.c: Also handle coreutils' test inputs.
27730         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
27732         Fix regression in 'filevercmp' module. Thanks Sven Joachim
27733         for reporting it.
27734         * lib/filevercmp.c: Special handle for "", "." and "..".
27735         * tests/test-filevercmp.c: Enlarge the set suite.
27737 2009-04-07  Jim Meyering  <meyering@redhat.com>
27739         useless-if-before-free: show how to remove braced useless free, too
27740         * build-aux/useless-if-before-free: still only in a comment, though.
27742 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
27744         maint.mk: import changes to syntax-check macros from coreutils
27745         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
27746         Use them in the relevant macros.
27748 2009-04-06  Bruno Haible  <bruno@clisp.org>
27750         Fix unportable use of bit-fields.
27751         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
27752         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
27753         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
27755 2009-04-06  Bruno Haible  <bruno@clisp.org>
27757         Avoid test failures on AIX and OSF/1.
27758         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
27759         that malloc(0) = NULL.
27760         * tests/unicase/test-u8-tolower.c (check): Likewise.
27761         * tests/unicase/test-u8-totitle.c (check): Likewise.
27762         * tests/unicase/test-u8-toupper.c (check): Likewise.
27763         * tests/unicase/test-u16-casefold.c (check): Likewise.
27764         * tests/unicase/test-u16-tolower.c (check): Likewise.
27765         * tests/unicase/test-u16-totitle.c (check): Likewise.
27766         * tests/unicase/test-u16-toupper.c (check): Likewise.
27767         * tests/unicase/test-u32-casefold.c (check): Likewise.
27768         * tests/unicase/test-u32-tolower.c (check): Likewise.
27769         * tests/unicase/test-u32-totitle.c (check): Likewise.
27770         * tests/unicase/test-u32-toupper.c (check): Likewise.
27771         * tests/uninorm/test-u8-nfc.c (check): Likewise.
27772         * tests/uninorm/test-u8-nfd.c (check): Likewise.
27773         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
27774         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
27775         * tests/uninorm/test-u16-nfc.c (check): Likewise.
27776         * tests/uninorm/test-u16-nfd.c (check): Likewise.
27777         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
27778         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
27779         * tests/uninorm/test-u32-nfc.c (check): Likewise.
27780         * tests/uninorm/test-u32-nfd.c (check): Likewise.
27781         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
27782         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
27784 2009-04-05  Bruno Haible  <bruno@clisp.org>
27786         Work around an autoconf limitation.
27787         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
27788         comment line if it would be longer than 3 KB.
27790 2009-04-05  Bruno Haible  <bruno@clisp.org>
27792         Avoid test failure with libiconv-1.13.
27793         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
27794         of the expected test results.
27796 2009-04-05  Bruno Haible  <bruno@clisp.org>
27798         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
27799         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
27800         that it should be installed.
27802 2009-04-05  Bruno Haible  <bruno@clisp.org>
27804         * gnulib-tool: New option --copy-file.
27805         (func_usage): Document it.
27806         (func_dest_tmpfilename): Moved out of func_import.
27807         (func_add_file, func_update_file): New functions, extracted from
27808         func_import.
27809         (func_import): Update.
27811 2009-04-05  Karl Berry  <karl@gnu.org>
27813         * README: prominently mention gnulib-tool.
27814         Rearrange sections so getting the code is near the top.
27816 2009-04-05  Bruno Haible  <bruno@clisp.org>
27818         * lib/unicase.h: Mention u*_cmp2.
27819         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
27820         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
27821         * lib/unicase/ulc-casecmp.c: Likewise.
27822         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
27823         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
27824         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
27825         unistr/u8-cmp.
27826         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
27827         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
27828         unistr/u16-cmp.
27829         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
27830         unistr/u32-cmp.
27832         * lib/uninorm.h: Mention u*_cmp2.
27833         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
27834         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
27835         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
27836         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
27837         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
27838         unistr/u8-cmp.
27839         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
27840         unistr/u16-cmp.
27841         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
27842         unistr/u32-cmp.
27844         New module 'unistr/u32-cmp2'.
27845         * lib/unistr/u32-cmp2.c: New file.
27846         * modules/unistr/u32-cmp2: New file.
27848         New module 'unistr/u16-cmp2'.
27849         * lib/unistr/u16-cmp2.c: New file.
27850         * modules/unistr/u16-cmp2: New file.
27852         New module 'unistr/u8-cmp2'.
27853         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
27854         * lib/unistr/u8-cmp2.c: New file.
27855         * lib/unistr/u-cmp2.h: New file.
27856         * modules/unistr/u8-cmp2: New file.
27858 2009-04-05  Bruno Haible  <bruno@clisp.org>
27860         * lib/unictype.h (uc_property_is_valid): New macro.
27861         * tests/unictype/test-pr_byname.c (main): Use it.
27863         * lib/unistr.h: Doc fixes.
27864         * lib/uniconv.h: Doc fixes.
27865         * lib/unictype.h: Doc fixes.
27867 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
27869         Port coreutils 7.2 to Solaris 8.
27871         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
27872         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
27873         for Solaris 8.  This is a bit of a hack, as it means it's the
27874         caller's responsibility to add -lnsl if needed, but most likely it
27875         won't be needed since only getaddrinfo uses this and getaddrinfo
27876         isn't needed on Solaris 8.
27878         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
27879         problem to Solaris 8 encountered with coreutils 7.2, which
27880         resulted in a message "fnmatch.c:292: warning: passing argument 4
27881         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
27882         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
27884 2009-04-03  Simon Josefsson  <simon@josefsson.org>
27886         * m4/ld-version-script.m4: Add FIXME comment.
27888 2009-04-02  Simon Josefsson  <simon@josefsson.org>
27890         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
27891         SOVERSION variable.
27893 2009-04-02  Bruno Haible  <bruno@clisp.org>
27895         * Makefile (info, html, dvi, pdf): Combine the rules.
27896         Suggested by Jim Meyering.
27898 2009-04-01  Bruno Haible  <bruno@clisp.org>
27900         * Makefile (info, html, dvi, pdf): New targets.
27901         Reported by Reuben Thomas <rrt@sc3d.org>.
27903 2009-04-01  Bruno Haible  <bruno@clisp.org>
27905         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
27906         can be put into PATH.
27907         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
27909 2009-04-01  Bruno Haible  <bruno@clisp.org>
27911         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
27913 2009-04-01  Bruno Haible  <bruno@clisp.org>
27915         Rename module 'visibility'.
27916         * modules/lib-symbol-visibility: Renamed from modules/visibility.
27917         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
27918         * doc/gnulib.texi: Update.
27919         * MODULES.html.sh (Misc): Update.
27920         * NEWS: Mention the change.
27922 2009-04-01  Simon Josefsson  <simon@josefsson.org>
27924         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
27925         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
27926         Eric Blake <ebb9@byu.net> for review.
27927         * MODULES.html.sh: Add lib-msvc-compat.
27928         * doc/gnulib.texi: Link to new section.
27929         * m4/ld-output-def.m4: New file.
27930         * doc/ld-output-def.texi: New file.
27932 2009-04-01  Simon Josefsson  <simon@josefsson.org>
27934         Rename ld-version-script to lib-symbol-versions.  Suggested by
27935         Bruno Haible <bruno@clisp.org>.
27936         * modules/ld-version-script: Renamed to lib-symbol-versions.
27937         * doc/ld-version-script.texi: Fix module name.
27938         * MODULES.html.sh: Add lib-symbol-versions.
27940 2009-03-31  Simon Josefsson  <simon@josefsson.org>
27942         * modules/u64-tests: New file.
27943         * tests/test-u64.c: New file.
27945 2009-03-04  Simon Josefsson  <simon@josefsson.org>
27947         * MODULES.html.sh: Mention u64.
27948         * modules/u64: New module.
27949         * modules/crypto/sha512: Depend on u64 module instead of providing
27950         u64.h.
27952 2009-03-27  Eric Blake  <ebb9@byu.net>
27954         test-strerror: make debugging EAI_SYSTEM easier
27955         * modules/getaddrinfo-tests (Depends-on): Add strerror.
27956         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
27957         failure was EAI_SYSTEM.
27959 2009-03-25  Bruno Haible  <bruno@clisp.org>
27961         Fix a problem with --enable-relocatable on Solaris 7.
27962         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
27963         since 2008-02-24.
27965 2009-03-25  Eric Blake  <ebb9@byu.net>
27967         test-sockets: avoid gcc warning
27968         * tests/test-sockets.c (main): Silence compiler warning.
27970 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
27972         New modules nproc, pthread, contributed by Glen Lenker.
27974         * MODULES.html.sh: Add pthread, nproc.
27975         * lib/nproc.c: New file.
27976         * lib/nproc.h: New file.
27977         * lib/pthread.in.h: New file.
27978         * m4/pthread.m4: New file.
27979         * modules/nproc: New file.
27980         * modules/pthread: New file.
27982 2009-03-24  Simon Josefsson  <simon@josefsson.org>
27984         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
27985         New variable.
27987 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
27989         filevercmp: handle simple~ and numbered.~3~ backup suffixes
27990         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
27991         * tests/test-filevercmp.c: Add tests for backup suffixes.
27993 2009-03-24  Simon Josefsson  <simon@josefsson.org>
27995         * modules/stdlib (Depends-on): Add stdint, needed when defining
27996         struct random_data on, for example, HP-UX 10.20.  Reported by
27997         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
27999 2009-03-24  Simon Josefsson  <simon@josefsson.org>
28001         * lib/readline.c (readline): Call fflush on stdout after printing
28002         prompt.
28004 2009-03-20  Bruno Haible  <bruno@clisp.org>
28006         Remove dependency from 'close' module to -lws2_32 on native Windows.
28007         * lib/close-hook.h: New file.
28008         * lib/close-hook.c: New file.
28009         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
28010         w32sock.h.
28011         (_gl_close_fd_maybe_socket): Remove function.
28012         (rpl_close): Invoke execute_all_close_hooks instead of
28013         _gl_close_fd_maybe_socket.
28014         * lib/sockets.c: Include close-hook.h, w32sock.h.
28015         (close_fd_maybe_socket): New function, essentially from lib/close.c.
28016         (close_sockets_hook): New variable.
28017         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
28018         (gl_sockets_cleanup): Unregister it.
28019         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
28020         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
28021         * modules/close-hook: New file.
28022         * modules/close (Files): Remove lib/w32sock.h.
28023         (Depends-on): Add close-hook.
28024         (Link): Remove section.
28025         * modules/sockets (Files): Add lib/w32sock.h.
28026         (Depends-on): Add close-hook.
28027         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
28028         invocation.
28029         * NEWS: Mention that LIB_CLOSE is gone.
28031 2009-03-23  Eric Blake  <ebb9@byu.net>
28033         signal-tests: test previous patch
28034         * tests/test-signal.c: New file.
28035         * modules/signal-tests: Likewise.
28037         signal.h: always support 'volatile sig_atomic_t'
28038         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
28039         (gl_SIGNAL_H_DEFAULTS): Add a default.
28040         * modules/signal (Makefile.am): Substitute if needed.
28041         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
28042         users can blindly add volatile.
28043         * doc/posix-headers/signal.texi (signal.h): Document it.
28044         Reported by Matthew Woehlke.
28046 2009-03-23  Jim Meyering  <meyering@redhat.com>
28048         pathmax: PATH_MAX: use pathconf only when available
28049         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
28050         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
28051         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
28052         This avoids a link failure in a PSP cross-compilation environment
28053         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
28055         * lib/vasnprintf.c (divide): Fix typo in comment.
28057 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28059         * gnulib-tool (func_filter_filelist): Fix comment.
28061 2009-03-20  Bruno Haible  <bruno@clisp.org>
28063         Make sockets.h self-contained.
28064         * lib/sockets.c: Include sockets.h first.
28065         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
28067 2009-03-19  Eric Blake  <ebb9@byu.net>
28069         doc: mention more functions added in cygwin 1.7.0
28070         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
28071         addition.
28072         * doc/posix-functions/log2f.texi: Likewise.
28074 2009-03-19  Jim Meyering  <meyering@redhat.com>
28076         fsusage: avoid syntax error due to statement-before-declaration
28077         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
28078         after all declarations.  Reported by Matthew Woehlke in
28079         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
28081 2009-03-18  Eric Blake  <ebb9@byu.net>
28083         build-aux/compile: sync from automake
28084         * build-aux/compile: New file, from automake.
28085         * config/srclist.txt: Mention build-aux/compile.
28087 2009-03-17  Bruno Haible  <bruno@clisp.org>
28089         * lib/git-merge-changelog.c: Fix typo in comment.
28090         Reported by Reuben Thomas <rrt@sc3d.org>.
28092 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
28094         * m4/regex.m4: update and improve help for
28095         --without-included-regex.
28097 2009-03-17  Simon Josefsson  <simon@josefsson.org>
28099         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
28100         failure on missing include files.
28102 2009-03-17  Eric Blake  <ebb9@byu.net>
28104         doc: mention more functions added in cygwin 1.7.0
28105         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
28106         addition.
28107         * doc/posix-functions/fwscanf.texi: Likewise.
28108         * doc/posix-functions/swprintf.texi: Likewise.
28109         * doc/posix-functions/swscanf.texi: Likewise.
28110         * doc/posix-functions/vfwprintf.texi: Likewise.
28111         * doc/posix-functions/vfwscanf.texi: Likewise.
28112         * doc/posix-functions/vswprintf.texi: Likewise.
28113         * doc/posix-functions/vswscanf.texi: Likewise.
28114         * doc/posix-functions/vwprintf.texi: Likewise.
28115         * doc/posix-functions/vwscanf.texi: Likewise.
28116         * doc/posix-functions/wcscasecmp.texi: Likewise.
28117         * doc/posix-functions/wcsdup.texi: Likewise.
28118         * doc/posix-functions/wcsftime.texi: Likewise.
28119         * doc/posix-functions/wcsncasecmp.texi: Likewise.
28120         * doc/posix-functions/wprintf.texi: Likewise.
28121         * doc/posix-functions/wscanf.texi: Likewise.
28122         * doc/glibc-functions/gethostbyname2.texi: Likewise.
28124 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28126         maint.mk: really add $(AM_MAKEFLAGS)
28127         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
28128         was inadvertently omitted in the last commit.
28129         Spotted by Bruno Haible.
28131         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
28132         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
28133         $(AM_MAKEFLAGS)' rather than plain `make'.
28135         gnulib-tool: execute $MAKE not make
28136         * gnulib-tool: Default $MAKE to 'make'.
28137         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
28138         than make.  Initialize $MAKE in the do-autobuild script.
28140         gnulib-tool: use $MAKE not make in generated files
28141         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
28142         make, in generated files.  Initialize $MAKE in the do-autobuild
28143         script.
28145         * top/GNUmakefile (_have-git-version-gen): Fix typo.
28147         GNUmakefile: disable parallelism only for multiple, recursive targets
28148         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
28149         additions in the Makefile.
28150         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
28151         by Automake.
28152         (.NOTPARALLEL): Only disable parallel builds if multiple targets
28153         are listed on the command line and at least one of them is
28154         listed in $(ALL_RECURSIVE_TARGETS).
28156 2009-03-14  Bruno Haible  <bruno@clisp.org>
28158         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
28159         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
28160         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
28161         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
28162         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
28163         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
28164         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
28165         unistr/u8-uctomb.
28166         * modules/unistr/u8-strchr (Depends-on): Likewise.
28167         * modules/unistr/u8-strrchr (Depends-on): Likewise.
28168         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
28169         unistr/u16-uctomb.
28170         * modules/unistr/u16-strchr (Depends-on): Likewise.
28171         * modules/unistr/u16-strrchr (Depends-on): Likewise.
28173 2009-03-12  Bruno Haible  <bruno@clisp.org>
28175         Work around select() bug on Interix 3.5.
28176         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
28177         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
28178         * m4/select.m4: New file.
28179         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
28180         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
28181         * modules/select (Files): Add m4/select.m4.
28182         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
28183         * modules/nanosleep (Depends-on): Add select.
28184         * modules/poll (Depends-on): Likewise.
28185         * doc/posix-functions/select.texi: Mention the Interix bug.
28186         Reported by Markus Duft <mduft@gentoo.org>.
28188         * lib/select.c: Renamed from lib/winsock-select.c.
28189         * modules/select (Files): Add lib/select.c, remove
28190         lib/winsock-select.c.
28191         (configure.ac): Update.
28193 2009-03-12  Jim Meyering  <meyering@redhat.com>
28195         avoid gcc warnings about unused macro definitions
28196         * lib/readtokens.c (STREQ): Remove unused definition.
28197         * lib/xmalloc.c (SIZE_MAX): Likewise.
28198         * lib/openat-die.c (N_): Likewise.
28199         * lib/mountlist.c (SIZE_MAX): Remove definition.
28200         Instead, include <stdint.h>.
28201         * lib/readutmp.c: Likewise.
28202         * modules/readutmp (Depends-on): Add stdint.
28203         * modules/mountlist (Depends-on): Add stdint.
28204         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
28206 2009-03-10  Bruno Haible  <bruno@clisp.org>
28208         Tests for module 'mbmemcasecoll'.
28209         * modules/mbmemcasecoll-tests: New file.
28210         * tests/test-mbmemcasecoll1.sh: New file.
28211         * tests/test-mbmemcasecoll2.sh: New file.
28212         * tests/test-mbmemcasecoll3.sh: New file.
28213         * tests/test-mbmemcasecoll.c: New file.
28215         New module 'mbmemcasecoll'.
28216         * lib/mbmemcasecoll.h: New file.
28217         * lib/mbmemcasecoll.c: New file.
28218         * modules/mbmemcasecoll: New file.
28220         * tests/test-mbmemcasecmp.h: New file, extracted from
28221         tests/test-mbmemcasecmp.c.
28222         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
28223         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
28224         (main): Update.
28225         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
28227 2009-03-09  Bruno Haible  <bruno@clisp.org>
28229         Tests for module 'mbmemcasecmp'.
28230         * modules/mbmemcasecmp-tests: New file.
28231         * tests/test-mbmemcasecmp1.sh: New file.
28232         * tests/test-mbmemcasecmp2.sh: New file.
28233         * tests/test-mbmemcasecmp3.sh: New file.
28234         * tests/test-mbmemcasecmp.c: New file.
28236         New module 'mbmemcasecmp'.
28237         * lib/mbmemcasecmp.h: New file.
28238         * lib/mbmemcasecmp.c: New file.
28239         * modules/mbmemcasecmp: New file.
28241 2009-03-09  Bruno Haible  <bruno@clisp.org>
28243         Tests for module 'unicase/ulc-casecoll'.
28244         * modules/unicase/ulc-casecoll-tests: New file.
28245         * tests/unicase/test-ulc-casecoll1.sh: New file.
28246         * tests/unicase/test-ulc-casecoll2.sh: New file.
28247         * tests/unicase/test-ulc-casecoll.c: New file.
28249         New module 'unicase/ulc-casecoll'.
28250         * lib/unicase.h (ulc_casecoll): New declaration.
28251         * lib/unicase/ulc-casecoll.c: New file.
28252         * modules/unicase/ulc-casecoll: New file.
28254         New module 'unicase/ulc-casexfrm'.
28255         * lib/unicase.h (ulc_casexfrm): New declaration.
28256         * lib/unicase/ulc-casexfrm.c: New file.
28257         * modules/unicase/ulc-casexfrm: New file.
28259 2009-03-09  Bruno Haible  <bruno@clisp.org>
28261         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
28262         invocations.
28264         * m4/mbscasecmp.m4: Remove file.
28265         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
28266         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
28268         * m4/mbscasestr.m4: Remove file.
28269         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
28270         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
28272         * m4/mbschr.m4: Remove file.
28273         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
28274         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
28276         * m4/mbscspn.m4: Remove file.
28277         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
28278         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
28280         * m4/mbslen.m4: Remove file.
28281         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
28282         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
28284         * m4/mbsncasecmp.m4: Remove file.
28285         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
28286         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
28288         * m4/mbsnlen.m4: Remove file.
28289         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
28290         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
28292         * m4/mbspbrk.m4: Remove file.
28293         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
28294         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
28296         * m4/mbspcasecmp.m4: Remove file.
28297         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
28298         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
28300         * m4/mbsrchr.m4: Remove file.
28301         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
28302         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
28304         * m4/mbssep.m4: Remove file.
28305         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
28306         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
28308         * m4/mbsspn.m4: Remove file.
28309         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
28310         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
28312         * m4/mbsstr.m4: Remove file.
28313         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
28314         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
28316         * m4/mbstok_r.m4: Remove file.
28317         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
28318         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
28320         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
28322         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
28323         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
28325         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
28327 2009-03-08  Bruno Haible  <bruno@clisp.org>
28329         Tests for module 'unicase/ulc-casecmp'.
28330         * modules/unicase/ulc-casecmp-tests: New file.
28331         * tests/unicase/test-ulc-casecmp1.sh: New file.
28332         * tests/unicase/test-ulc-casecmp2.sh: New file.
28333         * tests/unicase/test-ulc-casecmp.c: New file.
28335         New module 'unicase/ulc-casecmp'.
28336         * lib/unicase.h (ulc_casecmp): New declaration.
28337         * lib/unicase/ulc-casecmp.c: New file.
28338         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
28339         'const SRC_UNIT *'.
28340         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
28341         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
28342         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
28343         * modules/unicase/ulc-casecmp: New file.
28345         Tests for module 'unicase/u32-is-cased'.
28346         * modules/unicase/u32-is-cased-tests: New file.
28347         * tests/unicase/test-u32-is-cased.c: New file.
28349         Tests for module 'unicase/u16-is-cased'.
28350         * modules/unicase/u16-is-cased-tests: New file.
28351         * tests/unicase/test-u16-is-cased.c: New file.
28353         Tests for module 'unicase/u8-is-cased'.
28354         * modules/unicase/u8-is-cased-tests: New file.
28355         * tests/unicase/test-u8-is-cased.c: New file.
28356         * tests/unicase/test-is-cased.h: New file.
28358         New module 'unicase/u32-is-cased'.
28359         * lib/unicase/u32-is-cased.c: New file.
28360         * modules/unicase/u32-is-cased: New file.
28362         New module 'unicase/u16-is-cased'.
28363         * lib/unicase/u16-is-cased.c: New file.
28364         * modules/unicase/u16-is-cased: New file.
28366         New module 'unicase/u8-is-cased'.
28367         * lib/unicase/u8-is-cased.c: New file.
28368         * lib/unicase/u-is-cased.h: New file.
28369         * modules/unicase/u8-is-cased: New file.
28371         Tests for module 'unicase/u32-is-casefolded'.
28372         * modules/unicase/u32-is-casefolded-tests: New file.
28373         * tests/unicase/test-u32-is-casefolded.c: New file.
28375         Tests for module 'unicase/u16-is-casefolded'.
28376         * modules/unicase/u16-is-casefolded-tests: New file.
28377         * tests/unicase/test-u16-is-casefolded.c: New file.
28379         Tests for module 'unicase/u8-is-casefolded'.
28380         * modules/unicase/u8-is-casefolded-tests: New file.
28381         * tests/unicase/test-u8-is-casefolded.c: New file.
28382         * tests/unicase/test-is-casefolded.h: New file.
28384         New module 'unicase/u32-is-casefolded'.
28385         * lib/unicase/u32-is-casefolded.c: New file.
28386         * modules/unicase/u32-is-casefolded: New file.
28388         New module 'unicase/u16-is-casefolded'.
28389         * lib/unicase/u16-is-casefolded.c: New file.
28390         * modules/unicase/u16-is-casefolded: New file.
28392         New module 'unicase/u8-is-casefolded'.
28393         * lib/unicase/u8-is-casefolded.c: New file.
28394         * modules/unicase/u8-is-casefolded: New file.
28396         Tests for module 'unicase/u32-is-titlecase'.
28397         * modules/unicase/u32-is-titlecase-tests: New file.
28398         * tests/unicase/test-u32-is-titlecase.c: New file.
28400         Tests for module 'unicase/u16-is-titlecase'.
28401         * modules/unicase/u16-is-titlecase-tests: New file.
28402         * tests/unicase/test-u16-is-titlecase.c: New file.
28404         Tests for module 'unicase/u8-is-titlecase'.
28405         * modules/unicase/u8-is-titlecase-tests: New file.
28406         * tests/unicase/test-u8-is-titlecase.c: New file.
28407         * tests/unicase/test-is-titlecase.h: New file.
28409         New module 'unicase/u32-is-titlecase'.
28410         * lib/unicase/u32-is-titlecase.c: New file.
28411         * modules/unicase/u32-is-titlecase: New file.
28413         New module 'unicase/u16-is-titlecase'.
28414         * lib/unicase/u16-is-titlecase.c: New file.
28415         * modules/unicase/u16-is-titlecase: New file.
28417         New module 'unicase/u8-is-titlecase'.
28418         * lib/unicase/u8-is-titlecase.c: New file.
28419         * modules/unicase/u8-is-titlecase: New file.
28421         Tests for module 'unicase/u32-is-lowercase'.
28422         * modules/unicase/u32-is-lowercase-tests: New file.
28423         * tests/unicase/test-u32-is-lowercase.c: New file.
28425         Tests for module 'unicase/u16-is-lowercase'.
28426         * modules/unicase/u16-is-lowercase-tests: New file.
28427         * tests/unicase/test-u16-is-lowercase.c: New file.
28429         Tests for module 'unicase/u8-is-lowercase'.
28430         * modules/unicase/u8-is-lowercase-tests: New file.
28431         * tests/unicase/test-u8-is-lowercase.c: New file.
28432         * tests/unicase/test-is-lowercase.h: New file.
28434         New module 'unicase/u32-is-lowercase'.
28435         * lib/unicase/u32-is-lowercase.c: New file.
28436         * modules/unicase/u32-is-lowercase: New file.
28438         New module 'unicase/u16-is-lowercase'.
28439         * lib/unicase/u16-is-lowercase.c: New file.
28440         * modules/unicase/u16-is-lowercase: New file.
28442         New module 'unicase/u8-is-lowercase'.
28443         * lib/unicase/u8-is-lowercase.c: New file.
28444         * modules/unicase/u8-is-lowercase: New file.
28446         Tests for module 'unicase/u32-is-uppercase'.
28447         * modules/unicase/u32-is-uppercase-tests: New file.
28448         * tests/unicase/test-u32-is-uppercase.c: New file.
28450         Tests for module 'unicase/u16-is-uppercase'.
28451         * modules/unicase/u16-is-uppercase-tests: New file.
28452         * tests/unicase/test-u16-is-uppercase.c: New file.
28454         Tests for module 'unicase/u8-is-uppercase'.
28455         * modules/unicase/u8-is-uppercase-tests: New file.
28456         * tests/unicase/test-u8-is-uppercase.c: New file.
28457         * tests/unicase/test-is-uppercase.h: New file.
28459         New module 'unicase/u32-is-uppercase'.
28460         * lib/unicase/u32-is-uppercase.c: New file.
28461         * modules/unicase/u32-is-uppercase: New file.
28463         New module 'unicase/u16-is-uppercase'.
28464         * lib/unicase/u16-is-uppercase.c: New file.
28465         * modules/unicase/u16-is-uppercase: New file.
28467         New module 'unicase/u8-is-uppercase'.
28468         * lib/unicase/u8-is-uppercase.c: New file.
28469         * modules/unicase/u8-is-uppercase: New file.
28471         New module 'unicase/u32-is-invariant'.
28472         * lib/unicase/u32-is-invariant.c: New file.
28473         * modules/unicase/u32-is-invariant: New file.
28475         New module 'unicase/u16-is-invariant'.
28476         * lib/unicase/u16-is-invariant.c: New file.
28477         * modules/unicase/u16-is-invariant: New file.
28479         New module 'unicase/u8-is-invariant'.
28480         * lib/unicase/u8-is-invariant.c: New file.
28481         * lib/unicase/invariant.h: New file.
28482         * lib/unicase/u-is-invariant.h: New file.
28483         * modules/unicase/u8-is-invariant: New file.
28485         Tests for module 'unicase/u32-casecoll'.
28486         * modules/unicase/u32-casecoll-tests: New file.
28487         * tests/unicase/test-u32-casecoll.c: New file.
28489         Tests for module 'unicase/u16-casecoll'.
28490         * modules/unicase/u16-casecoll-tests: New file.
28491         * tests/unicase/test-u16-casecoll.c: New file.
28493         Tests for module 'unicase/u8-casecoll'.
28494         * modules/unicase/u8-casecoll-tests: New file.
28495         * tests/unicase/test-u8-casecoll.c: New file.
28497         New module 'unicase/u32-casecoll'.
28498         * lib/unicase/u32-casecoll.c: New file.
28499         * modules/unicase/u32-casecoll: New file.
28501         New module 'unicase/u16-casecoll'.
28502         * lib/unicase/u16-casecoll.c: New file.
28503         * modules/unicase/u16-casecoll: New file.
28505         New module 'unicase/u8-casecoll'.
28506         * lib/unicase/u8-casecoll.c: New file.
28507         * lib/unicase/u-casecoll.h: New file.
28508         * modules/unicase/u8-casecoll: New file.
28510         New module 'unicase/u32-casexfrm'.
28511         * lib/unicase/u32-casexfrm.c: New file.
28512         * modules/unicase/u32-casexfrm: New file.
28514         New module 'unicase/u16-casexfrm'.
28515         * lib/unicase/u16-casexfrm.c: New file.
28516         * modules/unicase/u16-casexfrm: New file.
28518         New module 'unicase/u8-casexfrm'.
28519         * lib/unicase/u8-casexfrm.c: New file.
28520         * lib/unicase/u-casexfrm.h: New file.
28521         * modules/unicase/u8-casexfrm: New file.
28523         Tests for module 'unicase/u32-casecmp'.
28524         * modules/unicase/u32-casecmp-tests: New file.
28525         * tests/unicase/test-u32-casecmp.c: New file.
28527         Tests for module 'unicase/u16-casecmp'.
28528         * modules/unicase/u16-casecmp-tests: New file.
28529         * tests/unicase/test-u16-casecmp.c: New file.
28531         Tests for module 'unicase/u8-casecmp'.
28532         * modules/unicase/u8-casecmp-tests: New file.
28533         * tests/unicase/test-u8-casecmp.c: New file.
28534         * tests/unicase/test-casecmp.h: New file.
28536         New module 'unicase/u32-casecmp'.
28537         * lib/unicase/u32-casecmp.c: New file.
28538         * modules/unicase/u32-casecmp: New file.
28540         New module 'unicase/u16-casecmp'.
28541         * lib/unicase/u16-casecmp.c: New file.
28542         * modules/unicase/u16-casecmp: New file.
28544         New module 'unicase/u8-casecmp'.
28545         * lib/unicase/u8-casecmp.c: New file.
28546         * lib/unicase/u-casecmp.h: New file.
28547         * modules/unicase/u8-casecmp: New file.
28549         Tests for module 'unicase/u32-casefold'.
28550         * modules/unicase/u32-casefold-tests: New file.
28551         * tests/unicase/test-u32-casefold.c: New file.
28553         Tests for module 'unicase/u16-casefold'.
28554         * modules/unicase/u16-casefold-tests: New file.
28555         * tests/unicase/test-u16-casefold.c: New file.
28557         Tests for module 'unicase/u8-casefold'.
28558         * modules/unicase/u8-casefold-tests: New file.
28559         * tests/unicase/test-u8-casefold.c: New file.
28561         New module 'unicase/u32-casefold'.
28562         * lib/unicase/u32-casefold.c: New file.
28563         * modules/unicase/u32-casefold: New file.
28565         New module 'unicase/u16-casefold'.
28566         * lib/unicase/u16-casefold.c: New file.
28567         * modules/unicase/u16-casefold: New file.
28569         New module 'unicase/u8-casefold'.
28570         * lib/unicase/u8-casefold.c: New file.
28571         * lib/unicase/u-casefold.h: New file.
28572         * modules/unicase/u8-casefold: New file.
28574         New module 'unicase/tocasefold'.
28575         * lib/unicase/casefold.h: New file.
28576         * lib/unicase/tocasefold.c: New file.
28577         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
28578         * modules/unicase/tocasefold: New file.
28580         Tests for module 'unicase/u32-totitle'.
28581         * modules/unicase/u32-totitle-tests: New file.
28582         * tests/unicase/test-u32-totitle.c: New file.
28584         Tests for module 'unicase/u16-totitle'.
28585         * modules/unicase/u16-totitle-tests: New file.
28586         * tests/unicase/test-u16-totitle.c: New file.
28588         Tests for module 'unicase/u8-totitle'.
28589         * modules/unicase/u8-totitle-tests: New file.
28590         * tests/unicase/test-u8-totitle.c: New file.
28592         New module 'unicase/u32-totitle'.
28593         * lib/unicase/u32-totitle.c: New file.
28594         * modules/unicase/u32-totitle: New file.
28596         New module 'unicase/u16-totitle'.
28597         * lib/unicase/u16-totitle.c: New file.
28598         * modules/unicase/u16-totitle: New file.
28600         New module 'unicase/u8-totitle'.
28601         * lib/unicase/u8-totitle.c: New file.
28602         * lib/unicase/u-totitle.h: New file.
28603         * modules/unicase/u8-totitle: New file.
28605         Tests for module 'unicase/u32-tolower'.
28606         * modules/unicase/u32-tolower-tests: New file.
28607         * tests/unicase/test-u32-tolower.c: New file.
28609         Tests for module 'unicase/u16-tolower'.
28610         * modules/unicase/u16-tolower-tests: New file.
28611         * tests/unicase/test-u16-tolower.c: New file.
28613         Tests for module 'unicase/u8-tolower'.
28614         * modules/unicase/u8-tolower-tests: New file.
28615         * tests/unicase/test-u8-tolower.c: New file.
28617         New module 'unicase/u32-tolower'.
28618         * lib/unicase/u32-tolower.c: New file.
28619         * modules/unicase/u32-tolower: New file.
28621         New module 'unicase/u16-tolower'.
28622         * lib/unicase/u16-tolower.c: New file.
28623         * modules/unicase/u16-tolower: New file.
28625         New module 'unicase/u8-tolower'.
28626         * lib/unicase/u8-tolower.c: New file.
28627         * modules/unicase/u8-tolower: New file.
28629         Tests for module 'unicase/u32-toupper'.
28630         * modules/unicase/u32-toupper-tests: New file.
28631         * tests/unicase/test-u32-toupper.c: New file.
28633         Tests for module 'unicase/u16-toupper'.
28634         * modules/unicase/u16-toupper-tests: New file.
28635         * tests/unicase/test-u16-toupper.c: New file.
28637         Tests for module 'unicase/u8-toupper'.
28638         * modules/unicase/u8-toupper-tests: New file.
28639         * tests/unicase/test-u8-toupper.c: New file.
28641         New module 'unicase/u32-toupper'.
28642         * lib/unicase/u32-toupper.c: New file.
28643         * modules/unicase/u32-toupper: New file.
28645         New module 'unicase/u16-toupper'.
28646         * lib/unicase/u16-toupper.c: New file.
28647         * modules/unicase/u16-toupper: New file.
28649         New module 'unicase/u8-toupper'.
28650         * lib/unicase/u8-toupper.c: New file.
28651         * modules/unicase/u8-toupper: New file.
28653         New module 'unicase/u32-casemap'.
28654         * lib/unicase/u32-casemap.c: New file.
28655         * modules/unicase/u32-casemap: New file.
28657         New module 'unicase/u16-casemap'.
28658         * lib/unicase/u16-casemap.c: New file.
28659         * modules/unicase/u16-casemap: New file.
28661         New module 'unicase/u8-casemap'.
28662         * lib/unicase/unicasemap.h: New file.
28663         * lib/unicase/u8-casemap.c: New file.
28664         * lib/unicase/u-casemap.h: New file.
28665         * modules/unicase/u8-casemap: New file.
28667         New module 'unicase/special-casing'.
28668         * lib/unicase/special-casing.h: New file.
28669         * lib/unicase/special-casing.c: New file.
28670         * lib/unicase/special-casing-table.gperf: New file, generated by
28671         gen-uni-tables.c.
28672         * modules/unicase/special-casing: New file.
28674         Tests for module 'unicase/locale-language'.
28675         * modules/unicase/locale-language-tests: New file.
28676         * tests/unicase/test-locale-language.sh: New file.
28677         * tests/unicase/test-locale-language.c: New file.
28679         New module 'unicase/locale-language'.
28680         * lib/unicase/locale-language.c: New file.
28681         * lib/unicase/locale-languages.gperf: New file.
28682         * modules/unicase/locale-language: New file.
28684         Generate more tables for case conversion and case folding.
28685         * lib/gen-uni-tables.c (SCC_*): New enum items.
28686         (struct special_casing_rule): New type.
28687         (casing_rules, num_casing_rules, allocated_casing_rules): New
28688         variables.
28689         (add_casing_rule, fill_casing_rules): New functions.
28690         (struct casefold_rule): New type.
28691         (casefolding_rules, num_casefolding_rules,
28692         allocated_casefolding_rules): New variables.
28693         (fill_casefolding_rules): New function.
28694         (unicode_casefold): New variable.
28695         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
28696         sort_casing_rules, output_casing_rules): New functions.
28697         (main): Accept to more arguments: SpecialCasing.txt and
28698         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
28699         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
28700         Output mapping for casefolding.
28702         * lib/unicase.h: Include stdbool.h, uninorm.h.
28703         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
28704         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
28705         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
28706         arguments.
28707         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
28708         resultp arguments.
28709         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
28710         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
28711         resultp arguments.
28712         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
28713         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
28714         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
28715         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
28716         declarations.
28717         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
28719 2009-03-08  Bruno Haible  <bruno@clisp.org>
28721         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
28722         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
28723         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
28724         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
28726 2009-03-07  Bruno Haible  <bruno@clisp.org>
28728         Adjust u*_normcmp, u*_normcoll API.
28729         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
28730         u16_normcoll, u32_normcoll): Change failure conventions.
28731         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
28732         errno and return -1.
28733         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
28735 2009-03-07  Bruno Haible  <bruno@clisp.org>
28737         Tests for module 'uninorm/u32-normcoll'.
28738         * modules/uninorm/u32-normcoll-tests: New file.
28739         * tests/uninorm/test-u32-normcoll.c: New file.
28741         Tests for module 'uninorm/u16-normcoll'.
28742         * modules/uninorm/u16-normcoll-tests: New file.
28743         * tests/uninorm/test-u16-normcoll.c: New file.
28745         Tests for module 'uninorm/u8-normcoll'.
28746         * modules/uninorm/u8-normcoll-tests: New file.
28747         * tests/uninorm/test-u8-normcoll.c: New file.
28749 2009-03-07  Bruno Haible  <bruno@clisp.org>
28751         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
28752         tests/uninorm/test-u32-normcmp.c.
28753         * tests/uninorm/test-u32-normcmp.c: Include it.
28754         (test_nonascii): New function, extracted from main. Add some more
28755         tests.
28756         (main): Invoke test_ascii and test_nonascii.
28757         * modules/uninorm/u32-normcmp-tests (Files): Add
28758         tests/uninorm/test-u32-normcmp.h.
28759         (Depends-on): Remove uninorm/u32-normcmp.
28761         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
28762         tests/uninorm/test-u16-normcmp.c.
28763         * tests/uninorm/test-u16-normcmp.c: Include it.
28764         (test_nonascii): New function, extracted from main. Add some more
28765         tests.
28766         (main): Invoke test_ascii and test_nonascii.
28767         * modules/uninorm/u16-normcmp-tests (Files): Add
28768         tests/uninorm/test-u16-normcmp.h.
28769         (Depends-on): Remove uninorm/u16-normcmp.
28771         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
28772         tests/uninorm/test-u8-normcmp.c.
28773         * tests/uninorm/test-u8-normcmp.c: Include it.
28774         (test_nonascii): New function, extracted from main. Add some more
28775         tests.
28776         (main): Invoke test_ascii and test_nonascii.
28777         * modules/uninorm/u8-normcmp-tests (Files): Add
28778         tests/uninorm/test-u8-normcmp.h.
28779         (Depends-on): Remove uninorm/u8-normcmp.
28781 2009-03-07  Bruno Haible  <bruno@clisp.org>
28783         New module 'uninorm/u32-normcoll'.
28784         * lib/uninorm/u32-normcoll.c: New file.
28785         * modules/uninorm/u32-normcoll: New file.
28787         New module 'uninorm/u16-normcoll'.
28788         * lib/uninorm/u16-normcoll.c: New file.
28789         * modules/uninorm/u16-normcoll: New file.
28791         New module 'uninorm/u8-normcoll'.
28792         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
28793         declarations.
28794         * lib/uninorm/u8-normcoll.c: New file.
28795         * lib/uninorm/u-normcoll.h: New file.
28796         * modules/uninorm/u8-normcoll: New file.
28798         New module 'uninorm/u32-normxfrm'.
28799         * lib/uninorm/u32-normxfrm.c: New file.
28800         * modules/uninorm/u32-normxfrm: New file.
28802         New module 'uninorm/u16-normxfrm'.
28803         * lib/uninorm/u16-normxfrm.c: New file.
28804         * modules/uninorm/u16-normxfrm: New file.
28806         New module 'uninorm/u8-normxfrm'.
28807         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
28808         declarations.
28809         * lib/uninorm/u8-normxfrm.c: New file.
28810         * lib/uninorm/u-normxfrm.h: New file.
28811         * modules/uninorm/u8-normxfrm: New file.
28813 2009-03-07  Bruno Haible  <bruno@clisp.org>
28815         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
28816         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
28817         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
28819 2009-03-07  Bruno Haible  <bruno@clisp.org>
28821         New module 'memxfrm'.
28822         * lib/memxfrm.h: New file.
28823         * lib/memxfrm.c: New file.
28824         * modules/memxfrm: New file.
28826 2009-03-07  Bruno Haible  <bruno@clisp.org>
28828         New module 'memcmp2'.
28829         * lib/memcmp2.h: New file.
28830         * lib/memcmp2.c: New file.
28831         * modules/memcmp2: New file.
28833 2009-03-07  Bruno Haible  <bruno@clisp.org>
28835         Tests for module 'uninorm/decomposing-form'.
28836         * modules/uninorm/decomposing-form-tests: New file.
28837         * tests/uninorm/test-decomposing-form.c: New file.
28839         New module 'uninorm/decomposing-form'.
28840         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
28841         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
28842         Add 'decomposing_variant' field.
28843         * lib/uninorm/decomposing-form.c: New file.
28844         * lib/uninorm/nfc.c (uninorm_nfc): Update.
28845         * lib/uninorm/nfd.c (uninorm_nfd): Update.
28846         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
28847         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
28848         * modules/uninorm/decomposing-form: New file.
28849         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
28850         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
28852 2009-03-07  Bruno Haible  <bruno@clisp.org>
28854         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
28855         strings.
28857 2009-03-06  Bruno Haible  <bruno@clisp.org>
28859         Tests for module 'uninorm/u32-normcmp'.
28860         * tests/uninorm/test-u32-normcmp.c: New file.
28861         * modules/uninorm/u32-normcmp-tests: New file.
28863         Tests for module 'uninorm/u16-normcmp'.
28864         * tests/uninorm/test-u16-normcmp.c: New file.
28865         * modules/uninorm/u16-normcmp-tests: New file.
28867         Tests for module 'uninorm/u8-normcmp'.
28868         * tests/uninorm/test-u8-normcmp.c: New file.
28869         * modules/uninorm/u8-normcmp-tests: New file.
28871         New module 'uninorm/u32-normcmp'.
28872         * lib/uninorm/u32-normcmp.c: New file.
28873         * modules/uninorm/u32-normcmp: New file.
28875         New module 'uninorm/u16-normcmp'.
28876         * lib/uninorm/u16-normcmp.c: New file.
28877         * modules/uninorm/u16-normcmp: New file.
28879         New module 'uninorm/u8-normcmp'.
28880         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
28881         declarations.
28882         * lib/uninorm/u8-normcmp.c: New file.
28883         * lib/uninorm/u-normcmp.h: New file.
28884         * modules/uninorm/u8-normcmp: New file.
28886 2009-03-06  Bruno Haible  <bruno@clisp.org>
28888         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
28889         Reported by Eric Blake.
28891 2009-03-06  Eric Blake  <ebb9@byu.net>
28892             Bruno Haible  <bruno@clisp.org>
28894         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
28895         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
28896         condition.
28897         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
28898         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
28899         condition.
28900         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
28902 2009-03-06  Eric Blake  <ebb9@byu.net>
28904         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
28905         to avoid compiler warnings.
28906         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
28908 2009-03-05  Bruno Haible  <bruno@clisp.org>
28910         * tests/test-ftell.c (main): Disable test beyond end of file on
28911         FreeMiNT.
28912         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
28914 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
28916         * lib/filevercmp.c: Move hidden files up in ordering.
28917         * tests/test-filevercmp.c: Add tests for hidden files.
28919 2009-03-04  Bruno Haible  <bruno@clisp.org>
28921         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
28922         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
28923         AM_CFLAGS.
28924         Reported by Simon Josefsson.
28926 2009-03-03  Bruno Haible  <bruno@clisp.org>
28928         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
28929         Reported by Simon Josefsson.
28931         * doc/ld-version-script.texi: Update node reference.
28933 2009-03-03  Bruno Haible  <bruno@clisp.org>
28935         * modules/visibility (License): Change to 'unlimited'.
28936         Suggested by Simon Josefsson.
28938 2009-03-03  Jim Meyering  <meyering@redhat.com>
28940         unlinkdir: cannot_unlink_dir may modify process state
28941         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
28942         it's neither thread-safe nor appropriate for use in a library.
28944 2009-03-03  Eric Blake  <ebb9@byu.net>
28946         test-closein: silence test under Darwin
28947         * tests/test-closein.sh: Ignore stderr from cat, since we don't
28948         care if it dies from EPIPE or EBADF.
28950 2009-03-03  Bruno Haible  <bruno@clisp.org>
28952         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
28953         earlier.
28954         * doc/visibility.texi: Fix @node and @section.
28956 2009-03-03  Simon Josefsson  <simon@josefsson.org>
28958         * doc/gnulib.texi: Link to sections for ld version script and
28959         visibility.
28960         * doc/visibility.texi: Add @node and @section.
28961         * modules/ld-version-script: New module.
28962         * m4/ld-version-script.m4: New file.
28963         * doc/ld-version-script.texi: New file.
28965 2009-03-02  David Lutterkort  <lutter@redhat.com>
28967         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
28968         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
28970 2009-03-02  Bruno Haible  <bruno@clisp.org>
28972         * doc/visibility.texi: Mention libtool's -export-symbols option.
28974 2009-03-02  Jim Meyering  <meyering@redhat.com>
28976         announce-gen: new option: --no-print-checksums
28977         * build-aux/announce-gen (usage): Describe it.
28978         (print_checksums): Print a newline here, not in the [*] footnote.
28979         (main): Honor it.
28981 2009-03-01  Bruno Haible  <bruno@clisp.org>
28983         Use socklen_t in the native Windows replacements prototypes.
28984         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
28985         instead of 'int'.
28986         * lib/getsockopt.c (rpl_getsockopt): Likewise.
28987         * lib/setsockopt.c (rpl_setsockopt): Likewise.
28988         * modules/getsockopt (Depends-on): Add socklen.
28989         * modules/setsockopt (Depends-on): Add socklen.
28991 2009-03-01  Bruno Haible  <bruno@clisp.org>
28993         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
28994         least 4.2.
28996 2009-03-01  Eric Blake  <ebb9@byu.net>
28997             Bruno Haible  <bruno@clisp.org>
28999         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
29000         error messages.
29001         * lib/wait-process.c (wait_subprocess): Omit error message about
29002         deadly signal sent to the child of termsigp != NULL.
29004 2009-03-01  Eric Blake  <ebb9@byu.net>
29006         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
29008 2009-03-01  Bruno Haible  <bruno@clisp.org>
29010         Avoid a gcc warning.
29011         * tests/test-sched.c (b): Make global.
29012         Reported by Eric Blake.
29014 2009-01-19  Martin Lambers  <marlam@marlam.de>
29016         Provide POSIX semantics for socket timeout options on W32.
29017         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
29018         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
29019         * modules/setsockopt: Depend on sys_time module for struct timeval.
29020         * modules/getsockopt: Depend on sys_time module for struct timeval.
29022 2009-03-01  Simon Josefsson  <simon@josefsson.org>
29024         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
29025         __USE_GNU, for consistency with netdb.in.h.
29026         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
29028 2009-03-01  Bruno Haible  <bruno@clisp.org>
29030         More support for FreeMiNT.
29031         * lib/fseeko.c (rpl_fseeko): Complete last commit.
29032         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
29034 2009-03-01  Bruno Haible  <bruno@clisp.org>
29036         More support for FreeMiNT.
29037         * lib/fpurge.c (fpurge): Correct last commit.
29038         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
29040 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29042         Fix unportable awk script in vc-list-files.
29043         * build-aux/vc-list-files: In the replacement awk script, use
29044         substr with a second argument of 1, not zero.
29045         Report by Simon Josefsson.
29047 2009-02-28  Bruno Haible  <bruno@clisp.org>
29049         More support for FreeMiNT.
29050         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
29051         to FreeMiNT today.
29052         * lib/fwriting.c (fwriting): Likewise.
29053         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
29055 2009-02-28  Bruno Haible  <bruno@clisp.org>
29057         * tests/test-freadseek.c (main): Disable test beyond end of file on
29058         FreeMiNT.
29059         * tests/test-ftello.c (main): Likewise.
29060         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
29062 2009-02-28  Bruno Haible  <bruno@clisp.org>
29064         Add tentative support for FreeMiNT.
29065         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
29066         * lib/fpurge.c (fpurge): Likewise.
29067         * lib/freadable.c (freadable): Likewise.
29068         * lib/freading.c (freading): Likewise.
29069         * lib/freadptr.c (freadptr): Likewise.
29070         * lib/freadseek.c (freadptrinc): Likewise.
29071         * lib/fseeko.c (rpl_fseeko): Likewise.
29072         * lib/fseterr.c (fseterr): Likewise.
29073         * lib/fwritable.c (fwritable): Likewise.
29074         * lib/fwriting.c (fwriting): Likewise.
29075         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
29076         Hourihane.
29077         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
29079 2009-02-28  Bruno Haible  <bruno@clisp.org>
29081         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
29082         SIGCHLD.
29083         Reported by Jim Meyering.
29085 2009-02-28  Bruno Haible  <bruno@clisp.org>
29087         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
29088         Mention the results of these tests on various platforms.
29089         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
29090         order.
29091         * doc/posix-functions/printf.texi: Likewise.
29092         * doc/posix-functions/snprintf.texi: Likewise.
29093         * doc/posix-functions/sprintf.texi: Likewise.
29094         * doc/posix-functions/vfprintf.texi: Likewise.
29095         * doc/posix-functions/vprintf.texi: Likewise.
29096         * doc/posix-functions/vsnprintf.texi: Likewise.
29097         * doc/posix-functions/vsprintf.texi: Likewise.
29098         * doc/glibc-functions/obstack_printf.texi: Likewise.
29099         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
29101 2009-02-28  Bruno Haible  <bruno@clisp.org>
29103         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
29104         Reported by Loïc Minier <lool@dooz.org>.
29106 2009-02-27  Bruno Haible  <bruno@clisp.org>
29108         * gnulib-tool (func_import): Make the sed expression used to create the
29109         sed script for updating the .gitignore file POSIX compliant.
29110         Reported by Eric Blake.
29112 2009-02-27  Bruno Haible  <bruno@clisp.org>
29114         * gnulib-tool (sed): Don't alias as "sed --posix".
29115         Reported by Eric Blake.
29117 2009-02-27  Bruno Haible  <bruno@clisp.org>
29119         Avoid test link errors.
29120         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
29121         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
29122         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
29123         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
29124         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29126 2009-02-27  Bruno Haible  <bruno@clisp.org>
29128         Avoid spurious "(cached)" in configure output.
29129         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
29130         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
29131         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
29132         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
29133         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
29134         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
29135         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
29136         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
29137         Reported by Eric Blake.
29139 2009-02-27  Eric Blake  <ebb9@byu.net>
29141         printf: fix regression in previous patch
29142         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
29144 2009-02-27  Bruno Haible  <bruno@clisp.org>
29146         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
29147         value.
29148         * lib/stdint.in.h: Likewise.
29149         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
29151 2009-02-27  Eric Blake  <ebb9@byu.net>
29153         doc: mention more functions added in cygwin 1.7.0
29154         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
29155         addition.
29156         * doc/posix-functions/open_wmemstream.texi: Likewise.
29157         * doc/posix-functions/wcsnlen.texi: Likewise.
29158         * doc/posix-functions/wcsnrtombs.texi: Likewise.
29159         * doc/posix-functions/wcstod.texi: Likewise.
29160         * doc/posix-functions/wcstof.texi: Likewise.
29161         * doc/posix-functions/wcstoimax.texi: Likewise.
29162         * doc/posix-functions/wcstok.texi: Likewise.
29163         * doc/posix-functions/wcstoumax.texi: Likewise.
29165         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
29166         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
29167         * doc/posix-functions/fprintf.texi: Update.
29168         * doc/posix-functions/printf.texi: Update.
29169         * doc/posix-functions/snprintf.texi: Update.
29170         * doc/posix-functions/sprintf.texi: Update.
29171         * doc/posix-functions/vfprintf.texi: Update.
29172         * doc/posix-functions/vprintf.texi: Update.
29173         * doc/posix-functions/vsnprintf.texi: Update.
29174         * doc/posix-functions/vsprintf.texi: Update.
29175         * doc/glibc-functions/obstack_printf.texi: Update.
29176         * doc/glibc-functions/obstack_vprintf.texi: Update.
29178 2009-02-26  Eric Blake  <ebb9@byu.net>
29180         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
29181         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
29182         compilation bug by using runtime conversion.
29183         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
29184         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
29185         * modules/ceill-tests (Files): Use nan.h.
29186         * modules/floorl-tests (Files): Likewise.
29187         * modules/frexpl-tests (Files): Likewise.
29188         * modules/isnanl-tests (Files): Likewise.
29189         * modules/ldexpl-tests (Files): Likewise.
29190         * modules/roundl-tests (Files): Likewise.
29191         * modules/truncl-tests (Files): Likewise.
29192         * tests/test-ceill.c (main): Use a working NaN.
29193         * tests/test-floorl.c (main): Likewise.
29194         * tests/test-frexpl.c (main): Likewise.
29195         * tests/test-isnan.c (test_long_double): Likewise.
29196         * tests/test-isnanl.h (main): Likewise.
29197         * tests/test-ldexpl.h (main): Likewise.
29198         * tests/test-roundl.h (main): Likewise.
29199         * tests/test-truncl.h (main): Likewise.
29200         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
29202 2009-02-26  Eric Blake  <ebb9@byu.net>
29203             Bruno Haible  <bruno@clisp.org>
29205         Work around a *printf bug with %ls on Solaris.
29206         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
29207         precision is specified, sprintf stops converting the wide string
29208         argument when the number of bytes that have been produced by this
29209         conversion equals or exceeds the precision.
29210         * doc/posix-functions/fprintf.texi: Update.
29211         * doc/posix-functions/printf.texi: Update.
29212         * doc/posix-functions/snprintf.texi: Update.
29213         * doc/posix-functions/sprintf.texi: Update.
29214         * doc/posix-functions/vfprintf.texi: Update.
29215         * doc/posix-functions/vprintf.texi: Update.
29216         * doc/posix-functions/vsnprintf.texi: Update.
29217         * doc/posix-functions/vsprintf.texi: Update.
29218         * doc/glibc-functions/obstack_printf.texi: Update.
29219         * doc/glibc-functions/obstack_vprintf.texi: Update.
29221 2009-02-26  Eric Blake  <ebb9@byu.net>
29223         stdlib: favor compiler check of random.h
29224         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
29225         to avoid an ObjC random.h installed by Swarm.
29227 2009-02-26  Bruno Haible  <bruno@clisp.org>
29229         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
29230         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
29231         Reported by Gary V. Vaughan <gary@gnu.org>.
29233 2009-02-26  Bruno Haible  <bruno@clisp.org>
29235         Fix *printf behaviour regarding the %ls directive.
29236         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
29237         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
29238         NEED_PRINTF_DIRECTIVE_LS.
29239         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
29240         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
29241         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
29242         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
29243         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
29244         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
29245         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
29246         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
29247         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
29248         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
29249         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
29250         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
29251         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
29252         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
29253         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
29254         * doc/posix-functions/fprintf.texi: Update.
29255         * doc/posix-functions/printf.texi: Update.
29256         * doc/posix-functions/snprintf.texi: Update.
29257         * doc/posix-functions/sprintf.texi: Update.
29258         * doc/posix-functions/vfprintf.texi: Update.
29259         * doc/posix-functions/vprintf.texi: Update.
29260         * doc/posix-functions/vsnprintf.texi: Update.
29261         * doc/posix-functions/vsprintf.texi: Update.
29262         * doc/glibc-functions/obstack_printf.texi: Update.
29263         * doc/glibc-functions/obstack_vprintf.texi: Update.
29264         Reported by Eric Blake.
29266 2009-02-25  Bruno Haible  <bruno@clisp.org>
29268         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
29269         with known value.
29270         Reported by Gary V. Vaughan <gary@gnu.org>.
29272 2009-02-25  Bruno Haible  <bruno@clisp.org>
29274         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
29275         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
29276         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
29277         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
29278         Reported by Gary V. Vaughan <gary@gnu.org>.
29280 2009-02-25  Bruno Haible  <bruno@clisp.org>
29282         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
29283         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
29284         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
29285         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
29286         Reported by Gary V. Vaughan <gary@gnu.org>.
29288 2009-02-25  Eric Blake  <ebb9@byu.net>
29290         tests: skip fseek/ftell tests if ungetc is broken
29291         * m4/ungetc.m4: New file.
29292         * modules/fseek-tests: Split test, so ungetc dependency is
29293         separate from rest of test.
29294         * modules/fseeko-tests: Likewise.
29295         * modules/ftell-tests: Likewise.
29296         * modules/ftello-tests: Likewise.
29297         * tests/test-fseek.c (main): Isolate ungetc dependency.
29298         * tests/test-fseeko.c (main): Likewise.
29299         * tests/test-ftell.c (main): Likewise.
29300         * tests/test-ftello.c (main): Likewise.
29301         * tests/test-fseek2.sh: New file.
29302         * tests/test-fseeko2.sh: Likewise.
29303         * tests/test-ftell2.sh: Likewise.
29304         * tests/test-ftello2.sh: Likewise.
29306 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
29308         test-getaddrinfo: fix usage of skip return code 77
29309         * tests/test-gettaddrinfo.c: Return skip code 77 only
29310         for first occurance of skip (4x77 is not 77)
29312 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
29314         strtod: avoid C99 decl-after-statement
29315         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
29317 2009-02-24  Eric Blake  <ebb9@byu.net>
29319         strtod: detect HP-UX 11.31 bug
29320         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
29321         Reported by Gary V. Vaughan.
29323 2009-02-23  Bruno Haible  <bruno@clisp.org>
29325         Fix invalid read past end of memory block.
29326         * lib/vasnprintf.c (DCHAR_SET): Define.
29327         (local_wcslen): Define only when needed.
29328         (local_strnlen, local_wcsnlen): New functions.
29329         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
29330         directives that involve a conversion ourselves.
29331         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
29332         wcsnlen, mbrtowc, wcrtomb.
29333         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
29334         * tests/test-vasprintf-posix.c (test_function): Likewise.
29335         * tests/test-snprintf-posix.h (test_function): Likewise.
29336         * tests/test-sprintf-posix.h (test_function): Likewise.
29337         Reported by Ben Pfaff <blp@cs.stanford.edu>.
29339 2009-02-22  Bruno Haible  <bruno@clisp.org>
29341         Implement new clarified decomposition of Hangul syllables.
29342         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
29343         of type LTV, return only a pairwise decomposition.
29344         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
29345         Likewise.
29346         * tests/uninorm/test-decomposition.c (main): Updated expected result.
29347         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
29348         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
29350 2009-02-22  Bruno Haible  <bruno@clisp.org>
29352         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
29353         zero-length results and shrink excess allocated memory.
29354         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
29355         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
29356         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
29357         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
29358         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
29359         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
29360         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
29361         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
29362         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
29363         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
29364         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
29365         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
29367 2009-02-21  Bruno Haible  <bruno@clisp.org>
29369         * doc/gnulib.texi: Include safe-alloc.texi earlier.
29370         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
29371         spaces after a period. Put a space between a macro name and its
29372         argument list. Trivial rewordings.
29373         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
29374         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
29375         (main): Return 0 explicitly.
29377 2009-02-21  Bruno Haible  <bruno@clisp.org>
29379         Tests for module 'uninorm/filter'.
29380         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
29381         * modules/uninorm/filter-tests: New file.
29383         New module 'uninorm/filter'.
29384         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
29385         uninorm_filter_flush, uninorm_filter_free): New declarations.
29386         * lib/uninorm/uninorm-filter.c: New file.
29387         * modules/uninorm/filter: New file.
29389 2009-02-21  Bruno Haible  <bruno@clisp.org>
29391         Tests for module 'uninorm/nfkc'.
29392         * tests/uninorm/test-nfkc.c: New file.
29393         * tests/uninorm/test-u8-nfkc.c: New file.
29394         * tests/uninorm/test-u16-nfkc.c: New file.
29395         * tests/uninorm/test-u32-nfkc.c: New file.
29396         * tests/uninorm/test-u32-nfkc-big.sh: New file.
29397         * tests/uninorm/test-u32-nfkc-big.c: New file.
29398         * modules/uninorm/nfkc-tests: New file.
29400         New module 'uninorm/nfkc'.
29401         * lib/uninorm/nfkc.c: New file.
29402         * modules/uninorm/nfkc: New file.
29404         Tests for module 'uninorm/nfkd'.
29405         * tests/uninorm/test-nfkd.c: New file.
29406         * tests/uninorm/test-u8-nfkd.c: New file.
29407         * tests/uninorm/test-u16-nfkd.c: New file.
29408         * tests/uninorm/test-u32-nfkd.c: New file.
29409         * tests/uninorm/test-u32-nfkd-big.sh: New file.
29410         * tests/uninorm/test-u32-nfkd-big.c: New file.
29411         * modules/uninorm/nfkd-tests: New file.
29413         New module 'uninorm/nfkd'.
29414         * lib/uninorm/nfkd.c: New file.
29415         * modules/uninorm/nfkd: New file.
29417         Tests for module 'uninorm/nfc'.
29418         * tests/uninorm/test-nfc.c: New file.
29419         * tests/uninorm/test-u8-nfc.c: New file.
29420         * tests/uninorm/test-u16-nfc.c: New file.
29421         * tests/uninorm/test-u32-nfc.c: New file.
29422         * tests/uninorm/test-u32-nfc-big.sh: New file.
29423         * tests/uninorm/test-u32-nfc-big.c: New file.
29424         * modules/uninorm/nfc-tests: New file.
29426         New module 'uninorm/nfc'.
29427         * lib/uninorm/nfc.c: New file.
29428         * modules/uninorm/nfc: New file.
29430         Tests for module 'uninorm/nfd'.
29431         * tests/uninorm/test-nfd.c: New file.
29432         * tests/uninorm/test-u8-nfd.c: New file.
29433         * tests/uninorm/test-u16-nfd.c: New file.
29434         * tests/uninorm/test-u32-nfd.c: New file.
29435         * tests/uninorm/test-u32-nfd-big.sh: New file.
29436         * tests/uninorm/test-u32-nfd-big.c: New file.
29437         * tests/uninorm/test-u32-normalize-big.h: New file.
29438         * tests/uninorm/test-u32-normalize-big.c: New file.
29439         * tests/uninorm/NormalizationTest.txt: New file, created from
29440         Unicode 5.1.0 NormalizationTest.txt.
29441         * modules/uninorm/nfd-tests: New file.
29443         New module 'uninorm/nfd'.
29444         * lib/uninorm/nfd.c: New file.
29445         * modules/uninorm/nfd: New file.
29447         New module 'uninorm/u32-normalize'.
29448         * lib/uninorm/u32-normalize.c: New file.
29449         * modules/uninorm/u32-normalize: New file.
29451         New module 'uninorm/u16-normalize'.
29452         * lib/uninorm/u16-normalize.c: New file.
29453         * modules/uninorm/u16-normalize: New file.
29455         New module 'uninorm/u8-normalize'.
29456         * lib/uninorm/u8-normalize.c: New file.
29457         * lib/uninorm/normalize-internal.h: New file.
29458         * lib/uninorm/u-normalize-internal.h: New file.
29459         * modules/uninorm/u8-normalize: New file.
29461         New module 'uninorm/decompose-internal'.
29462         * lib/uninorm/decompose-internal.c: New file.
29463         * modules/uninorm/decompose-internal: New file.
29465         Tests for module 'uninorm/composition'.
29466         * tests/uninorm/test-composition.c: New file.
29467         * modules/uninorm/composition-tests: New file.
29469         New module 'uninorm/composition'.
29470         * lib/uninorm/composition.c: New file.
29471         * lib/uninorm/composition-table.gperf: New file, generated by
29472         gen-uni-tables.
29473         * modules/uninorm/composition: New file.
29475         Tests for module 'uninorm/compat-decomposition'.
29476         * tests/uninorm/test-compat-decomposition.c: New file.
29477         * modules/uninorm/compat-decomposition-tests: New file.
29479         New module 'uninorm/compat-decomposition'.
29480         * lib/uninorm/decompose-internal.h: New file.
29481         * lib/uninorm/compat-decomposition.c: New file.
29482         * modules/uninorm/compat-decomposition: New file.
29484         Tests for module 'uninorm/canonical-decomposition'.
29485         * tests/uninorm/test-canonical-decomposition.c: New file.
29486         * modules/uninorm/canonical-decomposition-tests: New file.
29488         New module 'uninorm/canonical-decomposition'.
29489         * lib/uninorm/canonical-decomposition.c: New file.
29490         * modules/uninorm/canonical-decomposition: New file.
29492         Tests for module 'uninorm/decomposition'.
29493         * tests/uninorm/test-decomposition.c: New file.
29494         * modules/uninorm/decomposition-tests: New file.
29496         New module 'uninorm/decomposition'.
29497         * lib/uninorm/decomposition.c: New file.
29498         * modules/uninorm/decomposition: New file.
29500         New module 'uninorm/decomposition-table'.
29501         * lib/uninorm/decomposition-table.h: New file.
29502         * lib/uninorm/decomposition-table.c: New file.
29503         * lib/uninorm/decomposition-table1.h: New file, generated by
29504         gen-uni-tables.
29505         * lib/uninorm/decomposition-table2.h: New file, generated by
29506         gen-uni-tables.
29507         * modules/uninorm/decomposition-table: New file.
29509         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
29510         (UC_DECOMP_*): New enumeration items.
29511         (get_decomposition): New function.
29512         (struct decomp_table): New type.
29513         (output_decomposition, output_decomposition_tables): New functions.
29514         (unicode_composition_exclusions): New variable.
29515         (fill_composition_exclusions, debug_output_composition_tables): New
29516         functions.
29517         (main): Accept one more argument. Invoke fill_composition_exclusions.
29518         Output decomposition and composition tables.
29520         New module 'uninorm/base'.
29521         * lib/uninorm.h: New file.
29522         * lib/unictype.h: Update comment.
29523         * modules/uninorm/base: New file.
29525 2009-02-21  David Lutterkort  <lutter@redhat.com>
29527         Tests for module 'safe-alloc'.
29528         * tests/test-safe-alloc.c: New file.
29529         * modules/safe-alloc-tests: New file.
29531         New module 'safe-alloc'.
29532         * lib/safe-alloc.h: New file.
29533         * lib/safe-alloc.c: New file.
29534         * m4/safe-alloc.m4: New file.
29535         * modules/safe-alloc: New file.
29536         * doc/safe-alloc.texi: New file.
29537         * doc/gnulib.texi: Include it.
29538         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
29539         safe-alloc.
29541 2009-02-18  Bruno Haible  <bruno@clisp.org>
29543         Fix link error on non-glibc systems.
29544         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
29545         variable.
29546         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29548 2009-02-18  Jim Meyering  <meyering@redhat.com>
29550         fts: avoid used-uninitialized error due to recent change
29551         * lib/fts.c (fts_read): Guard uses of the new member,
29552         parent->fts_n_dirs_remaining, since it's not relevant for
29553         the parent of a directory specified on the command-line.
29555 2009-02-17  James Youngman  <jay@gnu.org>
29556             Bruno Haible  <bruno@clisp.org>
29558         * m4/include_next.m4: Reformulate comment.
29560 2009-02-16  Jim Meyering  <meyering@redhat.com>
29562         fts: add #if guards so that the fts_lgpl module still builds
29563         * lib/fts.c: Guard just-added hash-table-using parts with
29564         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
29565         Reported by Simon Josefsson.
29567 2009-02-15  Bruno Haible  <bruno@clisp.org>
29569         * modules/array-mergesort-tests: New file.
29570         * tests/test-array-mergesort.c: New file.
29572         New module 'array-mergesort'.
29573         * modules/array-mergesort: New file.
29574         * lib/array-mergesort.h: New file.
29576 2009-02-15  Bruno Haible  <bruno@clisp.org>
29578         Fix 2009-02-07 commit.
29579         * lib/gen-uni-tables.c (output_predicate, output_category,
29580         output_combclass, output_bidi_category, output_decimal_digit,
29581         output_digit, output_numeric, output_mirror, output_scripts,
29582         output_ident_category, output_simple_mapping): Fix format directives.
29583         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
29585 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
29587         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
29588         fixes are available from IBM.
29590 2009-02-13  Jim Meyering  <meyering@redhat.com>
29592         fts: arrange not to stat non-directories in more cases
29593         This makes GNU find (when it doesn't need to stat each file)
29594         *much* more efficient at traversing reiserfs file systems.
29595         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
29596         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
29597         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
29598         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
29599         (leaf_optimization_applies): New function.
29600         (LCO_hash, LCO_compare): New helper functions.
29601         (link_count_optimize_ok): New function.
29602         (fts_stat): Initialize new member (if dir).
29603         (fts_read): Decrement parent's fts_n_dirs_remaining count if
29604         we've just stat'ed a directory.  Skip the stat call when possible.
29605         ---
29606         Note this AFS-related exchange:
29607         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
29608         and note find's pioctl call in find/fstype.c.
29609         But that is necessary only if you want to enable the
29610         optimization for AFS, and for now, I don't.
29612         fts: move a function definition "up" (no semantic change)
29613         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
29614         "up" to precede upcoming use of a related function.
29616 2009-02-11  Jim Meyering  <meyering@redhat.com>
29618         fts: correct internal computation of nlinks (optimization-related)
29619         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
29620         whether the current entry is a directory, so don't test it.
29622 2009-02-10  Bruno Haible  <bruno@clisp.org>
29624         Tests for module 'uniwbrk/ulc-wordbreaks'.
29625         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
29626         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
29627         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
29629         Tests for module 'uniwbrk/u32-wordbreaks'.
29630         * modules/uniwbrk/u32-wordbreaks-tests: New file.
29631         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
29633         Tests for module 'uniwbrk/u16-wordbreaks'.
29634         * modules/uniwbrk/u16-wordbreaks-tests: New file.
29635         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
29637         Tests for module 'uniwbrk/u8-wordbreaks'.
29638         * modules/uniwbrk/u8-wordbreaks-tests: New file.
29639         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
29641 2009-02-10  Bruno Haible  <bruno@clisp.org>
29643         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
29644         property.
29645         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
29646         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
29647         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
29649 2009-02-10  Simon Josefsson  <simon@josefsson.org>
29651         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
29652         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
29654 2009-02-10  Bruno Haible  <bruno@clisp.org>
29656         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
29657         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
29658         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
29659         * lib/unilbrk/u8-possible-linebreaks.c: Update.
29660         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
29661         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
29663 2009-02-09  Simon Josefsson  <simon@josefsson.org>
29665         * lib/sockets.h (gl_fd_to_handle): New function.
29667         * tests/test-sockets.c: Call gl_fd_to_handle.
29669 2009-02-09  Bruno Haible  <bruno@clisp.org>
29671         * doc/havelib.texi: Document the conventions on bi-arch systems.
29673 2009-02-08  Bruno Haible  <bruno@clisp.org>
29675         Document the AC_LIB_LINKFLAGS macro.
29676         * doc/havelib.texi: New file, mostly written on 2005-05-24.
29677         * doc/gnulib.texi: Include it.
29679 2009-02-08  Bruno Haible  <bruno@clisp.org>
29681         Fix wrong order of sections, compared to TOC.
29682         * doc/gnulib.texi: Include relocatable-maint.texi after the
29683         "Regular expressions" node, not before.
29685 2009-02-08  Bruno Haible  <bruno@clisp.org>
29687         Tests for module 'unicase/totitle'.
29688         * modules/unicase/totitle-tests: New file.
29690         Tests for module 'unicase/tolower'.
29691         * modules/unicase/tolower-tests: New file.
29693         Tests for module 'unicase/toupper'.
29694         * modules/unicase/toupper-tests: New file.
29695         * tests/unicase/test-mapping-part1.h: New file.
29696         * tests/unicase/test-mapping-part2.h: New file.
29698         New module 'unicase/totitle'.
29699         * modules/unicase/totitle: New file.
29700         * lib/unicase/totitle.c: New file.
29702         New module 'unicase/tolower'.
29703         * modules/unicase/tolower: New file.
29704         * lib/unicase/tolower.c: New file.
29706         New module 'unicase/toupper'.
29707         * modules/unicase/toupper: New file.
29708         * lib/unicase/toupper.c: New file.
29709         * lib/unicase/simple-mapping.h: New file.
29711         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
29712         (mapping_table): New structure.
29713         (output_simple_mapping): New function.
29714         (main): Invoke output_simple_mapping_test and output_simple_mapping.
29715         * modules/gen-uni-tables (Description): Update.
29716         * lib/unicase/toupper.h: New file, automatically generated by
29717         gen-uni-tables.
29718         * lib/unicase/tolower.h: New file, automatically generated by
29719         gen-uni-tables.
29720         * lib/unicase/totitle.h: New file, automatically generated by
29721         gen-uni-tables.
29722         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
29723         gen-uni-tables.
29724         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
29725         gen-uni-tables.
29726         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
29727         gen-uni-tables.
29729         New module 'unicase/base'.
29730         * modules/unicase/base: New file.
29731         * lib/unicase.h: New file.
29733 2009-02-08  Bruno Haible  <bruno@clisp.org>
29735         New module 'uniwbrk/ulc-wordbreaks'.
29736         * modules/uniwbrk/ulc-wordbreaks: New file.
29737         * lib/uniwbrk/ulc-wordbreaks.c: New file.
29739         New module 'uniwbrk/u32-wordbreaks'.
29740         * modules/uniwbrk/u32-wordbreaks: New file.
29741         * lib/uniwbrk/u32-wordbreaks.c: New file.
29743         New module 'uniwbrk/u16-wordbreaks'.
29744         * modules/uniwbrk/u16-wordbreaks: New file.
29745         * lib/uniwbrk/u16-wordbreaks.c: New file.
29747         New module 'uniwbrk/u8-wordbreaks'.
29748         * modules/uniwbrk/u8-wordbreaks: New file.
29749         * lib/uniwbrk/u8-wordbreaks.c: New file.
29750         * lib/uniwbrk/u-wordbreaks.h: New file.
29752         New module 'uniwbrk/table'.
29753         * modules/uniwbrk/table: New file.
29754         * lib/uniwbrk/wbrktable.h: New file.
29755         * lib/uniwbrk/wbrktable.c: New file.
29757         New module 'uniwbrk/wordbreak-property'.
29758         * modules/uniwbrk/wordbreak-property: New file.
29759         * lib/uniwbrk/wordbreak-property.c: New file.
29761         * lib/gen-uni-tables.c (WBP_*): New enum items.
29762         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
29763         (unicode_org_wbp): New variable.
29764         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
29765         New functions.
29766         (wbp_table): New structure.
29767         (output_wbp, output_wbrk_tables): New functions.
29768         (main): Accept additional argument. Invoke fill_org_wbp,
29769         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
29770         output_wbrk_tables.
29771         * modules/gen-uni-tables (Description): Update.
29772         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
29773         gen-uni-tables.
29775         New module 'uniwbrk/base'.
29776         * modules/uniwbrk/base: New file.
29777         * lib/uniwbrk.h: New file.
29779 2009-02-08  Bruno Haible  <bruno@clisp.org>
29781         Update to Unicode 5.1.0.
29782         * lib/gen-uni-tables.c (is_property_alphabetic): Include
29783         U+2185..U+2188.
29784         (is_property_default_ignorable_code_point): Don't include characters
29785         of category Cc or Cs and not-a-characters.
29786         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
29787         U+0D79, U+109E, U+109F, U+A60C.
29788         * lib/unictype/bidi_of.h: Regenerated.
29789         * lib/unictype/blocks.h: Regenerated.
29790         * lib/unictype/categ_C.h: Regenerated.
29791         * lib/unictype/categ_Cf.h: Regenerated.
29792         * lib/unictype/categ_Cn.h: Regenerated.
29793         * lib/unictype/categ_L.h: Regenerated.
29794         * lib/unictype/categ_Ll.h: Regenerated.
29795         * lib/unictype/categ_Lm.h: Regenerated.
29796         * lib/unictype/categ_Lo.h: Regenerated.
29797         * lib/unictype/categ_Lu.h: Regenerated.
29798         * lib/unictype/categ_M.h: Regenerated.
29799         * lib/unictype/categ_Mc.h: Regenerated.
29800         * lib/unictype/categ_Me.h: Regenerated.
29801         * lib/unictype/categ_Mn.h: Regenerated.
29802         * lib/unictype/categ_N.h: Regenerated.
29803         * lib/unictype/categ_Nd.h: Regenerated.
29804         * lib/unictype/categ_Nl.h: Regenerated.
29805         * lib/unictype/categ_No.h: Regenerated.
29806         * lib/unictype/categ_P.h: Regenerated.
29807         * lib/unictype/categ_Pd.h: Regenerated.
29808         * lib/unictype/categ_Pe.h: Regenerated.
29809         * lib/unictype/categ_Pf.h: Regenerated.
29810         * lib/unictype/categ_Pi.h: Regenerated.
29811         * lib/unictype/categ_Po.h: Regenerated.
29812         * lib/unictype/categ_Ps.h: Regenerated.
29813         * lib/unictype/categ_S.h: Regenerated.
29814         * lib/unictype/categ_Sk.h: Regenerated.
29815         * lib/unictype/categ_Sm.h: Regenerated.
29816         * lib/unictype/categ_So.h: Regenerated.
29817         * lib/unictype/categ_of.h: Regenerated.
29818         * lib/unictype/combining.h: Regenerated.
29819         * lib/unictype/ctype_alnum.h: Regenerated.
29820         * lib/unictype/ctype_alpha.h: Regenerated.
29821         * lib/unictype/ctype_graph.h: Regenerated.
29822         * lib/unictype/ctype_lower.h: Regenerated.
29823         * lib/unictype/ctype_print.h: Regenerated.
29824         * lib/unictype/ctype_punct.h: Regenerated.
29825         * lib/unictype/ctype_upper.h: Regenerated.
29826         * lib/unictype/decdigit.h: Regenerated.
29827         * lib/unictype/digit.h: Regenerated.
29828         * lib/unictype/mirror.h: Regenerated.
29829         * lib/unictype/numeric.h: Regenerated.
29830         * lib/unictype/pr_alphabetic.h: Regenerated.
29831         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
29832         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
29833         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
29834         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
29835         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
29836         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
29837         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
29838         * lib/unictype/pr_combining.h: Regenerated.
29839         * lib/unictype/pr_dash.h: Regenerated.
29840         * lib/unictype/pr_decimal_digit.h: Regenerated.
29841         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
29842         * lib/unictype/pr_deprecated.h: Regenerated.
29843         * lib/unictype/pr_diacritic.h: Regenerated.
29844         * lib/unictype/pr_extender.h: Regenerated.
29845         * lib/unictype/pr_format_control.h: Regenerated.
29846         * lib/unictype/pr_grapheme_base.h: Regenerated.
29847         * lib/unictype/pr_grapheme_extend.h: Regenerated.
29848         * lib/unictype/pr_grapheme_link.h: Regenerated.
29849         * lib/unictype/pr_id_continue.h: Regenerated.
29850         * lib/unictype/pr_id_start.h: Regenerated.
29851         * lib/unictype/pr_ideographic.h: Regenerated.
29852         * lib/unictype/pr_ignorable_control.h: Regenerated.
29853         * lib/unictype/pr_lowercase.h: Regenerated.
29854         * lib/unictype/pr_math.h: Regenerated.
29855         * lib/unictype/pr_numeric.h: Regenerated.
29856         * lib/unictype/pr_other_alphabetic.h: Regenerated.
29857         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
29858         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
29859         * lib/unictype/pr_other_id_continue.h: Regenerated.
29860         * lib/unictype/pr_other_lowercase.h: Regenerated.
29861         * lib/unictype/pr_other_math.h: Regenerated.
29862         * lib/unictype/pr_punctuation.h: Regenerated.
29863         * lib/unictype/pr_sentence_terminal.h: Regenerated.
29864         * lib/unictype/pr_soft_dotted.h: Regenerated.
29865         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
29866         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
29867         * lib/unictype/pr_unified_ideograph.h: Regenerated.
29868         * lib/unictype/pr_uppercase.h: Regenerated.
29869         * lib/unictype/pr_xid_continue.h: Regenerated.
29870         * lib/unictype/pr_xid_start.h: Regenerated.
29871         * lib/unictype/pr_zero_width.h: Regenerated.
29872         * lib/unictype/scripts.h: Regenerated.
29873         * lib/unictype/scripts_byname.gperf: Regenerated.
29874         * lib/unictype/sy_java_ident.h: Regenerated.
29875         * lib/unilbrk/lbrkprop1.h: Regenerated.
29876         * lib/unilbrk/lbrkprop2.h: Regenerated.
29877         * tests/unictype/test-categ_C.c: Regenerated.
29878         * tests/unictype/test-categ_Cf.c: Regenerated.
29879         * tests/unictype/test-categ_Cn.c: Regenerated.
29880         * tests/unictype/test-categ_L.c: Regenerated.
29881         * tests/unictype/test-categ_Ll.c: Regenerated.
29882         * tests/unictype/test-categ_Lm.c: Regenerated.
29883         * tests/unictype/test-categ_Lo.c: Regenerated.
29884         * tests/unictype/test-categ_Lu.c: Regenerated.
29885         * tests/unictype/test-categ_M.c: Regenerated.
29886         * tests/unictype/test-categ_Mc.c: Regenerated.
29887         * tests/unictype/test-categ_Me.c: Regenerated.
29888         * tests/unictype/test-categ_Mn.c: Regenerated.
29889         * tests/unictype/test-categ_N.c: Regenerated.
29890         * tests/unictype/test-categ_Nd.c: Regenerated.
29891         * tests/unictype/test-categ_Nl.c: Regenerated.
29892         * tests/unictype/test-categ_No.c: Regenerated.
29893         * tests/unictype/test-categ_P.c: Regenerated.
29894         * tests/unictype/test-categ_Pd.c: Regenerated.
29895         * tests/unictype/test-categ_Pe.c: Regenerated.
29896         * tests/unictype/test-categ_Pf.c: Regenerated.
29897         * tests/unictype/test-categ_Pi.c: Regenerated.
29898         * tests/unictype/test-categ_Po.c: Regenerated.
29899         * tests/unictype/test-categ_Ps.c: Regenerated.
29900         * tests/unictype/test-categ_S.c: Regenerated.
29901         * tests/unictype/test-categ_Sk.c: Regenerated.
29902         * tests/unictype/test-categ_Sm.c: Regenerated.
29903         * tests/unictype/test-categ_So.c: Regenerated.
29904         * tests/unictype/test-ctype_alnum.c: Regenerated.
29905         * tests/unictype/test-ctype_alpha.c: Regenerated.
29906         * tests/unictype/test-ctype_graph.c: Regenerated.
29907         * tests/unictype/test-ctype_lower.c: Regenerated.
29908         * tests/unictype/test-ctype_print.c: Regenerated.
29909         * tests/unictype/test-ctype_punct.c: Regenerated.
29910         * tests/unictype/test-ctype_upper.c: Regenerated.
29911         * tests/unictype/test-decdigit.h: Regenerated.
29912         * tests/unictype/test-digit.h: Regenerated.
29913         * tests/unictype/test-numeric.h: Regenerated.
29914         * tests/unictype/test-pr_alphabetic.c: Regenerated.
29915         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
29916         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
29917         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
29918         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
29919         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
29920         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
29921         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
29922         * tests/unictype/test-pr_combining.c: Regenerated.
29923         * tests/unictype/test-pr_dash.c: Regenerated.
29924         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
29925         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
29926         * tests/unictype/test-pr_deprecated.c: Regenerated.
29927         * tests/unictype/test-pr_diacritic.c: Regenerated.
29928         * tests/unictype/test-pr_extender.c: Regenerated.
29929         * tests/unictype/test-pr_format_control.c: Regenerated.
29930         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
29931         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
29932         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
29933         * tests/unictype/test-pr_id_continue.c: Regenerated.
29934         * tests/unictype/test-pr_id_start.c: Regenerated.
29935         * tests/unictype/test-pr_ideographic.c: Regenerated.
29936         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
29937         * tests/unictype/test-pr_lowercase.c: Regenerated.
29938         * tests/unictype/test-pr_math.c: Regenerated.
29939         * tests/unictype/test-pr_numeric.c: Regenerated.
29940         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
29941         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
29942         Regenerated.
29943         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
29944         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
29945         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
29946         * tests/unictype/test-pr_other_math.c: Regenerated.
29947         * tests/unictype/test-pr_punctuation.c: Regenerated.
29948         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
29949         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
29950         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
29951         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
29952         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
29953         * tests/unictype/test-pr_uppercase.c: Regenerated.
29954         * tests/unictype/test-pr_xid_continue.c: Regenerated.
29955         * tests/unictype/test-pr_xid_start.c: Regenerated.
29956         * tests/unictype/test-pr_zero_width.c: Regenerated.
29958         Update to Unicode 5.1.0.
29959         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
29960         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
29961         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
29962         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
29963         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
29964         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
29965         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
29966         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
29967         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
29968         (nonspacing_table_ind): Update.
29969         * tests/uniwidth/test-uc_width2.sh: Update expected result.
29971         Update to Unicode 5.1.0.
29972         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
29973         code transform.
29974         * lib/uniname/uniname.c (unicode_character_name,
29975         unicode_name_character): Add the range 0x1Fxxx to the code transform.
29976         * lib/uniname/uninames.h: Regenerated.
29977         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
29979 2009-02-07  Bruno Haible  <bruno@clisp.org>
29981         Merge gen-ctype and gen-lbrk into a single program.
29982         * lib/gen-uni-tables.c: New file, incorporating
29983         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
29984         Add directory prefixes to the names of the generated files.
29985         * lib/unictype/gen-ctype.c: Remove file.
29986         * lib/unilbrk/gen-lbrk.c: Remove file.
29987         * modules/gen-uni-tables: New file.
29988         * modules/unictype/gen-ctype: Remove file.
29989         * modules/unilbrk/gen-lbrk: Remove file.
29991 2009-02-07  Bruno Haible  <bruno@clisp.org>
29993         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
29995         New module 'unistr/u32-strcoll'.
29996         * modules/unistr/u32-strcoll: New file.
29997         * lib/unistr/u32-strcoll.c: New file.
29999         New module 'unistr/u16-strcoll'.
30000         * modules/unistr/u16-strcoll: New file.
30001         * lib/unistr/u16-strcoll.c: New file.
30003         New module 'unistr/u8-strcoll'.
30004         * modules/unistr/u8-strcoll: New file.
30005         * lib/unistr/u8-strcoll.c: New file.
30006         * lib/unistr/u-strcoll.h: New file.
30008 2009-02-07  Bruno Haible  <bruno@clisp.org>
30010         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
30011         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
30012         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
30013         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
30014         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
30015         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
30017 2009-02-07  Bruno Haible  <bruno@clisp.org>
30019         Make 64-bit clean.
30020         * lib/unictype/gen-ctype.c (output_predicate, output_category,
30021         output_combclass, output_bidi_category, output_decimal_digit,
30022         output_digit, output_numeric, output_mirror, output_scripts,
30023         output_ident_category): Use proper width specifier in format strings.
30025 2009-02-07  Bruno Haible  <bruno@clisp.org>
30027         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
30028         failure behaviour.
30030 2009-02-07  Jim Meyering  <meyering@redhat.com>
30032         regex: avoid compilation failure with upcoming gcc-4.4
30033         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
30034         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
30035         "... error: integer overflow in preprocessor expression".
30037 2009-02-05  Ben Pfaff  <blp@gnu.org>
30039         Fix link errors on Windows when close module is used.
30040         * modules/close: Add $(LIB_CLOSE) to Link section.
30041         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
30042         $(LIB_CLOSE) on Windows.
30044 2009-02-05  Jim Meyering  <meyering@redhat.com>
30046         still avoid unused-parameter warnings, but do it cleanly
30047         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
30048         (get_fs_usage): Cast to void instead.
30049         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
30050         (dev_from_mount_options, read_file_system_list): Cast to void.
30051         Prompted by Bruno Haible.
30053 2009-02-04  Jim Meyering  <meyering@redhat.com>
30055         fsusage.c: correct copyright year
30056         * lib/fsusage.c: Reflect year in which the change is pushed into
30058         avoid misc. warnings
30059         * lib/fsusage.c (UNUSED_PARAM): Define.
30060         (get_fs_usage): Mark parameter "disk" as unused.
30061         * lib/getugroups.c (getgrent): Use "void" in prototype.
30062         * lib/mountlist.c: Mark unused parameters.
30063         (read_file_system_list): Declare a local with "const".
30064         * lib/nanosleep.c (getnow): Declare static.
30065         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
30067         dirfd: set errno upon failure
30068         * lib/dirfd.c: Include <errno.h>.
30069         Set errno to ENOTSUP when returning -1.
30070         * modules/dirfd (Depends-on): Add errno.
30071         Suggested by John Kodis <kodis@comcast.net>.
30073 2009-02-01  Bruno Haible  <bruno@clisp.org>
30075         Don't assume sizeof (long) >= sizeof (void *).
30076         * lib/memcmp.c: Include stdint.h.
30077         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
30078         srcp2 to 'const byte *'.
30079         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
30080         types to uintptr_t.
30081         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
30082         * modules/memcmp (Depends-on): Add stdint.
30083         Reported by Ozkan Sezer <sezeroz@gmail.com>.
30085 2009-01-30  Eric Blake  <ebb9@byu.net>
30087         fix more require-before-expand issues
30088         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
30089         expand, AC_PROG_AWK.
30090         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
30092 2009-01-28  Eric Blake  <ebb9@byu.net>
30094         version-etc: use consistent URL formatting
30095         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
30096         Improve formatting.  Use fputs for string without %.
30098 2009-01-28  Jim Meyering  <meyering@redhat.com>
30100         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
30101         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
30102         "underquoted definition of NAME" from autoconf-2.59.
30104 2009-01-28  Bruno Haible  <bruno@clisp.org>
30106         * doc/gnulib.texi: Add "Obsolete modules" to index.
30108 2009-01-28  Jim Meyering  <meyering@redhat.com>
30110         useless-if-before-free: recognize more variants
30111         * build-aux/useless-if-before-free: Also recognize e.g.,
30112         if (NULL != p) free (p);
30114 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
30116         test-getaddrinfo: skip (don't fail) this test when there's no network
30117         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
30118         on the presumption that it means you lack network access.
30120 2009-01-26  Jim Meyering  <meyering@redhat.com>
30122         fflush: avoid warnings on modern systems
30123         * lib/fflush.c (rpl_fflush): Move declarations of locals,
30124         pos and result, into scopes where they're used.
30126 2009-01-26  Eric Blake  <ebb9@byu.net>
30128         Silence warning reintroduced by recent extensions patch.
30129         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
30130         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
30131         autoconf.
30133         Backport improved autoconf semantics of AC_DEFUN_ONCE.
30134         * m4/00gnulib.m4: New file.
30135         * gnulib-tool (func_get_filelist): Always use it.
30136         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
30137         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
30139 2009-01-25  Bruno Haible  <bruno@clisp.org>
30141         Make test-quotearg work on MacOS X and AIX.
30142         * tests/test-quotearg.sh: New file.
30143         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
30144         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
30145         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
30146         include <libintl.h>.
30147         (fake_locale): Remove variable.
30148         (gettext, dgettext, dcgettext): Remove functions.
30149         (main): Instead of setting a fake locale, set a real locale. Call
30150         textdomain and bindtextdomain.
30151         * modules/quotearg-tests (Files): Add the new files.
30152         (Depends-on): Add gettext, setenv, unsetenv.
30153         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
30154         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
30155         Augment TESTS_ENVIRONMENT.
30157 2009-01-25  Bruno Haible  <bruno@clisp.org>
30159         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
30160         fr_FR.ISO8859-1 locale on MacOS X.
30161         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
30162         ja_JP.eucJP locale on MacOS X.
30163         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
30164         zh_CN.GB18030 locale on MacOS X.
30166 2009-01-25  Bruno Haible  <bruno@clisp.org>
30168         Avoid link errors on MacOS X 10.3.
30169         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
30170         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
30172 2009-01-25  Bruno Haible  <bruno@clisp.org>
30174         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
30175         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
30176         * modules/pipe (Files): Remove m4/posix_spawn.m4.
30177         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
30178         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
30179         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
30180         posix_spawnattr_init, posix_spawnattr_setsigmask,
30181         posix_spawnattr_setflags, posix_spawnattr_destroy.
30183         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
30184         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
30185         * modules/execute (Files): Remove m4/posix_spawn.m4.
30186         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
30187         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
30188         posix_spawnattr_init, posix_spawnattr_setsigmask,
30189         posix_spawnattr_setflags, posix_spawnattr_destroy.
30191 2009-01-25  Bruno Haible  <bruno@clisp.org>
30193         * lib/glthread/threadlib.c: Include <stdlib.h>.
30195 2009-01-25  Bruno Haible  <bruno@clisp.org>
30197         * lib/glthread/threadlib.c (dummy): New declaration.
30199 2009-01-25  Bruno Haible  <bruno@clisp.org>
30201         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
30202         multibyte characters also for the GB18030 encoding. Don't crash when
30203         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
30205 2009-01-25  Bruno Haible  <bruno@clisp.org>
30207         Avoid redefining 'struct random_data' on OSF/1 5.1.
30208         * lib/stdlib.in.h: Include <random.h> if it exists.
30209         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
30210         HAVE_RANDOM_H. Include <random.h> when testing whether
30211         'struct random_data' exists.
30212         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
30214 2009-01-25  Bruno Haible  <bruno@clisp.org>
30216         Don't install charset.alias on MacOS X >= 10.3.
30217         * lib/localcharset.c (DARWIN7): New macro.
30218         (get_charset_aliases): Hardcode the result for Darwin7.
30219         * modules/localcharset (install-exec-local): Don't install
30220         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
30222 2009-01-25  Bruno Haible  <bruno@clisp.org>
30224         Don't install charset.alias on mingw and Cygwin.
30225         * modules/localcharset (install-exec-local): Don't install
30226         charset.alias on mingw and Cygwin, if the file does not yet exist.
30227         The result for these platforms is hardcoded in localcharset.c.
30229 2009-01-25  Bruno Haible  <bruno@clisp.org>
30231         Make it possible again to use AC_GNU_SOURCE together with gnulib.
30232         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
30233         before requiring AC_USE_SYSTEM_EXTENSIONS.
30235 2009-01-25  Jim Meyering  <meyering@redhat.com>
30237         c-strtod: avoid warnings
30238         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
30239         "assignment discards qualifiers from pointer target type" warnings.
30241 2009-01-24  Bruno Haible  <bruno@clisp.org>
30243         Add support for non-UTF-8 locales on MacOS X.
30244         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
30245         canonical encodings. For Darwin 7 and newer, don't map traditional
30246         encodings to UTF-8.
30247         Reported by Vincent Lefevre <vincent@vinc17.org>
30248         at <http://savannah.gnu.org/bugs/?25235>.
30250 2009-01-24  Bruno Haible  <bruno@clisp.org>
30252         * doc/gnulib.texi (Obsolete modules): New section.
30253         Reported by Mike Frysinger <vapier@gentoo.org>.
30255 2009-01-24  Bruno Haible  <bruno@clisp.org>
30257         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
30258         (%.dvi): New rule.
30260 2009-01-24  Bruno Haible  <bruno@clisp.org>
30262         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
30263         Reported by Eric Blake.
30265 2009-01-24  Bruno Haible  <bruno@clisp.org>
30267         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
30268         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
30269         Reported by Gary V. Vaughan <gary@gnu.org>.
30271 2009-01-24  Bruno Haible  <bruno@clisp.org>
30273         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
30275 2009-01-23  Bruno Haible  <bruno@clisp.org>
30277         Make c-strtod, c-strtold usable in libraries.
30278         * lib/c-strtod.c: Include string.h instead of xalloc.h.
30279         (C_STRTOD): Call strdup instead of xstrdup.
30280         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
30281         * modules/c-strtold (Depends-on): Likewise.
30282         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
30283         * NEWS: Mention the change.
30284         Reported by Michael Gold <mgold@ncf.ca>.
30286 2009-01-23  Jim Meyering  <meyering@redhat.com>
30288         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
30289         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
30290         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
30292 2009-01-23  Simon Josefsson  <simon@josefsson.org>
30294         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
30295         GNU CoreUtils.
30296         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
30297         * modules/version-etc (Description): Update.
30299 2009-01-22  Bruno Haible  <bruno@clisp.org>
30301         Cache the C locale object.
30302         * lib/c-strtod.c (c_locale_cache): New variable.
30303         (c_locale): New function.
30304         (C_STRTOD): Use it, and don't call freelocale.
30305         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
30306         Suggested by Paolo Bonzini.
30308 2009-01-21  Bruno Haible  <bruno@clisp.org>
30310         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
30311         conditions other than overflow.
30313 2009-01-21  Bruno Haible  <bruno@clisp.org>
30315         * lib/c-strtod.c: Include errno.h.
30316         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
30317         value from STRTOD_L and STRTOD.
30319 2009-01-21  Bruno Haible  <bruno@clisp.org>
30320         and Jim Meyering  <meyering@redhat.com>
30322         nanosleep: skip configure test (fail it) for apple universal builds
30323         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
30324         universal builds, assume that nanosleep does not work.
30325         * modules/nanosleep (Depends-on): Add multiarch.
30327         mktime: skip configure test (fail it) for apple universal builds
30328         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
30329         universal builds, assume that mktime does not work.
30330         * modules/mktime (Depends-on): Add multiarch.
30332 2009-01-21  Eric Blake  <ebb9@byu.net>
30334         multiarch: avoid expand-before-require warning
30335         * modules/multiarch (configure.ac): Require, rather than expand,
30336         gl_MULTIARCH.
30337         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
30338         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
30339         enforce that all clients require it.  Partial reversion of
30340         2008-12-29 patch.
30342         error: avoid expand-before-require warning
30343         * modules/errno (configure.ac): Require, rather than expand,
30344         gl_HEADER_ERRNO_H.
30345         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
30346         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
30347         enforce that all clients require it.
30349         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
30350         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
30351         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
30352         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
30354 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
30356         Revert:
30357         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
30359         regex: do not depend on obsolete modules.
30360         * modules/regex: Remove memcmp and memmove.
30362 2009-01-20  Bruno Haible  <bruno@clisp.org>
30364         Make the 'link' module link on Windows NT 4.
30365         * lib/link.c (_WIN32_WINNT): Don't define.
30366         (CreateHardLinkFuncType): New type.
30367         (CreateHardLinkFunc, initialized): New variables.
30368         (initialize): New function.
30369         (link): Invoke CreateHardLink indirectly through the function pointer.
30371 2009-01-20  Bruno Haible  <bruno@clisp.org>
30373         Fix compilation failure on mingw.
30374         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
30376 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
30378         * doc/c-strtod.texi: Mention a couple of restrictions.
30380 2009-01-20  Jim Meyering  <meyering@redhat.com>
30382         gettimeofday: move more declarations out of functions
30383         * lib/gettimeofday.c: Move extern declarations of tzset and
30384         gmtime out of containing functions.  Prompted by Bruno Haible.
30386 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
30388         regex: do not depend on obsolete modules.
30389         * modules/regex: Remove memcmp and memmove.
30391 2009-01-19  Bruno Haible  <bruno@clisp.org>
30393         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
30394         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
30395         gl_BIGENDIAN, not AC_C_BIGENDIAN.
30396         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
30397         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
30399 2009-01-19  Bruno Haible  <bruno@clisp.org>
30401         * tests/test-link.c: Include <errno.h>.
30402         (main): Exit with code 77 when a hard link cannot be created due to
30403         the file system.
30404         * tests/test-link.sh: Skip test when a hard link cannot be created due
30405         to the file system.
30406         Suggested by Eric Blake.
30408 2009-01-19  Martin Lambers  <marlam@marlam.de>
30410         * modules/link-tests: New file.
30411         * tests/test-link.sh: New file.
30412         * tests/test-link.c: New file.
30414 2009-01-19  Eric Blake  <ebb9@byu.net>
30416         doc: mention another function added in cygwin 1.7.0
30417         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
30418         Another new function in cygwin 1.7.
30420 2009-01-19  Bruno Haible  <bruno@clisp.org>
30422         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
30423         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
30424         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
30425         gl_BIGENDIAN, not AC_C_BIGENDIAN.
30426         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
30427         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
30428         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
30429         * m4/md4.m4 (gl_MD4): Likewise.
30430         * m4/md5.m4 (gl_MD5): Likewise.
30431         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
30432         * m4/sha1.m4 (gl_SHA1): Likewise.
30433         * m4/sha256.m4 (gl_SHA256): Likewise.
30434         * m4/sha512.m4 (gl_SHA512): Likewise.
30436 2009-01-19  Bruno Haible  <bruno@clisp.org>
30438         * modules/uniname/uniname-tests (Depends-on): Add progname.
30439         * tests/uniname/test-uninames.c: Include progname.h.
30440         (main): Call set_program_name.
30442         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
30443         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
30444         (main): Call set_program_name.
30446         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
30447         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
30448         (main): Call set_program_name.
30450         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
30451         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
30452         (main): Call set_program_name.
30454         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
30455         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
30456         (main): Call set_program_name.
30458         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
30459         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
30460         (main): Call set_program_name.
30462         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
30463         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
30464         (main): Call set_program_name.
30466         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
30467         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
30468         (main): Call set_program_name.
30470         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
30471         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
30472         (main): Call set_program_name.
30474 2009-01-19  Eric Blake  <ebb9@byu.net>
30476         test-unistd: test previous patch
30477         * tests/test-unistd.c: Test *_FILENO macros.
30479         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
30480         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
30481         Guarantee a definition.
30482         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
30483         * modules/unistd-safer (Depends-on): Add dependency on unistd.
30484         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
30485         * lib/dup-safer.c (STDERR_FILENO): Likewise.
30486         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
30487         Likewise.
30488         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
30489         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
30490         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
30491         Likewise.
30492         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
30493         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
30494         (STDERR_FILENO): Likewise.
30495         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
30496         (STDERR_FILENO): Likewise.
30497         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
30498         (STDERR_FILENO): Likewise.
30499         Reported by Elbert Pol.
30501 2009-01-19  Eric Blake  <ebb9@byu.net>
30503         doc: mention more functions added in cygwin 1.7.0
30504         * doc/posix-functions/abort.texi (abort): Update wording related
30505         to cygwin.
30506         * doc/posix-functions/daylight.texi (daylight): Likewise.
30507         * doc/posix-functions/optarg.texi (optarg): Likewise.
30508         * doc/posix-functions/optarg.texi (opterr): Likewise.
30509         * doc/posix-functions/optarg.texi (optind): Likewise.
30510         * doc/posix-functions/optarg.texi (optopt): Likewise.
30511         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
30512         worked in 1.5.x, and was withdrawn in 1.7.
30513         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
30514         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
30515         cygwin versions.
30516         * doc/posix-functions/perror.texi (perror): Likewise.
30517         * doc/posix-functions/printf.texi (printf): Likewise.
30518         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
30519         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
30520         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
30521         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
30522         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
30523         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
30524         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
30525         Likewise.
30526         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
30527         Likewise.
30528         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
30529         this function.
30530         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
30531         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
30532         Likewise.
30533         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
30534         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
30535         * doc/posix-functions/confstr.texi (confstr): Likewise.
30536         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
30537         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
30538         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
30539         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
30540         * doc/posix-functions/fputws.texi (fputws): Likewise.
30541         * doc/posix-functions/fwide.texi (fwide): Likewise.
30542         * doc/posix-functions/getwc.texi (getwc): Likewise.
30543         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
30544         * doc/posix-functions/putwc.texi (putwc): Likewise.
30545         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
30546         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
30547         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
30548         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
30549         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
30550         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
30551         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
30552         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
30553         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
30554         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
30555         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
30557 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
30559         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
30560         * lib/ioctl.c: Include <sys/ioctl.h>.
30562 2009-01-19  Simon Josefsson  <simon@josefsson.org>
30564         * modules/getdate-tests (Depends-on): Add progname.
30565         * tests/test-getdate.c: Use progname module, to avoid link errors
30566         on non-glibc systems.
30568 2009-01-18  Simon Josefsson  <simon@josefsson.org>
30570         * modules/filenamecat-tests (Depends-on): Add progname.
30571         * modules/fstrcmp-tests (Depends-on): Likewise.
30573         * tests/test-filenamecat.c: Use progname module, to avoid link
30574         errors on non-glibc systems.
30575         * tests/test-fstrcmp.c: Likewise.
30577 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
30579         gettimeofday: avoid warning: nested extern declaration of 'localtime'
30580         * lib/gettimeofday.c: Move extern declaration out of function.
30582 2009-01-18  Bruno Haible  <bruno@clisp.org>
30584         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
30585         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
30586         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
30588 2009-01-18  Bruno Haible  <bruno@clisp.org>
30590         * lib/strftime.c (MEMPCPY): Remove unused macro.
30591         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
30593 2009-01-18  Martin Lambers  <marlam@marlam.de>
30595         New module 'link'.
30596         * lib/unistd.in.h (link): New declaration.
30597         * lib/link.c: New file.
30598         * m4/link.m4: New file.
30599         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
30600         HAVE_LINK.
30601         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
30602         * modules/link: New file.
30603         * doc/posix-functions/link.texi: Mention the new module.
30605 2009-01-18  Bruno Haible  <bruno@clisp.org>
30607         * tests/test-avltree_list.c (main): Call set_program_name.
30608         * tests/test-avltree_oset.c (main): Likewise.
30609         * tests/test-obstack-printf.c: Include progname.h.
30610         (main): Call set_program_name.
30611         * tests/test-quotearg.c: Include progname.h.
30612         (main): Call set_program_name.
30613         * tests/test-xmemdup0.c: Include progname.h.
30614         (main): Call set_program_name.
30616 2009-01-18  Bruno Haible  <bruno@clisp.org>
30618         New module 'alphasort'.
30619         * lib/dirent.in.h (alphasort): New declaration.
30620         * lib/alphasort.c: New file, from glibc with modifications.
30621         * m4/alphasort.m4: New file.
30622         * modules/alphasort: New file.
30623         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
30624         HAVE_ALPHASORT.
30625         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
30626         HAVE_ALPHASORT.
30627         * doc/posix-functions/alphasort.texi: Mention the new module and the
30628         portability problems.
30630 2009-01-18  Bruno Haible  <bruno@clisp.org>
30632         New module 'scandir'.
30633         * lib/dirent.in.h (scandir): New declaration.
30634         * lib/scandir.c: New file, from glibc with modifications.
30635         * m4/scandir.m4: New file.
30636         * modules/scandir: New file.
30637         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
30638         HAVE_SCANDIR.
30639         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
30640         HAVE_SCANDIR.
30641         * doc/posix-functions/scandir.texi: Mention the new module and the
30642         portability problems.
30644 2009-01-17  Bruno Haible  <bruno@clisp.org>
30646         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
30647         Update documentation.
30648         (func_remove_suffix): Escape all dots in the suffix. Update
30649         documentation.
30650         (func_filter_filelist): Update documentation.
30651         Reported by Ralf Wildenhues.
30653 2009-01-17  Bruno Haible  <bruno@clisp.org>
30655         * modules/dprintf-posix-tests: New file.
30656         * tests/test-dprintf-posix.sh: New file.
30657         * tests/test-dprintf-posix.c: New file.
30659         New modules 'dprintf', 'dprintf-posix'.
30660         * lib/stdio.in.h (dprintf): New declaration.
30661         * lib/dprintf.c: New file.
30662         * m4/dprintf.m4: New file.
30663         * m4/dprintf-posix.m4: New file.
30664         * modules/dprintf: New file.
30665         * modules/dprintf-posix: New file.
30666         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
30667         HAVE_DPRINTF, REPLACE_DPRINTF.
30668         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
30669         HAVE_DPRINTF, REPLACE_DPRINTF.
30670         * doc/posix-functions/dprintf.texi: Mention the new modules.
30672 2009-01-17  Bruno Haible  <bruno@clisp.org>
30674         * modules/vdprintf-posix-tests: New file.
30675         * tests/test-vdprintf-posix.sh: New file.
30676         * tests/test-vdprintf-posix.c: New file.
30678         New modules 'vdprintf', 'vdprintf-posix'.
30679         * lib/stdio.in.h (vdprintf): New declaration.
30680         * lib/vdprintf.c: New file.
30681         * m4/vdprintf.m4: New file.
30682         * m4/vdprintf-posix.m4: New file.
30683         * modules/vdprintf: New file.
30684         * modules/vdprintf-posix: New file.
30685         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
30686         HAVE_VDPRINTF, REPLACE_VDPRINTF.
30687         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
30688         HAVE_VDPRINTF, REPLACE_VDPRINTF.
30689         * doc/posix-functions/vdprintf.texi: Mention the new modules.
30691 2009-01-17  Bruno Haible  <bruno@clisp.org>
30693         Fix replacement of fopen on mingw.
30694         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
30695         mingw.
30697 2009-01-17  Bruno Haible  <bruno@clisp.org>
30699         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
30700         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
30702 2009-01-17  Bruno Haible  <bruno@clisp.org>
30704         Avoid test-fflush2.sh failure on mingw.
30705         * tests/test-fflush2.c: Include binary-io.h.
30706         (main): Put standard input into binary mode.
30707         * modules/fflush-tests (Depends-on): Add binary-io.
30709 2009-01-17  Bruno Haible  <bruno@clisp.org>
30711         * lib/wchar.in.h: In another particular situation, include only the
30712         system's <wchar.h> file.
30713         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
30714         Reported by Albert Chin-A-Young <china@thewrittenword.com>
30715         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
30717 2009-01-17  Bruno Haible  <bruno@clisp.org>
30719         Support for stripping executables in --enable-relocatable.
30720         * build-aux/install-reloc: Expect one more argument, or an environment
30721         variable RELOC_STRIP_PROG. If set, strip the destination program and
30722         its wrapper.
30723         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
30724         RELOC_STRIP_PROG.
30725         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
30726         to set RELOCATABLE_STRIP.
30727         * NEWS: Mention the new Makefile requirement.
30729 2009-01-17  Bruno Haible  <bruno@clisp.org>
30731         * build-aux/install-reloc: Remove debugging information left over by
30732         C compiler on MacOS X.
30734 2009-01-17  Bruno Haible  <bruno@clisp.org>
30736         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
30737         * lib/progreloc.c (find_executable): Fix type of pointer passed to
30738         _NSGetExecutablePath.
30740 2009-01-16  Jim Meyering  <meyering@redhat.com>
30742         strerror: avoid warnings about discarding "const"
30743         * lib/strerror.c (rpl_strerror): Instead of returning a const
30744         string from each and every "case", use a variable, and add a single
30745         cast after the switch.
30747 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
30749         * lib/arpa_inet.in.h: Add extern "C" block for C++.
30751 2009-01-16  Bruno Haible  <bruno@clisp.org>
30753         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
30754         array initializer syntax that also works in C++ mode.
30755         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
30757 2009-01-16  Jim Meyering  <meyering@redhat.com>
30759         poll: suppress a warning
30760         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
30761         to ignore "...unsigned expression < 0 is always false" warnings.
30763 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
30765         poll: remove declarations of unused variables
30766         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
30767         sockbuf and optlen.
30769 2009-01-15  Bruno Haible  <bruno@clisp.org>
30771         Make fflush-after-ungetc POSIX compliant on BSD systems.
30772         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
30773         (clear_ungetc_buffer): Implement also for other systems.
30774         (rpl_fflush): On glibc systems, invoke
30775         clear_ungetc_buffer_preserving_position. Otherwise, invoke
30776         clear_ungetc_buffer after fetching the stream's position, not before.
30778 2009-01-15  Bruno Haible  <bruno@clisp.org>
30780         Make fflush-after-ungetc POSIX compliant on glibc systems.
30781         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
30782         after ungetc.
30783         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
30784         (rpl_fflush): On glibc systems, simply call the system's fflush
30785         function after clearing the ungetc buffer.
30786         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
30787         Instead, lseek only to the end of file, then use the system's fseeko
30788         for the rest. On glibc systems, reset the EOF indicator bit.
30790 2009-01-15  Jim Meyering  <meyering@redhat.com>
30792         openmp.m4: revert quote-adding change, for portability to older autoconf
30793         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
30794         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
30795         Simon Josefsson noticed the problem when using autoconf-2.61.
30797 2009-01-15  Bruno Haible  <bruno@clisp.org>
30799         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
30800         * tests/test-fflush2.c (ASSERT): Always fail.
30801         (main): Add two tests for fflush() after ungetc(), taking into account
30802         the Austin Group's clarification.
30803         Suggested by Eric Blake.
30805 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
30807         mktime.m4: remove K&R-style function prototypes
30808         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
30809         for the Sun C++ compiler.
30811 2009-01-14  Bruno Haible  <bruno@clisp.org>
30813         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
30814         while including <wchar.h>.
30815         * lib/wchar.in.h: In two particular situations on HP-UX, include only
30816         the system's <wchar.h> file.
30817         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
30819 2009-01-14  Bruno Haible  <bruno@clisp.org>
30821         * m4/csharp.m4: Don't mention gettext on the serial number line.
30822         * m4/csharpexec.m4: Likewise.
30823         * m4/eaccess.m4: Likewise.
30824         * m4/javaexec.m4: Likewise.
30825         * m4/sig_atomic_t.m4: Likewise.
30826         * m4/tmpdir.m4: Likewise.
30827         * m4/intldir.m4: Bump gettext version.
30828         * m4/lib-ld.m4: Likewise.
30830 2009-01-14  Bruno Haible  <bruno@clisp.org>
30832         * lib/progname.c (set_program_name): Add more comments.
30833         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
30835 2009-01-14  Simon Josefsson  <simon@josefsson.org>
30837         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
30838         were sys/stat.h does not define it.
30840 2009-01-14  Jim Meyering  <meyering@redhat.com>
30842         many *.m4 files: improve m4 quoting
30843         99% of this change was performed by running the following commands:
30844         git ls-files | grep '\.m4$' | xargs perl -pi \
30845           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
30846           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
30847           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
30848           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
30849         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
30850         The remainder were to add Copyright dates, increment serial numbers,
30851         undo some changes in comments, exclude m4/intl.m4, and add quotes
30852         around the "1" in ",1" where the unusual spacing prohibited the
30853         above regexps from doing the job.  For more details, see
30854         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
30855         * m4/acl.m4: Modified.
30856         * m4/afs.m4: Likewise.
30857         * m4/alloca.m4: Likewise.
30858         * m4/argp.m4: Likewise.
30859         * m4/argz.m4: Likewise.
30860         * m4/atexit.m4: Likewise.
30861         * m4/bison-i18n.m4: Likewise.
30862         * m4/bison.m4: Likewise.
30863         * m4/byteswap.m4: Likewise.
30864         * m4/c-stack.m4: Likewise.
30865         * m4/c-strtod.m4: Likewise.
30866         * m4/calloc.m4: Likewise.
30867         * m4/canonicalize-lgpl.m4: Likewise.
30868         * m4/chown.m4: Likewise.
30869         * m4/clock_time.m4: Likewise.
30870         * m4/codeset.m4: Likewise.
30871         * m4/copy-file.m4: Likewise.
30872         * m4/csharp.m4: Likewise.
30873         * m4/csharpcomp.m4: Likewise.
30874         * m4/csharpexec.m4: Likewise.
30875         * m4/d-ino.m4: Likewise.
30876         * m4/d-type.m4: Likewise.
30877         * m4/dirfd.m4: Likewise.
30878         * m4/double-slash-root.m4: Likewise.
30879         * m4/eaccess.m4: Likewise.
30880         * m4/eealloc.m4: Likewise.
30881         * m4/environ.m4: Likewise.
30882         * m4/errno_h.m4: Likewise.
30883         * m4/euidaccess.m4: Likewise.
30884         * m4/execute.m4: Likewise.
30885         * m4/fatal-signal.m4: Likewise.
30886         * m4/fchdir.m4: Likewise.
30887         * m4/fcntl_h.m4: Likewise.
30888         * m4/fileblocks.m4: Likewise.
30889         * m4/filenamecat.m4: Likewise.
30890         * m4/findprog.m4: Likewise.
30891         * m4/flexmember.m4: Likewise.
30892         * m4/fnmatch.m4: Likewise.
30893         * m4/fopen.m4: Likewise.
30894         * m4/fpending.m4: Likewise.
30895         * m4/fprintf-posix.m4: Likewise.
30896         * m4/free.m4: Likewise.
30897         * m4/frexp.m4: Likewise.
30898         * m4/frexpl.m4: Likewise.
30899         * m4/fsusage.m4: Likewise.
30900         * m4/ftruncate.m4: Likewise.
30901         * m4/gc-camellia.m4: Likewise.
30902         * m4/gc-random.m4: Likewise.
30903         * m4/gc.m4: Likewise.
30904         * m4/getaddrinfo.m4: Likewise.
30905         * m4/getcwd-abort-bug.m4: Likewise.
30906         * m4/getcwd-path-max.m4: Likewise.
30907         * m4/getdate.m4: Likewise.
30908         * m4/getdomainname.m4: Likewise.
30909         * m4/getgroups.m4: Likewise.
30910         * m4/gethostname.m4: Likewise.
30911         * m4/gethrxtime.m4: Likewise.
30912         * m4/getline.m4: Likewise.
30913         * m4/getloadavg.m4: Likewise.
30914         * m4/getndelim2.m4: Likewise.
30915         * m4/getpass.m4: Likewise.
30916         * m4/gettext.m4: Likewise.
30917         * m4/gettime.m4: Likewise.
30918         * m4/gettimeofday.m4: Likewise.
30919         * m4/gnulib-common.m4: Likewise.
30920         * m4/group-member.m4: Likewise.
30921         * m4/host-os.m4: Likewise.
30922         * m4/iconv.m4: Likewise.
30923         * m4/iconv_open.m4: Likewise.
30924         * m4/inet_ntop.m4: Likewise.
30925         * m4/inet_pton.m4: Likewise.
30926         * m4/inline.m4: Likewise.
30927         * m4/intldir.m4: Likewise.
30928         * m4/intlmacosx.m4: Likewise.
30929         * m4/intmax.m4: Likewise.
30930         * m4/intmax_t.m4: Likewise.
30931         * m4/inttypes.m4: Likewise.
30932         * m4/inttypes_h.m4: Likewise.
30933         * m4/inttypes-pri.m4: Likewise.
30934         * m4/isapipe.m4: Likewise.
30935         * m4/isnand.m4: Likewise.
30936         * m4/isnanf.m4: Likewise.
30937         * m4/isnanl.m4: Likewise.
30938         * m4/javacomp.m4: Likewise.
30939         * m4/javaexec.m4: Likewise.
30940         * m4/jm-winsz1.m4: Likewise.
30941         * m4/jm-winsz2.m4: Likewise.
30942         * m4/lchown.m4: Likewise.
30943         * m4/lcmessage.m4: Likewise.
30944         * m4/ldexpl.m4: Likewise.
30945         * m4/lib-ld.m4: Likewise.
30946         * m4/lib-link.m4: Likewise.
30947         * m4/libsigsegv.m4: Likewise.
30948         * m4/link-follow.m4: Likewise.
30949         * m4/localcharset.m4: Likewise.
30950         * m4/locale-fr.m4: Likewise.
30951         * m4/locale-ja.m4: Likewise.
30952         * m4/locale-tr.m4: Likewise.
30953         * m4/locale-zh.m4: Likewise.
30954         * m4/lock.m4: Likewise.
30955         * m4/longlong.m4: Likewise.
30956         * m4/ls-mntd-fs.m4: Likewise.
30957         * m4/lstat.m4: Likewise.
30958         * m4/malloc.m4: Likewise.
30959         * m4/mathl.m4: Likewise.
30960         * m4/mbrtowc.m4: Likewise.
30961         * m4/mbstate_t.m4: Likewise.
30962         * m4/mbswidth.m4: Likewise.
30963         * m4/memchr.m4: Likewise.
30964         * m4/memcmp.m4: Likewise.
30965         * m4/memcpy.m4: Likewise.
30966         * m4/memmem.m4: Likewise.
30967         * m4/memmove.m4: Likewise.
30968         * m4/mempcpy.m4: Likewise.
30969         * m4/memrchr.m4: Likewise.
30970         * m4/memset.m4: Likewise.
30971         * m4/minmax.m4: Likewise.
30972         * m4/mkdir-slash.m4: Likewise.
30973         * m4/mkdtemp.m4: Likewise.
30974         * m4/mktime.m4: Likewise.
30975         * m4/mmap-anon.m4: Likewise.
30976         * m4/mountlist.m4: Likewise.
30977         * m4/nanosleep.m4: Likewise.
30978         * m4/nls.m4: Likewise.
30979         * m4/nocrash.m4: Likewise.
30980         * m4/open.m4: Likewise.
30981         * m4/openat.m4: Likewise.
30982         * m4/openmp.m4: Likewise.
30983         * m4/pathmax.m4: Likewise.
30984         * m4/perl.m4: Likewise.
30985         * m4/physmem.m4: Likewise.
30986         * m4/pipe.m4: Likewise.
30987         * m4/po.m4: Likewise.
30988         * m4/poll.m4: Likewise.
30989         * m4/posixtm.m4: Likewise.
30990         * m4/posixver.m4: Likewise.
30991         * m4/printf-frexp.m4: Likewise.
30992         * m4/printf-frexpl.m4: Likewise.
30993         * m4/printf-posix.m4: Likewise.
30994         * m4/printf-posix-rpl.m4: Likewise.
30995         * m4/printf.m4: Likewise.
30996         * m4/progtest.m4: Likewise.
30997         * m4/putenv.m4: Likewise.
30998         * m4/readline.m4: Likewise.
30999         * m4/readlink.m4: Likewise.
31000         * m4/readutmp.m4: Likewise.
31001         * m4/realloc.m4: Likewise.
31002         * m4/regex.m4: Likewise.
31003         * m4/relocatable.m4: Likewise.
31004         * m4/relocatable-lib.m4: Likewise.
31005         * m4/rename-dest-slash.m4: Likewise.
31006         * m4/rename.m4: Likewise.
31007         * m4/rmdir-errno.m4: Likewise.
31008         * m4/rmdir.m4: Likewise.
31009         * m4/roundf.m4: Likewise.
31010         * m4/roundl.m4: Likewise.
31011         * m4/rpmatch.m4: Likewise.
31012         * m4/save-cwd.m4: Likewise.
31013         * m4/selinux-selinux-h.m4: Likewise.
31014         * m4/setenv.m4: Likewise.
31015         * m4/settime.m4: Likewise.
31016         * m4/sig2str.m4: Likewise.
31017         * m4/sig_atomic_t.m4: Likewise.
31018         * m4/signalblocking.m4: Likewise.
31019         * m4/signbit.m4: Likewise.
31020         * m4/sigpipe.m4: Likewise.
31021         * m4/sockets.m4: Likewise.
31022         * m4/sockpfaf.m4: Likewise.
31023         * m4/st_dm_mode.m4: Likewise.
31024         * m4/stat-time.m4: Likewise.
31025         * m4/stdbool.m4: Likewise.
31026         * m4/stdint.m4: Likewise.
31027         * m4/stdint_h.m4: Likewise.
31028         * m4/stpcpy.m4: Likewise.
31029         * m4/stpncpy.m4: Likewise.
31030         * m4/strcase.m4: Likewise.
31031         * m4/strchrnul.m4: Likewise.
31032         * m4/strcspn.m4: Likewise.
31033         * m4/strdup.m4: Likewise.
31034         * m4/strftime.m4: Likewise.
31035         * m4/strndup.m4: Likewise.
31036         * m4/strnlen.m4: Likewise.
31037         * m4/strpbrk.m4: Likewise.
31038         * m4/strptime.m4: Likewise.
31039         * m4/strsep.m4: Likewise.
31040         * m4/strtod.m4: Likewise.
31041         * m4/strtoimax.m4: Likewise.
31042         * m4/strtok_r.m4: Likewise.
31043         * m4/strtol.m4: Likewise.
31044         * m4/strtoll.m4: Likewise.
31045         * m4/strtoul.m4: Likewise.
31046         * m4/strtoull.m4: Likewise.
31047         * m4/strtoumax.m4: Likewise.
31048         * m4/strverscmp.m4: Likewise.
31049         * m4/threadlib.m4: Likewise.
31050         * m4/timegm.m4: Likewise.
31051         * m4/tm_gmtoff.m4: Likewise.
31052         * m4/tmpdir.m4: Likewise.
31053         * m4/tmpfile.m4: Likewise.
31054         * m4/tzset.m4: Likewise.
31055         * m4/uintmax_t.m4: Likewise.
31056         * m4/unlinkdir.m4: Likewise.
31057         * m4/unlocked-io.m4: Likewise.
31058         * m4/uptime.m4: Likewise.
31059         * m4/userspec.m4: Likewise.
31060         * m4/utimbuf.m4: Likewise.
31061         * m4/utime.m4: Likewise.
31062         * m4/utimes-null.m4: Likewise.
31063         * m4/utimes.m4: Likewise.
31064         * m4/vararrays.m4: Likewise.
31065         * m4/vasnprintf.m4: Likewise.
31066         * m4/vfprintf-posix.m4: Likewise.
31067         * m4/vprintf-posix.m4: Likewise.
31068         * m4/wait-process.m4: Likewise.
31069         * m4/wchar_t.m4: Likewise.
31070         * m4/wint_t.m4: Likewise.
31071         * m4/write-any-file.m4: Likewise.
31072         * m4/yield.m4: Likewise.
31074 2009-01-13  Bruno Haible  <bruno@clisp.org>
31076         Avoid test-copy-file.sh failures when ACL support insufficient.
31077         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
31078         TESTS_ENVIRONMENT.
31079         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
31080         Reported by Jim Meyering.
31082 2009-01-13  Bruno Haible  <bruno@clisp.org>
31084         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
31085         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
31086         * modules/unistdio/u8-printf-parse (Files): Likewise.
31087         * modules/unistdio/u32-printf-parse (Files): Likewise.
31088         * modules/unistdio/ulc-printf-parse (Files): Likewise.
31090 2009-01-13  Simon Josefsson  <simon@josefsson.org>
31092         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
31093         and m4/inttypes_h.m4 too.
31095 2009-01-12  Eric Blake  <ebb9@byu.net>
31097         tests: IRIX 6.2 cc can't compile -0.0 into .data
31098         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
31099         rather than at compile-time.
31100         * tests/test-floorl.c (minus_zero): Likewise.
31101         * tests/test-frexpl.c (minus_zero): Likewise.
31102         * tests/test-isnan.c (minus_zerol): Likewise.
31103         * tests/test-isnanl.h (minus_zero): Likewise.
31104         * tests/test-ldexpl.c (minus_zero): Likewise.
31105         * tests/test-roundl.c (minus_zero): Likewise.
31106         * tests/test-signbit.c (minus_zerol): Likewise.
31107         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
31108         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
31109         * tests/test-truncl.c (minus_zero): Likewise.
31110         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
31111         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
31112         Reported by Tom G. Christensen and Nelson H. F. Beebe.
31114 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
31116         regex: fix glibc bug 9697
31117         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
31118         handling.
31120 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
31122         regex: fix glibc bug 697
31123         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
31124         being NULL also if there are no backreferences.
31126 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
31128         regex: merge glibc changes
31129         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
31130         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
31131         re_string_skip_chars, re_string_reconstruct): Likewise.
31132         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
31134 2009-01-07  Jim Meyering  <meyering@redhat.com>
31136         poll: filter through cppi
31137         * lib/poll.c: Indent cpp directives to reflect nesting.
31139 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
31141         poll: don't return uninitialized
31142         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
31144 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
31146         avoid compile failure on AIX 6.1
31147         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
31148         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
31150 2009-01-04  Jim Meyering  <meyering@redhat.com>
31152         remove duplicate inclusion of <stdio.h>
31153         * tests/test-fprintf-posix.c: Likewise.
31154         * tests/test-printf-posix.c: Likewise.
31155         * tests/test-snprintf-posix.c: Likewise.
31156         * tests/test-sprintf-posix.c: Likewise.
31157         * tests/test-vasprintf-posix.c: Likewise.
31158         * tests/test-vfprintf-posix.c: Likewise.
31159         * tests/test-vprintf-posix.c: Likewise.
31160         * tests/test-vsnprintf-posix.c: Likewise.
31161         * tests/test-vsprintf-posix.c: Likewise.
31163 2009-01-03  Jim Meyering  <meyering@redhat.com>
31165         gnulib-tool: fix sed-based filtering
31166         * gnulib-tool (func_filter_filelist): Remove extra backslash
31167         in sed_fff_filter definition.
31169 2009-01-02  Jim Meyering  <meyering@redhat.com>
31171         strftime: avoid compilation failure on Solaris 2.6
31172         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
31173         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
31174         Don't #define mbrlen or mbsinit, since now they're guaranteed to
31175         be available.  Reported by Tom G. Christensen.  Details in
31176         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
31178 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31179             Bruno Haible  <bruno@clisp.org>
31181         Speed up gnulib-tool by doing more string processing through shell
31182         built-ins.
31183         * gnulib-tool (fast_func_append): New variable.
31184         (func_remove_prefix, func_remove_suffix): New functions.
31185         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
31186         (func_filter_filelist): New function.
31187         (func_get_dependencies): Use func_remove_suffix instead of sed.
31188         (func_get_automake_snippet): Use func_filter_filelist instead of a
31189         subshell and sed invocation.
31191 2009-01-01  Bruno Haible  <bruno@clisp.org>
31193         Fix a security bug.
31194         * gnulib-tool (func_import, import, update): Don't allow the characters
31195         '"', '$', '`', '\' in macro arguments that become part of commands that
31196         are evaluated.
31198 2009-01-01  Bruno Haible  <bruno@clisp.org>
31200         * gnulib-tool (func_reset_sigpipe): Add more comments.
31202 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31204         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
31205         func_emit_tests_Makefile_am, func_import): Abort loops early if we
31206         already know the answer.
31208 2009-01-01  Jim Meyering  <meyering@redhat.com>
31210         * lib/version-etc.c (version_etc_va): Update copyright year.
31212 2008-12-30  Bruno Haible  <bruno@clisp.org>
31214         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
31215         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
31216         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
31218 2008-12-29  Eric Blake  <ebb9@byu.net>
31220         multiarch: avoid autoconf AC_REQUIRE bug
31221         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
31222         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
31223         2.63 and older.
31224         Reported by Bruno Haible, and analyzed in
31225         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
31227 2008-12-29  Bruno Haible  <bruno@clisp.org>
31229         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
31230         files in subdirectories correctly.
31231         Reported by Ralf Wildenhues.
31233 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31235         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
31236         rather than 'join FILE -', for Solaris join.
31238 2008-12-29  Bruno Haible  <bruno@clisp.org>
31240         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
31241         quoting.
31242         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
31243         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
31244         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
31245         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
31246         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
31247         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
31248         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
31249         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
31250         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
31251         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
31252         * m4/nls.m4 (AM_NLS): Likewise.
31253         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
31254         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
31255         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
31256         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
31257         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
31258         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
31259         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
31260         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
31261         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
31262         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
31263         * m4/xsize.m4 (gl_XSIZE): Likewise.
31264         Suggested by Jim Meyering.
31266 2008-11-17  Bruce Korb  <bkorb@gnu.org>
31268         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
31269         * lib/parse-duration.c: use a switch instead of cascading if's.
31271 2008-12-29  Eric Blake  <ebb9@byu.net>
31273         wchar.h: supply WEOF on Irix 5.3
31274         * lib/wchar.in.h (wint_t): Also supply WEOF.
31275         * lib/wctype.in.h (wint_t): Likewise.
31276         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
31277         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
31278         Reported by Tom G. Christensen.
31280 2008-12-26  Bruno Haible  <bruno@clisp.org>
31282         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
31283         i486, i586, i686.
31285 2008-12-26  Bruno Haible  <bruno@clisp.org>
31287         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
31289 2008-12-26  Bruno Haible  <bruno@clisp.org>
31291         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
31292         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
31293         not __STDC_CONSTANT_MACROS.
31294         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
31296 2008-12-25  Bruno Haible  <bruno@clisp.org>
31298         Add support for universal builds to vasnprintf.
31299         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
31300         universal builds, guess no.
31301         * modules/vasnprintf-posix (Depends-on): Add multiarch.
31302         * modules/vasprintf-posix (Depends-on): Likewise.
31303         * modules/fprintf-posix (Depends-on): Likewise.
31304         * modules/vfprintf-posix (Depends-on): Likewise.
31305         * modules/snprintf-posix (Depends-on): Likewise.
31306         * modules/vsnprintf-posix (Depends-on): Likewise.
31307         * modules/sprintf-posix (Depends-on): Likewise.
31308         * modules/vsprintf-posix (Depends-on): Likewise.
31309         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
31310         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
31311         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
31312         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
31313         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
31314         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
31315         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
31317         Add support for universal builds to <inttypes.h>.
31318         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
31319         _SCNu64_PREFIX): In Apple
31320         universal builds, define directly, using _LP64.
31321         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
31322         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
31323         * modules/inttypes (Depends-on): Add multiarch.
31324         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
31326         Add support for universal builds to <stdint.h>.
31327         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
31328         universal builds, define directly, using _LP64.
31329         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
31330         Apple universal builds, don't test for the size and suffix of ptrdiff_t
31331         and size_t.
31332         * modules/stdint (Depends-on): Add multiarch.
31333         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
31335         New module 'multiarch'.
31336         * modules/multiarch: New file.
31337         * m4/multiarch.m4: New file.
31339 2008-12-25  Bruno Haible  <bruno@clisp.org>
31341         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
31343 2008-12-25  Bruno Haible  <bruno@clisp.org>
31345         * modules/btowc (License): Relicense under LGPLv2+.
31346         * modules/mbsinit (License): Likewise.
31347         * modules/mbrtowc (License): Likewise.
31348         * modules/wcrtomb (License): Likewise.
31349         * modules/streq (License): Likewise.
31350         Reported by David Lutterkort <lutter@redhat.com>.
31352 2008-12-23  Bruno Haible  <bruno@clisp.org>
31354         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
31356 2008-12-23  Bruno Haible  <bruno@clisp.org>
31358         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
31359         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
31360         GETADDRINFO_LIB, not in LIBS.
31361         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
31362         * modules/canon-host (Link): Likewise.
31363         * NEWS: Mention the change.
31364         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
31365         GETADDRINFO_LIB.
31367 2008-12-22  Bruno Haible  <bruno@clisp.org>
31369         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
31370         * doc/posix-functions/iswalpha_l.texi: Likewise.
31371         * doc/posix-functions/iswblank_l.texi: Likewise.
31372         * doc/posix-functions/iswcntrl_l.texi: Likewise.
31373         * doc/posix-functions/iswctype_l.texi: Likewise.
31374         * doc/posix-functions/iswdigit_l.texi: Likewise.
31375         * doc/posix-functions/iswgraph_l.texi: Likewise.
31376         * doc/posix-functions/iswlower_l.texi: Likewise.
31377         * doc/posix-functions/iswprint_l.texi: Likewise.
31378         * doc/posix-functions/iswpunct_l.texi: Likewise.
31379         * doc/posix-functions/iswspace_l.texi: Likewise.
31380         * doc/posix-functions/iswupper_l.texi: Likewise.
31381         * doc/posix-functions/iswxdigit_l.texi: Likewise.
31382         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
31383         * doc/posix-functions/open_wmemstream.texi: Likewise.
31384         * doc/posix-functions/swscanf.texi: Likewise.
31385         * doc/posix-functions/towctrans_l.texi: Likewise.
31386         * doc/posix-functions/towlower.texi: Likewise.
31387         * doc/posix-functions/towlower_l.texi: Likewise.
31388         * doc/posix-functions/towupper.texi: Likewise.
31389         * doc/posix-functions/towupper_l.texi: Likewise.
31390         * doc/posix-functions/vfwprintf.texi: Likewise.
31391         * doc/posix-functions/vfwscanf.texi: Likewise.
31392         * doc/posix-functions/vswscanf.texi: Likewise.
31393         * doc/posix-functions/vwprintf.texi: Likewise.
31394         * doc/posix-functions/vwscanf.texi: Likewise.
31395         * doc/posix-functions/wcpcpy.texi: Likewise.
31396         * doc/posix-functions/wcpncpy.texi: Likewise.
31397         * doc/posix-functions/wcscasecmp.texi: Likewise.
31398         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
31399         * doc/posix-functions/wcscoll_l.texi: Likewise.
31400         * doc/posix-functions/wcsdup.texi: Likewise.
31401         * doc/posix-functions/wcsncasecmp.texi: Likewise.
31402         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
31403         * doc/posix-functions/wcsnlen.texi: Likewise.
31404         * doc/posix-functions/wcsnrtombs.texi: Likewise.
31405         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
31406         * doc/posix-functions/wctrans_l.texi: Likewise.
31407         * doc/posix-functions/wctype_l.texi: Likewise.
31408         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
31409         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
31410         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
31411         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
31412         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
31413         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
31414         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
31415         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
31416         * doc/glibc-functions/wcschrnul.texi: Likewise.
31417         * doc/glibc-functions/wcsftime_l.texi: Likewise.
31418         * doc/glibc-functions/wcstod_l.texi: Likewise.
31419         * doc/glibc-functions/wcstof_l.texi: Likewise.
31420         * doc/glibc-functions/wcstol_l.texi: Likewise.
31421         * doc/glibc-functions/wcstold_l.texi: Likewise.
31422         * doc/glibc-functions/wcstoll_l.texi: Likewise.
31423         * doc/glibc-functions/wcstoq.texi: Likewise.
31424         * doc/glibc-functions/wcstoul_l.texi: Likewise.
31425         * doc/glibc-functions/wcstoull_l.texi: Likewise.
31426         * doc/glibc-functions/wcstouq.texi: Likewise.
31427         * doc/glibc-functions/wmempcpy.texi: Likewise.
31429 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
31430             Eric Blake  <ebb9@byu.net>
31431             Paolo Bonzini  <bonzini@gnu.org>
31432             Bruno Haible  <bruno@clisp.org>
31434         Make c-stack work on Haiku.
31435         * lib/c-stack.c (SA_ONSTACK): Define fallback.
31436         (c_stack_action): Use SA_ONSTACK flag.
31438 2008-12-22  Bruno Haible  <bruno@clisp.org>
31440         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
31442 2008-12-22  Bruno Haible  <bruno@clisp.org>
31444         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
31445         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
31446         being overridden.
31447         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
31448         New macros.
31449         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
31450         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
31451         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
31452         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
31454 2008-12-22  Bruno Haible  <bruno@clisp.org>
31456         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
31457         from test code.
31459 2008-12-22  Eric Blake  <ebb9@byu.net>
31461         Avoid gcc warnings on cygwin.
31462         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
31463         Avoid unused variable.
31464         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
31465         Likewise.
31467 2008-12-22  Bruno Haible  <bruno@clisp.org>
31469         Remove HAVE_MBRTOWC conditionals.
31470         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
31471         (mbscasecmp): Assume mbrtowc function.
31472         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
31473         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
31474         * lib/mbschr.c: Include mbuiter.h unconditionally.
31475         (mbschr): Assume mbrtowc function.
31476         * lib/mbscspn.c: Include mbuiter.h unconditionally.
31477         (mbscspn): Assume mbrtowc function.
31478         * lib/mbslen.c: Include mbuiter.h unconditionally.
31479         (mbslen): Assume mbrtowc function.
31480         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
31481         (mbsncasecmp): Assume mbrtowc function.
31482         * lib/mbsnlen.c: Include mbiter.h unconditionally.
31483         (mbsnlen): Assume mbrtowc function.
31484         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
31485         (mbspbrk): Assume mbrtowc function.
31486         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
31487         (mbspcasecmp): Assume mbrtowc function.
31488         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
31489         (mbsrchr): Assume mbrtowc function.
31490         * lib/mbssep.c: Include mbuiter.h unconditionally.
31491         (mbssep): Assume mbrtowc function.
31492         * lib/mbsspn.c: Include mbuiter.h unconditionally.
31493         (mbsspn): Assume mbrtowc function.
31494         * lib/mbsstr.c: Include mbuiter.h unconditionally.
31495         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
31496         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
31497         (mbstok_r): Assume mbrtowc function.
31498         * lib/propername.c: Include mbuiter.h unconditionally.
31499         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
31500         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
31501         (trim2): Assume mbrtowc function.
31502         * lib/mbswidth.c (mbsinit): Remove fallback definition.
31503         (mbsnwidth): Assume mbrtowc function.
31504         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
31505         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
31506         fallback definitions.
31507         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
31509 2008-12-22  Bruno Haible  <bruno@clisp.org>
31511         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
31513 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
31515         * modules/regex: Request emulations for the mb*/wc* functions we need.
31516         * m4/regex.m4: Don't look for those functions here.
31517         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
31519 2008-12-22  Bruno Haible  <bruno@clisp.org>
31521         * modules/fnmatch (Depends-on): Remove duplicated dependency.
31523 2008-12-21  Bruno Haible  <bruno@clisp.org>
31525         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
31526         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
31527         (Include): Remove conditionalization.
31528         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
31529         (Include): Remove conditionalization.
31530         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
31531         (Include): Remove conditionalization.
31532         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
31533         * m4/mbfile.m4 (gl_MBFILE): Likewise.
31534         * NEWS: Mention the change.
31535         Reported by Alan Hourihane <alanh@fairlite.co.uk>
31536         via Sergey Poznyakoff <gray@gnu.org.ua>.
31538 2008-12-21  Bruno Haible  <bruno@clisp.org>
31540         * MODULES.html.sh (Extended multibyte and wide character utilities
31541         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
31542         wcrtomb, wcsrtombs.
31543         (Support for systems lacking POSIX:2008): Add accept, bind, close,
31544         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
31545         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
31546         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
31548 2008-12-21  Bruno Haible  <bruno@clisp.org>
31550         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
31552 2008-12-21  Bruno Haible  <bruno@clisp.org>
31554         * modules/wcsnrtombs-tests: New file.
31555         * tests/test-wcsnrtombs1.sh: New file.
31556         * tests/test-wcsnrtombs2.sh: New file.
31557         * tests/test-wcsnrtombs3.sh: New file.
31558         * tests/test-wcsnrtombs4.sh: New file.
31559         * tests/test-wcsnrtombs.c: New file.
31561         New module 'wcsnrtombs'.
31562         * lib/wchar.in.h (wcsnrtombs): New declaration.
31563         * lib/wcsnrtombs.c: New file.
31564         * lib/wcsrtombs-state.c: New file.
31565         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
31566         (internal_state): Remove variable.
31567         * m4/wcsnrtombs.m4: New file.
31568         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
31569         compilation units.
31570         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
31571         HAVE_WCSNRTOMBS.
31572         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
31573         HAVE_WCSNRTOMBS.
31574         * modules/wcsnrtombs: New file.
31575         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
31576         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
31578 2008-12-21  Bruno Haible  <bruno@clisp.org>
31580         * modules/wcsrtombs-tests: New file.
31581         * tests/test-wcsrtombs1.sh: New file.
31582         * tests/test-wcsrtombs2.sh: New file.
31583         * tests/test-wcsrtombs3.sh: New file.
31584         * tests/test-wcsrtombs4.sh: New file.
31585         * tests/test-wcsrtombs.c: New file.
31587         New module 'wcsrtombs'.
31588         * lib/wchar.in.h (wcsrtombs): New declaration.
31589         * lib/wcsrtombs.c: New file.
31590         * m4/wcsrtombs.m4: New file.
31591         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
31592         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
31593         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
31594         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
31595         * modules/wcsrtombs: New file.
31596         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
31597         bugs.
31599 2008-12-21  Bruno Haible  <bruno@clisp.org>
31601         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
31602         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
31603         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
31604         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
31605         if not correct.
31606         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
31607         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
31608         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
31609         m4/locale-zh.m4, m4/codeset.m4.
31610         * doc/posix-functions/wcrtomb.texi: Document the bug.
31612 2008-12-21  Bruno Haible  <bruno@clisp.org>
31614         Work around a btowc() bug on IRIX 6.5.
31615         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
31616         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
31617         REPLACE_WTOBC if not.
31618         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
31619         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
31620         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
31622 2008-12-21  Bruno Haible  <bruno@clisp.org>
31624         * modules/wcrtomb-tests: New file.
31625         * tests/test-wcrtomb.sh: New file.
31626         * tests/test-wcrtomb.c: New file.
31628         New module 'wcrtomb'.
31629         * lib/wchar.in.h (wcrtomb): New declaration.
31630         * lib/wcrtomb.c: New file.
31631         * m4/wcrtomb.m4: New file.
31632         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
31633         HAVE_WCRTOMB.
31634         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
31635         HAVE_WCRTOMB.
31636         * modules/wcrtomb: New file.
31637         * doc/posix-functions/wcrtomb.texi: Mention the new module.
31639 2008-12-21  Bruno Haible  <bruno@clisp.org>
31641         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
31642         * modules/mbsrtowcs (Files): Likewise.
31643         * modules/wctob (Files): Likewise.
31644         * modules/c-strcase-tests (Files): Likewise.
31645         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
31646         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
31647         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
31648         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
31649         * modules/vasnprintf-posix-tests (Files): Likewise.
31651 2008-12-21  William Pursell  <bill.pursell@gmail.com>
31653         gitlog-to-changelog: pass all command-line arguments to git-log
31654         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
31655         it is sometimes convenient to filter the commits in various ways.
31656         gitlog-to-changelog only allows --since to specify a start date,
31657         but git-log itself supports many other filtering mechanisms.
31658         At the moment, I want to filter by branch name.  Rather than
31659         adding a --branch option to gitlog-to-changelog, it seems more
31660         flexible to simply pass all options directly to git-log and let
31661         git do the work.  Notice that this effectively makes --since a
31662         redundant option for gitlog-to-changelog, but removing it would
31663         require current usage to change since calls would then require
31664         an additional '--'.
31666 2008-12-21  Bruno Haible  <bruno@clisp.org>
31668         * modules/mbsnrtowcs-tests: New file.
31669         * tests/test-mbsnrtowcs1.sh: New file.
31670         * tests/test-mbsnrtowcs2.sh: New file.
31671         * tests/test-mbsnrtowcs3.sh: New file.
31672         * tests/test-mbsnrtowcs4.sh: New file.
31673         * tests/test-mbsnrtowcs.c: New file.
31675         New module 'mbsnrtowcs'.
31676         * lib/wchar.in.h (mbsnrtowcs): New declaration.
31677         * lib/mbsnrtowcs.c: New file.
31678         * lib/mbsrtowcs-state.c: New file.
31679         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
31680         (internal_state): Remove variable.
31681         * m4/mbsnrtowcs.m4: New file.
31682         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
31683         compilation units.
31684         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
31685         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
31686         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
31687         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
31688         * modules/mbsnrtowcs: New file.
31689         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
31690         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
31691         portability problem.
31693 2008-12-21  Bruno Haible  <bruno@clisp.org>
31695         Work around mbsrtowcs bug.
31696         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
31697         (gl_FUNC_MBSRTOWCS): Invoke it.
31698         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
31699         m4/locale-zh.m4.
31700         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
31702 2008-12-21  Bruno Haible  <bruno@clisp.org>
31704         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
31706 2008-12-21  Bruno Haible  <bruno@clisp.org>
31708         Update doc for AIX.
31709         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
31710         16-bit wchar_t type.
31711         * doc/posix-functions/btowc.texi: Likewise.
31712         * doc/posix-functions/fgetwc.texi: Likewise.
31713         * doc/posix-functions/fgetws.texi: Likewise.
31714         * doc/posix-functions/fputwc.texi: Likewise.
31715         * doc/posix-functions/fputws.texi: Likewise.
31716         * doc/posix-functions/fwide.texi: Likewise.
31717         * doc/posix-functions/fwprintf.texi: Likewise.
31718         * doc/posix-functions/fwscanf.texi: Likewise.
31719         * doc/posix-functions/getwchar.texi: Likewise.
31720         * doc/posix-functions/getwc.texi: Likewise.
31721         * doc/posix-functions/iswalnum.texi: Likewise.
31722         * doc/posix-functions/iswalpha.texi: Likewise.
31723         * doc/posix-functions/iswblank.texi: Likewise.
31724         * doc/posix-functions/iswcntrl.texi: Likewise.
31725         * doc/posix-functions/iswctype.texi: Likewise.
31726         * doc/posix-functions/iswdigit.texi: Likewise.
31727         * doc/posix-functions/iswgraph.texi: Likewise.
31728         * doc/posix-functions/iswlower.texi: Likewise.
31729         * doc/posix-functions/iswprint.texi: Likewise.
31730         * doc/posix-functions/iswpunct.texi: Likewise.
31731         * doc/posix-functions/iswspace.texi: Likewise.
31732         * doc/posix-functions/iswupper.texi: Likewise.
31733         * doc/posix-functions/iswxdigit.texi: Likewise.
31734         * doc/posix-functions/mbrtowc.texi: Likewise.
31735         * doc/posix-functions/mbsrtowcs.texi: Likewise.
31736         * doc/posix-functions/mbstowcs.texi: Likewise.
31737         * doc/posix-functions/mbtowc.texi: Likewise.
31738         * doc/posix-functions/putwchar.texi: Likewise.
31739         * doc/posix-functions/putwc.texi: Likewise.
31740         * doc/posix-functions/swprintf.texi: Likewise.
31741         * doc/posix-functions/tolower.texi: Likewise.
31742         * doc/posix-functions/toupper.texi: Likewise.
31743         * doc/posix-functions/towctrans.texi: Likewise.
31744         * doc/posix-functions/ungetwc.texi: Likewise.
31745         * doc/posix-functions/vswprintf.texi: Likewise.
31746         * doc/posix-functions/wcrtomb.texi: Likewise.
31747         * doc/posix-functions/wcscat.texi: Likewise.
31748         * doc/posix-functions/wcschr.texi: Likewise.
31749         * doc/posix-functions/wcscmp.texi: Likewise.
31750         * doc/posix-functions/wcscoll.texi: Likewise.
31751         * doc/posix-functions/wcscpy.texi: Likewise.
31752         * doc/posix-functions/wcscspn.texi: Likewise.
31753         * doc/posix-functions/wcsftime.texi: Likewise.
31754         * doc/posix-functions/wcslen.texi: Likewise.
31755         * doc/posix-functions/wcsncat.texi: Likewise.
31756         * doc/posix-functions/wcsncmp.texi: Likewise.
31757         * doc/posix-functions/wcsncpy.texi: Likewise.
31758         * doc/posix-functions/wcspbrk.texi: Likewise.
31759         * doc/posix-functions/wcsrchr.texi: Likewise.
31760         * doc/posix-functions/wcsrtombs.texi: Likewise.
31761         * doc/posix-functions/wcsspn.texi: Likewise.
31762         * doc/posix-functions/wcsstr.texi: Likewise.
31763         * doc/posix-functions/wcstod.texi: Likewise.
31764         * doc/posix-functions/wcstof.texi: Likewise.
31765         * doc/posix-functions/wcstoimax.texi: Likewise.
31766         * doc/posix-functions/wcstok.texi: Likewise.
31767         * doc/posix-functions/wcstold.texi: Likewise.
31768         * doc/posix-functions/wcstoll.texi: Likewise.
31769         * doc/posix-functions/wcstol.texi: Likewise.
31770         * doc/posix-functions/wcstombs.texi: Likewise.
31771         * doc/posix-functions/wcstoull.texi: Likewise.
31772         * doc/posix-functions/wcstoul.texi: Likewise.
31773         * doc/posix-functions/wcstoumax.texi: Likewise.
31774         * doc/posix-functions/wcswidth.texi: Likewise.
31775         * doc/posix-functions/wcsxfrm.texi: Likewise.
31776         * doc/posix-functions/wctob.texi: Likewise.
31777         * doc/posix-functions/wctomb.texi: Likewise.
31778         * doc/posix-functions/wctrans.texi: Likewise.
31779         * doc/posix-functions/wctype.texi: Likewise.
31780         * doc/posix-functions/wcwidth.texi: Likewise.
31781         * doc/posix-functions/wmemchr.texi: Likewise.
31782         * doc/posix-functions/wmemcmp.texi: Likewise.
31783         * doc/posix-functions/wmemcpy.texi: Likewise.
31784         * doc/posix-functions/wmemmove.texi: Likewise.
31785         * doc/posix-functions/wmemset.texi: Likewise.
31786         * doc/posix-functions/wprintf.texi: Likewise.
31787         * doc/posix-functions/wscanf.texi: Likewise.
31789 2008-12-21  Bruno Haible  <bruno@clisp.org>
31791         Update doc for HP-UX 11.11.
31792         * doc/posix-functions/btowc.texi: Clarify that the function is missing
31793         in HP-UX version 11.00, not in all versions of HP-UX 11.
31794         * doc/posix-functions/fwide.texi: Likewise.
31795         * doc/posix-functions/fwprintf.texi: Likewise.
31796         * doc/posix-functions/fwscanf.texi: Likewise.
31797         * doc/posix-functions/inet_ntop.texi: Likewise.
31798         * doc/posix-functions/inet_pton.texi: Likewise.
31799         * doc/posix-functions/mbrlen.texi: Likewise.
31800         * doc/posix-functions/mbrtowc.texi: Likewise.
31801         * doc/posix-functions/mbsinit.texi: Likewise.
31802         * doc/posix-functions/mbsrtowcs.texi: Likewise.
31803         * doc/posix-functions/swprintf.texi: Likewise.
31804         * doc/posix-functions/swscanf.texi: Likewise.
31805         * doc/posix-functions/towctrans.texi: Likewise.
31806         * doc/posix-functions/vfwprintf.texi: Likewise.
31807         * doc/posix-functions/vswprintf.texi: Likewise.
31808         * doc/posix-functions/vwprintf.texi: Likewise.
31809         * doc/posix-functions/wcrtomb.texi: Likewise.
31810         * doc/posix-functions/wcsrtombs.texi: Likewise.
31811         * doc/posix-functions/wcsstr.texi: Likewise.
31812         * doc/posix-functions/wctob.texi: Likewise.
31813         * doc/posix-functions/wctrans.texi: Likewise.
31814         * doc/posix-functions/wmemchr.texi: Likewise.
31815         * doc/posix-functions/wmemcmp.texi: Likewise.
31816         * doc/posix-functions/wmemcpy.texi: Likewise.
31817         * doc/posix-functions/wmemmove.texi: Likewise.
31818         * doc/posix-functions/wmemset.texi: Likewise.
31819         * doc/posix-functions/wprintf.texi: Likewise.
31820         * doc/posix-functions/wscanf.texi: Likewise.
31822 2008-12-21  Bruno Haible  <bruno@clisp.org>
31824         Work around a portability problem.
31825         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
31826         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
31828 2008-12-20  Bruno Haible  <bruno@clisp.org>
31830         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
31831         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
31832         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
31833         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
31834         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
31836         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
31837         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
31838         set.
31839         (GNULIB_defined_mbstate_t): New macro.
31840         (mbsinit): Redefine if REPLACE_MBSINIT is set.
31841         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
31842         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
31843         reuses the system's mbrtowc function but works around the bugs.
31844         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
31845         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
31846         macros.
31847         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
31848         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
31849         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
31850         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
31851         REPLACE_MBSINIT if mbsinit needs to be overridden.
31852         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
31853         REPLACE_MBSINIT, REPLACE_MBRTOWC.
31854         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
31855         REPLACE_MBSINIT, REPLACE_MBRTOWC.
31856         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
31857         m4/locale-zh.m4.
31858         (Depends): Add mbsinit.
31859         * modules/mbsinit (Depends): Add mbrtowc.
31860         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
31862 2008-12-20  Bruno Haible  <bruno@clisp.org>
31864         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
31865         so that there are no conversion errors on AIX.
31866         * tests/test-mbsrtowcs.c (main): LIkewise.
31868 2008-12-20  Bruno Haible  <bruno@clisp.org>
31870         Work around wctob bug on Solaris <= 9.
31871         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
31872         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
31873         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
31874         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
31875         * modules/wctob (Files): Add m4/locale-fr.m4.
31876         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
31878 2008-12-20  Bruno Haible  <bruno@clisp.org>
31880         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
31881         /dev/null.
31882         * tests/test-select-in.sh: Likewise.
31883         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31885 2008-12-20  Bruno Haible  <bruno@clisp.org>
31887         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
31888         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
31889         Cygwin 1.5.x.
31891 2008-12-20  Bruno Haible  <bruno@clisp.org>
31893         Ensure mbstate_t is defined on HP-UX 11.11.
31894         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
31895         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
31896         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
31897         AC_USE_SYSTEM_EXTENSIONS.
31898         * modules/fnmatch (Depends-on): Add extensions.
31899         * modules/mbrlen (Depends-on): Likewise.
31900         * modules/mbrtowc (Depends-on): Likewise.
31901         * modules/mbsinit (Depends-on): Likewise.
31902         * modules/mbsrtowcs (Depends-on): Likewise.
31903         * modules/mbswidth (Depends-on): Likewise.
31904         * modules/quotearg (Depends-on): Likewise.
31905         * modules/strftime (Depends-on): Likewise.
31907 2008-12-20  Bruno Haible  <bruno@clisp.org>
31909         Ensure wctob is declared on IRIX 6.5.
31910         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
31911         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
31912         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
31913         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
31914         of HAVE_WCTOB.
31915         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
31916         HAVE_WCTOB.
31917         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
31919 2008-12-19  Bruno Haible  <bruno@clisp.org>
31921         * modules/mbsrtowcs-tests: New file.
31922         * tests/test-mbsrtowcs1.sh: New file.
31923         * tests/test-mbsrtowcs2.sh: New file.
31924         * tests/test-mbsrtowcs3.sh: New file.
31925         * tests/test-mbsrtowcs4.sh: New file.
31926         * tests/test-mbsrtowcs.c: New file.
31928         New module 'mbsrtowcs'.
31929         * lib/wchar.in.h (mbsrtowcs): New declaration.
31930         * lib/mbsrtowcs.c: New file.
31931         * m4/mbsrtowcs.m4: New file.
31932         * modules/mbsrtowcs: New file.
31933         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
31934         HAVE_MBSRTOWCS.
31935         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
31936         HAVE_MBSRTOWCS.
31937         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
31939 2008-12-19  Bruno Haible  <bruno@clisp.org>
31941         New module 'mbrlen'.
31942         * lib/wchar.in.h (mbrlen): New declaration.
31943         * lib/mbrlen.c: New file.
31944         * m4/mbrlen.m4: New file.
31945         * modules/mbrlen: New file.
31946         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
31947         HAVE_MBRLEN.
31948         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
31949         HAVE_MBRLEN.
31950         * doc/posix-functions/mbrlen.texi: Document the new module.
31952 2008-12-19  Bruno Haible  <bruno@clisp.org>
31954         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
31955         * modules/mbrtowc (Depends-on): Add verify.
31956         Suggested by Paul Eggert.
31958 2008-12-18  Bruno Haible  <bruno@clisp.org>
31960         * modules/mbsinit-tests: New file.
31961         * tests/test-mbsinit.sh: New file.
31962         * tests/test-mbsinit.c: New file.
31964 2008-12-18  Bruno Haible  <bruno@clisp.org>
31966         * modules/mbrtowc-tests: New file.
31967         * tests/test-mbrtowc1.sh: New file.
31968         * tests/test-mbrtowc2.sh: New file.
31969         * tests/test-mbrtowc3.sh: New file.
31970         * tests/test-mbrtowc4.sh: New file.
31971         * tests/test-mbrtowc.c: New file.
31973         New module 'mbrtowc'.
31974         * lib/wchar.in.h (mbstate_t): Override when the system does not have
31975         mbsinit and mbrtowc.
31976         (mbrtowc): New declaration.
31977         * lib/mbrtowc.c: New file.
31978         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
31979         * modules/mbrtowc: New file.
31980         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
31981         HAVE_MBRTOWC.
31982         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
31983         HAVE_MBRTOWC.
31984         * doc/posix-functions/mbrtowc.texi: Document the new module.
31986 2008-12-18  Bruno Haible  <bruno@clisp.org>
31988         New module 'wctob'.
31989         * lib/wchar.in.h (wctob): New declaration.
31990         * lib/wctob.c: New file.
31991         * m4/wctob.m4: New file.
31992         * modules/wctob: New file.
31993         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
31994         HAVE_WCTOB.
31995         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
31996         * doc/posix-functions/wctob.texi: Document the new module.
31998 2008-12-18  Bruno Haible  <bruno@clisp.org>
32000         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
32001         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
32003 2008-12-18  Simon Josefsson  <simon@josefsson.org>
32005         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
32006         G. Christensen" <tgc@jupiterrise.com>.
32008         * lib/flock.c: Need to include errno.h.  Reported by "Tom
32009         G. Christensen" <tgc@jupiterrise.com>.
32011         * lib/flock.c: Need to include string.h.  Reported by "Tom
32012         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
32013         <ebb9@byu.net>.
32015 2008-12-18  Bruno Haible  <bruno@clisp.org>
32017         * m4/locale-ja.m4: New file, from GNU gettext.
32019 2008-12-17  Bruno Haible  <bruno@clisp.org>
32021         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
32022         Suggested by Eric Blake.
32024 2008-12-17  Bruno Haible  <bruno@clisp.org>
32026         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
32028 2008-12-17  Bruno Haible  <bruno@clisp.org>
32030         * lib/mbsinit.c: Include verify.h. Verify an assumption.
32031         * modules/mbsinit (Depends-on): Add verify.
32032         Suggested by Paul Eggert.
32034 2008-12-17  Bruno Haible  <bruno@clisp.org>
32036         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
32037         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
32038         gl_FUNC_MBRTOWC.
32039         * m4/mbiter.m4 (gl_MBITER): LIkewise.
32040         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
32041         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
32042         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
32043         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
32044         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
32045         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
32046         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
32047         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
32048         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
32049         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
32050         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
32051         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
32052         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
32053         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
32054         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
32055         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
32056         * modules/trim (configure.ac): Likewise.
32058 2008-12-17  Bruno Haible  <bruno@clisp.org>
32060         * modules/btowc-tests: New file.
32061         * tests/test-btowc1.sh: New file.
32062         * tests/test-btowc2.sh: New file.
32063         * tests/test-btowc.c: New file.
32065         New module 'btowc'.
32066         * lib/wchar.in.h (btowc): New declaration.
32067         * lib/btowc.c: New file.
32068         * m4/btowc.m4: New file.
32069         * modules/btowc: New file.
32070         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
32071         HAVE_BTOWC.
32072         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
32073         * doc/posix-functions/btowc.texi: Document the new module.
32075 2008-12-17  Bruno Haible  <bruno@clisp.org>
32077         New module 'mbsinit'.
32078         * lib/wchar.in.h (mbsinit): New declaration.
32079         * lib/mbsinit.c: New file.
32080         * m4/mbsinit.m4: New file.
32081         * modules/mbsinit: New file.
32082         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
32083         HAVE_MBSINIT.
32084         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
32085         HAVE_MBSINIT.
32086         * doc/posix-functions/mbsinit.texi: Document the new module.
32088 2008-12-16  Bruno Haible  <bruno@clisp.org>
32090         * lib/unistd.in.h: Add comment.
32091         * tests/test-environ.c: Don't include <stdlib.h>.
32093 2008-12-16  Bruno Haible  <bruno@clisp.org>
32095         * lib/parse-duration.h (parse_duration): Document return value
32096         convention.
32097         * lib/parse-duration.c: Include specification header first. Add
32098         comments.
32099         (_): Remove macro.
32100         (parse_year_month_day, parse_hour_minute_second): Move side effects
32101         outside of strchr call.
32102         (parse_non_iso8601): Move side effects outside of isspace call.
32103         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
32104         call.
32106 2008-12-16  Bruno Haible  <bruno@clisp.org>
32108         * tests/test-parse-duration.sh: Produce no output when the test
32109         succeeds.
32111 2008-12-16  Bruno Haible  <bruno@clisp.org>
32113         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
32114         expressions.
32116 2008-12-15  Bruno Haible  <bruno@clisp.org>
32118         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
32119         * doc/glibc-functions/flistxattr.texi: Likewise.
32120         * doc/glibc-functions/fopencookie.texi: Likewise.
32121         * doc/glibc-functions/fremovexattr.texi: Likewise.
32122         * doc/glibc-functions/fsetxattr.texi: Likewise.
32123         * doc/glibc-functions/getxattr.texi: Likewise.
32124         * doc/glibc-functions/lgetxattr.texi: Likewise.
32125         * doc/glibc-functions/listxattr.texi: Likewise.
32126         * doc/glibc-functions/llistxattr.texi: Likewise.
32127         * doc/glibc-functions/lremovexattr.texi: Likewise.
32128         * doc/glibc-functions/lsetxattr.texi: Likewise.
32129         * doc/glibc-functions/removexattr.texi: Likewise.
32130         * doc/glibc-functions/setxattr.texi: Likewise.
32131         * doc/posix-functions/open_memstream.texi: Likewise.
32133 2008-12-15  Eric Blake  <ebb9@byu.net>
32135         Update doc for cygwin 1.7.
32136         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
32137         functions.
32138         * doc/posix-functions/fchmodat.texi: Likewise.
32139         * doc/posix-functions/fchownat.texi: Likewise.
32140         * doc/posix-functions/fdopendir.texi: Likewise.
32141         * doc/posix-functions/fmemopen.texi: Likewise.
32142         * doc/posix-functions/freeaddrinfo.texi: Likewise.
32143         * doc/posix-functions/fstatat.texi: Likewise.
32144         * doc/posix-functions/futimens.texi: Likewise.
32145         * doc/posix-functions/gai_strerror.texi: Likewise.
32146         * doc/posix-functions/getaddrinfo.texi: Likewise.
32147         * doc/posix-functions/getnameinfo.texi: Likewise.
32148         * doc/posix-functions/if_freenameindex.texi: Likewise.
32149         * doc/posix-functions/if_indextoname.texi: Likewise.
32150         * doc/posix-functions/if_nameindex.texi: Likewise.
32151         * doc/posix-functions/if_nametoindex.texi: Likewise.
32152         * doc/posix-functions/insque.texi: Likewise.
32153         * doc/posix-functions/linkat.texi: Likewise.
32154         * doc/posix-functions/llrint.texi: Likewise.
32155         * doc/posix-functions/llrintf.texi: Likewise.
32156         * doc/posix-functions/llrintl.texi: Likewise.
32157         * doc/posix-functions/lockf.texi: Likewise.
32158         * doc/posix-functions/lrintl.texi: Likewise.
32159         * doc/posix-functions/mkdirat.texi: Likewise.
32160         * doc/posix-functions/mkfifoat.texi: Likewise.
32161         * doc/posix-functions/mknodat.texi: Likewise.
32162         * doc/posix-functions/mq_close.texi: Likewise.
32163         * doc/posix-functions/mq_getattr.texi: Likewise.
32164         * doc/posix-functions/mq_notify.texi: Likewise.
32165         * doc/posix-functions/mq_open.texi: Likewise.
32166         * doc/posix-functions/mq_receive.texi: Likewise.
32167         * doc/posix-functions/mq_send.texi: Likewise.
32168         * doc/posix-functions/mq_setattr.texi: Likewise.
32169         * doc/posix-functions/mq_timedreceive.texi: Likewise.
32170         * doc/posix-functions/mq_timedsend.texi: Likewise.
32171         * doc/posix-functions/mq_unlink.texi: Likewise.
32172         * doc/posix-functions/open_memstream.texi: Likewise.
32173         * doc/posix-functions/openat.texi: Likewise.
32174         * doc/posix-functions/posix_fadvise.texi: Likewise.
32175         * doc/posix-functions/posix_fallocate.texi: Likewise.
32176         * doc/posix-functions/posix_madvise.texi: Likewise.
32177         * doc/posix-functions/posix_memalign.texi: Likewise.
32178         * doc/posix-functions/posix_openpt.texi: Likewise.
32179         * doc/posix-functions/readlinkat.texi: Likewise.
32180         * doc/posix-functions/remque.texi: Likewise.
32181         * doc/posix-functions/renameat.texi: Likewise.
32182         * doc/posix-functions/rintl.texi: Likewise.
32183         * doc/posix-functions/sem_unlink.texi: Likewise.
32184         * doc/posix-functions/shm_open.texi: Likewise.
32185         * doc/posix-functions/shm_unlink.texi: Likewise.
32186         * doc/posix-functions/signgam.texi: Likewise.
32187         * doc/posix-functions/sigset.texi: Likewise.
32188         * doc/posix-functions/stpcpy.texi: Likewise.
32189         * doc/posix-functions/stpncpy.texi: Likewise.
32190         * doc/posix-functions/strerror.texi: Likewise.
32191         * doc/posix-functions/strtod.texi: Likewise.
32192         * doc/posix-functions/symlinkat.texi: Likewise.
32193         * doc/posix-functions/unlinkat.texi: Likewise.
32194         * doc/posix-functions/utimensat.texi: Likewise.
32195         * doc/glibc-functions/bindresvport.texi: Likewise.
32196         * doc/glibc-functions/dn_expand.texi: Likewise.
32197         * doc/glibc-functions/exp10.texi: Likewise.
32198         * doc/glibc-functions/exp10f.texi: Likewise.
32199         * doc/glibc-functions/fgetxattr.texi: Likewise.
32200         * doc/glibc-functions/flistxattr.texi: Likewise.
32201         * doc/glibc-functions/fopencookie.texi: Likewise.
32202         * doc/glibc-functions/freeifaddrs.texi: Likewise.
32203         * doc/glibc-functions/fremovexattr.texi: Likewise.
32204         * doc/glibc-functions/fsetxattr.texi: Likewise.
32205         * doc/glibc-functions/getifaddrs.texi: Likewise.
32206         * doc/glibc-functions/getxattr.texi: Likewise.
32207         * doc/glibc-functions/lgetxattr.texi: Likewise.
32208         * doc/glibc-functions/listxattr.texi: Likewise.
32209         * doc/glibc-functions/llistxattr.texi: Likewise.
32210         * doc/glibc-functions/lremovexattr.texi: Likewise.
32211         * doc/glibc-functions/lsetxattr.texi: Likewise.
32212         * doc/glibc-functions/pow10.texi: Likewise.
32213         * doc/glibc-functions/pow10f.texi: Likewise.
32214         * doc/glibc-functions/rcmd_af.texi: Likewise.
32215         * doc/glibc-functions/removexattr.texi: Likewise.
32216         * doc/glibc-functions/res_init.texi: Likewise.
32217         * doc/glibc-functions/res_mkquery.texi: Likewise.
32218         * doc/glibc-functions/res_query.texi: Likewise.
32219         * doc/glibc-functions/res_querydomain.texi: Likewise.
32220         * doc/glibc-functions/res_send.texi: Likewise.
32221         * doc/glibc-functions/rresvport_af.texi: Likewise.
32222         * doc/glibc-functions/setxattr.texi: Likewise.
32223         * doc/glibc-functions/strcasestr.texi: Likewise.
32225 2008-12-15  Bruno Haible  <bruno@clisp.org>
32227         Fix compilation error on OSF/1 4.0.
32228         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
32229         <sys/time.h>, simply delegate to the system header.
32230         Reported by Daniel Richard G. <oss@teragram.com>.
32232 2008-12-15  Bruno Haible  <bruno@clisp.org>
32234         * doc/posix-functions/openat.texi: Mention the 'openat' module.
32235         * doc/posix-functions/fchmodat.texi: Likewise.
32236         * doc/posix-functions/fchownat.texi: Likewise.
32237         * doc/posix-functions/fdopendir.texi: Likewise.
32238         * doc/posix-functions/fstatat.texi: Likewise.
32239         * doc/posix-functions/mkdirat.texi: Likewise.
32240         * doc/posix-functions/unlinkat.texi: Likewise.
32242 2008-12-14  Bruno Haible  <bruno@clisp.org>
32244         Update doc for POSIX:2008.
32245         * doc/posix-functions/faccessat.texi: New file.
32246         * doc/posix-functions/fchmodat.texi: New file.
32247         * doc/posix-functions/fchownat.texi: New file.
32248         * doc/posix-functions/fdopendir.texi: New file.
32249         * doc/posix-functions/fstatat.texi: New file.
32250         * doc/posix-functions/futimens.texi: New file.
32251         * doc/posix-functions/linkat.texi: New file.
32252         * doc/posix-functions/mkdirat.texi: New file.
32253         * doc/posix-functions/mkfifoat.texi: New file.
32254         * doc/posix-functions/mknodat.texi: New file.
32255         * doc/posix-functions/open_wmemstream.texi: New file.
32256         * doc/posix-functions/openat.texi: New file.
32257         * doc/posix-functions/psiginfo.texi: New file.
32258         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
32259         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
32260         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
32261         * doc/posix-functions/readlinkat.texi: New file.
32262         * doc/posix-functions/renameat.texi: New file.
32263         * doc/posix-functions/strerror_l.texi: New file.
32264         * doc/posix-functions/symlinkat.texi: New file.
32265         * doc/posix-functions/unlinkat.texi: New file.
32266         * doc/posix-functions/utimensat.texi: New file.
32267         * doc/gnulib.texi (Function Substitutes): Add these subsections.
32269 2008-12-14  Bruno Haible  <bruno@clisp.org>
32271         Update doc for POSIX:2008.
32272         * doc/posix-functions/alphasort.texi: Renamed from
32273         doc/glibc-functions/alphasort.texi.
32274         * doc/posix-functions/dirfd.texi: Renamed from
32275         doc/glibc-functions/dirfd.texi.
32276         * doc/posix-functions/dprintf.texi: Renamed from
32277         doc/glibc-functions/dprintf.texi.
32278         * doc/posix-functions/duplocale.texi: Renamed from
32279         doc/glibc-functions/duplocale.texi.
32280         * doc/posix-functions/fexecve.texi: Renamed from
32281         doc/glibc-functions/fexecve.texi.
32282         * doc/posix-functions/fmemopen.texi: Renamed from
32283         doc/glibc-functions/fmemopen.texi.
32284         * doc/posix-functions/freelocale.texi: Renamed from
32285         doc/glibc-functions/freelocale.texi.
32286         * doc/posix-functions/getdate_err.texi: Renamed from
32287         doc/glibc-functions/getdate_err.texi.
32288         * doc/posix-functions/isalnum_l.texi: Renamed from
32289         doc/glibc-functions/isalnum_l.texi.
32290         * doc/posix-functions/isalpha_l.texi: Renamed from
32291         doc/glibc-functions/isalpha_l.texi.
32292         * doc/posix-functions/isblank_l.texi: Renamed from
32293         doc/glibc-functions/isblank_l.texi.
32294         * doc/posix-functions/iscntrl_l.texi: Renamed from
32295         doc/glibc-functions/iscntrl_l.texi.
32296         * doc/posix-functions/isdigit_l.texi: Renamed from
32297         doc/glibc-functions/isdigit_l.texi.
32298         * doc/posix-functions/isgraph_l.texi: Renamed from
32299         doc/glibc-functions/isgraph_l.texi.
32300         * doc/posix-functions/islower_l.texi: Renamed from
32301         doc/glibc-functions/islower_l.texi.
32302         * doc/posix-functions/isprint_l.texi: Renamed from
32303         doc/glibc-functions/isprint_l.texi.
32304         * doc/posix-functions/ispunct_l.texi: Renamed from
32305         doc/glibc-functions/ispunct_l.texi.
32306         * doc/posix-functions/isspace_l.texi: Renamed from
32307         doc/glibc-functions/isspace_l.texi.
32308         * doc/posix-functions/isupper_l.texi: Renamed from
32309         doc/glibc-functions/isupper_l.texi.
32310         * doc/posix-functions/iswalnum_l.texi: Renamed from
32311         doc/glibc-functions/iswalnum_l.texi.
32312         * doc/posix-functions/iswalpha_l.texi: Renamed from
32313         doc/glibc-functions/iswalpha_l.texi.
32314         * doc/posix-functions/iswblank_l.texi: Renamed from
32315         doc/glibc-functions/iswblank_l.texi.
32316         * doc/posix-functions/iswcntrl_l.texi: Renamed from
32317         doc/glibc-functions/iswcntrl_l.texi.
32318         * doc/posix-functions/iswctype_l.texi: Renamed from
32319         doc/glibc-functions/iswctype_l.texi.
32320         * doc/posix-functions/iswdigit_l.texi: Renamed from
32321         doc/glibc-functions/iswdigit_l.texi.
32322         * doc/posix-functions/iswgraph_l.texi: Renamed from
32323         doc/glibc-functions/iswgraph_l.texi.
32324         * doc/posix-functions/iswlower_l.texi: Renamed from
32325         doc/glibc-functions/iswlower_l.texi.
32326         * doc/posix-functions/iswprint_l.texi: Renamed from
32327         doc/glibc-functions/iswprint_l.texi.
32328         * doc/posix-functions/iswpunct_l.texi: Renamed from
32329         doc/glibc-functions/iswpunct_l.texi.
32330         * doc/posix-functions/iswspace_l.texi: Renamed from
32331         doc/glibc-functions/iswspace_l.texi.
32332         * doc/posix-functions/iswupper_l.texi: Renamed from
32333         doc/glibc-functions/iswupper_l.texi.
32334         * doc/posix-functions/iswxdigit_l.texi: Renamed from
32335         doc/glibc-functions/iswxdigit_l.texi.
32336         * doc/posix-functions/isxdigit_l.texi: Renamed from
32337         doc/glibc-functions/isxdigit_l.texi.
32338         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
32339         doc/glibc-functions/mbsnrtowcs.texi.
32340         * doc/posix-functions/mkdtemp.texi: Renamed from
32341         doc/glibc-functions/mkdtemp.texi.
32342         * doc/posix-functions/newlocale.texi: Renamed from
32343         doc/glibc-functions/newlocale.texi.
32344         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
32345         doc/glibc-functions/nl_langinfo_l.texi.
32346         * doc/posix-functions/open_memstream.texi: Renamed from
32347         doc/glibc-functions/open_memstream.texi.
32348         * doc/posix-functions/opterr.texi: Renamed from
32349         doc/glibc-functions/opterr.texi.
32350         * doc/posix-functions/optind.texi: Renamed from
32351         doc/glibc-functions/optind.texi.
32352         * doc/posix-functions/optopt.texi: Renamed from
32353         doc/glibc-functions/optopt.texi.
32354         * doc/posix-functions/psignal.texi: Renamed from
32355         doc/glibc-functions/psignal.texi.
32356         * doc/posix-functions/scandir.texi: Renamed from
32357         doc/glibc-functions/scandir.texi.
32358         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
32359         doc/glibc-functions/sched_get_priority_min.texi.
32360         * doc/posix-functions/signgam.texi: Renamed from
32361         doc/glibc-functions/signgam.texi.
32362         * doc/posix-functions/stpcpy.texi: Renamed from
32363         doc/glibc-functions/stpcpy.texi.
32364         * doc/posix-functions/stpncpy.texi: Renamed from
32365         doc/glibc-functions/stpncpy.texi.
32366         * doc/posix-functions/strcasecmp_l.texi: Renamed from
32367         doc/glibc-functions/strcasecmp_l.texi.
32368         * doc/posix-functions/strcoll_l.texi: Renamed from
32369         doc/glibc-functions/strcoll_l.texi.
32370         * doc/posix-functions/strfmon_l.texi: Renamed from
32371         doc/glibc-functions/strfmon_l.texi.
32372         * doc/posix-functions/strftime_l.texi: Renamed from
32373         doc/glibc-functions/strftime_l.texi.
32374         * doc/posix-functions/strncasecmp_l.texi: Renamed from
32375         doc/glibc-functions/strncasecmp_l.texi.
32376         * doc/posix-functions/strndup.texi: Renamed from
32377         doc/glibc-functions/strndup.texi.
32378         * doc/posix-functions/strnlen.texi: Renamed from
32379         doc/glibc-functions/strnlen.texi.
32380         * doc/posix-functions/strsignal.texi: Renamed from
32381         doc/glibc-functions/strsignal.texi.
32382         * doc/posix-functions/strxfrm_l.texi: Renamed from
32383         doc/glibc-functions/strxfrm_l.texi.
32384         * doc/posix-functions/timer_gettime.texi: Renamed from
32385         doc/glibc-functions/timer_gettime.texi.
32386         * doc/posix-functions/tolower_l.texi: Renamed from
32387         doc/glibc-functions/tolower_l.texi.
32388         * doc/posix-functions/toupper_l.texi: Renamed from
32389         doc/glibc-functions/toupper_l.texi.
32390         * doc/posix-functions/towctrans_l.texi: Renamed from
32391         doc/glibc-functions/towctrans_l.texi.
32392         * doc/posix-functions/towlower_l.texi: Renamed from
32393         doc/glibc-functions/towlower_l.texi.
32394         * doc/posix-functions/towupper_l.texi: Renamed from
32395         doc/glibc-functions/towupper_l.texi.
32396         * doc/posix-functions/uselocale.texi: Renamed from
32397         doc/glibc-functions/uselocale.texi.
32398         * doc/posix-functions/vdprintf.texi: Renamed from
32399         doc/glibc-functions/vdprintf.texi.
32400         * doc/posix-functions/wcpcpy.texi:
32401         Renamed from doc/glibc-functions/wcpcpy.texi.
32402         * doc/posix-functions/wcpncpy.texi: Renamed from
32403         doc/glibc-functions/wcpncpy.texi.
32404         * doc/posix-functions/wcscasecmp.texi: Renamed from
32405         doc/glibc-functions/wcscasecmp.texi.
32406         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
32407         doc/glibc-functions/wcscasecmp_l.texi.
32408         * doc/posix-functions/wcscoll_l.texi: Renamed from
32409         doc/glibc-functions/wcscoll_l.texi.
32410         * doc/posix-functions/wcsdup.texi: Renamed from
32411         doc/glibc-functions/wcsdup.texi.
32412         * doc/posix-functions/wcsncasecmp.texi: Renamed from
32413         doc/glibc-functions/wcsncasecmp.texi.
32414         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
32415         doc/glibc-functions/wcsncasecmp_l.texi.
32416         * doc/posix-functions/wcsnlen.texi: Renamed from
32417         doc/glibc-functions/wcsnlen.texi.
32418         * doc/posix-functions/wcsnrtombs.texi: Renamed from
32419         doc/glibc-functions/wcsnrtombs.texi.
32420         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
32421         doc/glibc-functions/wcsxfrm_l.texi.
32422         * doc/posix-functions/wctrans_l.texi: Renamed from
32423         doc/glibc-functions/wctrans_l.texi.
32424         * doc/posix-functions/wctype_l.texi: Renamed from
32425         doc/glibc-functions/wctype_l.texi.
32426         * doc/gnulib.texi (Function Substitutes): Add these subsections.
32427         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
32428         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
32429         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
32430         these subsections.
32431         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
32432         Remove sections.
32434 2008-12-14  Bruno Haible  <bruno@clisp.org>
32436         Update doc for POSIX:2008.
32437         * doc/posix-functions/*.texi: Update URL of POSIX specification.
32439 2008-12-14  Bruno Haible  <bruno@clisp.org>
32441         Update doc for POSIX:2008.
32442         * doc/pastposix-functions/bcmp.texi: Renamed from
32443         doc/posix-functions/bcmp.texi.
32444         * doc/pastposix-functions/bcopy.texi: Renamed from
32445         doc/posix-functions/bcopy.texi.
32446         * doc/pastposix-functions/bsd_signal.texi: Renamed from
32447         doc/posix-functions/bsd_signal.texi.
32448         * doc/pastposix-functions/bzero.texi: Renamed from
32449         doc/posix-functions/bzero.texi.
32450         * doc/pastposix-functions/ecvt.texi: Renamed from
32451         doc/posix-functions/ecvt.texi.
32452         * doc/pastposix-functions/fcvt.texi: Renamed from
32453         doc/posix-functions/fcvt.texi.
32454         * doc/pastposix-functions/ftime.texi: Renamed from
32455         doc/posix-functions/ftime.texi.
32456         * doc/pastposix-functions/gcvt.texi: Renamed from
32457         doc/posix-functions/gcvt.texi.
32458         * doc/pastposix-functions/getcontext.texi: Renamed from
32459         doc/posix-functions/getcontext.texi.
32460         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
32461         doc/posix-functions/gethostbyaddr.texi.
32462         * doc/pastposix-functions/gethostbyname.texi: Renamed from
32463         doc/posix-functions/gethostbyname.texi.
32464         * doc/pastposix-functions/getwd.texi: Renamed from
32465         doc/posix-functions/getwd.texi.
32466         * doc/pastposix-functions/h_errno.texi: Renamed from
32467         doc/posix-functions/h_errno.texi.
32468         * doc/pastposix-functions/index.texi: Renamed from
32469         doc/posix-functions/index.texi.
32470         * doc/pastposix-functions/makecontext.texi: Renamed from
32471         doc/posix-functions/makecontext.texi.
32472         * doc/pastposix-functions/mktemp.texi: Renamed from
32473         doc/posix-functions/mktemp.texi.
32474         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
32475         doc/posix-functions/pthread_attr_getstackaddr.texi.
32476         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
32477         doc/posix-functions/pthread_attr_setstackaddr.texi.
32478         * doc/pastposix-functions/rindex.texi: Renamed from
32479         doc/posix-functions/rindex.texi.
32480         * doc/pastposix-functions/scalb.texi: Renamed from
32481         doc/posix-functions/scalb.texi.
32482         * doc/pastposix-functions/setcontext.texi: Renamed from
32483         doc/posix-functions/setcontext.texi.
32484         * doc/pastposix-functions/swapcontext.texi: Renamed from
32485         doc/posix-functions/swapcontext.texi.
32486         * doc/pastposix-functions/ualarm.texi: Renamed from
32487         doc/posix-functions/ualarm.texi.
32488         * doc/pastposix-functions/usleep.texi: Renamed from
32489         doc/posix-functions/usleep.texi.
32490         * doc/pastposix-functions/vfork.texi: Renamed from
32491         doc/posix-functions/vfork.texi.
32492         * doc/pastposix-functions/wcswcs.texi: Renamed from
32493         doc/posix-functions/wcswcs.texi.
32494         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
32495         (Function Substitutes): Update.
32497 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32499         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
32500         m4/strerror.m4.
32502 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32503             Bruno Haible  <bruno@clisp.org>
32505         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
32507 2008-12-13  Bruno Haible  <bruno@clisp.org>
32509         * modules/strtoull (Depends-on): Remove unistd.
32511 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32513         * modules/strtoull (Depends-on): Add stdlib.
32515 2008-12-11  Simon Josefsson  <simon@josefsson.org>
32517         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
32519 2008-12-10  Jim Meyering  <meyering@redhat.com>
32521         gl_ASSERT: don't say assertions are disabled when they're not
32522         * m4/assert.m4 (gl_ASSERT): Do not make configure report
32523         "checking whether to enable assertions... no", when they are in
32524         fact enabled.  This is solely a bug in the output of configure.
32525         In spite of saying "no", NDEBUG was not defined in that case.
32526         Also, as noted by Eric Blake, leave assertions enabled upon
32527         --enable-assert=INVALID.
32529 2008-12-10  Bruno Haible  <bruno@clisp.org>
32531         Change MODULES.html to refer to POSIX:2008 where possible.
32532         * MODULES.html.sh (POSIX2008_URL): New variable.
32533         (posix_headers): Remove sys/timeb, ucontext.
32534         (posix2001_headers): New variable.
32535         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
32536         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
32537         index, makecontext, mktemp, pthread_attr_getstackaddr,
32538         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
32539         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
32540         (posix2001_functions): New variable.
32541         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
32542         otherwise.
32544 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32546         add missing include to parse-duration.c
32547         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
32548         * modules/parse-duration (Depends-on): Add xalloc.
32550         fix sed script reading maint.mk
32551         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
32552         (syntax-check-rules): Use it.
32554 2008-12-09  Bruno Haible  <bruno@clisp.org>
32556         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
32557         MacOS X 10.4/PowerPC.
32558         Reported by Simon Josefsson.
32560 2008-12-08  Jim Meyering  <meyering@redhat.com>
32562         work around mingw's lack of some S_IF definitions
32563         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
32564         Reported by Simon Josefsson.
32566 2008-12-08  Bruno Haible  <bruno@clisp.org>
32568         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
32569         applied to variables. Needed on MacOS X 10.4/PowerPC.
32570         Reported by Simon Josefsson.
32572 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
32573         and Eric Blake  <ebb9@byu.net>
32575         assert: honor --enable-assert
32576         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
32577         order to honor --enable-assert, rather than treating it as a
32578         synonym for --disable-assert.
32580 2008-12-08  Jim Meyering  <meyering@redhat.com>
32582         * lib/posixtm.c: Remove now-useless declaration of mktime.
32584         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
32586 2008-12-07  Bruno Haible  <bruno@clisp.org>
32588         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
32589         test_once): Mark functions as static.
32590         * tests/test-tls.c (test_tls): Likewise.
32592 2008-12-07  Bruno Haible  <bruno@clisp.org>
32594         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
32595         iconv_register_autodetect.
32597 2008-12-07  Jim Meyering  <meyering@redhat.com>
32599         posixtm.c: avoid a warning
32600         * lib/posixtm.c (posixtime): Don't initialize tm0.
32601         It's no longer needed to placate gcc4's -Wuninitialized,
32602         and the attempt to placate would elicit a new warning.
32604         unicodeio.c: mark unused parameters
32605         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
32606         (fallback_failure_callback): Likewise.
32608 2008-12-07  Bruno Haible  <bruno@clisp.org>
32610         * gnulib-tool (func_create_testdir): When building the tests
32611         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
32612         Reported by Simon Josefsson.
32614 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32616         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
32618 2008-12-06  Bruno Haible  <bruno@clisp.org>
32620         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
32621         Suggested by Eric Blake.
32623 2008-12-06  Bruno Haible  <bruno@clisp.org>
32625         Fix a c-stack test failure on MacOS X.
32626         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
32627         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
32628         handler for SIGBUS as well.
32629         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
32630         install a signal handler for SIGBUS as well.
32631         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
32633 2008-12-06  Bruno Haible  <bruno@clisp.org>
32635         Advocacy documentation.
32636         * doc/gnulib-intro.texi (Benefits): New section.
32637         * doc/gnulib.texi: Update.
32639 2008-12-06  Bruno Haible  <bruno@clisp.org>
32641         Document the 'manywarnings' module.
32642         * doc/manywarnings.texi: New file.
32643         * doc/gnulib.texi: Include it.
32645 2008-12-05  Eric Blake  <ebb9@byu.net>
32647         tests: silence some gcc warnings
32648         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
32649         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
32650         type mismatches.
32652 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32653             Bruno Haible  <bruno@clisp.org>
32655         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
32657 2008-11-29  Jim Meyering  <meyering@redhat.com>
32659         unicodeio.c: mark unused parameters
32660         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
32661         (fallback_failure_callback): Likewise.
32663         fts: fix a thinko
32664         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
32665         (set_stat_type): Return S_IF*-valued "type" directly.
32666         Prompted by James Youngman's spotting a related bug.
32667         Confirmed by further testing through find.
32669         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
32670         * lib/fts.c (D_TYPE): Define.
32671         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
32672         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
32673         (s_ifmt_shift_bits): New function.
32674         (set_stat_type): New function.
32675         (fts_build): When not calling fts_stat, call set_stat_type
32676         to propagate dirent.d_type info to fts_read caller.
32677         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
32678         fts_statp->st_mode type information may be valid.
32680 2008-11-28  Simon Josefsson  <simon@josefsson.org>
32682         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
32683         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
32684         <sds@gnu.org>.
32686 2008-11-20  Bruno Haible  <bruno@clisp.org>
32688         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
32689         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
32690         INCLUDE_NEXT.
32691         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
32692         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
32693         * modules/math (Makefile.am): Substitute
32694         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
32695         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
32697 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
32698             Bruno Haible  <bruno@clisp.org>
32700         * lib/stdint.in.h: Define all type macros so that their expansion is
32701         a single typedef'ed token. Fixes a compilation failure in Boost which
32702         does "using ::int8_t;".
32704 2008-11-18  Simon Josefsson  <simon@josefsson.org>
32706         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
32707         gl_MANYWARN_ALL_GCC.
32708         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
32709         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
32710         * modules/manywarnings: New file.
32711         * MODULES.html.sh: Mention manywarnings module.
32713 2008-11-18  Bruno Haible  <bruno@clisp.org>
32715         * doc/gnulib-tool.texi (Unit tests): New section.
32717 2008-11-18  Simon Josefsson  <simon@josefsson.org>
32719         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
32720         paths like 'lib/po/foo.po'.
32722 2008-11-17  Simon Josefsson  <simon@josefsson.org>
32724         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
32725         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
32727 2008-11-17  Simon Josefsson  <simon@josefsson.org>
32729         * m4/warnings.m4: Use CPPFLAGS to really check whether the
32730         parameter works.
32732 2008-11-17  Simon Josefsson  <simon@josefsson.org>
32734         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
32736 2008-11-17  Bruce Korb  <bkorb@gnu.org>
32738         * modules/parse-duration-tests: New file.
32739         * tests/test-parse-duration.sh: New file.
32740         * tests/test-parse-duration.c: New file.
32742         New module 'parse-duration'.
32743         * lib/parse-duration.h: New file.
32744         * lib/parse-duration.c: New file.
32745         * modules/parse-duration: New file.
32747 2008-11-17  Bruno Haible  <bruno@clisp.org>
32749         * tests/test-select-out.sh: Comment out the first pipe test.
32750         Reported by Simon Josefsson.
32752 2008-11-17  Bruno Haible  <bruno@clisp.org>
32754         * modules/getaddrinfo (Depends-on): Add servent, hostent.
32755         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
32756         gl_HOSTENT.
32758 2008-11-17  Bruno Haible  <bruno@clisp.org>
32760         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
32761         -lnetwork and -lnet. Needed for Haiku and BeOS.
32763 2008-11-16  Bruno Haible  <bruno@clisp.org>
32765         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
32767 2008-11-16  Bruno Haible  <bruno@clisp.org>
32769         Avoid test failure on Haiku.
32770         * tests/test-fsync.c: Include <errno.h>.
32771         (main): Don't require that fsync (0) fails.
32773 2008-11-15  Bruno Haible  <bruno@clisp.org>
32775         New module 'hostent'.
32776         * modules/hostent: New file.
32777         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
32779 2008-11-15  Bruno Haible  <bruno@clisp.org>
32781         New module 'servent'.
32782         * modules/servent: New file.
32783         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
32785 2008-11-15  Bruno Haible  <bruno@clisp.org>
32787         Avoid generating same test program with two different rules.
32788         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
32789         test-frexp to test-frexp-nolibm.
32790         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
32791         test-frexpl to test-frexpl-nolibm.
32793 2008-11-15  Bruno Haible  <bruno@clisp.org>
32795         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
32796         $(FREXPL_LIBM).
32798 2008-11-15  Bruno Haible  <bruno@clisp.org>
32800         * lib/netdb.in.h: Activate the definitions also when the system's
32801         <netdb.h> has 'struct addrinfo'.
32802         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
32803         EAI_OVERFLOW or AI_NUMERICSERV.
32804         * doc/posix-headers/netdb.texi: Document the problem.
32806 2008-11-15  Bruno Haible  <bruno@clisp.org>
32808         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
32810         Make the 'sched' module work on platforms where <sched.h> exists but
32811         is incomplete (such as Haiku).
32812         * lib/sched.in.h; Include the system's <sched.h> if it exists.
32813         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
32814         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
32815         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
32816         HAVE_STRUCT_SCHED_PARAM.
32817         * modules/sched (Depends-on): Add include_next.
32818         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
32819         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
32820         * doc/posix-headers/sched.texi: Document the issue.
32822 2008-11-13  Jim Meyering  <meyering@redhat.com>
32824         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
32825         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
32826         test would fail due to the difference in the Report bugs to ...
32827         line.  The expected address is empty, "<>", while the actual
32828         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
32830 2008-11-12  Bruno Haible  <bruno@clisp.org>
32832         lstat: don't compile lstat.c on systems lacking lstat
32833         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
32834         which don't have lstat; this is handled by lib/sys_stat.in.h already.
32835         Reported by Daniel P. Berrange via Jim Meyering.
32837 2008-11-12  Jim Meyering  <meyering@redhat.com>
32839         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
32841 2008-11-12  Simon Josefsson  <simon@josefsson.org>
32843         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
32844         instead.
32846 2008-11-12  Bruno Haible  <bruno@clisp.org>
32848         * lib/unicodeio.c: Include unistr.h.
32849         (utf8_wctomb): Remove function.
32850         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
32852 2008-11-12  Simon Josefsson  <simon@josefsson.org>
32854         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
32855         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
32856         <bruno@clisp.org>.
32857         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
32859 2008-11-12  Simon Josefsson  <simon@josefsson.org>
32861         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
32862         * doc/gnulib.texi: Add section for warnings.
32864 2008-11-11  Bruno Haible  <bruno@clisp.org>
32866         * lib/sockets.h: Add a comment.
32868 2008-11-11  Karl Berry  <karl@gnu.org>
32870         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
32872 2008-11-11  Eric Blake  <ebb9@byu.net>
32874         fdl.texi: avoid git symlinks
32875         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
32877 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
32879         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
32881 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
32883         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
32884         (gl_WARN_ADD): Substitute $2 if literal.
32886 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
32888         * m4/warning.m4: Remove.
32890 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
32892         * m4/warnings.m4: Almost complete rewrite. :-)
32894 2008-11-10  Simon Josefsson  <simon@josefsson.org>
32896         * modules/warnings: New module.
32897         * m4/warnings.m4: New file.
32898         * MODULES.html.sh: Mention warnings module.
32899         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
32900         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
32902 2008-11-10  Eric Blake  <ebb9@byu.net>
32904         fdl.texi: make a symlink to the latest version
32905         * doc/standards.texi: Revert today's earlier change.
32906         * doc/fdl-1.2.texi: Rename from old fdl.texi...
32907         * doc/fdl.texi: ...and replace this with a symlink to the newer
32908         fdl-1.3.texi.
32910 2008-11-10  Bruno Haible  <bruno@clisp.org>
32912         * tests/test-select-fd.c (main): Accept the result file name as fourth
32913         argument.
32914         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
32915         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
32917 2008-11-10  Bruno Haible  <bruno@clisp.org>
32919         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
32920         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
32921         as autoconf-substituted macros.
32922         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
32923         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
32924         gl_NETDB_H_DEFAULTS. Set these variables.
32925         * modules/netdb (Makefile.am): Substitute these variables.
32927 2008-11-10  Eric Blake  <ebb9@byu.net>
32929         standards.texi: include correct file for FDL 1.3
32930         * doc/standards.texi (GNU Free Documentation License): Change
32931         include file to pull in FDL 1.3, not 1.2.
32933         fdl.texi: revert accidental change to license
32934         * doc/fdl.texi: This is FDL 1.2, not 1.3.
32936 2008-11-10  Bruno Haible  <bruno@clisp.org>
32938         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
32939         cross-compiling guesses also when the native compile gives no result.
32941 2008-11-10  Bruno Haible  <bruno@clisp.org>
32943         * lib/spawni.c (__spawni): Force variable into the stack.
32945 2008-11-10  Bruno Haible  <bruno@clisp.org>
32947         Add support for Haiku.
32948         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
32949         glibc and BeOS, but also on Haiku.
32950         * lib/fpurge.c (fpurge): Likewise.
32951         * lib/freadable.c (freadable): Likewise.
32952         * lib/freadahead.c (freadahead): Likewise.
32953         * lib/freading.c (freading): Likewise.
32954         * lib/freadptr.c (freadptr): Likewise.
32955         * lib/freadseek.c (freadptrinc): Likewise.
32956         * lib/fseeko.c (rpl_fseeko): Likewise.
32957         * lib/fseterr.c (fseterr): Likewise.
32958         * lib/fwritable.c (fwritable): Likewise.
32959         * lib/fwriting.c (fwriting): Likewise.
32960         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
32962 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
32964         * lib/config.charset: Treat Haiku like BeOS.
32966 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
32968         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
32969         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
32971 2008-11-08  Bruno Haible  <bruno@clisp.org>
32973         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
32974         AC_CACHE_CHECK.
32976 2008-11-08  Bruno Haible  <bruno@clisp.org>
32978         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
32980 2008-11-08  Bruno Haible  <bruno@clisp.org>
32982         * tests/test-select-fd.c: New file.
32983         * tests/test-select-in.sh: New file.
32984         * tests/test-select-out.sh: New file.
32985         * tests/test-select-stdin.c: New file.
32986         * modules/select-tests (Files): Add the new files.
32987         (Depends-on): Add gettimeofday.
32988         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
32989         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
32990         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
32992 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
32993             Bruno Haible  <bruno@clisp.org>
32995         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
32997 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
32999         * build-aux/pmccabe2html: Added support for C++ source files.
33001 2008-11-05  Ben Pfaff  <blp@gnu.org>
33003         Fix lib/close.c build on Windows.
33004         * modules/close (Files): Add lib/w32sock.h.
33006 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
33008         Accept Bison's NEWS format.
33009         * build-aux/announce-gen (print_news_deltas): Tweak
33010         $re_prefix.
33012 2008-11-04  Bruno Haible  <bruno@clisp.org>
33014         * modules/random_r (Maintainer): Add glibc.
33016 2008-11-04  Simon Josefsson  <simon@josefsson.org>
33018         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
33019         by karl@freefriends.org (Karl Berry).
33020         * doc/alloca.texi: Likewise.
33021         * doc/c-ctype.texi: Likewise.
33022         * doc/c-strcase.texi: Likewise.
33023         * doc/c-strcaseeq.texi: Likewise.
33024         * doc/c-strcasestr.texi: Likewise.
33025         * doc/c-strstr.texi: Likewise.
33026         * doc/c-strtod.texi: Likewise.
33027         * doc/c-strtold.texi: Likewise.
33028         * doc/ctime.texi: Likewise.
33029         * doc/error.texi: Likewise.
33030         * doc/fdl.texi: Likewise.
33031         * doc/gcd.texi: Likewise.
33032         * doc/getdate.texi: Likewise.
33033         * doc/gnulib-intro.texi: Likewise.
33034         * doc/gnulib-tool.texi: Likewise.
33035         * doc/gnulib.texi: Likewise.
33036         * doc/inet_ntoa.texi: Likewise.
33037         * doc/maintain.texi: Likewise.
33038         * doc/make-stds.texi: Likewise.
33039         * doc/quote.texi: Likewise.
33040         * doc/regexprops-generic.texi: Likewise.
33041         * doc/standards.texi: Likewise.
33042         * doc/verify.texi: Likewise.
33043         * doc/visibility.texi: Likewise.
33044         * doc/gnulib.texi (GNU Free Documentation License): Include
33045         fdl-1.3.texi instead of fdl.texi.
33047 2008-11-04  Simon Josefsson  <simon@josefsson.org>
33049         * doc/fdl-1.3.texi: New file, from
33050         <http://www.gnu.org/licenses/fdl-1.3.texi>.
33051         * modules/fdl-1.3: Add.
33052         * MODULES.html.sh: Add fdl-1.3.
33054 2008-11-03  Bruno Haible  <bruno@clisp.org>
33056         Make determination of absolute name of header file work with AIX xlc.
33057         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
33058         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
33059         preprocessing.
33060         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
33061         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
33063 2008-11-03  Simon Josefsson  <simon@josefsson.org>
33065         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
33066         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
33067         <ludo@gnu.org>.
33069 2008-11-02  Bruno Haible  <bruno@clisp.org>
33071         Mark 'strpbrk' obsolete.
33072         * modules/strpbrk (Status, Notice): New sections.
33073         * modules/strtok_r (Depends-on): Add strpbrk.
33075 2008-11-02  Bruno Haible  <bruno@clisp.org>
33077         Mark 'strdup' obsolete.
33078         * modules/strdup (Status, Notice): New sections.
33079         * modules/findprog (Depends-on): Add strdup.
33080         * modules/getaddrinfo (Depends-on): Likewise.
33081         * modules/localename (Depends-on): Likewise.
33082         * modules/relocatable-lib (Depends-on): Likewise.
33083         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
33084         * modules/relocatable-prog (Depends-on): Likewise.
33085         * modules/trim (Depends-on): Likewise.
33086         * modules/unictype/gen-ctype (Depends-on): Likewise.
33087         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
33089 2008-11-02  Bruno Haible  <bruno@clisp.org>
33091         Mark 'strcspn' obsolete.
33092         * modules/strcspn (Status, Notice): New sections.
33094 2008-11-02  Bruno Haible  <bruno@clisp.org>
33096         Mark 'rmdir' obsolete.
33097         * modules/rmdir (Status, Notice): New sections.
33098         * modules/clean-temp (Depends-on): Add rmdir.
33099         * modules/openat (Depends-on): Likewise.
33101 2008-11-02  Bruno Haible  <bruno@clisp.org>
33103         Mark 'raise' obsolete.
33104         * modules/raise (Status, Notice): New sections.
33105         (Include): Specify <signal.h>.
33106         * modules/stdio (Depends-on): Add raise.
33107         * modules/write (Depends-on): Likewise.
33109 2008-11-02  Bruno Haible  <bruno@clisp.org>
33111         Mark 'memset' obsolete.
33112         * modules/memset (Status, Notice): New sections.
33114 2008-11-02  Bruno Haible  <bruno@clisp.org>
33116         Mark 'memmove' obsolete.
33117         * modules/memmove (Status, Notice): New sections.
33118         * modules/argp (Depends-on): Add memmove.
33119         * modules/argz (Depends-on): Likewise.
33120         * modules/canonicalize (Depends-on): Likewise.
33121         * modules/canonicalize-lgpl (Depends-on): Likewise.
33122         * modules/fts (Depends-on): Likewise.
33123         * modules/getcwd (Depends-on): Likewise.
33124         * modules/human (Depends-on): Likewise.
33125         * modules/regex (Depends-on): Likewise.
33126         * modules/striconveh (Depends-on): Likewise.
33127         * modules/trim (Depends-on): Likewise.
33128         * modules/unistr/u8-move (Depends-on): Likewise.
33129         * modules/unistr/u16-move (Depends-on): Likewise.
33130         * modules/unistr/u32-move (Depends-on): Likewise.
33132 2008-11-02  Bruno Haible  <bruno@clisp.org>
33134         Mark 'memcpy' obsolete.
33135         * modules/memcpy (Status, Notice): New sections.
33137 2008-11-02  Bruno Haible  <bruno@clisp.org>
33139         Mark 'memcmp' obsolete.
33140         * modules/memcmp (Status, Notice): New sections.
33141         * modules/argmatch (Depends-on): Add memchr.
33142         * modules/backupfile (Depends-on): Likewise.
33143         * modules/c-strcasestr (Depends-on): Likewise.
33144         * modules/crypto/des (Depends-on): Likewise.
33145         * modules/csharpcomp (Depends-on): Likewise.
33146         * modules/fnmatch (Depends-on): Likewise.
33147         * modules/git-merge-changelog (Depends-on): Likewise.
33148         * modules/isnand (Depends-on): Likewise.
33149         * modules/isnand-nolibm (Depends-on): Likewise.
33150         * modules/isnanf (Depends-on): Likewise.
33151         * modules/isnanf-nolibm (Depends-on): Likewise.
33152         * modules/isnanl (Depends-on): Likewise.
33153         * modules/isnanl-nolibm (Depends-on): Likewise.
33154         * modules/mbchar (Depends-on): Likewise.
33155         * modules/memcoll (Depends-on): Likewise.
33156         * modules/quotearg (Depends-on): Likewise.
33157         * modules/regex (Depends-on): Likewise.
33158         * modules/relocatable-prog (Depends-on): Likewise.
33159         * modules/same (Depends-on): Likewise.
33160         * modules/signbit (Depends-on): Likewise.
33161         * modules/strcasestr-simple (Depends-on): Likewise.
33162         * modules/unictype/gen-ctype (Depends-on): Likewise.
33163         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
33164         * modules/uniname/uniname (Depends-on): Likewise.
33165         * modules/unistr/u8-cmp (Depends-on): Likewise.
33167 2008-11-02  Bruno Haible  <bruno@clisp.org>
33169         Mark 'memchr' obsolete.
33170         * modules/memchr (Status, Notice): New sections.
33171         * modules/argp (Depends-on): Add memchr.
33172         * modules/base64 (Depends-on): Likewise.
33173         * modules/c-strcasestr (Depends-on): Likewise.
33174         * modules/chdir-long (Depends-on): Likewise.
33175         * modules/fnmatch (Depends-on): Likewise.
33176         * modules/getsubopt (Depends-on): Likewise.
33177         * modules/git-merge-changelog (Depends-on): Likewise.
33178         * modules/glob (Depends-on): Likewise.
33179         * modules/strcasestr-simple (Depends-on): Likewise.
33180         * modules/strnlen (Depends-on): Likewise.
33182 2008-11-02  Bruno Haible  <bruno@clisp.org>
33184         Mark 'atexit' obsolete.
33185         * modules/atexit (Status, Notice): New sections.
33186         * modules/chdir-long (Depends-on): Add atexit.
33187         * modules/wait-process (Depends-on): Likewise.
33189 2008-11-02  Bruno Haible  <bruno@clisp.org>
33191         * gnulib-tool: New option --with-obsolete.
33192         (func_usage): Document it.
33193         (func_modules_transitive_closure): Drop obsolete dependencies if
33194         incobsolete is not true.
33195         (func_import): Read and save the incobsolete variable to the cache.
33197 2008-11-02  Bruno Haible  <bruno@clisp.org>
33199         * modules/TEMPLATE-EXTENDED: New field 'Status'.
33200         * gnulib-tool: New option --extract-status.
33201         (func_usage): Document it.
33202         (sed_extract_prog): Recognize it.
33203         (func_get_status): New function.
33205 2008-10-30  Simon Josefsson  <simon@josefsson.org>
33207         * modules/sockets (License): Change from LGPL to LGPLv2+.
33209 2008-10-28  Simon Josefsson  <simon@josefsson.org>
33211         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
33213 2008-10-28  Simon Josefsson  <simon@josefsson.org>
33215         * MODULES.html.sh (Support for systems lacking POSIX:2001):
33216         Mention times and sys_times.
33217         * modules/sys_times, modules/sys_times-tests: New modules.
33218         * modules/times, modules/times-tests: Likewise
33219         * m4/sys_times_h.m4: New file.
33220         * lib/sys_times.in.h: Likewise
33221         * lib/times.c: Likewise.
33222         * tests/test-sys_times.c: Likewise.
33223         * tests/test-times.c: Likewise.
33224         * doc/posix-headers/sys_times.texi: Update.
33225         * doc/posix-functions/times.texi: Update.
33227 2008-10-28  Jim Meyering  <meyering@redhat.com>
33229         * modules/tempname (Depends-on): Add lstat.
33231         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
33233 2008-10-28  Simon Josefsson  <simon@josefsson.org>
33235         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
33236         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
33237         using idiom used elsewhere in gnulib.
33239 2008-10-27  Jim Meyering  <meyering@redhat.com>
33241         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
33243 2008-10-27  Simon Josefsson  <simon@josefsson.org>
33245         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
33246         TESTS_ENVIRONMENT, for shell scripts that needs to call built
33247         programs.
33248         * tests/test-argp-2.sh: Use $EXEEXT when needed.
33250 2008-10-27  Simon Josefsson  <simon@josefsson.org>
33252         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
33254 2008-10-27  Bruno Haible  <bruno@clisp.org>
33256         * tests/test-lstat.c: Include <stdio.h>.
33258 2008-10-27  Simon Josefsson  <simon@josefsson.org>
33260         * modules/lstat-tests: New module.
33261         * tests/test-lstat.c: New file.
33263 2008-10-26  Jim Meyering  <meyering@redhat.com>
33265         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
33267 2008-10-26  Simon Josefsson  <simon@josefsson.org>
33268             Bruno Haible  <bruno@clisp.org>
33270         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
33271         * modules/configmake (Include): Add a note that the include must come
33272         after all system headers.
33273         * lib/javaversion.c: Include configmake.h after all other includes.
33275 2008-10-26  Bruno Haible  <bruno@clisp.org>
33277         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
33278         HAVE_STRUCT_RANDOM_DATA to 1.
33279         (gl_STDLIB_H): Simplify.
33281 2008-10-26  Simon Josefsson  <simon@josefsson.org>
33283         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
33284         substitute HAVE_STRUCT_RANDOM_DATA.
33285         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
33286         random_data.
33287         * modules/stdlib (Makefile.am): Substitute
33288         HAVE_STRUCT_RANDOM_DATA.
33290 2008-10-26  Simon Josefsson  <simon@josefsson.org>
33292         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
33293         * doc/gnulib-intro.texi (Copyright): Likewise.
33295 2008-10-26  Simon Josefsson  <simon@josefsson.org>
33297         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
33298         findings.
33300 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
33301             Bruno Haible  <bruno@clisp.org>
33303         * lib/unistd.in.h: Include <winsock2.h>.
33304         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
33305         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
33306         Provide dummy declarations.
33307         (gethostname): Override.
33308         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
33309         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
33310         gl_PREREQ_SYS_H_WINSOCK2.
33311         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
33312         * doc/posix-functions/gethostname.texi: More details.
33314 2008-10-25  Bruno Haible  <bruno@clisp.org>
33316         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
33317         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
33318         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
33320         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
33321         here ...
33322         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
33323         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
33324         gl_UNISTD_H_DEFAULTS.
33326 2008-10-25  Eric Blake  <ebb9@byu.net>
33328         signbit: avoid spurious compiler failure
33329         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
33330         declarations inside function.
33332 2008-10-24  Simon Josefsson  <simon@josefsson.org>
33333             Bruno Haible  <bruno@clisp.org>
33335         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
33336         * modules/random_r (Depends-on): Add stdint.
33338 2008-10-24  Bruno Haible  <bruno@clisp.org>
33340         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
33341         Eggert.
33342         * modules/strerror (License): Likewise.
33344 2008-10-24  Jim Meyering  <meyering@redhat.com>
33346         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
33347         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
33349 2008-10-24  Eric Blake  <ebb9@byu.net>
33351         getgroups: fix compilation when getgroups is available
33352         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
33353         but with <config.h> override of getgroups disabled.
33355 2008-10-24  Simon Josefsson  <simon@josefsson.org>
33357         * doc/gnulib.texi (Header files): Add note about C++ problems.
33358         Explained by Bruno Haible <bruno@clisp.org>.
33360 2008-10-23  Bruno Haible  <bruno@clisp.org>
33362         Define a dummy SA_NODEFER macro on Interix.
33363         * lib/signal.in.h (SA_NODEFER): Define fallback.
33364         Reported by Aleksey Cheusov <cheusov@tut.by> via
33365         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
33367 2008-10-23  Bruno Haible  <bruno@clisp.org>
33369         * modules/freadahead (License): Change to LGPLv2+.
33370         Suggested by Simon Josefsson.
33372 2008-10-23  Jim Meyering  <meyering@redhat.com>
33374         random_r: new module
33375         * modules/random_r: New file.
33376         * m4/random_r.m4: New file.
33377         * lib/random_r.c: New file, from glibc.
33378         * modules/random_r-tests: New file.
33379         * tests/test-random_r.c: New file.
33380         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
33381          Declare.
33382         (RAND_MAX): Define.
33383         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
33384         * modules/stdlib: Substitute them, too.
33385         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
33386         * doc/glibc-functions/initstate_r.texi: Mention the new module.
33387         * doc/glibc-functions/random_r.texi: Likewise.
33388         * doc/glibc-functions/setstate_r.texi: Likewise.
33389         * doc/glibc-functions/srandom_r.texi: Likewise.
33390         * config/srclist.txt: Mention it.
33392 2008-10-23  David Lutterkort  <lutter@redhat.com>
33394         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
33395         link requirement
33397 2008-10-23  Jim Meyering  <meyering@redhat.com>
33399         selinux-h: mark parameters of stub functions as intentionally unused
33400         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
33401         * lib/se-context.in.h: Likewise.
33403 2008-10-22  Simon Josefsson  <simon@josefsson.org>
33405         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
33407 2008-10-22  Simon Josefsson  <simon@josefsson.org>
33409         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
33411 2008-10-22  Eric Blake  <ebb9@byu.net>
33413         glthread/thread: avoid compiler warning
33414         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
33415         Add unreachable abort to silence compiler.
33417 2008-10-22  Eric Blake  <ebb9@byu.net>
33419         netdb: also supply struct addrinfo for cygwin 1.5.x
33420         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
33421         older cygwin.
33422         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
33423         cygwin.
33424         * doc/posix-headers/netdb.texi (netdb.h): Document this.
33426 2008-10-22  Bruno Haible  <bruno@clisp.org>
33428         * users.txt: Update entry about pspp.
33430 2008-10-21  Bruno Haible  <bruno@clisp.org>
33432         Simplification.
33433         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
33434         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
33436         Simplification.
33437         * lib/ioctl.c (ioctl): Don't undefine.
33438         * lib/socket.c (socket): Don't undefine.
33440         Remove unused module indicator macros.
33441         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
33442         GNULIB_$1 as a C macro.
33444         * doc/posix-functions/close.texi: Undo last change.
33445         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
33446         Windows platforms.
33448 2008-10-21  Bruno Haible  <bruno@clisp.org>
33450         Add gethostname() declaration to <unistd.h>.
33451         * lib/unistd.in.h (gethostname): New declaration.
33452         * lib/gethostname.c: Include <unistd.h>.
33453         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
33454         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
33455         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
33456         and HAVE_GETHOSTNAME.
33457         * modules/gethostname (Depends-on): Add unistd.
33458         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
33459         (Include): Specify <unistd.h>.
33460         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
33461         HAVE_GETHOSTNAME.
33462         * tests/test-gethostname.c: Include <unistd.h> first.
33464 2008-10-21  Bruno Haible  <bruno@clisp.org>
33466         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
33467         * modules/select-tests (Depends-on): Likewise.
33468         Reported by Simon Josefsson.
33470 2008-10-21  Simon Josefsson  <simon@josefsson.org>
33472         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
33473         * lib/accept.c: New file, based on winsock.c.
33474         * lib/bind.c: New file, based on winsock.c.
33475         * lib/connect.c: New file, based on winsock.c.
33476         * lib/getpeername.c: New file, based on winsock.c.
33477         * lib/getsockname.c: New file, based on winsock.c.
33478         * lib/getsockopt.c: New file, based on winsock.c.
33479         * lib/ioctl.c: New file, based on winsock.c.
33480         * lib/listen.c: New file, based on winsock.c.
33481         * lib/recv.c: New file, based on winsock.c.
33482         * lib/recvfrom.c: New file, based on winsock.c.
33483         * lib/send.c: New file, based on winsock.c.
33484         * lib/sendto.c: New file, based on winsock.c.
33485         * lib/setsockopt.c: New file, based on winsock.c.
33486         * lib/shutdown.c: New file, based on winsock.c.
33487         * lib/socket.c: New file, based on winsock.c.
33488         * lib/w32sock.h: New file, based on winsock.c.
33489         * lib/winsock.c: Remove file.
33490         * modules/accept: Likewise.
33491         * modules/bind: Likewise.
33492         * modules/connect: Likewise.
33493         * modules/getpeername: Likewise.
33494         * modules/getsockname: Likewise.
33495         * modules/getsockopt: Likewise.
33496         * modules/ioctl: Likewise.
33497         * modules/listen: Likewise.
33498         * modules/recv: Likewise.
33499         * modules/recvfrom: Likewise.
33500         * modules/send: Likewise.
33501         * modules/sendto: Likewise.
33502         * modules/setsockopt: Likewise.
33503         * modules/shutdown: Likewise.
33504         * modules/socket: Use socket.c instead of winsock.c.
33505         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
33506         * doc/posix-functions/accept.texi: Doc fix.
33507         * doc/posix-functions/bind.texi: Doc fix.
33508         * doc/posix-functions/close.texi: Doc fix.
33509         * doc/posix-functions/connect.texi: Doc fix.
33510         * doc/posix-functions/getpeername.texi: Doc fix.
33511         * doc/posix-functions/getsockname.texi: Doc fix.
33512         * doc/posix-functions/getsockopt.texi: Doc fix.
33513         * doc/posix-functions/ioctl.texi: Doc fix.
33514         * doc/posix-functions/listen.texi: Doc fix.
33515         * doc/posix-functions/recv.texi: Doc fix.
33516         * doc/posix-functions/recvfrom.texi: Doc fix.
33517         * doc/posix-functions/send.texi: Doc fix.
33518         * doc/posix-functions/sendto.texi: Doc fix.
33519         * doc/posix-functions/setsockopt.texi: Doc fix.
33520         * doc/posix-functions/shutdown.texi: Doc fix.
33521         * doc/posix-functions/socket.texi: Doc fix.
33523 2008-10-20  Bruno Haible  <bruno@clisp.org>
33525         Take into account the role of SIGABRT_COMPAT on Windows 2008.
33526         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
33527         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
33528         as an alias for SIGABRT.
33529         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
33530         (sigaction): Map it to SIGABRT.
33531         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
33533 2008-10-20  Bruno Haible  <bruno@clisp.org>
33535         * lib/fts.c: Don't include lstat.h.
33536         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
33538         Move the lstat() declaration to <sys/stat.h>.
33539         * lib/lstat.h: Remove file.
33540         * lib/sys_stat.in.h: Add special invocation convention.
33541         (lstat): New declaration.
33542         * lib/lstat.c (orig_lstat): New function.
33543         (rpl_lstat): Use orig_lstat instead of lstat.
33544         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
33545         AC_C_INLINE. Set REPLACE_LSTAT.
33546         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
33547         and REPLACE_LSTAT.
33548         * modules/lstat (Files): Remove lib/lstat.h.
33549         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
33550         (Include): Specify <sys/stat.h> instead of lstat.h.
33551         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
33552         REPLACE_LSTAT.
33553         * NEWS: Mention the change.
33555 2008-10-20  Bruno Haible  <bruno@clisp.org>
33557         * modules/posix_spawn-tests: New file.
33558         * tests/test-posix_spawn3.c: New file.
33560 2008-10-20  Bruno Haible  <bruno@clisp.org>
33562         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
33563         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
33564         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
33565         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
33566         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
33568 2008-10-20  Bruno Haible  <bruno@clisp.org>
33570         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
33571         of posix_spawn on AIX 5.3.
33573 2008-10-20  Bruno Haible  <bruno@clisp.org>
33575         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
33577 2008-10-20  Bruno Haible  <bruno@clisp.org>
33579         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
33580         of AC_LANG_PROGRAM.
33582 2008-10-20  Simon Josefsson  <simon@josefsson.org>
33584         * lib/netdb.in.h: Don't define GNU specific constants until they
33585         are supported or needed.  Reported by Bruno Haible
33586         <bruno@clisp.org>.
33588 2008-10-20  Simon Josefsson  <simon@josefsson.org>
33590         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
33592 2008-10-20  Simon Josefsson  <simon@josefsson.org>
33594         * lib/getaddrinfo.h: Remove file.
33595         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
33596         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
33597         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
33598         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
33599         * modules/netdb: Substitute GNULIB_GETADDRINFO.
33600         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
33601         * tests/test-getaddrinfo.c: Likewise.
33602         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
33603         * NEWS: Mention change.
33605 2008-10-19  Bruno Haible  <bruno@clisp.org>
33607         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
33609 2008-10-19  Bruno Haible  <bruno@clisp.org>
33611         * lib/wait-process.c: Include simply <sys/wait.h>.
33612         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
33613         WIFSTOPPED): Remove fallback definitions.
33614         * modules/wait-process (Depends-on): Add sys_wait.
33616         New module 'sys_wait'.
33617         * modules/sys_wait: New file.
33618         * lib/sys_wait.in.h: New file, partially copied from
33619         lib/wait-process.c.
33620         * m4/sys_wait_h.m4: New file.
33621         * doc/posix-headers/sys_wait.texi: Mention the new module.
33623 2008-10-19  Bruno Haible  <bruno@clisp.org>
33625         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
33627 2008-10-19  Bruno Haible  <bruno@clisp.org>
33629         Assume that waitpid() fills an 'int' status, not a 'union wait'.
33630         * lib/wait-process.c (WAIT_T): Remove type.
33631         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
33632         (wait_subprocess): Update.
33634 2008-10-19  Bruno Haible  <bruno@clisp.org>
33636         New module 'atoll'.
33637         * modules/atoll: New file.
33638         * lib/stdlib.in.h (atoll): New declaration.
33639         * lib/atoll.c: New file, from glibc with modifications.
33640         * m4/atoll.m4: New file.
33641         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
33642         HAVE_ATOLL.
33643         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
33644         * doc/posix-functions/atoll.texi: Mention the new module.
33646 2008-10-19  Bruno Haible  <bruno@clisp.org>
33648         Add strtoull() declaration to <stdlib.h>.
33649         * lib/stdlib.in.h (strtoull): New declaration.
33650         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
33651         Set HAVE_STRTOULL.
33652         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
33653         HAVE_STRTOULL.
33654         * modules/strtoull (Depends-on): Add stdlib.
33655         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
33656         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
33657         HAVE_STRTOULL.
33659 2008-10-19  Bruno Haible  <bruno@clisp.org>
33661         Add strtoll() declaration to <stdlib.h>.
33662         * lib/stdlib.in.h (strtoll): New declaration.
33663         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
33664         Set HAVE_STRTOLL.
33665         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
33666         HAVE_STRTOLL.
33667         * modules/strtoll (Depends-on): Add stdlib.
33668         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
33669         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
33671 2008-10-19  Bruno Haible  <bruno@clisp.org>
33673         * modules/bcopy (Depends-on): Add strings.
33674         (Include): Specify <strings.h>.
33676 2008-10-19  Bruno Haible  <bruno@clisp.org>
33678         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
33680 2008-10-19  Bruno Haible  <bruno@clisp.org>
33682         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
33683         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
33684         mingw.
33686 2008-10-19  Bruno Haible  <bruno@clisp.org>
33688         * lib/atanl.c: Don't include isnanl.h.
33689         * lib/cosl.c: Likewise.
33690         * lib/ldexpl.c: Likewise.
33691         * lib/logl.c: Likewise.
33692         * lib/sinl.c: Likewise.
33693         * lib/sqrtl.c: Likewise.
33694         * lib/tanl.c: Likewise.
33696         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
33697         * lib/isnanf.h: Remove file.
33698         * lib/isnand.h: Remove file.
33699         * lib/isnanl.h: Remove file.
33700         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
33701         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
33702         macros.
33703         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
33704         HAVE_ISNANF, don't define it as a C macro.
33705         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
33706         HAVE_ISNAND, don't define it as a C macro.
33707         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
33708         HAVE_ISNANL, don't define it as a C macro.
33709         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
33710         HAVE_ISNAN[FDL].
33711         * modules/isnanf (Files): Remove lib/isnanf.h.
33712         (Depends-on): Add math.
33713         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
33714         (Include): Specify <math.h> instead of isnanf.h.
33715         * modules/isnand (Files): Remove lib/isnand.h.
33716         (Depends-on): Add math.
33717         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
33718         (Include): Specify <math.h> instead of isnand.h.
33719         * modules/isnanl (Files): Remove lib/isnanl.h.
33720         (Depends-on): Add math.
33721         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
33722         (Include): Specify <math.h> instead of isnanl.h.
33723         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
33724         HAVE_ISNAN[FDL].
33725         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
33726         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
33727         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
33728         * NEWS: Mention the change.
33730 2008-10-18  Bruno Haible  <bruno@clisp.org>
33732         Add getusershell(), setusershell(), endusershell() declarations to
33733         <unistd.h>.
33734         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
33735         declarations.
33736         * lib/getusershell.c: Include unistd.h.
33737         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
33738         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
33739         HAVE_GETUSERSHELL.
33740         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
33741         and HAVE_GETUSERSHELL.
33742         * modules/getusershell (Depends-on): Add unistd, extensions.
33743         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
33744         (Include): Specify <unistd.h>.
33745         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
33746         HAVE_GETUSERSHELL.
33748 2008-10-18  Bruno Haible  <bruno@clisp.org>
33750         Add a getloadavg() declaration to <stdlib.h>.
33751         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
33752         getloadavg declaration.
33753         (getloadavg): New declaration.
33754         * lib/getloadavg.c: Include <stdlib.h> first.
33755         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
33756         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
33757         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
33758         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
33759         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
33760         * modules/getloadavg (Depends-on): Add stdlib, extensions.
33761         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
33762         (Include): Specify <stdlib.h>.
33763         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
33764         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
33766 2008-10-18  Bruno Haible  <bruno@clisp.org>
33768         * lib/dirchownmod.c: Don't include lchmod.h.
33770         Move the lchmod() declaration to <sys/stat.h>.
33771         * lib/lchmod.h: Remove file.
33772         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
33773         (lchmod): New declaration, moved here from lib/lchown.h.
33774         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
33775         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
33776         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
33777         and HAVE_LCHMOD.
33778         * modules/lchmod (Files): Remove lib/lchmod.h.
33779         (Depends-on): Add sys_stat, extensions.
33780         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
33781         (Include): Specify <sys/stat.h> instead of lchmod.h.
33782         * modules/sys_stat (Depends-on): Add link-warning.
33783         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
33784         definition of GL_LINK_WARNING.
33785         * NEWS: Mention the change.
33787 2008-10-18  Bruno Haible  <bruno@clisp.org>
33789         * lib/fchdir.c: Don't include dirfd.h.
33790         * lib/fts.c: Likewise.
33791         * lib/getcwd.c: Likewise.
33792         * lib/glob.c: Likewise.
33794         Move the dirfd() declaration to <dirent.h>.
33795         * lib/dirfd.h: Remove file.
33796         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
33797         (dirfd): New declaration.
33798         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
33799         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
33800         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
33801         HAVE_DECL_DIRFD.
33802         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
33803         HAVE_DECL_DIRFD.
33804         * modules/dirfd (Files): Remove lib/dirfd.h.
33805         (Depends-on): Add dirent, extensions.
33806         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
33807         (Include): Specify <dirent.h> instead of dirfd.h.
33808         * modules/dirent (Depends-on): Add link-warning.
33809         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
33810         definition of GL_LINK_WARNING.
33811         * NEWS: Mention the change.
33813 2008-10-18  Bruno Haible  <bruno@clisp.org>
33815         Move the euidaccess() declaration to <unistd.h>.
33816         * lib/euidaccess.h: Remove file.
33817         * lib/unistd.in.h (euidaccess): New declaration.
33818         * lib/euidaccess.c: Don't include euidaccess.h.
33819         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
33820         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
33821         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
33822         and HAVE_EUIDACCESS.
33823         * modules/euidaccess (Files): Remove lib/euidaccess.h.
33824         (Depends-on): Add unistd.
33825         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
33826         (Include): Specify <unistd.h> instead of euidaccess.h.
33827         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
33828         HAVE_EUIDACCESS.
33829         * NEWS: Mention the change.
33831 2008-10-18  Bruno Haible  <bruno@clisp.org>
33833         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
33835         Move the getdomainname() declaration to <unistd.h>.
33836         * lib/getdomainname.h: Remove file.
33837         * lib/unistd.in.h (getdomainname): New declaration.
33838         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
33839         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
33840         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
33841         HAVE_GETDOMAINNAME.
33842         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
33843         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
33844         * modules/getdomainname (Files): Remove lib/getdomainname.h.
33845         (Depends-on): Add unistd, extensions.
33846         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
33847         (Includes): Specify <unistd.h> instead of getdomainname.h.
33848         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
33849         HAVE_GETDOMAINNAME.
33850         * NEWS: Mention the change.
33852 2008-10-18  Bruno Haible  <bruno@clisp.org>
33854         * modules/dirent: New file.
33855         * m4/dirent_h.m4: New file.
33856         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
33857         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
33858         * modules/fchdir (Files): Remove lib/dirent.in.h.
33859         (Depends-on): Add dirent.
33860         (Makefile.am): Move rules to modules/dirent.
33861         * doc/posix-headers/dirent.texi: Mention the new module.
33863 2008-10-18  Bruno Haible  <bruno@clisp.org>
33865         Avoid -Wunused-parameter warnings in public gnulib header files.
33866         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
33867         macro.
33868         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
33870 2008-10-18  Bruno Haible  <bruno@clisp.org>
33872         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
33873         * doc/glibc-functions/error.texi: Mention the module 'error'.
33874         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
33875         * doc/glibc-functions/getdomainname.texi: Mention the module
33876         'getdomainname'.
33877         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
33878         * doc/glibc-functions/getpagesize.texi: Mention the module
33879         'getpagesize'.
33880         * doc/glibc-functions/getusershell.texi: Mention the module
33881         'getusershell'.
33882         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
33883         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
33884         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
33885         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
33886         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
33887         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
33888         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
33889         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
33890         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
33891         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
33892         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
33893         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
33894         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
33895         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
33897 2008-10-17  Bruno Haible  <bruno@clisp.org>
33899         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
33900         HP-UX and IRIX, use -0.0L.
33901         * tests/test-ceill.c (minus_zero): Likewise.
33902         * tests/test-floorl.c (minus_zero): Likewise.
33903         * tests/test-frexpl.c (minus_zero): Likewise.
33904         * tests/test-isnan.c (minus_zerol): Likewise.
33905         * tests/test-isnanl.h (minus_zero): Likewise.
33906         * tests/test-ldexpl.c (minus_zero): Likewise.
33907         * tests/test-roundl.c (minus_zero): Likewise.
33908         * tests/test-signbit.c (minus_zerol): Likewise.
33909         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
33910         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
33911         * tests/test-truncl.c (minus_zero): Likewise.
33912         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
33913         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
33914         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
33915         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
33917 2008-10-17  Bruno Haible  <bruno@clisp.org>
33919         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
33920         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
33921         that it gets activated only for gcc >= 3.0.
33922         * lib/dirent.in.h: Likewise.
33923         * lib/errno.in.h: Likewise.
33924         * lib/fcntl.in.h: Likewise.
33925         * lib/float.in.h: Likewise.
33926         * lib/iconv.in.h: Likewise.
33927         * lib/inttypes.in.h: Likewise.
33928         * lib/locale.in.h: Likewise.
33929         * lib/math.in.h: Likewise.
33930         * lib/netdb.in.h: Likewise.
33931         * lib/netinet_in.in.h: Likewise.
33932         * lib/search.in.h: Likewise.
33933         * lib/signal.in.h: Likewise.
33934         * lib/spawn.in.h: Likewise.
33935         * lib/stdarg.in.h: Likewise.
33936         * lib/stdint.in.h: Likewise.
33937         * lib/stdio.in.h: Likewise.
33938         * lib/stdlib.in.h: Likewise.
33939         * lib/string.in.h: Likewise.
33940         * lib/strings.in.h: Likewise.
33941         * lib/sys_file.in.h: Likewise.
33942         * lib/sys_ioctl.in.h: Likewise.
33943         * lib/sys_select.in.h: Likewise.
33944         * lib/sys_socket.in.h: Likewise.
33945         * lib/sys_stat.in.h: Likewise.
33946         * lib/sys_time.in.h: Likewise.
33947         * lib/sysexits.in.h: Likewise.
33948         * lib/time.in.h: Likewise.
33949         * lib/unistd.in.h: Likewise.
33950         * lib/wchar.in.h: Likewise.
33951         * lib/wctype.in.h: Likewise.
33952         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
33954 2008-10-17  Jim Meyering  <meyering@redhat.com>
33956         ignore-value: don't depend on inline module
33957         * modules/ignore-value (Depends-on): Remove 'inline'.
33958         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
33959         Suggestion from Bruno Haible.
33961 2008-10-17  Bruno Haible  <bruno@clisp.org>
33963         New implementation of condition variables for Win32.
33964         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
33965         (gl_linked_waitqueue_t): New type.
33966         (gl_cond_t): Use it.
33967         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
33968         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
33969         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
33970         (glthread_cond_init_func, glthread_cond_wait_func,
33971         glthread_cond_timedwait_func, glthread_cond_signal_func,
33972         glthread_cond_broadcast_func, glthread_cond_destroy_func):
33973         Reimplemented on the basis of gl_linked_waitqueue_t.
33974         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
33975         gl_waitqueue_t.
33976         (gl_rwlock_t): Update.
33977         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
33979 2008-10-17  Simon Josefsson  <simon@josefsson.org>
33981         * modules/recvfrom (Depends-on): Add dependency on getpeername.
33982         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
33984 2008-10-17  Jim Meyering  <meyering@redhat.com>
33986         ignore-value: new module
33987         * modules/ignore-value: New file.
33988         * lib/ignore-value.h: New file.
33989         * MODULES.html.sh (Compiler warning management): New section,
33990         just for this module.  More to come.
33992 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
33994         open-safer.c: avoid 'signed and unsigned in conditional...' warning
33995         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
33996         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
33998 2008-10-16  Jim Meyering  <meyering@redhat.com>
34000         openat-die.c: avoid 'no previous prototype' warning
34001         * lib/openat-die.c: Include "openat.h".
34002         Reported by Reuben Thomas <rrt@sc3d.org>.
34004 2008-10-16  Simon Josefsson  <simon@josefsson.org>
34006         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
34007         * lib/netdb.in.h: Fix typo.
34008         Reported by Bruno Haible  <bruno@clisp.org>
34010         * lib/netdb.in.h: Include sys/socket.h for platforms without
34011         netdb.h, to get structures like hostent on MinGW.
34012         * modules/netdb (Depends-on): Add sys_socket.
34014 2008-10-15  Simon Josefsson  <simon@josefsson.org>
34016         * modules/netdb, modules/netdb-tests: New file.
34017         * m4/netdb_h.m4: New file.
34018         * lib/netdb.in.h: Add, currently just an empty file pending
34019         definitions.
34020         * tests/test-netdb.c: New file.
34021         * doc/posix-headers/netdb.texi: Mention that we replace it if
34022         needed.
34023         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
34024         netdb.
34026 2008-10-15  Simon Josefsson  <simon@josefsson.org>
34028         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
34029         with code.
34031 2008-10-13  Bruno Haible  <bruno@clisp.org>
34033         * lib/glthread/cond.c (glthread_cond_wait_func,
34034         glthread_cond_timedwait_func): Add a comment.
34036 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
34038         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
34039         * tests/test-select.c: Likewise,
34041 2008-10-13  Bruno Haible  <bruno@clisp.org>
34043         * lib/glthread/cond.c (glthread_cond_wait_func,
34044         glthread_cond_timedwait_func): Fix variable name.
34045         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
34047 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
34049         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
34050         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
34051         struct sockaddr.sa_len.
34052         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
34054 2008-10-13  Simon Josefsson  <simon@josefsson.org>
34056         * build-aux/pmccabe2html: Add css and css_url parameters.
34058 2008-10-12  Bruno Haible  <bruno@clisp.org>
34060         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
34061         calling aclx_get.
34062         Reported by Rainer Tammer <tammer@tammer.net>.
34064 2008-10-12  Bruno Haible  <bruno@clisp.org>
34066         Use msvcrt aware primitives for creation/termination of Win32 threads.
34067         * lib/glthread/thread.c: Include <process.h>.
34068         (glthread_create_func): Use _beginthreadex instead of CreateThread.
34069         (wrapper_func): Update signature.
34070         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
34072 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
34073             Bruno Haible  <bruno@clisp.org>
34075         Provide a Win32 implementation of the 'cond' module.
34076         * lib/glthread/cond.h [USE_WIN32]: New implementation.
34077         * lib/glthread/cond.c (glthread_cond_init_func,
34078         glthread_cond_wait_func, glthread_cond_timedwait_func,
34079         glthread_cond_signal_func, glthread_cond_broadcast_func,
34080         glthread_cond_destroy_func) [USE_WIN32]: New functions.
34081         * modules/cond (Dependencies): Add gettimeofday.
34083 2008-10-11  Bruno Haible  <bruno@clisp.org>
34085         Make sleep work on older versions of mingw.
34086         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
34087         only whether it exists.
34088         * doc/posix-functions/sleep.texi: Mention the problem with older
34089         versions of mingw.
34091 2008-10-11  Bruno Haible  <bruno@clisp.org>
34093         New module 'shutdown'.
34094         * modules/shutdown: New file.
34095         * lib/sys_socket.in.h (shutdown): New declaration.
34096         * lib/winsock.c (shutdown): New function.
34097         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
34098         GNULIB_SHUTDOWN.
34099         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
34100         * doc/posix-functions/shutdown.texi: Document the new module.
34102 2008-10-11  Jim Meyering  <meyering@redhat.com>
34104         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
34106 2008-10-11  Bruno Haible  <bruno@clisp.org>
34108         New module 'fclose'.
34109         * modules/fclose: New file.
34110         * lib/stdio.in.h (fclose): New declaration.
34111         * lib/fclose.c: New file.
34112         * m4/fclose.m4: New file.
34113         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
34114         REPLACE_FCLOSE.
34115         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
34116         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
34117         REPLACE_FCLOSE.
34118         * modules/close (Depends-on): fclose.
34119         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
34121 2008-10-11  Bruno Haible  <bruno@clisp.org>
34123         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
34124         set errno and don't call _close.
34126 2008-10-10  Bruno Haible  <bruno@clisp.org>
34128         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
34129         ACL, not afterwards. Fixes test failure on Cygwin.
34131 2008-10-09  Ben Pfaff  <blp@gnu.org>
34133         * build-aux/announce-gen: Fix gnulib version related part of usage
34134         message.  Die with a useful error message if no tarballs are
34135         found.
34137 2008-10-10  Jim Meyering  <meyering@redhat.com>
34139         bootstrap: use git's --depth=N option only if it's supported
34140         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
34141         recognize the --depth option.  Reported by Pádraig Brady.
34143 2008-10-09  Bruno Haible  <bruno@clisp.org>
34145         New module 'ioctl'.
34146         * modules/ioctl: New file.
34147         * lib/sys_socket.in.h (ioctl): Remove declaration.
34148         * lib/winsock.c: Include <sys/ioctl.h>.
34149         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
34150         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
34151         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
34152         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
34153         * doc/posix-functions/ioctl.texi: Mention the new module.
34155 2008-10-09  Bruno Haible  <bruno@clisp.org>
34157         New module 'sys_ioctl'.
34158         * lib/sys_ioctl.in.h: New file.
34159         * m4/sys_ioctl_h.m4: New file.
34160         * modules/sys_ioctl: New file.
34161         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
34163 2008-10-09  Bruno Haible  <bruno@clisp.org>
34165         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
34166         * lib/winsock.c: Include <stdarg.h>.
34167         (rpl_ioctl): Change to second argument 'int' and then varargs.
34169 2008-10-09  Bruno Haible  <bruno@clisp.org>
34171         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
34172         when the sys_socket module is present and the system has <winsock2.h>.
34174 2008-10-09  Bruno Haible  <bruno@clisp.org>
34176         * doc/posix-functions/close.texi: Mention module 'close' instead of
34177         module 'sys_socket'.
34179 2008-10-09  Bruno Haible  <bruno@clisp.org>
34181         * doc/glibc-headers/sys_ioctl.texi: New file.
34182         * doc/gnulib.texi: Include it.
34184 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
34185             Bruno Haible  <bruno@clisp.org>
34187         Combine the two replacements of 'close'.
34188         * lib/sys_socket.in.h (close): Define to a reminder to include
34189         <unistd.h>.
34190         (_gl_close_fd_maybe_socket): New declaration.
34191         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
34192         * lib/winsock.c (close): Remove undefinition.
34193         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
34194         needed for the gnulib module 'close'.
34195         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
34196         define to an error symbol or to a warning, if suitable.
34197         * lib/close.c: Include <sys/socket.h>.
34198         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
34199         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
34200         UNISTD_H_HAVE_WINSOCK2_H.
34201         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
34202         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
34203         UNISTD_H_HAVE_WINSOCK2_H.
34204         * modules/sys_socket (Files): Add m4/unistd_h.m4.
34205         (configure.ac): Set a module indicator.
34206         (Makefile.am): Substitute GNULIB_CLOSE.
34207         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
34208         * modules/poll-tests (Depends-on): Add close.
34209         * modules/select-tests (Depends-on): Likewise.
34211 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
34212             Bruno Haible  <bruno@clisp.org>
34214         New module 'close'.
34215         * modules/close: New file.
34216         * lib/unistd.in.h (close): Move declaration out of the
34217         FCHDIR_REPLACEMENT scope.
34218         (_gl_unregister_fd): New declaration.
34219         * lib/close.c: New file.
34220         * lib/fchdir.c (rpl_close): Remove function.
34221         * m4/close.m4: New file.
34222         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
34223         close.
34224         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
34225         REPLACE_CLOSE.
34226         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
34227         REPLACE_CLOSE.
34228         * modules/fchdir (Depends-on): Add close.
34230 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
34231             Bruno Haible  <bruno@clisp.org>
34233         * lib/fcntl.in.h (open): Simplify conditionals.
34234         (_gl_register_fd): New declaration.
34235         * lib/fchdir.c (rpl_open): Remove function.
34236         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
34237         also.
34238         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
34239         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
34240         open.
34242 2008-10-09  Jim Meyering  <meyering@redhat.com>
34244         GNUmakefile: use the more name-space-friendly "_version"
34245         * top/GNUmakefile (_dummy): Update.
34246         (_version): Rename from "version".
34248 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
34249             Bruno Haible  <bruno@clisp.org>
34251         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
34252         rpl_close.
34253         (_gl_register_fd): New function, extracted from rpl_open.
34254         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
34255         (rpl_open, rpl_opendir): Use _gl_register_fd.
34257 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
34259         Fix organization of 'open' replacement.
34260         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
34261         (gl_FUNC_OPEN): Use it.
34262         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
34264 2008-10-08  Bruno Haible  <bruno@clisp.org>
34266         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
34268 2008-10-08  Simon Josefsson  <simon@josefsson.org>
34270         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
34271         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
34272         listen).
34274 2008-10-08  Eric Blake  <ebb9@byu.net>
34276         GNUmakefile: add 'make version' target
34277         * top/GNUmakefile (_curr-ver): Split version update rules...
34278         (version): ...into a target.
34280 2008-10-07  Bruno Haible  <bruno@clisp.org>
34282         Use a more portable replacement expression for -0.0L.
34283         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
34284         instead of -0.0L. Fix m4 quotation.
34286         * tests/test-signbit.c: Include <float.h>.
34287         (minus_zero): New variable.
34288         (test_signbitl): Use minus_zero instead of -zero.
34289         * modules/signbit-tests (Depends-on): Add float.
34291         * tests/test-ceill.c: Include <float.h>.
34292         (zero): Remove variable.
34293         (minus_zero): New variable.
34294         (main): Use minus_zero instead of -zero.
34295         * modules/ceill-tests (Depends-on): Add float.
34297         * tests/test-floorl.c: Include <float.h>.
34298         (zero): Remove variable.
34299         (minus_zero): New variable.
34300         (main): Use minus_zero instead of -zero.
34301         * modules/floorl-tests (Depends-on): Add float.
34303         * tests/test-roundl.c: Include <float.h>.
34304         (zero): Remove variable.
34305         (minus_zero): New variable.
34306         (main): Use minus_zero instead of -zero.
34307         * modules/roundl-tests (Depends-on): Add float.
34309         * tests/test-truncl.c: Include <float.h>.
34310         (zero): Remove variable.
34311         (minus_zero): New variable.
34312         (main): Use minus_zero instead of -zero.
34313         * modules/truncl-tests (Depends-on): Add float.
34315         * tests/test-frexpl.c (zero): Remove variable.
34316         (minus_zero): New variable.
34317         (main): Use minus_zero instead of -zero.
34318         * modules/frexpl-tests (Depends-on): Add float.
34320         * tests/test-isnan.c (zerol): Remove variable.
34321         (minus_zerol): New variable.
34322         (test_long_double): Use minus_zerol instead of -zerol.
34323         * modules/isnan-tests (Depends-on): Add float.
34325         * tests/test-isnanl.h (zero): Remove variable.
34326         (minus_zero): New variable.
34327         (main): Use minus_zero instead of -zero.
34328         * modules/isnanl-nolibm-tests (Depends-on): Add float.
34329         * modules/isnanl-tests (Depends-on): Add float.
34331         * tests/test-ldexpl.c (zero): Remove variable.
34332         (minus_zero): New variable.
34333         (main): Use minus_zero instead of -zero.
34334         * modules/ldexpl-tests (Depends-on): Add float.
34336         * tests/test-snprintf-posix.h (zerol): Remove variable.
34337         (minus_zerol): New variable.
34338         (test_function): Use minus_zerol instead of -zerol.
34339         * modules/snprintf-posix-tests (Depends-on): Add float.
34340         * modules/vsnprintf-posix-tests (Depends-on): Add float.
34342         * tests/test-sprintf-posix.h (zerol): Remove variable.
34343         (minus_zerol): New variable.
34344         (test_function): Use minus_zerol instead of -zerol.
34345         * modules/sprintf-posix-tests (Depends-on): Add float.
34346         * modules/vsprintf-posix-tests (Depends-on): Add float.
34348         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
34349         (minus_zerol): New variable.
34350         (test_function): Use minus_zerol instead of -zerol.
34351         * modules/vasnprintf-posix-tests (Depends-on): Add float.
34353         * tests/test-vasprintf-posix.c (zerol): Remove variable.
34354         (minus_zerol): New variable.
34355         (test_function): Use minus_zerol instead of -zerol.
34356         * modules/vasprintf-posix-tests (Depends-on): Add float.
34358 2008-10-07  Simon Josefsson  <simon@josefsson.org>
34360         * MODULES.html.sh (Support for building documentation): Mention
34361         pmccabe2html.  Sort entries.
34363         Add pmccabe2html module, from gnupdf.
34364         * build-aux/pmccabe.css: New file.
34365         * build-aux/pmccabe2html: New file.
34366         * m4/pmccabe2html.m4: New file.
34367         * modules/pmccabe2html: New file.
34369 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
34371         flock: new module
34372         * MODULES.html.sh: Add to list of modules.
34373         * lib/flock.c: flock implementation for Windows and Unix systems
34374         which have fcntl.
34375         * doc/glibc-functions/flock.texi: Update documentation.
34376         * lib/sys_file.in.h: <sys/file.h> header file.
34377         * m4/flock.m4: M4 macros.
34378         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
34379         * modules/flock: flock module.
34380         * modules/flock-tests: flock tests module.
34381         * modules/sys_file: sys/file.h module.
34382         * tests/test-flock.c: test suite for flock.
34384 2008-10-06  Jim Meyering  <meyering@redhat.com>
34386         bootstrap: check for LT_INIT more portably still ;-)
34387         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
34388         Spotted by Bruno Haible.
34390 2008-10-06  Eric Blake  <ebb9@byu.net>
34392         test-signbit: avoid tripping Irix cc bug on -0.0L
34393         * tests/test-signbit.c (minus_zerol): Delete, and replace with
34394         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
34395         entire testsuite consistent and avoids an Irix 6.2 bug.
34397 2008-10-05  Bruno Haible  <bruno@clisp.org>
34398             Jim Meyering  <jim@meyering.net>
34400         Add an option for ignoring EPIPE during close_stdout.
34401         * lib/closeout.h: Include <stdbool.h>.
34402         (close_stdout_set_ignore_EPIPE): New declaration.
34403         * lib/closeout.c: Include <stdbool.h>.
34404         (ignore_EPIPE): New variable.
34405         (close_stdout_set_ignore_EPIPE): New function.
34406         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
34407         * lib/close-stream.c (close_stream): Mention the possible EPIPE
34408         failure.
34409         * modules/closeout (Depends-on): Add stdbool.
34411 2008-10-05  Bruno Haible  <bruno@clisp.org>
34413         * modules/accept: New file.
34414         * modules/bind: New file.
34415         * modules/connect: New file.
34416         * modules/getpeername: New file.
34417         * modules/getsockname: New file.
34418         * modules/getsockopt: New file.
34419         * modules/listen: New file.
34420         * modules/recv: New file.
34421         * modules/recvfrom: New file.
34422         * modules/send: New file.
34423         * modules/sendto: New file.
34424         * modules/setsockopt: New file.
34425         * modules/socket: New file.
34426         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
34427         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
34428         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
34429         the particular module is requested. Add a link warning when the
34430         particular module is not requested.
34431         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
34432         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
34433         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
34434         the particular module is requested.
34435         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
34436         gl_SYS_SOCKET_H_DEFAULTS): New macros.
34437         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
34438         * modules/sys_socket (Depends-on): Add link-warning.
34439         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
34440         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
34441         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
34442         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
34443         GL_LINK_WARNING.
34444         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
34445         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
34446         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
34447         * doc/posix-functions/getpeername.texi: Mention the new module
34448         'getpeername'.
34449         * doc/posix-functions/getsockname.texi: Mention the new module
34450         'getsockname'.
34451         * doc/posix-functions/getsockopt.texi: Mention the new module
34452         'getsockopt'.
34453         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
34454         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
34455         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
34456         * doc/posix-functions/send.texi: Mention the new module 'send'.
34457         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
34458         * doc/posix-functions/setsockopt.texi: Mention the new module
34459         'setsockopt'.
34460         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
34461         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
34462         listen, connect, accept.
34463         * modules/select-tests (Depends-on): Likewise.
34465 2008-10-05  Bruno Haible  <bruno@clisp.org>
34467         * lib/winsock.c (strerror): Remove unused #undef.
34468         (rpl_close): Remove unused local variable.
34470         * modules/sys_socket (Depends-on); Add errno.
34472 2008-10-05  Bruno Haible  <bruno@clisp.org>
34474         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
34475         (select): Add a link warning when the 'select' module is not used.
34476         * modules/sys_select (Depends-on): Add link-warning.
34477         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
34478         Suggested by Paolo Bonzini.
34480 2008-10-05  Jim Meyering  <meyering@redhat.com>
34482         bootstrap: check for LT_INIT more portably
34483         * build-aux/bootstrap: Avoid using grep -E, since it's not
34484         portable enough.  Suggestion from Bruno Haible.
34486 2008-10-05  Bruno Haible  <bruno@clisp.org>
34488         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
34489         as being fixed by gnulib.
34491 2008-10-05  Bruno Haible  <bruno@clisp.org>
34493         * modules/select-tests: New file, mostly copied from
34494         modules/sys_select-tests.
34495         * tests/test-select.c: New file, mostly copied from
34496         tests/test-sys_select.c.
34497         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
34498         * modules/sys_select-tests (Depends-on): Remove all dependencies.
34499         (Makefile.am): Remove test_sys_select_LDADD.
34501         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
34502         to an undefined symbol, for an error message.
34503         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
34504         (gl_SYS_SELECT_H_DEFAULTS): New macro.
34505         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
34506         winsock-select.c here.
34507         * modules/sys_select (Files): Remove lib/winsock-select.c.
34508         (Depends-on): Remove alloca.
34509         (Makefile.am): Substitute GNULIB_SELECT.
34510         * modules/select: New file.
34511         * doc/posix-functions/select.texi: Update.
34513 2008-10-05  Bruno Haible  <bruno@clisp.org>
34515         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
34516         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
34517         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
34518         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
34519         getdtablesize.
34520         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
34521         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
34523 2008-10-05  Bruno Haible  <bruno@clisp.org>
34525         * modules/getdtablesize-tests: New file.
34526         * tests/test-getdtablesize.c: New file.
34528         New module 'getdtablesize'.
34529         * lib/unistd.in.h (getdtablesize): New declaration.
34530         * lib/getdtablesize.c: New file.
34531         * m4/getdtablesize.m4: New file.
34532         * modules/getdtablesize: New file.
34533         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
34534         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
34535         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
34536         HAVE_GETDTABLESIZE.
34537         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
34539 2008-10-05  Bruno Haible  <bruno@clisp.org>
34541         * modules/sched (Makefile.am): Fix typo.
34542         Reported by Simon Josefsson.
34544 2008-10-05  Jim Meyering  <meyering@redhat.com>
34546         bootstrap: check for LT_INIT, too
34547         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
34548         are deprecated.  Suggestion from Ralf Wildenhues.
34550 2008-10-05  Bruno Haible  <bruno@clisp.org>
34552         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
34553         overriding them by ours.
34554         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
34556 2008-10-05  Jim Meyering  <meyering@redhat.com>
34558         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
34559         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
34560         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
34562 2008-10-04  Bruno Haible  <bruno@clisp.org>
34564         * modules/dup2 (License): Change to LGPLv2+.
34565         * modules/sleep (License): Likewise.
34566         * modules/perror (License): Likewise.
34567         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
34568         Blake.
34569         * modules/signal (License): Likewise.
34570         * modules/sigprocmask (License): Likewise.
34571         * modules/raise (License): Change to LGPLv2+, with approval by Jim
34572         Meyering.
34574 2008-10-04  Bruno Haible  <bruno@clisp.org>
34576         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
34577         Reported by Rainer Tammer <tammer@tammer.net>.
34579 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
34580             Bruno Haible  <bruno@clisp.org>
34582         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
34583         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
34584         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
34586 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
34588         filevercmp: new module
34589         * lib/filevercmp.h: New function filevercmp comparing version strings.
34590         * lib/filevercmp.c: Implementation of filevercmp function.
34591         * modules/filevercmp: Module metadata.
34592         * tests/test-filevercmp.c: Unit test for new module.
34593         * modules/filevercmp-tests: Unit test metadata.
34594         * MODULES.html.sh: Add filevercmp module.
34596 2008-10-03  Bruno Haible  <bruno@clisp.org>
34598         * lib/c-ctype.h: Add comment.
34599         Reported by Jim Meyering.
34601 2008-10-02  Bruno Haible  <bruno@clisp.org>
34603         * modules/posix_spawn-internal (Depends-on): Add 'open'.
34605 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
34607         * build-aux/bootstrap: Allow renaming bootstrap, and change the
34608         name of bootstrap.conf accordingly.
34610 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
34612         * build-aux/bootstrap: Install git-merge-changelog configuration
34613         items into .gitconfig if needed.
34615 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
34617         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
34618         git repository, and initialize/update it accordingly.
34620 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
34622         * modules/fsync-tests: New file.
34623         * tests/test-fsync.c: New file.
34625         New module 'fsync'.
34626         * lib/fsync.c: New file.
34627         * m4/fsync.m4: New file.
34628         * modules/fsync: New file.
34629         * lib/unistd.in.h (fsync): New declaration.
34630         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
34631         GNULIB_FSYNC and HAVE_FSYNC.
34632         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
34633         * MODULES.html.sh (posix_functions): Add fsync.
34634         * doc/posix-functions/fsync.texi: Mention the new module.
34636 2008-10-02  Jim Meyering  <meyering@redhat.com>
34638         fts.c: sync with similar code from coreutils' remove.c
34639         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
34640         Guard also with "#if defined __linux__", since for now at least,
34641         this code is Linux-kernel-specific.
34643 2008-10-02  Jim Meyering  <meyering@redhat.com>
34645         fts: bug fixes
34646         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
34647         Include <sys/vfs.h>, not <sys/statfs.h>.
34649         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
34650         Include <sys/vfs.h>, not <sys/statfs.h>.
34652 2008-10-01  Bruno Haible  <bruno@clisp.org>
34654         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
34655         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
34656         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
34657         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
34658         * doc/posix-functions/posix_spawnp.texi: Likewise.
34659         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
34660         whether posix_spawn actually works.
34661         * m4/pipe.m4 (gl_PIPE): Likewise.
34662         * modules/execute (Files): Add m4/posix_spawn.m4.
34663         * modules/pipe (Files): Add m4/posix_spawn.m4.
34664         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
34666 2008-10-01  Jim Meyering  <meyering@redhat.com>
34668         remove trailing spaces
34669         * NEWS: Likewise.
34670         * lib/poll.c (poll): Likewise.
34671         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
34672         * lib/winsock.c (rpl_close): Likewise.
34673         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
34674         * modules/yield: Likewise.
34675         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
34676         * tests/test-sys_select.c (connect_to_socket): Likewise.
34678         fts.c: adjust a new interface to be more generally useful
34679         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
34680         (fts_build): Adjust caller.
34682 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
34684         * modules/cond-tests: New file.
34685         * tests/test-cond.c: New file.
34687 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
34688             Bruno Haible  <bruno@clisp.org>
34690         * modules/cond (Dependencies): Add errno, time.
34691         * lib/glthread/cond.h: Include <time.h>.
34692         (gl_cond_define, gl_cond_define_initialized): Use the same definition
34693         across platforms.
34695 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
34696             Bruno Haible  <bruno@clisp.org>
34698         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
34700 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
34701             Bruno Haible  <bruno@clisp.org>
34703         * modules/tls-tests (Depends-on): Add thread, yield.
34704         (configure.ac): Remove all checks.
34705         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
34706         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
34707         gl_thread_self): Remove definitions. Include glthread/thread.h and
34708         glthread/yield.h instead.
34709         (test_tls): Pass an additional NULL argument to gl_thread_join.
34711 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
34712             Bruno Haible  <bruno@clisp.org>
34714         * modules/lock-tests (Depends-on): Add thread, yield.
34715         (configure.ac): Remove all checks.
34716         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
34717         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
34718         gl_thread_self): Remove definitions. Include glthread/thread.h and
34719         glthread/yield.h instead.
34720         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
34721         additional NULL argument to gl_thread_join.
34723 2008-09-30  Bruno Haible  <bruno@clisp.org>
34725         Fix the Win32 implementation of the 'thread' module.
34726         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
34727         pointer type.
34728         (gl_thread_self): Invoke gl_thread_self_func.
34729         (gl_thread_self_func): New declaration.
34730         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
34731         (do_init_self_key, init_self_key): New functions.
34732         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
34733         Remove some fields.
34734         (running_threads, running_lock): Remove variables.
34735         (get_current_thread_handle): New function.
34736         (gl_thread_self_func, wrapper_func, glthread_create_func,
34737         glthread_join_func, gl_thread_exit_func): Largely rewritten and
34738         simplified.
34740 2008-09-30  Bruno Haible  <bruno@clisp.org>
34742         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
34743         files.
34745 2008-09-30  Jim Meyering  <meyering@redhat.com>
34747         fts.m4: correct the test for statfs.f_type
34748         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
34749         when checking for statfs.f_type.
34751 2008-09-15  Simon Josefsson  <simon@josefsson.org>
34753         tests: avoid some compiler warnings
34754         * tests/test-memchr.c (main): Pass NULL indirectly.
34755         * tests/test-getdate.c (main): Remove unused variable 'ret'.
34757 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
34759         getdate.y: disallow countable dayshifts like "4 yesterday ago"
34760         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
34761         exactly specified dayshifts.
34762         (dayshift): New rule.
34763         (rel): Add dayshift.
34764         (relative_time_table) [tomorrow, yesterday, today, now]:
34765         Use tDAY_SHIFT in place of tDAY_UNIT.
34766         * tests/test-getdate.c: Add tests for now-disallowed countable
34767         dayshifts, e.g., "4 yesterday ago".
34769 2008-09-29  Bruno Haible  <bruno@clisp.org>
34771         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
34772         * tests/test-posix_spawn1.in.sh: Renamed from
34773         tests/test-posix_spawn.in.sh.
34774         * tests/test-posix_spawn2.c: New file.
34775         * tests/test-posix_spawn2.in.sh: New file.
34776         * modules/posix_spawnp-tests (Files): Update.
34777         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
34779 2008-09-29  Bruno Haible  <bruno@clisp.org>
34781         Propagate effects of putenv/setenv/unsetenv to child processes.
34782         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
34783         * lib/pipe.c (create_pipe): Likewise.
34785 2008-09-29  Bruno Haible  <bruno@clisp.org>
34787         Enable use of shell scripts as executables in mingw.
34788         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
34789         run the program as a shell script.
34790         * lib/pipe.c (create_pipe): Likewise.
34791         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
34792         resulting array.
34794 2008-09-29  Eric Blake  <ebb9@byu.net>
34796         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
34798 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
34800         * doc/posix-functions/accept.texi: Update mingw problems.
34801         * doc/posix-functions/bind.texi: Update mingw problems.
34802         * doc/posix-functions/close.texi: Update mingw problems.
34803         * doc/posix-functions/connect.texi: Update mingw problems.
34804         * doc/posix-functions/getpeername.texi: Update mingw problems.
34805         * doc/posix-functions/getsockname.texi: Update mingw problems.
34806         * doc/posix-functions/getsockopt.texi: Update mingw problems.
34807         * doc/posix-functions/ioctl.texi: Update mingw problems.
34808         * doc/posix-functions/listen.texi: Update mingw problems.
34809         * doc/posix-functions/recv.texi: Update mingw problems.
34810         * doc/posix-functions/recvfrom.texi: Update mingw problems.
34811         * doc/posix-functions/select.texi: Update mingw problems.
34812         * doc/posix-functions/send.texi: Update mingw problems.
34813         * doc/posix-functions/sendto.texi: Update mingw problems.
34814         * doc/posix-functions/setsockopt.texi: Update mingw problems.
34815         * doc/posix-functions/socket.texi: Update mingw problems.
34817 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
34818             Bruno Haible  <bruno@clisp.org>
34820         * lib/sys_select.in.h: Include sys/time.h.
34821         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
34822         * modules/sys_select: Depend on sys_time.
34823         * tests/test-sys_select.c: Test that sys/select.h defines struct
34824         timeval fully.
34826 2008-09-29  Bruno Haible  <bruno@clisp.org>
34828         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
34829         * lib/sys_select.in.h: Likewise.
34831 2008-09-29  Bruno Haible  <bruno@clisp.org>
34833         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
34835 2008-09-29  Bruno Haible  <bruno@clisp.org>
34837         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
34838         Set LIBSOCKET instead of augmenting LIBS.
34839         * modules/sockets (Link): New section.
34840         * modules/sockets-tests (test_sockets_LDADD): New variable.
34841         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
34842         * modules/poll-tests (test_poll_LDADD): New variable.
34843         * NEWS: Document the change.
34845 2008-09-29  Bruno Haible  <bruno@clisp.org>
34847         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
34848         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
34849         ARPA_INET_H directly.
34850         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
34852 2008-09-28  Bruno Haible  <bruno@clisp.org>
34854         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
34855         from gl_HEADER_SYS_SOCKET.
34856         (gl_HEADER_SYS_SOCKET): Invoke it.
34857         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
34859 2008-09-28  Bruno Haible  <bruno@clisp.org>
34861         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
34862         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
34863         Needed on OSF/1 4.0.
34865 2008-09-28  Bruno Haible  <bruno@clisp.org>
34867         Override open more carefully.
34868         * lib/open.c (orig_open): New function.
34869         (rpl_open): Use orig_open instead of open.
34870         * lib/fcntl.in.h: Add special invocation convention.
34871         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
34872         (gl_FUNC_OPEN): Invoke it.
34874         Override freopen more carefully.
34875         * lib/freopen.c (orig_freopen): New function.
34876         (rpl_freopen): Use orig_freopen instead of freopen.
34877         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
34878         (gl_FUNC_FREOPEN): Invoke it.
34880         Override fopen more carefully.
34881         * lib/fopen.c (orig_fopen): New function.
34882         (rpl_fopen): Use orig_fopen instead of fopen.
34883         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
34884         (gl_FUNC_FOPEN): Invoke it.
34885         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
34887 2008-09-28  Bruno Haible  <bruno@clisp.org>
34889         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
34890         SIGPIPE.
34892 2008-09-28  Bruno Haible  <bruno@clisp.org>
34894         * tests/test-sigaction.c (handler, main): Disable the check whether
34895         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
34896         glibc systems with LinuxThreads.
34898 2008-09-28  Bruno Haible  <bruno@clisp.org>
34900         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
34902         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
34903         with AIX xlc.
34904         * lib/fcntl.in.h (open): Likewise.
34905         Reported by Rainer Tammer <tammer@tammer.net>.
34907 2008-09-28  Bruno Haible  <bruno@clisp.org>
34909         * modules/posix_spawnp-tests: New file.
34910         * tests/test-posix_spawn.c: New file.
34911         * tests/test-posix_spawn.in.sh: New file.
34913         New module 'posix_spawnp'.
34914         * modules/posix_spawnp: New file.
34915         * lib/spawnp.c: New file, from GNU libc with modifications.
34916         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
34918         New module 'posix_spawn'.
34919         * modules/posix_spawn: New file.
34920         * lib/spawn.c: New file, from GNU libc with modifications.
34921         * doc/posix-functions/posix_spawn.texi: Mention the new module.
34923         New module 'posix_spawnattr_destroy'.
34924         * modules/posix_spawnattr_destroy: New file.
34925         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
34926         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
34927         module.
34929         New module 'posix_spawnattr_setsigmask'.
34930         * modules/posix_spawnattr_setsigmask: New file.
34931         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
34932         modifications.
34933         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
34934         new module.
34936         New module 'posix_spawnattr_getsigmask'.
34937         * modules/posix_spawnattr_getsigmask: New file.
34938         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
34939         modifications.
34940         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
34941         new module.
34943         New module 'posix_spawnattr_setsigdefault'.
34944         * modules/posix_spawnattr_setsigdefault: New file.
34945         * lib/spawnattr_setdefault.c: New file, from GNU libc with
34946         modifications.
34947         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
34948         new module.
34950         New module 'posix_spawnattr_getsigdefault'.
34951         * modules/posix_spawnattr_getsigdefault: New file.
34952         * lib/spawnattr_getdefault.c: New file, from GNU libc with
34953         modifications.
34954         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
34955         new module.
34957         New module 'posix_spawnattr_setschedpolicy'.
34958         * modules/posix_spawnattr_setschedpolicy: New file.
34959         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
34960         modifications.
34961         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
34962         new module.
34964         New module 'posix_spawnattr_getschedpolicy'.
34965         * modules/posix_spawnattr_getschedpolicy: New file.
34966         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
34967         modifications.
34968         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
34969         new module.
34971         New module 'posix_spawnattr_setschedparam'.
34972         * modules/posix_spawnattr_setschedparam: New file.
34973         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
34974         modifications.
34975         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
34976         new module.
34978         New module 'posix_spawnattr_getschedparam'.
34979         * modules/posix_spawnattr_getschedparam: New file.
34980         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
34981         modifications.
34982         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
34983         new module.
34985         New module 'posix_spawnattr_setpgroup'.
34986         * modules/posix_spawnattr_setpgroup: New file.
34987         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
34988         modifications.
34989         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
34990         module.
34992         New module 'posix_spawnattr_getpgroup'.
34993         * modules/posix_spawnattr_getpgroup: New file.
34994         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
34995         modifications.
34996         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
34997         module.
34999         New module 'posix_spawnattr_setflags'.
35000         * modules/posix_spawnattr_setflags: New file.
35001         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
35002         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
35003         module.
35005         New module 'posix_spawnattr_getflags'.
35006         * modules/posix_spawnattr_getflags: New file.
35007         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
35008         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
35009         module.
35011         New module 'posix_spawnattr_init'.
35012         * modules/posix_spawnattr_init: New file.
35013         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
35014         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
35015         module.
35017         New module 'posix_spawn_file_actions_destroy'.
35018         * modules/posix_spawn_file_actions_destroy: New file.
35019         * lib/spawn_faction_destroy.c: New file, from GNU libc with
35020         modifications.
35021         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
35022         the new module.
35024         New module 'posix_spawn_file_actions_addopen'.
35025         * modules/posix_spawn_file_actions_addopen: New file.
35026         * lib/spawn_faction_addopen.c: New file, from GNU libc with
35027         modifications.
35028         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
35029         the new module.
35031         New module 'posix_spawn_file_actions_adddup2'.
35032         * modules/posix_spawn_file_actions_adddup2: New file.
35033         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
35034         modifications.
35035         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
35036         the new module.
35038         New module 'posix_spawn_file_actions_addclose'.
35039         * modules/posix_spawn_file_actions_addclose: New file.
35040         * lib/spawn_faction_addclose.c: New file, from GNU libc with
35041         modifications.
35042         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
35043         the new module.
35045         New module 'posix_spawn_file_actions_init'.
35046         * modules/posix_spawn_file_actions_init: New file.
35047         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
35048         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
35049         new module.
35051         New module 'posix_spawn-internal'.
35052         * modules/posix_spawn-internal: New file.
35053         * lib/spawn_int.h: New file, from GNU libc with modifications.
35054         * lib/spawni.c: New file, from GNU libc with modifications.
35055         * m4/posix_spawn.m4: New file.
35057         New module 'spawn'.
35058         * modules/spawn: New file.
35059         * lib/spawn.in.h: New file, from GNU libc with modifications.
35060         * m4/spawn_h.m4: New file.
35061         * doc/posix-headers/spawn.texi: Mention the new module.
35063 2008-09-28  Bruno Haible  <bruno@clisp.org>
35065         * modules/sched-tests: New file.
35066         * tests/test-sched.c: New file.
35068         New module 'sched'.
35069         * modules/sched: New file.
35070         * lib/sched.in.h: New file.
35071         * m4/sched_h.m4: New file.
35072         * doc/posix-headers/sched.texi: Mention the new module.
35074 2008-09-27  Eric Blake  <ebb9@byu.net>
35076         Fix previous patch, and tweak references to $0.
35077         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
35078         (func_version, func_gnulib_dir): Don't call this program
35079         gnulib-tool.
35080         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
35081         with using $0 in function.
35082         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
35083         (func_fatal_error): Reuse the name the user invoked us with.
35085 2008-09-27  Bruno Haible  <bruno@clisp.org>
35087         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
35088         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
35089         (gl_ICONV_H): Not here.
35090         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
35091         instead of assigning ICONV_H directly.
35093         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
35094         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
35095         WCHAR_H directly.
35097 2008-09-27  Bruno Haible  <bruno@clisp.org>
35099         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
35100         * modules/arpa_inet (Depends-on): Add link-warning.
35101         (Makefile.am): Insert the definition of GL_LINK-WARNING.
35102         * modules/unistd (Makefile.am): Likewise.
35104 2008-09-26  Bruno Haible  <bruno@clisp.org>
35106         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
35107         variables.
35108         (func_version): Essentially copied from gnulib-tool.
35109         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
35110         func_readlink): Copied from gnulib-tool.
35112 2008-09-26  Bruno Haible  <bruno@clisp.org>
35114         * gnulib-tool (func_version): Change directory to $gnulib_dir before
35115         invoking git-version-gen.
35117 2008-09-26  Bruno Haible  <bruno@clisp.org>
35119         * posix-modules: Update to directory names changed on 2008-01-19.
35120         Remove commas in output before splitting into words. No more need to
35121         avoid 'ftruncate' since 2007-02-19.
35123 2008-09-26  Bruno Haible  <bruno@clisp.org>
35125         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
35127 2008-09-26  Bruno Haible  <bruno@clisp.org>
35129         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
35130         * modules/fwriteerror (Depends-on): Add errno.
35132 2008-09-26  Bruno Haible  <bruno@clisp.org>
35134         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
35135         * tests/test-vc-list-files-cvs.sh: Likewise.
35137 2008-09-26  Bruno Haible  <bruno@clisp.org>
35139         * doc/posix-headers/sys_resource.texi: Reorder items.
35141 2008-09-26  Jim Meyering  <meyering@redhat.com>
35143         fts: tweak inode comparison function
35144         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
35145         inode numbers, as documented.
35147         fts: sort dirent entries on inode number before traversing
35148         This avoids a quadratic, seek-related performance penalty when
35149         operating on a directory containing many entries (measurable at 10k;
35150         3.5 hours at 2 million entries with a cold cache) on certain types
35151         of file systems, including ext3 and ext4, but not tmpfs.
35152         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
35153         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
35154         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
35155         (fs_handles_readdir_ordered_dirents_efficiently): New function.
35156         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
35157         (fts_build): Set the stat.st_ino member from D_INO.
35158         If it is likely to be useful, sort dirent entries on inode number.
35160         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
35161         and the struct statfs.f_type member.
35162         * modules/fts (Depends-on): Add d-ino.
35164 2008-09-26  Bruno Haible  <bruno@clisp.org>
35166         * modules/sigpipe-die (Depends-on): Add sigpipe.
35168         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
35169         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
35170         and GNULIB_STDIO_H_SIGPIPE are set.
35171         * lib/stdio-write.c: New file.
35172         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
35173         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
35174         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
35175         REPLACE_STDIO_WRITE_FUNCS.
35176         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
35177         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
35178         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
35179         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
35180         * modules/stdio (Files): Add lib/stdio-write.c.
35181         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
35182         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
35183         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
35184         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
35185         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
35186         REPLACE_FPRINTF_POSIX.
35187         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
35188         REPLACE_PRINTF_POSIX.
35189         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
35190         REPLACE_VFPRINTF_POSIX.
35191         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
35192         REPLACE_VPRINTF_POSIX.
35193         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
35194         SIGPIPE issue.
35195         * doc/posix-functions/fputc.texi: Likewise.
35196         * doc/posix-functions/fputs.texi: Likewise.
35197         * doc/posix-functions/fwrite.texi: Likewise.
35198         * doc/posix-functions/printf.texi: Likewise.
35199         * doc/posix-functions/putc.texi: Likewise.
35200         * doc/posix-functions/putchar.texi: Likewise.
35201         * doc/posix-functions/puts.texi: Likewise.
35202         * doc/posix-functions/vfprintf.texi: Likewise.
35203         * doc/posix-functions/vprintf.texi: Likewise.
35205         * modules/safe-write (Depends-on): Add write.
35207         * modules/sigpipe-tests: New file.
35208         * tests/test-sigpipe.c: New file.
35209         * tests/test-sigpipe.sh: New file.
35211         * modules/write: New file.
35212         * lib/unistd.in.h: Include <sys/types.h>.
35213         (write): New declaration.
35214         * lib/write.c: New file.
35215         * m4/write.m4: New file.
35216         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
35217         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
35218         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
35219         GNULIB_WRITE, REPLACE_WRITE.
35220         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
35221         and the SIGPIPE issue.
35223         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
35224         (raise): New declaration.
35225         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
35226         (ext_signal): New function.
35227         (rpl_raise): New function.
35228         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
35229         GNULIB_SIGNAL_H_SIGPIPE.
35230         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
35231         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
35233         * modules/sigpipe: New file.
35234         * m4/sigpipe.m4: New file.
35236 2008-09-25  Derek Price  <derek@ximbiot.com>
35237             Bruno Haible  <bruno@clisp.org>
35239         * gnulib-tool (func_import): Report all license incompatibilities, not
35240         just the first one.
35242 2008-09-25  Bruno Haible  <bruno@clisp.org>
35244         * gnulib-tool (func_import): When computing the edits, consider not
35245         only the Makefile.ams that exist but also those that will be generated.
35247 2008-09-25  Simon Josefsson  <simon@josefsson.org>
35249         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
35250         fixes gnulib-tool --test warning about duplicate dependency.
35252 2008-09-25  Bruno Haible  <bruno@clisp.org>
35254         * gnulib-tool: Don't ask the user to perform edits in the generated
35255         Makefile.ams.
35256         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
35257         apply to the Makefile.am being generated.
35258         (func_emit_tests_Makefile_am): Execute edits that apply to the
35259         Makefile.am being generated.
35260         (func_import): Setup list of Makefile.am edits before emitting the
35261         Makefile.ams, not at the end.
35262         (func_create_testdir): Update.
35263         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
35265 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35267         * gnulib-tool (func_import): Store the --tests-base option in the
35268         comment in gnulib-cache.m4.
35270 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
35272         * NEWS: Document increased portability that sys_select now provides.
35274         * lib/sys_select.in.h: Install select wrapper.
35275         * lib/sys_socket.in.h: Use more descriptive name when there is no
35276         select wrapper.
35277         * lib/winsock-select.c: New.
35278         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
35279         Require gl_HEADER_SYS_SOCKET.
35280         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
35281         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
35282         * tests/test-sys_select.c: Add functional tests.
35284 2008-09-24  Eric Blake  <ebb9@byu.net>
35286         open, fopen: close fd leak in last patch
35287         * lib/open.c (rpl_open): Close fd before returning error.
35288         * lib/fopen.c (rpl_fopen): Close fd before returning error.
35289         * doc/posix-functions/open.texi (open): Document that Irix also
35290         has the bug.
35291         * doc/posix-functions/fopen.texi (fopen): Likewise.
35292         Reported by Paolo Bonzini.
35294 2008-09-24  Bruno Haible  <bruno@clisp.org>
35296         Ensure that a filename ending in a slash cannot be used to access a
35297         non-directory.
35298         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
35299         to check whether it's really a directory.
35300         * lib/fopen.c: Include fcntl.h, unistd.h.
35301         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
35302         and fdopen().
35303         * modules/fopen (Depends-on): Add unistd.
35304         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
35305         * tests/test-fopen.c (main): Likewise.
35306         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
35307         * doc/posix-functions/fopen.texi: Likewise.
35308         Reported by Eric Blake.
35310 2008-09-23  Eric Blake  <ebb9@byu.net>
35312         c-stack: avoid compiler optimizations when provoking overflow
35313         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
35314         recursion harder to optimize, to ensure a stack overflow occurs.
35315         * tests/test-c-stack.c (recurse): Likewise.
35316         Borrowed from libsigsegv.
35318         c-stack: work around Irix sigaltstack bug
35319         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
35320         whether sigaltstack uses wrong end of stack_t (copied in part from
35321         libsigsegv).
35322         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
35323         Irix bug, without requiring an over-allocation.
35324         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
35325         bug.
35327         fopen: document mingw bug on directories
35328         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
35329         not allowing a stream visiting a directory, even though reading
35330         from such a stream is not portable.
35332 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
35334         * lib/poll.c: Rewrite.
35335         * modules/poll: Depend on alloca.
35337 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
35339         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
35340         instead define prototypes for a full set of wrappers.  Ensure
35341         that Cygwin does not use the compatibility code, which is only
35342         for MinGW.
35343         * lib/winsock.c: New.
35344         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
35345         * modules/sys_socket: Add lib/winsock.c.
35347         * modules/poll-tests: Add errno and perror.
35348         * tests/test-poll.c: Use ioctl, not ioctlsocket.
35350 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
35352         * tests/test-poll.c: Downgrade minimum needed Winsock version.
35354 2008-09-23  Bruno Haible  <bruno@clisp.org>
35356         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
35357         * doc/glibc-functions/*: Likewise.
35359 2008-09-23  Simon Josefsson  <simon@josefsson.org>
35361         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
35362         success.
35364 2008-09-22  Eric Blake  <ebb9@byu.net>
35365             Bruno Haible  <bruno@clisp.org>
35367         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
35368         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
35369         supply %A but mishandle pseudo-NaN.
35370         Reported by Simon Josefsson.
35372 2008-09-21  Bruno Haible  <bruno@clisp.org>
35374         * tests/test-lock.c (main): Tweak skip message.
35375         * tests/test-tls.c (main): Likewise.
35377 2008-09-21  Bruno Haible  <bruno@clisp.org>
35379         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
35380         whether 'struct sigaction' has sa_sigaction here...
35381         (gl_PREREQ_SIG_HANDLER_H): ... not here.
35382         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
35384 2008-09-21  Bruno Haible  <bruno@clisp.org>
35386         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
35387         section.
35388         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
35389         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
35390         the new section.
35391         (Support for obsolete systems lacking POSIX:2001): New section.
35392         (String handling <string.h>): Move strdup to the new section.
35393         Suggested by Simon Josefsson and Paolo Bonzini.
35395 2008-09-21  Bruno Haible  <bruno@clisp.org>
35397         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
35398         exponents in %e and %g results on 'long double'. Needed for mingw's
35399         improved *printf functions.
35400         * tests/test-vasprintf-posix.c (test_function): Likewise.
35401         * tests/test-snprintf-posix.h (test_function): Likewise.
35402         * tests/test-sprintf-posix.h (test_function): Likewise.
35403         Reported by Eric Blake.
35405 2008-09-21  Bruno Haible  <bruno@clisp.org>
35407         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
35408         * tests/test-sprintf-posix.h (test_function): Likewise.
35410 2008-09-21  Bruno Haible  <bruno@clisp.org>
35412         * modules/getpass (Depends-on): Add strdup-posix.
35414         New module 'strdup-posix'.
35415         * modules/strdup-posix: New file.
35416         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
35417         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
35418         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
35419         REPLACE_STRDUP.
35420         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
35421         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
35422         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
35423         strdup-posix.
35425         * modules/strdup (Depends-on): Remove malloc-posix.
35427 2008-09-20  Bruno Haible  <bruno@clisp.org>
35429         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
35430         Wildenhues.
35432 2008-09-20  Bruno Haible  <bruno@clisp.org>
35434         Ensure that wint_t gets defined on IRIX 5.3.
35435         * lib/wchar.in.h (wint_t): Define if not defined by the system.
35436         * lib/wctype.in.h (wint_t): Likewise.
35437         (__wctype_wint_t): Remove type.
35438         (isw*): Use wint_t instead of __wctype_wint_t.
35439         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
35440         * modules/wchar (Files): Add m4/wint_t.m4.
35441         (Makefile.am): Substitute HAVE_WINT_T.
35442         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
35443         * tests/test-wctype.c: Check that wint_t is defined.
35444         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
35445         * doc/posix-headers/wctype.texi: Likewise.
35446         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35448 2008-09-18  Bruno Haible  <bruno@clisp.org>
35450         * gnulib-tool (func_exit): Update comment.
35452 2008-09-18  Simon Josefsson  <simon@josefsson.org>
35454         * modules/getaddrinfo (Depends-on): Remove strdup, this module
35455         assumes strdup exists and does not depend on strdup to return
35456         ENOMEM on out of memory conditions.
35458 2008-09-18  Bruno Haible  <bruno@clisp.org>
35460         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
35461         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
35462         digits for the exponent.
35464 2008-09-18  Jim Meyering  <meyering@redhat.com>
35465             Bruno Haible  <bruno@clisp.org>
35467         * lib/vasnprintf.c (decimal_point_char): Define also if
35468         NEED_PRINTF_INFINITE_LONG_DOUBLE.
35470 2008-09-16  Bruno Haible  <bruno@clisp.org>
35471         and Eric Blake  <ebb9@byu.net>
35473         vasnprintf: support Irix 5.3
35474         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
35475         that mishandle long double infinity.
35476         Reported by Tom G. Christensen.
35478 2008-09-16  Bruno Haible  <bruno@clisp.org>
35480         * doc/glibc-functions/scandir.texi: Mention the function is missing on
35481         Solaris 9.
35482         * doc/glibc-functions/alphasort.texi: Likewise.
35483         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
35485 2008-09-16  Jim Meyering  <meyering@redhat.com>
35487         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
35488         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
35489         a umask modification leak out of a subshell.  Otherwise, the
35490         opensolaris /bin/sh would be accepted and thus cause unwarranted
35491         failures in the coreutils test suite.
35493 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
35495         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
35496         to succeed.
35498 2008-09-16  Jim Meyering  <meyering@redhat.com>
35500         avoid spurious test failure when library is built without ACL support
35501         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
35502         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
35503         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
35504         * tests/test-copy-acl.sh: Likewise.
35506 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35508         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
35509         based on character occurrence counts.
35511 2008-09-15  Eric Blake  <ebb9@byu.net>
35513         tests: avoid some compiler warnings
35514         * tests/test-memchr.c (main): Pass NULL indirectly.
35515         * tests/test-closein.c (main): Avoid unused variable.
35517 2008-09-15  Bruno Haible  <bruno@clisp.org>
35519         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
35520         are missing on OpenBSD 4.0 individually.
35521         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
35523 2008-09-15  Bruno Haible  <bruno@clisp.org>
35525         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
35526         * doc/posix-functions/strerror.texi: Mention also Cygwin.
35527         * doc/posix-functions/perror.texi: Likewise.
35528         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
35529         is missing.
35530         Reported by Eric Blake.
35532         * lib/errno.in.h: Use replacement values >= 2000.
35533         Reported by Eric Blake.
35535 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35537         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
35538         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
35539         limit.
35540         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
35541         compareseq was aborted.
35543 2008-09-14  Bruno Haible  <bruno@clisp.org>
35545         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
35546         yvec_edit_count.
35547         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
35548         (fstrcmp_bounded): Simplify result computation accordingly.
35550 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35552         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
35553         (fstrcmp): Define in terms of fstrcmp_bounded.
35554         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
35555         lower_bound argument.
35556         Return quickly if the result is certainly < lower_bound.
35557         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
35559 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35561         * lib/diffseq.h (EARLY_ABORT): New macro.
35562         (compareseq): Change return type to bool. Return true when EARLY_ABORT
35563         evaluates to true.
35565 2008-09-14  Bruno Haible  <bruno@clisp.org>
35567         * modules/perror-tests: New file.
35568         * tests/test-perror.sh: New file.
35569         * tests/test-perror.c: New file.
35571         New module 'perror'.
35572         * lib/stdio.in.h (perror): New declaration.
35573         * lib/perror.c: New file.
35574         * m4/perror.m4: New file.
35575         * modules/perror: New file.
35576         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
35577         * doc/posix-functions/perror.texi: Mention the perror module.
35578         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
35579         REPLACE_PERROR.
35580         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
35581         REPLACE_PERROR.
35583 2008-09-14  Bruno Haible  <bruno@clisp.org>
35585         * modules/stdio (Makefile.am): Reorder to match the order in
35586         lib/stdio.in.h.
35587         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
35589 2008-09-13  Bruno Haible  <bruno@clisp.org>
35591         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
35593 2008-09-13  Bruno Haible  <bruno@clisp.org>
35595         Extend strerror to cover the added errno values.
35596         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
35597         (rpl_strerror): Provide error messages for the added errno values and
35598         for the WSA* values.
35599         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
35600         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
35601         strerror.
35602         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
35603         * modules/strerror (Depends-on): Add errno.
35604         * doc/posix-functions/strerror.texi: Document the change.
35605         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
35606         and EOVERFLOW.
35608 2008-09-13  Bruno Haible  <bruno@clisp.org>
35610         * modules/EOVERFLOW: Remove file.
35611         * m4/eoverflow.m4: Remove file.
35612         * modules/EOVERFLOW-tests: Remove file.
35613         * tests/test-EOVERFLOW.c: Remove file.
35614         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
35615         * modules/ftell (Depends-on): Likewise.
35616         * modules/getdelim (Depends-on): Likewise.
35617         * modules/getugroups (Depends-on): Likewise.
35618         * modules/poll (Depends-on): Likewise.
35619         * modules/snprintf (Depends-on): Likewise.
35620         * modules/sprintf-posix (Depends-on): Likewise.
35621         * modules/vasnprintf (Depends-on): Likewise.
35622         * modules/vasprintf (Depends-on): Likewise.
35623         * modules/vfprintf-posix (Depends-on): Likewise.
35624         * modules/vsnprintf (Depends-on): Likewise.
35625         * modules/vsprintf-posix (Depends-on): Likewise.
35626         * modules/xvasprintf (Depends-on): Likewise.
35627         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
35628         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
35629         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
35630         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
35631         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
35632         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
35633         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
35634         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
35635         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
35636         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
35637         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
35638         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
35639         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
35640         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
35641         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
35642         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
35643         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
35644         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
35645         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
35646         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
35647         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
35648         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
35649         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
35650         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
35651         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
35652         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
35653         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
35654         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
35655         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
35656         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
35657         * MODULES.html.sh: Remove EOVERFLOW.
35658         * NEWS: Mention the change.
35660 2008-09-13  Bruno Haible  <bruno@clisp.org>
35662         * modules/errno-tests: New file.
35663         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
35665         * lib/errno.in.h: New file.
35666         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
35667         * modules/errno: New file.
35668         * doc/posix-headers/errno.texi: Update documentation.
35669         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
35671 2008-09-13  Bruno Haible  <bruno@clisp.org>
35673         * tests/test-poll.c: Use #if for native Windows, rather than testing
35674         __MSVCRT__.
35676 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35677             Bruno Haible  <bruno@clisp.org>
35679         * lib/glob.c: Don't include <pwd.h> on native Windows.
35680         (WINDOWS32): New macro.
35681         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
35683 2008-09-13  Bruno Haible  <bruno@clisp.org>
35685         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
35686         (ETIMEDOUT): Remove macro.
35687         (glthread_cond_timedwait_multithreaded): New declaration.
35688         (glthread_cond_timedwait): Use it.
35689         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
35690         (glthread_cond_timedwait_multithreaded): New function.
35692 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
35694         * modules/poll-tests: Do not check for io.h.
35695         * tests/test-poll.c: Check for __MSVCRT__ instead.
35697 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
35699         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
35700         * modules/poll-tests: Add inet_pton, stdbool, sockets.
35701         * tests/test-poll.c: Use them.  Use _pipe on Windows.
35703 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
35705         * modules/poll-tests: New.
35706         * tests/test-poll.c: New.
35708 2008-09-12  Eric Blake  <ebb9@byu.net>
35710         frexp: test for NetBSD failure on -0.0
35711         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
35712         not all, bugs from NetBSD 3.0 have been fixed.
35713         * doc/posix-functions/frexp.texi (frexp): Document bug.
35714         Reported by Thomas Klausner.
35716         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
35717         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
35718         literal -0.0.
35719         Reported by Jonathan C. Patschke <jp@centtech.com>.
35721 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35723         * lib/glthread/cond.h: Use dummy implementation also if
35724         USE_WIN32_THREADS.
35726 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35728         * modules/fnmatch-posix (License): Change to LGPLv2+.
35729         * modules/fnmatch-gnu (License): Likewise.
35731 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35733         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
35735 2008-09-11  Jim Meyering  <meyering@redhat.com>
35737         * users.txt: Add gtk-vnc.
35739 2008-09-08  Simon Josefsson  <simon@josefsson.org>
35741         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
35742         rotate amounts.
35744         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
35745         required for 16-bit and 8-bit rotates.
35746         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
35747         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
35748         UINT8_MAX instead of hard-coded constants.
35749         Suggested by Paul Eggert.
35751 2008-09-07  Bruno Haible  <bruno@clisp.org>
35753         * tests/test-striconveh.c (main): Check behaviour when converting from
35754         UTF-7.
35756         Make striconveh work better with stateful encodings.
35757         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
35758         that iconv does not increment the inptr when returning -1/EINVAL.
35760 2008-09-07  Bruno Haible  <bruno@clisp.org>
35762         * build-aux/config.rpath: Update according to libtool-2.2.6.
35763         * build-aux/config.libpath: Likewise.
35765 2008-09-06  Bruno Haible  <bruno@clisp.org>
35767         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
35768         * lib/freadptr.c (freadptr): Likewise.
35769         * lib/freadseek.c (freadptrinc): Likewise.
35770         Reported by Simon Josefsson.
35772 2008-09-06  Bruno Haible  <bruno@clisp.org>
35774         * modules/freadptr (License): Change to LGPLv2+.
35775         * modules/freadseek (License): Likewise.
35776         Suggested by Eric Blake.
35778         * modules/memchr2 (License): Change to LGPLv2+.
35779         Approved by Eric Blake.
35781 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35782             Bruno Haible  <bruno@clisp.org>
35784         Make gnulib-tool work with native 'sed' on AIX.
35785         * gnulib-tool (sed_noop): New variable.
35786         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
35787         func_add_or_update, func_create_testdir): Use it to initialize sed
35788         script variables.
35789         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
35791 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
35792             Bruno Haible  <bruno@clisp.org>
35794         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
35795         also works after #include directives.
35797 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
35799         getdate.y: reject an out-of-range timezone value
35800         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
35801         the range [-24...+24].  When specified with only one or two digits,
35802         * tests/test-getdate.c: Tests for the fix.
35803         * doc/getdate.texi: Document this change.
35805 2008-09-03  Bruno Haible  <bruno@clisp.org>
35807         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
35809 2008-09-02  Simon Josefsson  <simon@josefsson.org>
35811         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
35812         <bruce.korb@gmail.com> with ideas from Ben Pfaff
35813         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
35814         Blake <ebb9@byu.net>.
35816         * tests/test-bitrotate.c: Add more test vectors.
35818 2008-09-02  Eric Blake  <ebb9@byu.net>
35820         vasnprintf-posix: handle large precision via %.*d
35821         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
35822         when handling it ourselves.
35823         * tests/test-vasnprintf-posix.c (test_function): Add test.
35824         * tests/test-snprintf-posix.h (test_function): Likewise.
35825         * tests/test-sprintf-posix.h (test_function): Likewise.
35826         * tests/test-vasprintf-posix.c (test_function): Likewise.
35827         Reported by Alain Guibert.
35829 2008-09-01  Eric Blake  <ebb9@byu.net>
35831         c-stack: make configure-time check more robust
35832         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
35833         successful sigaction call.
35834         Reported by Tom G. Christensen.
35836 2008-09-01  Bruno Haible  <bruno@clisp.org>
35838         New module 'findprog-lgpl'.
35839         * modules/findprog-lgpl: New file.
35840         * lib/findprog-lgpl.c: New file.
35841         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
35842         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
35843         to decide whether to use strdup or xstrdup, concatenated_filename or
35844         xconcatenated_filename.
35846 2008-09-01  Bruno Haible  <bruno@clisp.org>
35848         Split module 'concat-filename' into 'concat-filename' (LGPL) and
35849         'xconcat-filename' (GPL).
35850         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
35851         (License): Change to LGPLv2+.
35852         * modules/xconcat-filename: New file.
35853         * lib/concat-filename.h (concatenated_filename): Change specification.
35854         (xconcatenated_filename): New declaration.
35855         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
35856         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
35857         memory situations.
35858         * lib/xconcat-filename.c: New file.
35859         * NEWS: Mention the change.
35860         * lib/findprog.c: Include concat-filename.h, not filename.h.
35861         (find_in_path): Use xconcatenated_filename instead of
35862         concatenated_filename.
35863         * lib/javacomp.c: Include concat-filename.h, not filename.h.
35864         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
35865         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
35866         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
35867         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
35868         instead of concatenated_filename.
35869         * lib/javaexec.c: Include concat-filename.h, not filename.h.
35870         (execute_java_class): Use xconcatenated_filename instead of
35871         concatenated_filename.
35872         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
35873         * modules/javacomp (Depends-on): Likewise.
35874         * modules/javaexec (Depends-on): Likewise.
35876 2008-09-01  Bruno Haible  <bruno@clisp.org>
35878         Split module 'filename' into 'filename' and 'concat-filename'.
35879         * modules/filename: Keep only lib/filename.h.
35880         (License): Change to LGPLv2+.
35881         * modules/concat-filename: New file, extracted from modules/filename.
35882         * lib/filename.h (concatenated_filename): Remove declaration.
35883         * lib/concat-filename.h: New file, extracted from lib/filename.h.
35884         * lib/concat-filename.c: Include concat-filename.h.
35885         * NEWS: Mention the change.
35887 2008-09-01  Simon Josefsson  <simon@josefsson.org>
35889         * lib/bitrotate.h (rotl8, rotr8): Add.
35891         * modules/bitrotate (configure.ac): Need
35892         AC_REQUIRE([AC_C_INLINE]).
35893         (Description): Mention stdint.h.  Reported by Bruno Haible
35894         <bruno@clisp.org>.
35896         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
35897         Paolo Bonzini <bonzini@gnu.org>.
35899 2008-08-31  Bruno Haible  <bruno@clisp.org>
35901         Assume Solaris specific bi-arch conventions on Solaris systems.
35902         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
35903         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
35904         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
35905         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
35906         like acl_libdirstem.
35907         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
35908         acl_libdirstem.
35909         * NEWS: Mention the change.
35910         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
35912 2008-08-31  Jim Meyering  <meyering@redhat.com>
35914         * lib/strftime.h: Add comments describing the two added arguments.
35916         remove duplicate #include directives
35917         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
35918         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
35920 2008-08-31  Bruno Haible  <bruno@clisp.org>
35922         New module 'sigpipe-die'.
35923         * modules/sigpipe-die: New file.
35924         * lib/sigpipe-die.h: New file.
35925         * lib/sigpipe-die.c: New file.
35926         * MODULES.html.sh (Signal handling): Add sigpipe-die.
35928 2008-08-31  Bruno Haible  <bruno@clisp.org>
35930         Don't override previously installed signal handlers.
35931         * lib/fatal-signal.c (saved_sigactions): New variable.
35932         (uninstall_handlers): Reset the signal to the saved handler, not
35933         to SIG_DFL (except when ignored).
35934         (install_handlers): Save the previous handlers.
35936 2008-08-30  Bruno Haible  <bruno@clisp.org>
35938         * gnulib-tool (func_reset_sigpipe): New function.
35939         (func_get_automake_snippet, func_modules_transitive_closure,
35940         func_import): Invoke it before a join command that reads from stdin,
35941         to avoid "echo: write error: Broken pipe" error messages on stderr.
35942         Reported by Sam Steingold <sds@gnu.org>.
35944 2008-08-30  Bruno Haible  <bruno@clisp.org>
35946         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
35947         Code copied from m4/open.m4.
35948         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
35949         access and the filename ends in a slash. Code copied from lib/open.c.
35950         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
35951         * tests/test-fopen.c (main): Check against bug with trailing slash.
35953 2008-08-29  Bruno Haible  <bruno@clisp.org>
35955         Avoid some "gcc -pedantic" warnings.
35956         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
35957         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
35958         * lib/dirent.in.h: Likewise.
35959         * lib/fcntl.in.h: Likewise.
35960         * lib/float.in.h: Likewise.
35961         * lib/iconv.in.h: Likewise.
35962         * lib/inttypes.in.h: Likewise.
35963         * lib/locale.in.h: Likewise.
35964         * lib/math.in.h: Likewise.
35965         * lib/netinet_in.in.h: Likewise.
35966         * lib/search.in.h: Likewise.
35967         * lib/signal.in.h: Likewise.
35968         * lib/stdarg.in.h: Likewise.
35969         * lib/stdint.in.h: Likewise.
35970         * lib/stdio.in.h: Likewise.
35971         * lib/stdlib.in.h: Likewise.
35972         * lib/string.in.h: Likewise.
35973         * lib/strings.in.h: Likewise.
35974         * lib/sys_select.in.h: Likewise.
35975         * lib/sys_socket.in.h: Likewise.
35976         * lib/sys_stat.in.h: Likewise.
35977         * lib/sys_time.in.h: Likewise.
35978         * lib/sysexits.in.h: Likewise.
35979         * lib/time.in.h: Likewise.
35980         * lib/unistd.in.h: Likewise.
35981         * lib/wchar.in.h: Likewise.
35982         * lib/wctype.in.h: Likewise.
35983         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
35984         * modules/fchdir (Makefile.am): Likewise.
35985         * modules/fcntl (Makefile.am): Likewise.
35986         * modules/float (Makefile.am): Likewise.
35987         * modules/iconv_open (Makefile.am): Likewise.
35988         * modules/inttypes (Makefile.am): Likewise.
35989         * modules/locale (Makefile.am): Likewise.
35990         * modules/math (Makefile.am): Likewise.
35991         * modules/netinet_in (Makefile.am): Likewise.
35992         * modules/search (Makefile.am): Likewise.
35993         * modules/signal (Makefile.am): Likewise.
35994         * modules/stdarg (Makefile.am): Likewise.
35995         * modules/stdint (Makefile.am): Likewise.
35996         * modules/stdio (Makefile.am): Likewise.
35997         * modules/stdlib (Makefile.am): Likewise.
35998         * modules/string (Makefile.am): Likewise.
35999         * modules/strings (Makefile.am): Likewise.
36000         * modules/sys_select (Makefile.am): Likewise.
36001         * modules/sys_socket (Makefile.am): Likewise.
36002         * modules/sys_stat (Makefile.am): Likewise.
36003         * modules/sys_time (Makefile.am): Likewise.
36004         * modules/sysexits (Makefile.am): Likewise.
36005         * modules/time (Makefile.am): Likewise.
36006         * modules/unistd (Makefile.am): Likewise.
36007         * modules/wchar (Makefile.am): Likewise.
36008         * modules/wctype (Makefile.am): Likewise.
36009         Reported by Reuben Thomas <rrt@sc3d.org>.
36011 2008-08-29  Bruno Haible  <bruno@clisp.org>
36013         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
36014         any more.
36016 2008-08-29  Simon Josefsson  <simon@josefsson.org>
36018         * MODULES.html.sh (Misc): Add bitrotate.
36020         * modules/bitrotate: New file.
36022         * lib/bitrotate.h: New file.
36024         * modules/bitrotate-tests: New file.
36026         * tests/test-bitrotate.c: New file.
36028         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
36029         on the bitrotate module.
36031         * lib/arctwo.c: Use new bitrotate module.
36033 2008-08-29  Jim Meyering  <meyering@redhat.com>
36035         bootstrap: merge changes from coreutils
36036         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
36037         of copied files.  Remove a kludge, now that this is fixed.
36038         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
36039         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
36040         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
36042 2008-08-29  Bruno Haible  <bruno@clisp.org>
36044         * MODULES.html.sh: Remove --cvs-urls option.
36046 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
36048         maint.mk: adjust to file name change
36049         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
36051 2008-08-28  Jim Meyering  <meyering@redhat.com>
36053         * modules/getndelim2 (License): Relicense to LGPLv2+.
36054         Approved by Richard Stallman for the version of 1995, and by
36055         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
36057 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
36059         * lib/getdelim.c (flockfile, funlockfile): Make all of them
36060         dummy if one is not available.  Do not touch them if
36061         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
36062         (getc_maybe_unlocked): New.
36063         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
36065 2008-08-26  Eric Blake  <ebb9@byu.net>
36067         doc/INSTALL: resync from autoconf
36068         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
36069         (INSTALL_PRELUDE): Delete; this is done more efficiently by
36070         moving...
36071         * install.texi [!autoconf]: ...here.  Resync from autoconf.
36072         * INSTALL: Regenerate.
36073         * INSTALL.ISO: New file.
36074         * INSTALL.UTF-8: Likewise.
36076 2008-08-26  Jim Meyering  <meyering@redhat.com>
36078         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
36079         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
36080         these definitions conditional, so that they may be overridden, too.
36082 2008-08-26  Bruno Haible  <bruno@clisp.org>
36084         Generate INSTALL file variants with prettier quotes.
36085         * doc/Makefile (INSTALL_PRELUDE): New macro.
36086         (INSTALL): Use it.
36087         (INSTALL.ISO, INSTALL.UTF-8): New rules.
36089 2008-08-26  Bruno Haible  <bruno@clisp.org>
36091         Run makeinfo in an English locale.
36092         * doc/Makefile (MAKEINFO): New variable.
36094 2008-08-26  Bruno Haible  <bruno@clisp.org>
36096         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
36097         Suggested by Eric Blake.
36099 2008-08-25  Bruno Haible  <bruno@clisp.org>
36101         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
36103 2008-08-25  Eric Blake  <ebb9@byu.net>
36105         c-stack: test that stack overflow can be caught
36106         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
36107         that platform allows handling stack overflow; at least OS/2 EMX
36108         has sigaltstack, but crashes before transferring control to
36109         handler on stack overflow.
36110         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
36111         check for HAVE_STACK_OVERFLOW_HANDLING.
36112         Reported by Elbert Pol.
36114 2008-08-25  Bruno Haible  <bruno@clisp.org>
36116         * doc/posix-functions/strftime.texi: Fix description of strftime
36117         module.
36119 2008-08-24  Bruno Haible  <bruno@clisp.org>
36121         * tests/uniwidth/test-uc_width2.c: New file.
36122         * tests/uniwidth/test-uc_width2.sh: New file.
36123         * modules/uniwidth/width-tests (Files): Add the new files.
36124         (TESTS): Add uniwidth/test-uc_width2.sh.
36125         (TESTS_ENVIRONMENT): New variable.
36126         (check_PROGRAMS): Add test-uc_width2.
36127         (test_uc_width2_SOURCES): New variable.
36129         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
36130         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
36131         not 0x00AB.
36132         Reported by Alexander V. Lukyanov <lav@netis.ru>.
36134 2008-08-22  Eric Blake  <ebb9@byu.net>
36136         test-lock, test-tls: mention why a test is skipped
36137         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
36138         skipped.
36139         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
36141         count-one-bits: relax license
36142         * modules/count-one-bits (License): Relicense to LGPLv2+.
36143         Suggested by Ludovic Courtès, approved by Ben Pfaff.
36145 2008-08-22  Andreas Schwab  <schwab@suse.de>
36147         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
36148         Remove spurious space in assignment.
36150 2008-08-21  Simon Josefsson  <simon@josefsson.org>
36152         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
36153         Paul Eggert <eggert@CS.UCLA.EDU>.
36155 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
36157         * modules/gettext: Add m4/threadlib.m4.
36159 2008-08-19  Eric Blake  <ebb9@byu.net>
36161         test-c-stack: fix compilation failure on FreeBSD 5.0
36162         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
36163         headers before <sys/resource.h>.
36164         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
36165         the bug.
36166         Reported by Nelson H. F. Beebe.
36168         strverscmp: migrate from "strverscmp.h" to <string.h>
36169         * modules/string (Makefile.am): Add new hooks.
36170         * modules/strverscmp (Files): Remove strverscmp.h.
36171         (Depends-on): Add string.
36172         (configure.ac): Add indicator.
36173         (Include): Mention new header.
36174         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
36175         defaults.
36176         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
36177         results.
36178         * lib/strverscmp.h: Delete.
36179         * lib/string.in.h (strverscmp): Provide declaration, when needed.
36180         * tests/test-strverscmp.c (includes): Adjust client.
36181         * lib/check-version.c (includes): Likewise.
36182         * NEWS: Document the change.
36184         strverscmp: add unit test
36185         * modules/strverscmp-tests: New file.
36186         * tests/test-strverscmp.c: Likewise.
36188 2008-08-19  Simon Josefsson  <simon@josefsson.org>
36190         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
36191         regarding Windows crypto stuff, from Mono.
36193 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
36195         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
36196         if present, for intel RND.  Return error on failures.
36198 2008-08-18  Ben Pfaff  <blp@gnu.org>
36200         gitlog-to-changelog: give better diagnostic for failed pipe-open
36201         * build-aux/gitlog-to-changelog: Improve error message: suggest
36202         that the version of Git may be too old.
36204 2008-08-18  Simon Josefsson  <simon@josefsson.org>
36206         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
36207         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
36209 2008-08-18  Bruno Haible  <bruno@clisp.org>
36211         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
36212         pthread_in_use().
36214 2008-08-18  Bruno Haible  <bruno@clisp.org>
36216         * lib/glthread/threadlib.c: Include <pthread.h>.
36218 2008-08-18  Bruno Haible  <bruno@clisp.org>
36220         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
36221         glthread_recursive_lock_* macros.
36222         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
36223         Fix syntax error.
36225 2008-08-18  Bruno Haible  <bruno@clisp.org>
36227         * lib/glthread/thread.c: Avoid forcing a context switch right after
36228         thread creation.
36230 2008-08-17  Bruno Haible  <bruno@clisp.org>
36232         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
36233         * lib/glthread/thread.h: Provide Win32 specific implementation.
36234         * modules/thread (Files): Add lib/glthread/thread.c.
36235         (Depends-on): Add lock.
36236         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
36238 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36240         New module 'yield'.
36241         * modules/yield: New file.
36242         * lib/glthread/yield.h: New file.
36243         * m4/yield.m4: New file.
36244         * MODULES.html.sh (Multithreading): Add yield.
36246 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36248         New module 'thread'.
36249         * modules/thread: New file.
36250         * lib/glthread/thread.h: New file.
36251         * m4/thread.m4: New file.
36252         * MODULES.html.sh (Multithreading): Add thread.
36254 2008-08-17  Bruno Haible  <bruno@clisp.org>
36256         * lib/glthread/lock.h: Include <stdlib.h> always.
36257         * lib/glthread/tls.h: Likewise.
36258         * lib/glthread/cond.h: Likewise.
36260 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36262         New module 'cond'.
36263         * modules/cond: New file.
36264         * lib/glthread/cond.h: New file.
36265         * lib/glthread/cond.c: New file.
36266         * m4/cond.m4: New file.
36267         * MODULES.html.sh (Multithreading): Add cond.
36269 2008-08-16  Eric Blake  <ebb9@byu.net>
36271         c-stack: fix regression on Irix 5.3 from 2008-06-21
36272         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
36273         sa_sigaction...
36274         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
36275         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
36276         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
36277         * modules/signal (Makefile.am): Use the value.
36278         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
36279         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
36280         * doc/posix-headers/signal.texi (signal.h): Document this
36281         portability issue.
36282         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
36283         Reported by Tom G. Christensen.
36285 2008-08-17  Bruno Haible  <bruno@clisp.org>
36287         New module 'threadlib'.
36288         * modules/threadlib: New file.
36289         * lib/glthread/threadlib.c: New file, extracted from
36290         lib/glthread/lock.c.
36291         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
36292         functions.
36293         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
36294         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
36295         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
36296         macros.
36297         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
36298         (gl_DISABLE_THREADS): Remove macro.
36299         * modules/lock (Files): Remove build-aux/config.rpath.
36300         (Depends-on): Remove havelib. Add threadlib.
36301         (configure.ac-early): Remove section.
36302         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
36303         * modules/tls (Depends-on): Remove lock. Add threadlib.
36304         (Link): New section, copied from threadlib.
36305         * MODULES.html.sh (Multithreading): Add threadlib.
36307 2008-08-14  Bruno Haible  <bruno@clisp.org>
36309         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
36310         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
36311         glthread_rwlock_unlock, glthread_rwlock_destroy,
36312         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
36313         glthread_recursive_lock_destroy): Define as macros always.
36314         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
36315         glthread_lock_lock.
36316         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
36317         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
36318         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
36319         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
36320         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
36321         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
36322         (glthread_recursive_lock_lock_func): Renamed from
36323         glthread_recursive_lock_lock.
36324         (glthread_recursive_lock_unlock_func): Renamed from
36325         glthread_recursive_lock_unlock.
36326         (glthread_recursive_lock_destroy_func): Renamed from
36327         glthread_recursive_lock_destroy.
36329 2008-08-14  Bruno Haible  <bruno@clisp.org>
36331         * lib/glthread/lock.h: Renamed from lib/lock.h.
36332         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
36333         * lib/glthread/tls.h: Renamed from lib/tls.h.
36334         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
36335         * lib/fstrcmp.c: Update includes.
36336         * lib/strsignal.c: Update includes.
36337         * modules/lock (Files, Makefile.am): Update.
36338         (Include): Change to "glthread/lock.h".
36339         * modules/tls (Files, Makefile.am): Update.
36340         (Include): Change to "glthread/tls.h".
36341         * tests/test-lock.c: Update includes.
36342         * tests/test-tls.c: Update includes.
36343         * NEWS: Mention the renamed header files.
36345 2008-08-11  Jim Meyering  <meyering@redhat.com>
36347         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
36349 2008-08-11  Eric Blake  <ebb9@byu.net>
36351         test-c-stack: avoid C99-ism
36352         * tests/test-c-stack.c (main): Fix whitespace, move declaration
36353         before statement.
36354         Reported by Alain Guibert.
36356 2008-08-10  Jim Meyering  <meyering@redhat.com>
36358         ensure that return value of uinttostr et al are not ignored
36359         * lib/inttostr.h (__GNUC_PREREQ): Define.
36360         (__attribute_warn_unused_result__): Define.
36361         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
36363 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
36365         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
36366         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
36368 2008-08-07  Jim Meyering  <meyering@redhat.com>
36370         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
36372         * modules/mkstemp (License): Relicense under LGPLv2+.
36373         * modules/tempname (License): Likewise.
36375 2008-08-06  Bruno Haible  <bruno@clisp.org>
36377         * lib/poll.c (poll): Further micro-optimization.
36379 2008-08-06  Jim Meyering  <meyering@redhat.com>
36381         inet_pton.c: use locale-independent tolower
36382         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
36383         (inet_pton6): Use c_tolower rather than tolower.
36384         * modules/inet_pton (Depends-on): Add c-ctype.
36386 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
36388         * lib/poll.c (poll): Avoid division when timeout is 0, cache
36389         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
36391 2008-08-06  Jim Meyering  <meyering@redhat.com>
36393         * modules/inet_pton (License): Relicense under LGPLv2+.
36395 2008-08-03  Bruno Haible  <bruno@clisp.org>
36397         Additional non-aborting API for lock and tls.
36398         * lib/lock.h: Include <errno.h>.
36399         (glthread_lock_init): New macro/function.
36400         (gl_lock_init): Define as wrapper around glthread_lock_init.
36401         (glthread_lock_lock): New macro/function.
36402         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
36403         (glthread_lock_unlock): New macro/function.
36404         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
36405         (glthread_lock_destroy): New macro/function.
36406         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
36407         (glthread_rwlock_init): New macro/function.
36408         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
36409         (glthread_rwlock_rdlock): New macro/function.
36410         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
36411         (glthread_rwlock_wrlock): New macro/function.
36412         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
36413         (glthread_rwlock_unlock): New macro/function.
36414         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
36415         (glthread_rwlock_destroy): New macro/function.
36416         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
36417         (glthread_recursive_lock_init): New macro/function.
36418         (gl_recursive_lock_init): Define as wrapper around
36419         glthread_recursive_lock_init.
36420         (glthread_recursive_lock_lock): New macro/function.
36421         (gl_recursive_lock_lock): Define as wrapper around
36422         glthread_recursive_lock_lock.
36423         (glthread_recursive_lock_unlock): New macro/function.
36424         (gl_recursive_lock_unlock): Define as wrapper around
36425         glthread_recursive_lock_unlock.
36426         (glthread_recursive_lock_destroy): New macro/function.
36427         (gl_recursive_lock_destroy): Define as wrapper around
36428         glthread_recursive_lock_destroy.
36429         (glthread_once): New macro/function.
36430         (gl_once): Define as wrapper around glthread_once.
36431         Update function declarations.
36432         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
36433         glthread_rwlock_init. Return error code.
36434         (glthread_rwlock_rdlock_multithreaded): Renamed from
36435         glthread_rwlock_rdlock. Return error code.
36436         (glthread_rwlock_wrlock_multithreaded): Renamed from
36437         glthread_rwlock_wrlock. Return error code.
36438         (glthread_rwlock_unlock_multithreaded): Renamed from
36439         glthread_rwlock_unlock. Return error code.
36440         (glthread_rwlock_destroy_multithreaded): Renamed from
36441         glthread_rwlock_destroy. Return error code.
36442         (glthread_recursive_lock_init_multithreaded): Renamed from
36443         glthread_recursive_lock_init. Return error code.
36444         (glthread_recursive_lock_lock_multithreaded): Renamed from
36445         glthread_recursive_lock_lock. Return error code.
36446         (glthread_recursive_lock_unlock_multithreaded): Renamed from
36447         glthread_recursive_lock_unlock. Return error code.
36448         (glthread_recursive_lock_destroy_multithreaded): Renamed from
36449         glthread_recursive_lock_destroy. Return error code.
36450         (glthread_once_call): Make static.
36451         (glthread_once_multithreaded): Renamed from glthread_once.
36452         * lib/tls.h: Include <errno.h>.
36453         (glthread_tls_key_init): New macro/function.
36454         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
36455         (glthread_tls_set): New macro/function.
36456         (gl_tls_set): Define as wrapper around glthread_tls_set.
36457         (glthread_tls_key_destroy): New macro/function.
36458         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
36459         Update function declarations.
36460         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
36461         glthread_tls_get.
36462         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
36464 2008-08-04  Eric Blake  <ebb9@byu.net>
36466         gnumakefile: use space, not TAB, outside of targets
36467         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
36469 2008-08-02  Jim Meyering  <meyering@redhat.com>
36471         getdate.y: avoid locale-dependent date parsing failure
36472         In Turkish locales, getdate would fail to recognize keywords
36473         containing a lowercase "i".  The solution is not to rely on
36474         locale-sensitive case-conversion.
36475         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
36476         (lookup_word): Use c_toupper in place of toupper.
36477         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
36478         Reported by Vefa Bicakci <bicave@superonline.com> in
36479         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
36480         * modules/getdate (Depends-on): Add c-ctype.
36482 2008-08-02  Bruno Haible  <bruno@clisp.org>
36484         * gnulib-tool (func_import): When updating or creating a .gitignore
36485         file, prepend each added line with a slash, and ignore leading slashes
36486         from the existing lines.
36487         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
36489 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36491         Portability fix for GNU make 3.79.1.
36492         * top/GNUmakefile: Avoid 'else COND', which older GNU make
36493         versions do not understand.
36495 2008-08-01  Bruno Haible  <bruno@clisp.org>
36497         Work around bug of HP-UX 10.20 cc with -0.0 literal.
36498         * tests/test-isnanf.h (zero): New variable.
36499         (main): Avoid literal -0.0f.
36500         * tests/test-isnand.h (zero): New variable.
36501         (main): Avoid literal -0.0.
36502         * tests/test-isnanl.h (zero): New variable.
36503         (main): Avoid literal -0.0L.
36504         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
36505         (test_float, test_double, test_long_double): Avoid literals -0.0f,
36506         -0.0, -0.0L.
36507         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
36508         (test_signbitd): Avoid literal -0.0.
36509         (test_signbitl): Avoid literal -0.0L.
36510         * tests/test-ceilf1.c (zero): New variable.
36511         (main): Avoid literal -0.0f.
36512         * tests/test-ceill.c (zero): New variable.
36513         (main): Avoid literal -0.0L.
36514         * tests/test-floorf1.c (zero): New variable.
36515         (main): Avoid literal -0.0f.
36516         * tests/test-floorl.c (zero): New variable.
36517         (main): Avoid literal -0.0L.
36518         * tests/test-roundf1.c (zero): New variable.
36519         (main): Avoid literal -0.0f.
36520         * tests/test-round1.c (zero): New variable.
36521         (main): Avoid literal -0.0.
36522         * tests/test-roundl.c (zero): New variable.
36523         (main): Avoid literal -0.0L.
36524         * tests/test-truncf1.c (zero): New variable.
36525         (main): Avoid literal -0.0f.
36526         * tests/test-trunc1.c (zero): New variable.
36527         (main): Avoid literal -0.0.
36528         * tests/test-truncl.c (zero): New variable.
36529         (main): Avoid literal -0.0L.
36530         * tests/test-frexp.c (zero): New variable.
36531         (main): Avoid literal -0.0.
36532         * tests/test-frexpl.c (zero): New variable.
36533         (main): Avoid literal -0.0L.
36534         * tests/test-ldexpl.c (zero): New variable.
36535         (main): Avoid literal -0.0L.
36536         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
36537         (zerod, zerol): New variables.
36538         (test_function): Avoid literals -0.0, -0.0L.
36539         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
36540         (zerod, zerol): New variables.
36541         (test_function): Avoid literals -0.0, -0.0L.
36542         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
36543         (zerod, zerol): New variables.
36544         (test_function): Avoid literals -0.0, -0.0L.
36545         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
36546         (zerod, zerol): New variables.
36547         (test_function): Avoid literals -0.0, -0.0L.
36548         * tests/test-strtod.c (zero): New variable.
36549         (main): Avoid literal -0.0.
36550         Reported by Jonathan C. Patschke <jp@centtech.com>.
36552 2008-07-31  Jim Meyering  <meyering@redhat.com>
36554         sha256.h: correct definition of SHA224_DIGEST_SIZE
36555         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
36556         Reported by Paulie Pena IV <paulie4@gmail.com>.
36557         Define as 224 / 8, rather than as a literal.
36558         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
36559         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
36560         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
36562 2008-07-31  Bruno Haible  <bruno@clisp.org>
36564         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
36565         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
36566         Reported by Jonathan Patschke <jp@centtech.com>.
36568 2008-07-31  Bruno Haible  <bruno@clisp.org>
36570         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
36571         Reported by Paolo Bonzini <bonzini@gnu.org>.
36573 2008-07-30  Eric Blake  <ebb9@byu.net>
36575         test-strtod: allow compilation without -lm
36576         * tests/test-strtod.c (main): Avoid link dependence on fabs.
36577         Reported by Dennis Clarke <blastwave@gmail.com>.
36579 2008-07-28  Jim Meyering  <meyering@redhat.com>
36581         bootstrap: work also when there are no .po files in po/
36582         * build-aux/bootstrap (update_po_files): Complete the change
36583         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
36585 2008-07-27  Jim Meyering  <meyering@redhat.com>
36587         * users.txt: Add zile.
36589 2008-07-26  Ben Pfaff  <blp@gnu.org>
36591         Add missing dependencies on new m4/exponent[fdl].m4 files.
36592         * modules/isnanf-nolibm: Add m4/exponentf.m4.
36593         * modules/isnand-nolibm: Add m4/exponentd.m4.
36594         * modules/isnanl-nolibm: Add m4/exponentl.m4.
36595         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
36596         m4/isnan[fdl].m4, because the macros actually used moved.
36597         Reported by Jim Meyering.
36599 2008-07-14  Ben Pfaff  <blp@gnu.org>
36601         Add isinf module.
36602         * lib/isinf.c: New file.
36603         * lib/math.in.h: Define isinf macro if we have decided to replace
36604         it.
36605         * m4/isinf.m4: New file.
36606         * m4/math_h.m4: Initialize and substitute variables for isinf
36607         module.
36608         * modules/isinf: New file.
36609         * modules/isinf-tests: New file.
36610         * modules/math: Add substitutions for new module.
36611         * tests/test-isinf.c: New file.
36612         * doc/posix-functions/isinf.texi: Mention new module.
36613         * MODULES.html.sh: Mention new module.
36615 2008-07-14  Ben Pfaff  <blp@gnu.org>
36617         Factor out some macros for use by additional modules.
36618         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
36619         exponentf.m4.
36620         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
36621         exponentd.m4.
36622         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
36623         file exponentl.m4.
36624         * m4/exponentf.m4: New file.
36625         * m4/exponentd.m4: New file.
36626         * m4/exponentl.m4: New file.
36627         * modules/isnanf: Use new file m4/exponentf.m4.
36628         * modules/isnand: Use new file m4/exponentd.m4.
36629         * modules/isnanl: Use new file m4/exponentl.m4.
36631 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
36633         mktime.c: normalize tp->tm_isdst value to -1/0/1.
36634         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
36635         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
36636         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
36638         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
36639         readlink on platforms without PATH_MAX.
36641 2008-07-21  Eric Blake  <ebb9@byu.net>
36643         Warn, not fail, on stale version.
36644         * top/GNUmakefile (_curr-ver): Tone down previous patch.
36646         Don't allow installation with stale devel version number.
36647         * top/GNUmakefile (_is-install-target): New macro.
36648         (_curr-ver): Forbid installation with stale version number.
36650 2008-07-20  Bruno Haible  <bruno@clisp.org>
36652         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
36653         TESTS_ENVIRONMENT.
36654         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
36656 2008-07-20  Bruno Haible  <bruno@clisp.org>
36658         * lib/c-stack.h (c_stack_action): Add documentation.
36659         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
36661 2008-07-20  Bruno Haible  <bruno@clisp.org>
36663         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
36664         * modules/readlink (License): Likewise.
36666 2008-07-17  Eric Blake  <ebb9@byu.net>
36668         * modules/c-stack (Link): Fix typo.
36670         Make c-stack use libsigsegv, when available.
36671         * modules/c-stack (Depends-on): Add libsigsegv.
36672         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
36673         needed.
36674         * lib/c-stack.c (SIGSTKSZ): Define fallback.
36675         (segv_handler, overflow_handler, c_stack_action)
36676         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
36677         implementation when libsigsegv is available, but only when using
36678         the library is necessary.
36679         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
36680         comment, explaining why XSI check fails on Linux.
36681         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
36682         * tests/test-c-stack2.sh: Tweak skip message.
36683         * NEWS: Document new link-time requirements.
36685 2008-07-16  Eric Blake  <ebb9@byu.net>
36687         c-stack: Expose false positives when not using libsigsegv.
36688         * modules/c-stack-tests (Files): Expand test.
36689         * tests/test-c-stack.c (main): Add means to conditionally trigger
36690         non-overflow SIGSEGV.
36691         * tests/test-c-stack2.sh: New file.
36693 2008-07-14  Bruno Haible  <bruno@clisp.org>
36695         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
36696         Reported by Eric Blake.
36698 2008-07-14  Sam Steingold  <sds@gnu.org>
36699             Bruno Haible  <bruno@clisp.org>
36701         New module libsigsegv.
36702         * modules/libsigsegv: New file.
36703         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
36704         modifications.
36705         * MODULES.html.sh (Signal handling): New section.
36707 2008-07-14  Bruno Haible  <bruno@clisp.org>
36709         * modules/unictype/ctype-* (Description): Add the word "function".
36710         Improves the resulting doc in MODULES.html.
36712 2008-07-12  Ben Pfaff  <blp@gnu.org>
36714         Add longlong module.
36715         * modules/longlong: New file.
36717 2008-07-12  Bruno Haible  <bruno@clisp.org>
36719         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
36720         to empty.
36722 2008-07-10  Ben Pfaff  <blp@gnu.org>
36724         Add isnan module.
36725         * doc/posix-functions/isnan.texi: Mention new module.
36726         * lib/math.in.h: Define isnan macro if we have decided to replace
36727         it.
36728         * m4/isnan.m4: New file.
36729         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
36730         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
36731         also.
36732         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
36733         redundancy.
36734         * m4/math_h.m4: Initialize and substitute variables for isnan
36735         module.
36736         * modules/isnan: New file.
36737         * modules/isnan-tests: New file.
36738         * modules/math: Add substitutions for new module.
36739         * tests/test-isnan.c: New file.
36740         * MODULES.html.sh: Mention new module.
36742 2008-07-10  Ben Pfaff  <blp@gnu.org>
36744         Add isnanf module.
36745         * lib/isnanf.m4: New file.
36746         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
36747         (gl_HAVE_ISNANF_IN_LIBM): New macro.
36748         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
36749         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
36750         * modules/isnanf: New file.
36751         * modules/isnanf-tests: New file.
36752         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
36753         files.
36754         * tests/test-isnanf-nolibm.c: factored most of its contents into
36755         new file tests/test-isnanf.h.
36756         * tests/test-isnanf.h: New file.
36757         * tests/test-isnanf.c: New file.
36758         * MODULES.html.sh: Mention new module.
36759         * doc/glibc-functions/isnanf.texi: Mention new module.
36761 2008-07-10  Ben Pfaff  <blp@gnu.org>
36763         Add isnand module.
36764         * lib/isnand.h: New file.
36765         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
36766         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
36767         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
36768         functionality also.
36769         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
36770         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
36771         (gl_HAVE_ISNAND_IN_LIBM): New macro.
36772         * modules/isnand: New file.
36773         * modules/isnand-tests: New file.
36774         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
36775         files.
36776         * tests/test-isnand-nolibm.c: factored most of its contents into
36777         new file tests/test-isnand.h.
36778         * tests/test-isnand.h: New file.
36779         * tests/test-isnand.c: New file.
36780         * MODULES.html.sh: Mention new module.
36782 2008-07-10  Ben Pfaff  <blp@gnu.org>
36784         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
36785         * lib/isnand.h: Rename lib/isnand-nolibm.h.
36786         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
36787         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
36788         * modules/isnanf-nolibm: Update references to renamed files.
36789         * modules/isnand-nolibm: Likewise.
36790         * modules/isnanf-nolibm-tests: Likewise.
36791         * modules/isnand-nolibm-tests: Likewise.
36792         * lib/frexp.c: Likewise.
36793         * lib/isfinite.c: Likewise.
36794         * lib/signbitd.c: Likewise.
36795         * lib/signbitf.c: Likewise.
36796         * lib/vasnprintf.c: Likewise.
36797         * tests/test-ceilf1.c: Likewise.
36798         * tests/test-ceilf2.c: Likewise.
36799         * tests/test-floorf1.c: Likewise.
36800         * tests/test-floorf2.c: Likewise.
36801         * tests/test-frexp.c: Likewise.
36802         * tests/test-round1.c: Likewise.
36803         * tests/test-round2.c: Likewise.
36804         * tests/test-roundf1.c: Likewise.
36805         * tests/test-strtod.c: Likewise.
36806         * tests/test-trunc1.c: Likewise.
36807         * tests/test-trunc2.c: Likewise.
36808         * tests/test-truncf1.c: Likewise.
36809         * tests/test-truncf2.c: Likewise.
36810         * NEWS: Mention the renamed header files.
36812 2008-07-11  Jim Meyering  <meyering@redhat.com>
36814         vc-list-files: make the last-resort awk code more portable
36815         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
36816         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
36817         does not support it.
36819 2008-07-10  Eric Blake  <ebb9@byu.net>
36821         Work with tar's bootstrap.
36822         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
36823         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
36824         an m4 comment.
36826 2008-07-09  Jim Meyering  <meyering@redhat.com>
36828         posix-shell.m4: fix typo that made this test malfunction
36829         * m4/posix-shell.m4: Remove capitalization in variable name.
36831 2008-07-08  Bruno Haible  <bruno@clisp.org>
36833         * m4/onceonly.m4: Update comments.
36834         Reported by Ben Pfaff <blp@cs.stanford.edu>.
36836 2008-07-04  Jim Meyering  <meyering@redhat.com>
36838         * users.txt: Add vc-dwim.
36839         (bison, coreutils): Use the gitweb URL.
36841 2008-07-03  Jim Meyering  <meyering@redhat.com>
36843         * users.txt: Add libffcall.  From Sam Steingold.
36845 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
36847         getdate.y: do not ignore TZ with relative day, month or year offset
36848         * lib/getdate.y (get_date): Move the tz-handling block to follow the
36849         relative-date-handling, since otherwise, the latter would clobber the
36850         sole output (an updated Start value) of the tz-handling block.
36851         * tests/test-getdate.c: Tests for the fix
36853 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36855         Recognize 'foo_LIBRARIES += libgnu.a'.
36856         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
36857         makefile snippet has already specified an installation location,
36858         also using '+='.
36860 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
36862         getdate.y: factor out common actions
36863         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
36864         Use them in place of open-coded actions.
36866 2008-07-01  Simon Josefsson  <simon@josefsson.org>
36868         Add self-test for getdate module.
36869         * modules/getdate-tests: New file.
36870         * tests/test-getdate.c: New file.
36872 2008-06-29  Bruno Haible  <bruno@clisp.org>
36874         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
36875         .gitignore.
36876         Reported by Sylvain Beucler <beuc@beuc.net>.
36878 2008-06-29  Bruno Haible  <bruno@clisp.org>
36880         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
36881         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
36883 2008-06-29  Bruno Haible  <bruno@clisp.org>
36885         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
36886         EXTRA_DIST.
36887         Reported by Sylvain Beucler <beuc@beuc.net>.
36889 2008-06-26  Jim Meyering  <meyering@redhat.com>
36891         make several modules depend on the "open" module
36892         This provides slightly increased consistency when opening-for-write
36893         the name of a non-directory spelled with a trailing slash.
36894         * modules/chdir-safer: Likewise.
36895         * modules/chown: Likewise.
36896         * modules/clean-temp: Likewise.
36897         * modules/copy-file: Likewise.
36898         * modules/fchdir: Likewise.
36899         * modules/fcntl-safer: Likewise.
36900         * modules/pipe: Likewise.
36901         * modules/utime: Likewise.
36902         Prompted by Eric Blake and Bruno Haible.
36904 2008-06-24  Andreas Schwab  <schwab@suse.de>
36906         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
36907         literals can be used as initializers for global variables.
36909 2008-06-23  Eric Blake  <ebb9@byu.net>
36911         Make gnulib-cache.m4 easier to diff.
36912         * gnulib-tool (func_import): Allow newlines when reading cached
36913         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
36915 2008-06-23  Bruno Haible  <bruno@clisp.org>
36917         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
36918         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
36919         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
36920         m4/signalblocking.m4.
36921         (gl_PREREQ_SIGACTION): Don't invoke it.
36922         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
36923         gl_PREREQ_SIG_HANDLER_H.
36924         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
36925         Don't check for sigaction here.
36927 2008-06-23  Bruno Haible  <bruno@clisp.org>
36929         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
36930         (install_handlers): Don't set the SA_RESETHAND flag.
36932 2008-06-23  Bruno Haible  <bruno@clisp.org>
36934         * m4/sigaction.m4: Comment fixes.
36935         * lib/signal.in.h: Likewise.
36937 2008-06-23  Eric Blake  <ebb9@byu.net>
36939         Fix typo.
36940         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
36942         Avoid SA_ namespace.
36943         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
36944         Reported by Ralf Wildenhues.
36946         Avoid test failure due to SA_RESTORER.
36947         * tests/test-sigaction.c (SA_MASK): New macro.
36948         (main): Avoid failing due to extension flags being set.
36949         Reported by Jim Meyering.
36951         Revert use of sig-handler.h in sigprocmask.c.
36952         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
36953         it requires the existence of struct sigaction.
36954         * lib/sigprocmask.c (handler_t): Restore typedef.
36955         (rpl_signal, old_handlers): Use local type.
36957 2008-06-22  Bruno Haible  <bruno@clisp.org>
36959         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
36960         conditionally.
36961         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
36963 2008-06-22  Bruno Haible  <bruno@clisp.org>
36965         * doc/posix-functions/siginterrupt.texi: Move note.
36967         * lib/signal.in.h (SA_RESTART): New macro.
36968         * lib/sigaction.c: Update comment.
36970         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
36972         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
36973         (gl_PREREQ_SIGPROCMASK): Invoke it.
36974         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
36976         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
36978         * lib/sigprocmask.c: Update a comment.
36980 2008-06-21  Eric Blake  <ebb9@byu.net>
36982         Use sigaction module rather than signal().
36983         * modules/c-stack (Depends-on): Add sigaction.
36984         * modules/fatal-signal (Depends-on): Likewise.
36985         * modules/nanosleep (Depends-on): Likewise.
36986         * modules/sigprocmask (Files): Add sig-handler.h.
36987         * modules/sigaction (Files): Likewise.
36988         * lib/sig-handler.h (get_handler): New file, suggested by Paul
36989         Eggert.
36990         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
36991         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
36992         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
36993         (init_fatal_signals): Likewise.
36994         * lib/nanosleep.c (rpl_nanosleep): Likewise.
36995         (siginterrupt): Delete fallback.
36996         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
36997         instead.
36998         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
36999         siginterrupt.
37001         New module sigaction, for mingw.
37002         * modules/sigaction: New module...
37003         * modules/sigaction-tests: ...and its test.
37004         * m4/sigaction.m4: New file.
37005         * lib/sigaction.c: Likewise.
37006         * tests/test-sigaction.c: Likewise.
37007         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
37008         * modules/signal (Makefile.am): Likewise.
37009         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
37010         needed.
37011         * doc/posix-headers/signal.texi (signal.h): Mention provided
37012         types.
37013         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
37014         that sigaction is preferable.
37015         * doc/posix-functions/sigaction.texi (sigaction): Mention new
37016         module.
37017         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
37018         sigaction.
37020         Improve robustness of sigprocmask by overriding signal.
37021         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
37022         is in use.
37023         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
37024         (SIGKILL, SIGSTOP): Provide fallbacks.
37025         (rpl_signal): Implement.
37026         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
37027         signal can be called inside handlers.
37029         Fix nanosleep module on mingw.
37030         * modules/nanosleep (Depends-on): Add sys_select.
37031         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
37033         Fix licensing of sigprocmask.
37034         * modules/raise (License): Relicense as LGPL.
37036 2008-06-21  Bruno Haible  <bruno@clisp.org>
37038         * lib/propername.c (proper_name_utf8): Don't use the transliterated
37039         result if it contains question marks.
37040         Reported by Michael Geng <linux@michaelgeng.de>.
37042 2008-06-19  Bruno Haible  <bruno@clisp.org>
37044         Fix CVS-ism.
37045         * doc/gnulib.texi: Include updated-stamp.texi.
37046         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
37047         (updated-stamp.texi): New rule.
37048         (gnulib.info): Depend on it.
37049         * doc/.gitignore: Add updated-stamp.texi.
37050         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
37052 2008-06-19  Bruno Haible  <bruno@clisp.org>
37054         * doc/Makefile (gnulib.info): Update and simplify dependencies.
37055         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
37057 2008-06-19  Eric Blake  <ebb9@byu.net>
37059         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
37060         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
37061         Reported by Stepan Kasal.
37063 2008-06-18  Bruno Haible  <bruno@clisp.org>
37065         * lib/fatal-signal.c (init_fatal_signals): Add comment.
37066         Reported by Eric Blake.
37068 2008-06-18  Eric Blake  <ebb9@byu.net>
37070         Work around cygwin 1.5.25 strsignal bug.
37071         * tests/test-strsignal.c: Allow for const char *.
37072         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
37074 2008-06-18  Simon Josefsson  <simon@josefsson.org>
37076         * users.txt: Update URL to article and add author/date
37077         information.
37079 2008-06-17  Bruno Haible  <bruno@clisp.org>
37081         New macro gl_DISABLE_THREADS.
37082         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
37083         if the user did not pass --enable-threads or --disable-threads option.
37084         (gl_DISABLE_THREADS): New macro.
37085         Reported by Eric Blake <ebb9@byu.net>.
37087 2008-06-17  Bruno Haible  <bruno@clisp.org>
37089         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
37090         when the macro ignores it.
37091         Based on a patch by Eric Blake <ebb9@byu.net>.
37093 2008-06-17  Bruno Haible  <bruno@clisp.org>
37095         * modules/tls (License): Change to LGPLv2+.
37096         Reported by Eric Blake.
37098 2008-06-17  Eric Blake  <ebb9@byu.net>
37100         Simplify c-stack prerequisites.
37101         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
37102         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
37103         no longer requires <ucontext.h> to exist.  Optimize setrlimit
37104         check.
37105         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
37106         <sys/resource.h>.
37108         Move c-stack test into testsuite.
37109         * modules/c-stack-tests: New file.
37110         * lib/c-stack.c [DEBUG]: Move test program...
37111         * tests/test-c-stack.c: ...into this new file.  Skip rather than
37112         fail test if sigaltstack is lacking.
37113         * tests/test-c-stack.sh: New driver file.
37115 2008-06-16  Eric Blake  <ebb9@byu.net>
37117         Use raise module consistently.
37118         * modules/fatal-signal (Depends-on): Add raise.
37119         * modules/sigprocmask (Depends-on): Likewise.
37120         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
37121         * lib/sigprocmask.c (sigprocmask): Likewise.
37122         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
37123         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
37125         Fix compliance bug in sigpending.
37126         * lib/sigprocmask.c (sigpending): Return pending array via
37127         parameter, not return value.
37129 2008-06-14  Eric Blake  <ebb9@byu.net>
37131         Improve obstack-printf test code.
37132         * tests/test-obstack-printf.c (test_function): Fix comment, and
37133         simplify usage of obstack_* in macros.  Add a test for coverage.
37134         Reported by Bruno Haible.
37136 2008-06-14  Bruno Haible  <bruno@clisp.org>
37138         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
37139         array size as a constant, not as a const variable.
37140         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
37141         AC_USE_SYSTEM_EXTENSIONS.
37142         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
37143         Test whether the obstack_printf function actually exists.
37144         * modules/obstack-printf (Depends-on): Add extensions.
37145         (Include): Remove obstack.h.
37146         * modules/obstack-printf-posix (Depends-on): Add extensions.
37147         (Include): Remove obstack.h.
37149 2008-06-13  Eric Blake  <ebb9@byu.net>
37151         Add obstack-printf and obstack-printf-posix modules.
37152         * modules/obstack-printf: New file.
37153         * modules/obstack-printf-posix: Likewise.
37154         * MODULES.html.sh (Misc): Mention them.
37155         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
37156         Likewise.
37157         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
37158         Likewise.
37159         * modules/stdio (Makefile.am): Accomodate new modules.
37160         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
37161         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
37162         Declare.
37163         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
37164         functions.
37165         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
37166         (gl_REPLACE_OBSTACK_PRINTF): New macros
37167         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
37168         * tests/test-obstack-printf.c: New file.
37169         * modules/obstack-printf-tests: Likewise.
37170         * modules/obstack-printf-posix-tests: Likewise.
37172 2008-06-11  Bruno Haible  <bruno@clisp.org>
37174         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
37175         * lib/open.c: Include errno.h.
37176         (open): Fail when attempting to write to a file that has a trailing
37177         slash.
37178         * tests/test-open.c (main): Test against trailing slash bug.
37179         * doc/posix-functions/open.texi: Mention the trailing slash bug.
37181 2008-06-10  Bruno Haible  <bruno@clisp.org>
37183         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
37184         for $? to work inside the trap command, with various /bin/sh-s.
37185         * tests/test-vc-list-files-cvs.sh: Likewise.
37187 2008-06-10  Bruno Haible  <bruno@clisp.org>
37189         * lib/acl-internal.h: Don't include gettext.h here.
37190         * lib/set-mode-acl.c: Include gettext.h here.
37191         * lib/copy-acl.c: Likewise.
37193 2008-06-10  Bruno Haible  <bruno@clisp.org>
37195         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
37196         * lib/wait-process.c (wait_subprocess): Likewise.
37197         * lib/execute.h (execute): Add termsigp argument.
37198         * lib/execute.c (execute): Likewise.
37199         * lib/csharpcomp.c (compile_csharp_using_pnet,
37200         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
37201         * lib/csharpexec.c (execute_csharp_using_pnet,
37202         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
37203         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
37204         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
37205         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
37206         is_jikes_present): Update.
37207         * lib/javaexec.c (execute_java_class): Update.
37208         * lib/javaversion.c (execute_and_read_line): Update.
37209         * NEWS: Document the changes.
37210         Reported by Eric Blake.
37212 2008-06-10  Eric Blake  <ebb9@byu.net>
37214         Add missing include.
37215         * tests/test-strstr.c (includes): Add <signal.h>.
37216         * tests/test-strcasestr.c (includes): Likewise.
37217         * tests/test-memmem.c (includes): Likewise.
37219 2008-06-10  Bruno Haible  <bruno@clisp.org>
37221         * lib/wait-process.c (wait_subprocess): Add an assertion.
37223 2008-06-10  Bruno Haible  <bruno@clisp.org>
37225         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
37227 2008-06-10  Bruno Haible  <bruno@clisp.org>
37229         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
37230         using alarm().
37231         * tests/test-strcasestr.c (main): Likewise.
37232         * tests/test-strstr.c (main): Likewise.
37234 2008-06-09  Bruno Haible  <bruno@clisp.org>
37236         Work around the Solaris 10 ACE ACLs ABI change.
37237         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
37238         declare if ACL_NO_TRIVIAL is present.
37239         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
37240         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
37241         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
37242         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
37243         define if ACL_NO_TRIVIAL is present.
37244         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
37245         and use the current ABI.
37246         (file_has_acl): Use same #if condition as elsewhere.
37247         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
37248         in use, and use the current ABI.
37249         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
37250         Reported by Jim Meyering.
37252 2008-06-09  Eric Blake  <ebb9@byu.net>
37254         Work around environments that (stupidly) ignore SIGALRM.
37255         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
37256         before using alarm().
37257         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
37258         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
37259         Reported by Ian Beckwith <ianb@erislabs.net>.
37261         Produce autobuild blurb earlier in log.
37262         * modules/autobuild (configure.ac-early): Move AB_INIT here.
37264 2008-06-09  Jim Meyering  <meyering@redhat.com>
37265         and OndÅ™ej Vašík  <ovasik@redhat.com>
37267         utimens.c: correct kernel bug work-around
37268         OndÅ™ej Vašík found that the invalid return value of 280 indicates
37269         failure, not success, and the kernel bug we're trying to work
37270         around affects not just the utimensat call, but also the fallback
37271         futimens call.
37272         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
37273         not success.
37274         [HAVE_FUTIMENS]: Use the same work-around, here.
37276 2008-06-09  Jim Meyering  <meyering@redhat.com>
37278         add more guards around definition of ACE_-related code
37279         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
37280         ALLOW and ACE_OWNER are also defined.
37282 2008-06-08  Bruno Haible  <bruno@clisp.org>
37284         * lib/acl-internal.h: Add me as co-author.
37285         * lib/file-has-acl.c: Likewise.
37286         * lib/set-mode-acl.c: Likewise.
37287         * lib/copy-acl.c: Likewise.
37289 2008-06-08  Bruno Haible  <bruno@clisp.org>
37291         Add support for AIX ACLs.
37292         * lib/acl-internal.h (acl_nontrivial): New declaration.
37293         * lib/file-has-acl.c (acl_nontrivial): New function.
37294         (file_has_acl): Add implementation using AIX 4 ACL API.
37295         * lib/set-mode-acl.c (qset_acl): Likewise.
37296         * lib/copy-acl.c (qcopy_acl): Likewise.
37298 2008-06-08  Bruno Haible  <bruno@clisp.org>
37300         Add support for HP-UX ACLs.
37301         * lib/acl-internal.h (acl_nontrivial): New declaration.
37302         * lib/file-has-acl.c (acl_nontrivial): New function.
37303         (file_has_acl): Add implementation using HP-UX 11 ACL API.
37304         * lib/set-mode-acl.c (qset_acl): Likewise.
37305         * lib/copy-acl.c (qcopy_acl): Likewise.
37307 2008-06-08  Bruno Haible  <bruno@clisp.org>
37309         Add support for Cygwin ACLs.
37310         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
37311         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
37312         the chmod_or_fchmod call.
37313         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
37315 2008-06-08  Bruno Haible  <bruno@clisp.org>
37317         Fix bug with setuid modes in Solaris 10+ code.
37318         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
37319         succeeded, when the mode contains some special bits.
37321 2008-06-08  Bruno Haible  <bruno@clisp.org>
37323         Add support for Solaris 7..10 ACLs.
37324         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
37325         declarations.
37326         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
37327         functions.
37328         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
37329         * lib/set-mode-acl.c (qset_acl): Likewise.
37330         * lib/copy-acl.c (qcopy_acl): Likewise.
37332 2008-06-08  Bruno Haible  <bruno@clisp.org>
37334         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
37335         declaration.
37336         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
37337         (acl_access_nontrivial): Remove MacOS X case.
37338         (file_has_acl): Use acl_extended_nontrivial.
37339         * lib/copy-acl.c (qcopy_acl): Likewise.
37341 2008-06-08  Bruno Haible  <bruno@clisp.org>
37343         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
37345 2008-06-08  Jim Meyering  <meyering@redhat.com>
37347         * modules/acl (Maintainer): Add Bruno Haible.
37349 2008-06-07  Bruno Haible  <bruno@clisp.org>
37351         Improve support for Tru64 ACLs.
37352         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
37353         ACL on OSF/1.
37355 2008-06-07  Bruno Haible  <bruno@clisp.org>
37357         Add support for MacOS X ACLs.
37358         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
37359         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
37360         * lib/set-mode-acl.c (qset_acl): Likewise.
37361         * lib/copy-acl.c (qcopy_acl): Likewise.
37363 2008-06-07  Bruno Haible  <bruno@clisp.org>
37365         Fix memory leak introduced on 2008-05-22.
37366         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
37367         use.
37369 2008-06-07  Bruno Haible  <bruno@clisp.org>
37371         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
37372         to construct an empty ACL.
37374 2008-06-07  Bruno Haible  <bruno@clisp.org>
37376         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
37377         precisely.
37378         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
37380 2008-06-07  Bruno Haible  <bruno@clisp.org>
37382         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
37383         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
37385 2008-06-07  Bruno Haible  <bruno@clisp.org>
37387         * doc/posix-functions/_setjmp.texi: Explain the use of this function
37388         regardless of POSIX.
37389         * doc/posix-functions/_longjmp.texi: Likewise.
37390         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
37391         SystemV platform in this case.
37393 2008-06-06  Eric Blake  <ebb9@byu.net>
37395         Document abort() bugs.
37396         * doc/posix-functions/abort.texi (abort): Mention anomalies.
37398         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
37399         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
37400         sigsetjmp.
37401         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
37402         siglongjmp, but only as a macro.
37403         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
37404         is obsolete.
37405         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
37407         Tweak documentation to cover cygwin argz bugs.
37408         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
37409         argz bug fix; no code change needed since no cygwin releases
37410         occurred between the last fix and the bug being tested.
37411         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
37412         module and recently fixed cygwin bugs.
37413         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
37414         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
37415         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
37416         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
37417         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
37418         Likewise.
37419         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
37420         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
37421         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
37422         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
37423         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
37424         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
37425         Likewise.
37427         Avoid gcc warning on cygwin.
37428         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
37429         !ACL_NO_TRIVIAL]: Avoid unused variable.
37431 2008-06-05  Eric Blake  <ebb9@byu.net>
37433         Be tolerant of UNKNOWN version in gnulib-tool test dir.
37434         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
37435         git-version-gen fails to come up with a version.
37436         Reported by Simon Josefsson.
37438 2008-06-05  Jim Meyering  <meyering@redhat.com>
37439             Paul Eggert  <eggert@cs.ucla.edu>
37441         utimens.c: work around a probable Linux kernel bug
37442         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
37443         appears to be a kernel bug that causes utimensat to return 280
37444         instead of 0, indicating success.
37446 2008-06-04  Bruno Haible  <bruno@clisp.org>
37448         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
37449         2008-06-01 commit.
37451 2008-06-04  Bruno Haible  <bruno@clisp.org>
37453         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
37454         * lib/file-has-acl.c (acl_access_nontrivial): New function.
37455         (file_has_acl): Use it. Save errno afterwards.
37456         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
37458 2008-06-03  Bruno Haible  <bruno@clisp.org>
37460         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
37461         draft code. Simplify #ifs.
37462         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
37463         Put Solaris code after POSIX-draft code. Fix comments regarding
37464         Solaris 10, HP-UX. Mention Cygwin.
37465         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
37467 2008-06-03  Eric Blake  <ebb9@byu.net>
37469         Provide fallback for older kernels.
37470         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
37471         Provide runtime fallback if kernel lacks support.
37472         Reported by Mike Frysinger.
37474 2008-06-02  Bruno Haible  <bruno@clisp.org>
37476         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
37477         it exists.
37479 2008-06-02  Bruno Haible  <bruno@clisp.org>
37481         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
37482         * lib/copy-acl.c (qcopy_acl): Update comment.
37484 2008-06-02  Bruno Haible  <bruno@clisp.org>
37486         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
37487         like ACL APIs.
37489 2008-06-02  Bruno Haible  <bruno@clisp.org>
37491         * tests/test-file-has-acl.sh: Use different code for Cygwin.
37492         * tests/test-set-mode-acl.sh: Likewise.
37493         * tests/test-copy-acl.sh: Likewise.
37494         * tests/test-copy-file.sh: Likewise.
37496 2008-06-02  Bruno Haible  <bruno@clisp.org>
37498         * tests/test-file-has-acl.sh: Remove unused code.
37500 2008-06-01  Bruno Haible  <bruno@clisp.org>
37502         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
37503         (copy_acl): Just a wrapper around qcopy_acl that emits the error
37504         messages.
37505         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
37507 2008-06-01  Bruno Haible  <bruno@clisp.org>
37509         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
37510         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
37511         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
37512         APIs.
37513         * modules/acl-tests (configure.ac): Remove tests now contained in
37514         m4/acl.m4.
37516 2008-06-02  Jim Meyering  <meyering@redhat.com>
37518         announce-gen: use a better key-server host name
37519         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
37520         it may be more consistently reliable.  Suggested by Werner Koch
37521         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
37523 2008-06-01  Bruno Haible  <bruno@clisp.org>
37525         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
37526         Reported by Voroskoi Andras <voroskoi@gmail.com>.
37528 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
37530         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
37532 2008-06-01  Bruno Haible  <bruno@clisp.org>
37534         New ACL tests.
37535         * tests/test-file-has-acl.sh: New file.
37536         * tests/test-file-has-acl.c: New file.
37537         * tests/test-set-mode-acl.sh: New file.
37538         * tests/test-set-mode-acl.c: New file.
37539         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
37540         * tests/test-copy-acl.c: New file.
37541         * modules/acl-tests: New file, based on modules/copy-file-tests.
37542         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
37543         (Depends-on): Add acl-tests.
37544         (configure.ac): Remove checks.
37545         (Makefile.am): Don't create test-sameacls program here any more.
37547 2008-06-01  Bruno Haible  <bruno@clisp.org>
37549         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
37550         * tests/test-sameacls.c: Include progname.h.
37551         (main): Invoke set_program_name. Portability fixes for MacOS X,
37552         Solaris, HP-UX.
37554 2008-06-01  Bruno Haible  <bruno@clisp.org>
37556         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
37557         function.
37558         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
37560 2008-06-01  Bruno Haible  <bruno@clisp.org>
37562         * modules/rpmatch (Depends-on): Add strdup.
37564 2008-06-01  Bruno Haible  <bruno@clisp.org>
37566         * lib/pipe.c: Include unistd-safer.h.
37567         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
37568         * modules/pipe (Depends-on): Add unistd-safer.
37570 2008-05-30  Simon Josefsson  <simon@josefsson.org>
37572         * modules/autobuild (configure.ac): Call AB_INIT.
37574 2008-05-30  Simon Josefsson  <simon@josefsson.org>
37576         * tests/test-getaddrinfo.c: Don't print debug messages by default.
37577         Suggested by Bruno Haible <bruno@clisp.org>.
37579 2008-05-30  Simon Josefsson  <simon@josefsson.org>
37581         * tests/test-base64.c: Cast size_t to unsigned long when invoking
37582         printf.  Use %lu instead of %d.  Reported by Bruno Haible
37583         <bruno@clisp.org>.
37585 2008-05-29  Eric Blake  <ebb9@byu.net>
37587         Prefer new POSIX 200x interfaces over futimesat.
37588         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
37589         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
37590         when available.
37591         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
37593 2008-05-28  Bruno Haible  <bruno@clisp.org>
37595         * modules/stpcpy (License): Change to LGPLv2+.
37596         Requested by David Lutterkort <dlutter@redhat.com>.
37598 2008-05-27  Bruno Haible  <bruno@clisp.org>
37600         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
37601         current mingw.
37602         Reported by Jose E. Marchesi <jemarch@gnu.org>.
37604 2008-05-27  Bruno Haible  <bruno@clisp.org>
37606         * modules/iconv_open (Link): New section, from module 'iconv'.
37607         * modules/striconv (Link): Likewise.
37608         * modules/striconveh (Link): Likewise.
37609         * modules/xstriconv (Link): Likewise.
37610         * modules/unicodeio (Link): Likewise.
37611         * modules/propername (Link): Likewise.
37612         Reported by Jim Meyering.
37614 2008-05-26  Jim Meyering  <meyering@redhat.com>
37616         sha256: do not artificially restrict buffer length to be < 2^32
37617         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
37618         uint32_t to size_t.
37619         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
37620         to match.
37622         avoid unaligned access errors, e.g., on sparc
37623         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
37624         direct access through a possibly-unaligned uint64* pointer.
37625         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
37626         direct access through a possibly-unaligned uint32* pointer.
37627         Prompted by this patch from Tom "spot" Callaway:
37628         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
37630         sha512.c: fix typo in comment
37631         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
37633 2008-05-25  Bruno Haible  <bruno@clisp.org>
37635         * lib/set-mode-acl.c: Renamed from lib/acl.c.
37636         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
37637         (Makefile.am): Update lib_SOURCES.
37639 2008-05-25  Bruno Haible  <bruno@clisp.org>
37641         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
37643 2008-05-25  Jim Meyering  <meyering@redhat.com>
37645         useless-if-before-free: freed expr may have white-space differences
37646         * build-aux/useless-if-before-free: Recognize cases in which the
37647         freed expression differs from the tested one in embedded white
37648         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
37649         $1 was used, so we can't make any regexp shy.  Improved tests now
37650         detect this.
37652         useless-if-before-free: accept white space in the expression.
37653         * build-aux/useless-if-before-free: For now, any white space
37654         in the expression must be identical in the free argument.
37656         useless-if-before-free: efficiency tweak
37657         * build-aux/useless-if-before-free: Make the expression-matching
37658         regexp "shy".
37659         Make the *outer* regexp shy, not the expr-matching one.
37661         update code-in-comment to accept cast of free arg
37662         * build-aux/useless-if-before-free: Update regexp.
37664 2008-05-25  Bruno Haible  <bruno@clisp.org>
37666         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
37667         * modules/copy-file-tests (Files, Makefile.am): Update.
37668         * tests/test-copy-file.c (func_test_copy): Update.
37670 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
37672         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
37674 2008-05-23  Bruno Haible  <bruno@clisp.org>
37676         Improve support for ACLs on OSF/1.
37677         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
37678         Remove fallback for unknown flavors of ACLs.
37680 2008-05-22  Bruno Haible  <bruno@clisp.org>
37682         Add support for ACLs on OSF/1.
37683         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
37684         replacements.
37685         (acl_free_text): New macro fallback.
37686         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
37687         acl_free.
37688         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
37689         acl_free_text function. Require AC_C_INLINE.
37691 2008-05-22  Bruno Haible  <bruno@clisp.org>
37693         Make copy_acl work on MacOS X 10.5.
37694         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
37695         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
37696         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
37697         If MODE_INSIDE_ACL, don't assume that every system has the same text
37698         representation for ACLs as FreeBSD.
37699         * lib/copy-acl.c (copy_acl): Add support for platforms with
37700         !MODE_INSIDE_ACL.
37701         * lib/file-has-acl.c (file_has_acl): Likewise.
37702         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
37703         FreeBSD, MacOS X, or IRIX, respectively.
37705 2008-05-22  Bruno Haible  <bruno@clisp.org>
37707         * lib/acl.h: Don't include <sys/acl.h>.
37708         (GETACLCNT): Move fallback to lib/acl-internal.h.
37709         * lib/acl-internal.h: Include <sys/acl.h> here.
37710         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
37712 2008-05-22  Bruno Haible  <bruno@clisp.org>
37714         Split off copy_acl function to separate file.
37715         * lib/copy-acl.c: New file, extracted from lib/acl.c.
37716         * lib/acl.c (copy_acl): Moved function to separate file.
37717         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
37718         * modules/acl (Files): Add lib/copy-acl.c.
37719         (Makefiles.am): Augment lib_SOURCES.
37721 2008-05-22  Bruno Haible  <bruno@clisp.org>
37723         * modules/copy-file-tests: New file.
37724         * tests/test-copy-file.sh: New file.
37725         * tests/test-copy-file.c: New file.
37726         * tests/test-copy-file-sameacls.c: New file.
37728 2008-05-22  Eric Blake  <ebb9@byu.net>
37730         Avoid gcc warning.
37731         * tests/test-memcmp.c (main): Pass NULL indirectly.
37733 2008-05-21  Bruno Haible  <bruno@clisp.org>
37735         Add reference doc about ACLs.
37736         * doc/acl-resources.txt: New file.
37737         * doc/acl-cygwin.txt: New file.
37739 2008-05-21  Bruno Haible  <bruno@clisp.org>
37741         Avoid one more warning from gcc.
37742         * lib/vasnprintf.c (IF_LINT): Update comments.
37743         (VASNPRINTF): Use it also for the 'prefix' array initializer.
37745 2008-05-21  Jim Meyering  <meyering@redhat.com>
37747         avoid a warning from gcc
37748         * lib/vasnprintf.c (IF_LINT): Define.
37749         (scale10_round_decimal_long_double):
37750         Use it to avoid a "may be used uninitialized" warning.
37751         (scale10_round_decimal_double): Likewise.
37753 2008-05-21  Simon Josefsson  <simon@josefsson.org>
37755         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
37756         declared.
37758 2008-05-20  Bruno Haible  <bruno@clisp.org>
37760         * tests/test-memcmp.c (main): Test also the sign of the result. Test
37761         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
37763 2008-05-20  Simon Josefsson  <simon@josefsson.org>
37765         * modules/memcmp-tests: New file.
37766         * tests/test-memcmp.c: New file.
37768 2008-05-19  Bruno Haible  <bruno@clisp.org>
37770         * modules/propername (Notice, configure.ac): Put quoted "..." into
37771         --keyword option.
37772         * lib/propername.h: Update comments accordingly.
37773         Reported by Eric Blake.
37775 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
37777         * modules/getpass-gnu (Depends-on): Add fseeko.
37779 2008-05-19  Simon Josefsson  <simon@josefsson.org>
37781         * modules/base64-tests: New file.
37783 2008-05-19  Bo Borgerson <gigabo@gmail.com>
37785         * lib/base64.c (base64_decode_ctx): If a decode context structure
37786         was passed in use it to ignore newlines.  If a context structure
37787         was _not_ passed in, continue to treat newlines as garbage (this
37788         is the historical behavior).  Formerly base64_decode.
37789         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
37790         takes a decode context structure.
37791         * lib/base64.h (base64_decode): Macro for four-argument calls.
37792         (base64_decode_alloc): Likewise.
37793         * lib/base64.c (base64_decode_ctx): If a decode context structure
37794         was passed in use it to ignore newlines.  If a context structure
37795         was _not_ passed in, continue to treat newlines as garbage (this
37796         is the historical behavior).  Formerly base64_decode.
37797         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
37798         takes a decode context structure.
37799         * lib/base64.h (base64_decode): Macro for four-argument calls.
37800         (base64_decode_alloc): Likewise.
37802 2008-05-19  Jim Meyering  <meyering@redhat.com>
37804         avoid a warning from gcc
37805         * lib/trim.c (IF_LINT): Define.
37806         (trim2): Use it to avoid a "may be used uninitialized" warning.
37808         Fix doc typo.
37809         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
37811 2008-05-19  Bruno Haible  <bruno@clisp.org>
37813         * doc/glibc-functions/getpass.texi: Document limits of other
37814         implementations.
37816 2008-05-19  Simon Josefsson  <simon@josefsson.org>
37817             Bruno Haible <bruno@clisp.org>
37819         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
37821 2008-05-18  Bruno Haible  <bruno@clisp.org>
37823         * modules/propername: New file, from GNU gettext.
37824         * lib/propername.h: New file, from GNU gettext.
37825         * lib/propername.c: New file, from GNU gettext.
37826         * MODULES.html.sh (Internationalization functions): Add propername.
37828 2008-05-16  Jim Meyering  <meyering@redhat.com>
37829             Bruno Haible  <bruno@clisp.org>
37831         Avoid some warnings from "gcc -Wshadow".
37832         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
37834 2008-05-15  Eric Blake  <ebb9@byu.net>
37836         Extend previous patch to cygwin 1.7.0.
37837         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
37838         fast implementation in cygwin >= 1.7.0.
37839         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
37840         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
37842 2008-05-15  Bruno Haible  <bruno@clisp.org>
37844         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
37845         implementation in glibc >= 2.9.
37846         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
37847         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
37849 2008-05-15  Bruno Haible  <bruno@clisp.org>
37851         * MODULES.html.sh (Internationalization functions): Remove linebreak.
37852         (Unicode string functions): Add unilbrk/*.
37853         Reported by Karl Berry.
37855 2008-05-15  Eric Blake  <ebb9@byu.net>
37857         Fix violation of <stdbool.h> replacement in regex.
37858         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
37859         * lib/regexec.c (re_search_internal): Likewise.
37860         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
37862 2008-05-15  Jim Meyering  <meyering@redhat.com>
37864         avoid distracting test output when git or cvs is not found
37865         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
37866         * tests/test-vc-list-files-git.sh: Likewise.
37868 2008-05-15  Eric Blake  <ebb9@byu.net>
37870         Glibc finally accepted the memmem speedup code, bugzilla #5514.
37871         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
37872         glibc version.
37873         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
37874         * doc/posix-functions/strstr.texi (strstr): Likewise.
37875         * lib/str-two-way.h (MAX): Sychronize with glibc.
37877 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
37879         * lib/regcomp.c (optimize_utf8): Add a note on why we test
37880         opr.ctx_type.
37881         (calc_first): Initialize constraint field.
37882         (duplicate_node_closure): Use it instead of special casing ANCHORS.
37883         Fix grammar.
37884         (duplicate_node): Merge constraint field for all node types.
37885         (calc_eclosure_iter): Look at constraint field for all node types.
37886         * lib/regex_internal.c (create_cd_newstate): Don't look at
37887         opr.ctx_type.
37889 2008-05-14  Bruno Haible  <bruno@clisp.org>
37891         Help GCC to do better code generation.
37892         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
37893         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
37894         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
37895         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
37896         Declare with attribute 'malloc' if supported.
37898 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
37900         use "echo STR|wc -c" rather than unportable "expr length STR"
37901         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
37902         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
37904 2008-05-14  Jim Meyering  <meyering@redhat.com>
37906         use dd ibs=$n count=1 ... rather than less-portable head -c$n
37907         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
37908         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
37909         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
37910         via Collin Lasse.
37912 2008-05-14  Eric Blake  <ebb9@byu.net>
37914         Avoid quadratic growth in gl_LIBSOURCES.
37915         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
37916         Suggested by Bruno Haible.
37918         Test xmemdup0.
37919         * modules/xmemdup0-tests: New file.
37920         * tests/test-xmemdup0.c: Likewise.
37922 2008-05-13  Eric Blake  <ebb9@byu.net>
37924         Split xmemdup0 into its own module.
37925         * modules/xmemdup0: New file.
37926         * lib/xmemdup0.h: Likewise.
37927         * lib/xmemdup0.c: Likewise.
37928         * MODULES.html.sh (Memory management functions): Add xmemdup0.
37929         * lib/xalloc.h (xmemdup0): Remove.
37930         * lib/xmalloc.c (xmemdup0): Likewise.
37932 2008-05-13  Eric Blake  <ebb9@byu.net>
37933             Bruno Haible  <bruno@clisp.org>
37935         Reduce number of forks required during autoconf.
37936         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
37937         and gl_LIBSOURCES_DIR.
37938         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
37939         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
37940         m4_syscmd per file.
37941         <m4_foreach_w>: Move...
37942         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
37944 2008-05-13  Eric Blake  <ebb9@byu.net>
37946         * gnulib-tool: Fix various comment typos.
37948 2008-05-12  Bruno Haible  <bruno@clisp.org>
37950         Tailor the linebreaking algorithm.
37951         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
37953 2008-05-12  Bruno Haible  <bruno@clisp.org>
37955         Update to Unicode 5.0.0.
37956         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
37957         LBP_JV, LBP_JT. Redistribute values.
37958         (unilbrk_table): Change size.
37959         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
37960         Unicode TR#14 rev. 22.
37961         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
37962         LBP_JV, LBP_JT. Redistribute values.
37963         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
37964         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
37965         Update.
37966         * lib/unilbrk/lbrkprop1.h: Regenerated.
37967         * lib/unilbrk/lbrkprop2.h: Regenerated.
37968         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
37969         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
37970         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
37971         Likewise.
37972         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
37973         Likewise.
37974         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
37975         result.
37976         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
37977         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
37978         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
37979         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
37980         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
37981         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
37983 2008-05-11  Bruno Haible  <bruno@clisp.org>
37985         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
37987 2008-05-11  Bruno Haible  <bruno@clisp.org>
37989         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
37990         * modules/unilbrk/gen-lbrk: New file.
37992 2008-05-11  Bruno Haible  <bruno@clisp.org>
37994         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
37995         * m4/sha512.m4 (gl_SHA512): Likewise.
37997 2008-05-11  Jim Meyering  <meyering@redhat.com>
37999         New modules: crypto/sha256, crypto/sha512 (from coreutils)
38000         * modules/crypto/sha256: New file.
38001         * modules/crypto/sha512: Likewise.
38002         * lib/sha256.c: Likewise.
38003         * lib/sha256.h: Likewise.
38004         * lib/sha512.c: Likewise.
38005         * lib/sha512.h: Likewise.
38006         * lib/u64.h: Likewise.
38007         * m4/sha256.m4: Likewise.
38008         * m4/sha512.m4: Likewise.
38009         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
38011 2008-05-10  Bruno Haible  <bruno@clisp.org>
38013         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
38014         (Input/Output <stdio.h>): Add xprintf.
38015         (Signal handling <signal.h>): Add strsignal.
38016         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
38017         (Core language properties): Add func.
38018         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
38019         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
38020         strings.
38021         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
38022         (Input/output): New section.
38023         (File system functions): Add openat-die, stat-macros.
38024         (Networking functions): Add sockets.
38025         (Unicode string functions): Add unictype/*.
38026         (Support for building libraries and executables): Add gperf.
38027         (Support for building documentation): Add agpl-3.0.
38028         (Misc): Add nocrash.
38030 2008-05-10  Bruno Haible  <bruno@clisp.org>
38032         * modules/unictype/gen-ctype: New file.
38034 2008-05-10  Jim Meyering  <meyering@redhat.com>
38036         Make chdir-safer.c more efficient on a system with no symlinks.
38037         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
38038         also if ELOOP is zero.  Suggested by Bruno Haible.
38040         Make chdir-safer.c slightly safer.
38041         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
38042         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
38044         Avoid compile failure on systems without ELOOP (like mingw).
38045         * lib/chdir-safer.c (ELOOP): Define if not already defined.
38046         Reported by Bruno Haible.
38048 2008-05-10  Bruno Haible  <bruno@clisp.org>
38050         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
38051         (is_utf8_encoding): Use a case-insensitive comparison.
38052         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
38053         streq.
38055 2008-05-10  Bruno Haible  <bruno@clisp.org>
38057         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
38058         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
38059         * lib/unilbrk/ulc-common.h (iconv_string_length,
38060         iconv_string_keeping_offsets): Remove declarations.
38061         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
38062         Don't include <iconv.h>, streq.h, xsize.h.
38063         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
38064         conversion.
38065         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
38066         <iconv.h>, streq.h, xsize.h.
38067         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
38068         conversion.
38069         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
38070         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
38071         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
38072         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
38074 2008-05-10  Bruno Haible  <bruno@clisp.org>
38076         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
38077         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
38079         * modules/unilbrk/u32-width-linebreaks-tests: New file.
38080         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
38082         * modules/unilbrk/u16-width-linebreaks-tests: New file.
38083         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
38085         * modules/unilbrk/u8-width-linebreaks-tests: New file.
38086         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
38088         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
38089         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
38091         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
38092         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
38094         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
38095         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
38097         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
38098         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
38100 2008-05-10  Bruno Haible  <bruno@clisp.org>
38102         Split up 'linebreak' module.
38103         * lib/unilbrk.h: New file, based on lib/linebreak.h.
38104         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
38105         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
38106         modifications.
38107         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
38108         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
38109         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
38110         lib/linebreak.c.
38111         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
38112         lib/linebreak.c.
38113         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
38114         lib/linebreak.c.
38115         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
38116         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
38117         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
38118         lib/linebreak.c.
38119         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
38120         lib/linebreak.c.
38121         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
38122         lib/linebreak.c.
38123         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
38124         lib/linebreak.c.
38125         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
38126         lib/linebreak.c.
38127         * modules/unilbrk/base: New file.
38128         * modules/unilbrk/tables: New file.
38129         * modules/unilbrk/u8-possible-linebreaks: New file.
38130         * modules/unilbrk/u16-possible-linebreaks: New file.
38131         * modules/unilbrk/u32-possible-linebreaks: New file.
38132         * modules/unilbrk/ulc-common: New file.
38133         * modules/unilbrk/ulc-possible-linebreaks: New file.
38134         * modules/unilbrk/u8-width-linebreaks: New file.
38135         * modules/unilbrk/u16-width-linebreaks: New file.
38136         * modules/unilbrk/u32-width-linebreaks: New file.
38137         * modules/unilbrk/ulc-width-linebreaks: New file.
38138         * lib/linebreak.h: Remove file.
38139         * lib/linebreak.c: Remove file.
38140         * m4/linebreak.m4: Remove file.
38141         * modules/linebreak: Remove file.
38142         * NEWS: Mention the changes.
38144 2008-05-09  Eric Blake  <ebb9@byu.net>
38146         Add xmemdup0.
38147         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
38148         implementation.
38149         * lib/xmalloc.c (xmemdup0): New C implementation.
38151 2008-05-08  Bruno Haible  <bruno@clisp.org>
38153         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
38155 2008-05-07  Eric Blake  <ebb9@byu.net>
38157         Support cross-compilation of <wctype.h>.
38158         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
38159         AC_CACHE_CHECK.
38161 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
38163         * build-aux/vc-list-files: Add support for bzr.
38165 2008-05-03  Jim Meyering  <meyering@redhat.com>
38167         avoid failed assertion with tight malloc
38168         * tests/test-getndelim2.c: Correct an off-by-one assertion.
38170 2008-05-03  Simon Josefsson  <simon@josefsson.org>
38172         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
38173         are needed from arpa/inet.h.
38174         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
38175         Reported by Bruno Haible.
38177 2008-05-02  Jim Meyering  <meyering@redhat.com>
38179         avoid compilation error on FreeBSD 6
38180         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
38182 2008-05-01  Jim Meyering  <meyering@redhat.com>
38184         useless-if-before-free: correct --help's exit status description
38185         * build-aux/useless-if-before-free (usage): Like grep, exit 0
38186         for one or more matches, etc.  Reported by Bruno Haible.
38188         vc-list-files: make the stand-alone gnulib test work
38189         * modules/vc-list-files-tests (configure.ac):
38190         Define and AC_SUBST abs_aux_dir.
38191         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
38192         $(abs_top_srcdir) to each script and having each of them
38193         duplicate the work of setting PATH, set PATH here, using
38194         the new variable, abs_aux_dir instead.
38195         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
38196         * tests/test-vc-list-files-git.sh: Likewise.
38197         Reported by Bruno Haible.
38199 2008-05-01  Bruno Haible  <bruno@clisp.org>
38201         * lib/getndelim2.c (getndelim2): Fix newsize computation during
38202         reallocation. Rename 'done' to 'found_delimiter'.
38204 2008-05-01  Jim Meyering  <meyering@redhat.com>
38206         vc-list-files: accommodate /bin/sh like the one from Solaris 10
38207         * build-aux/vc-list-files: Use `...`, not $(...).
38209 2008-04-30  Jim Meyering  <meyering@redhat.com>
38211         add tests for vc-list-files
38212         * modules/vc-list-files-tests: New module.
38213         * tests/test-vc-list-files-cvs.sh: New file.
38214         * tests/test-vc-list-files-git.sh: New file.
38216         avoid a warning from gcc
38217         * lib/getndelim2.c (IF_LINT): Define.
38218         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
38220         vc-list-files: work properly with build-aux/cvsu, too
38221         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
38222         to all cvs-based clauses.
38224         vc-list-files: work properly in the CVS+awk case, too
38225         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
38227         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
38228         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
38229         take more than one file argument, so .  Add quotes, just in case $dir
38230         ever contains a shell meta-character.  Prompted by Soren Hansen in
38231         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
38233 2008-04-29  Eric Blake  <ebb9@byu.net>
38235         Optimize getndelim2 to use block operations when possible.
38236         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
38237         freadseek, and memchr2.
38238         * lib/getndelim2.c (getndelim2): Use them for block reads.
38240 2008-04-29  Bruno Haible  <bruno@clisp.org>
38242         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
38243         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
38244         * modules/inet_ntop (Depends-on): Add extensions.
38245         * modules/inet_pton (Depends-on): Likewise.
38246         Reported by Simon Josefsson.
38248 2008-04-29  Jim Meyering  <meyering@redhat.com>
38250         When the is more than one match in a block, match all of them.
38251         * build-aux/useless-if-before-free: Iterate through each block
38252         until there are no more matches.
38254         Fix broken useless-if-before-free script.
38255         * build-aux/useless-if-before-free: Fix typo: missing "?" after
38256         the expression to match cast of argument to free-like function.
38258 2008-04-29  Eric Blake  <ebb9@byu.net>
38260         Use new header.
38261         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
38263 2008-04-29  Jim Meyering  <meyering@redhat.com>
38265         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
38266         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
38267         by gnulib to exist and to declare e.g., inet_ntop.
38268         Don't include "inet_ntop.h", now removed.
38270         * m4/arpa_inet_h.m4: Remove trailing blanks.
38272 2008-04-29  Eric Blake  <ebb9@byu.net>
38274         Silence valgrind on safe reads beyond potential array bounds.
38275         * lib/rawmemchr.valgrind: New file.
38276         * lib/strchrnul.valgrind: Likewise.
38277         * modules/rawmemchr (Files): Distribute new file.
38278         * modules/strchrnul (Files): Likewise.
38279         Suggested by Bruno Haible.
38281 2008-04-29  Bruno Haible  <bruno@clisp.org>
38283         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
38284         (inet_ntop, inet_pton): Change portability warning's wording.
38285         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
38286         Invoke gl_CHECK_NEXT_HEADERS.
38287         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
38288         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
38289         set ARPA_INET_H.
38290         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
38291         * modules/arpa_inet (Description): No longer only for systems that
38292         lack it.
38293         (Depends-on): Add include_next.
38294         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
38295         HAVE_ARPA_INET_H.
38297 2008-04-29  Jim Meyering  <meyering@redhat.com>
38299         * modules/mkdir (License): Re-license as LGPLv2+.
38301 2008-04-29  Bruno Haible  <bruno@clisp.org>
38303         * modules/rawmemchr (Maintainer): Set to Eric.
38304         * modules/strchrnul (Maintainer): Likewise.
38306 2008-04-29  Simon Josefsson  <simon@josefsson.org>
38308         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
38309         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
38311         * modules/arpa_inet (arpa/inet.h): Use them.
38313 2008-04-28  Eric Blake  <ebb9@byu.net>
38315         Test getndelim2.
38316         * modules/getndelim2-tests: New file.
38317         * tests/test-getndelim2.c: Likewise.
38318         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
38319         stream.
38320         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
38322         * MODULES.html.sh: Document new module.
38324 2008-04-20  Bruno Haible  <bruno@clisp.org>
38326         * lib/c-stack.c (die): Use raise.
38327         * modules/c-stack (Depends-on): Add raise.
38329 2008-04-28  Bruno Haible  <bruno@clisp.org>
38331         Expect rpmatch to be declared.
38332         * lib/yesno.c (rpmatch): Remove declaration.
38334         Declare rpmatch.
38335         * lib/stdlib.in.h (rpmatch): New declaration.
38336         * lib/rpmatch.c: Include <stdlib.h> first.
38337         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
38338         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
38339         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
38340         HAVE_RPMATCH.
38341         * modules/rpmatch (Depends-on): Add stdlib, extensions.
38342         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
38343         (Include): Set to <stdlib.h>.
38344         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
38345         HAVE_RPMATCH.
38346         * NEWS: Document the change.
38348 2008-04-28  Bruno Haible  <bruno@clisp.org>
38350         Change rpmatch to use nl_langinfo when appropriate.
38351         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
38352         (N_): New macro.
38353         (localized_pattern): New function/macro.
38354         (try): Remove match, nomatch arguments. Copy the pattern into safe
38355         memory before caching it.
38356         (rpmatch): Use localized_pattern. Add translator comments.
38357         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
38358         Suggested by Eric Blake.
38359         * modules/rpmatch (Depends-on): Add stdbool.
38361 2008-04-28  Eric Blake  <ebb9@byu.net>
38363         Add rawmemchr module, matching glibc.
38364         * modules/string (Makefile.am): New indicator.
38365         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
38366         * lib/string.in.h (rawmemchr): Declare when appropriate.
38367         * modules/rawmemchr: New file.
38368         * m4/rawmemchr.m4: Likewise.
38369         * lib/rawmemchr.c: Likewise.
38370         * modules/rawmemchr-tests: Likewise.
38371         * tests/test-rawmemchr.c: Likewise.
38372         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
38373         module.
38374         * modules/strchrnul (Depends-on): Add rawmemchr.
38375         * lib/strchrnul.c (strchrnul): Optimize a corner case.
38377         Whitespace cleanup.
38378         * tests/test-strchrnul.c: Reindent.
38379         * lib/strchrnul.c: Likewise.
38381         Optimize and test strchrnul.
38382         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
38383         * modules/strchrnul-tests: New file.
38384         * tests/test-strchrnul.c: Likewise.
38386         Remove intprops dependency.
38387         * modules/memchr (Depends-on): Remove intprops.
38388         * modules/memrchr (Depends-on): Likewise.
38389         * modules/memchr2 (Depends-on): Likewise.
38390         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
38391         * lib/memrchr.c (__memrchr): Likewise.
38392         * lib/memrchr2.c (memchr2): Likewise.
38393         Reported by Simon Josefsson.
38395 2008-04-28  Simon Josefsson  <simon@josefsson.org>
38397         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
38398         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38400 2008-04-28  Simon Josefsson  <simon@josefsson.org>
38402         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
38404         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
38406         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
38408         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
38409         declarations.
38410         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
38412         * m4/inet_pton.m4: Don't check for header files.
38414         * m4/inet_ntop.m4: Don't check for header files.
38416 2008-04-28  Simon Josefsson  <simon@josefsson.org>
38418         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
38419         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
38420         trigger for cygwin).
38421         Reported by Bruno Haible  <bruno@clisp.org>.
38423 2008-04-28  Bruno Haible  <bruno@clisp.org>
38425         * doc/posix-functions/strdup.texi: Mention mingw problem.
38427 2008-04-27  Bruno Haible  <bruno@clisp.org>
38429         * modules/stat-time-tests (Depends-on): Add sleep.
38430         * tests/test-stat-time.c (force_unlink): New function.
38431         (cleanup): Use it.
38432         (test_mtime): Remove the ctime related tests.
38433         (test_ctime): New function, containing the ctime related tests.
38434         (main): Call test_ctime, except on native Windows platforms.
38436 2008-04-27  Bruno Haible  <bruno@clisp.org>
38438         * lib/rpmatch.c (rpmatch): Add some comments.
38439         Reported by James Youngman <jay@gnu.org>.
38441 2008-04-27  Bruno Haible  <bruno@clisp.org>
38443         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
38444         quiet NaNs.
38446 2008-04-27  Bruno Haible  <bruno@clisp.org>
38448         Make test-yesno.sh work on mingw.
38449         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
38450         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
38451         (main): Set stdin to binary mode.
38452         * modules/yesno-tests (Depends-on): Add binary-io.
38454 2008-04-27  Bruno Haible  <bruno@clisp.org>
38456         Fix 'isfinite' on x86, x86_64, ia64 platforms.
38457         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
38458         argument that lie outside the IEEE 854 domain.
38459         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
38460         (gl_ISFINITE): Use it.
38461         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
38463 2008-04-27  Bruno Haible  <bruno@clisp.org>
38465         Allow local renaming in config.h.
38466         * lib/memrchr.c (memrchr): Don't undefine outside libc.
38468 2008-04-27  Bruno Haible  <bruno@clisp.org>
38470         * lib/memchr.c (__memchr): Change type of 'i'.
38471         * lib/memchr2.c (memchr2): Likewise.
38473 2008-04-26  Eric Blake  <ebb9@byu.net>
38474         and Bruno Haible  <bruno@clisp.org>
38476         Optimize and test memrchr.
38477         * modules/memrchr (Depends-on): Add intprops.
38478         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
38479         * modules/memrchr-tests: New file.
38480         * tests/test-memrchr.c: New file.
38482 2008-04-26  Bruno Haible  <bruno@clisp.org>
38484         Add tentative support for DragonFly BSD.
38485         * lib/stdio-impl.h: Add macros for DragonFly BSD.
38486         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
38487         fp.
38488         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
38489         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
38490         * lib/fpurge.c (fpurge): Likewise.
38491         * lib/freadable.c (freaadable): Likewise.
38492         * lib/freadahead.c (freadahead): Likewise.
38493         * lib/freading.c (freading): Likewise.
38494         * lib/freadptr.c (freadptr): Likewise.
38495         * lib/freadseek.c (freadptrinc): Likewise.
38496         * lib/fseeko.c (fseeko): Likewise.
38497         * lib/fseterr.c (fseterr): Likewise.
38498         * lib/fwritable.c (fwritable): Likewise.
38499         * lib/fwriting.c (fwriting): Likewise.
38501 2008-04-26  Bruno Haible  <bruno@clisp.org>
38503         * lib/stdio-impl.h: New file.
38504         * lib/fbufmode.c: Include stdio-impl.h.
38505         (fbufmode): Use fp_, remove redundant #defines.
38506         * lib/fflush.c: Include stdio-impl.h.
38507         (clear_ungetc_buffer): Remove redundant #defines.
38508         * lib/fpurge.c: Include stdio-impl.h.
38509         (fpurge): Remove redundant #defines.
38510         * lib/freadable.c: Include stdio-impl.h.
38511         (freadable): Remove redundant #defines.
38512         * lib/freadahead.c: Include stdio-impl.h.
38513         (freadahead): Remove redundant #defines.
38514         * lib/freading.c: Include stdio-impl.h.
38515         (freading): Remove redundant #defines.
38516         * lib/freadptr.c: Include stdio-impl.h.
38517         (freadptr): Remove redundant #defines.
38518         * lib/freadseek.c: Include stdio-impl.h.
38519         (freadptrinc): Remove redundant #defines.
38520         * lib/fseeko.c: Include stdio-impl.h.
38521         (rpl_fseeko): Remove redundant #defines.
38522         * lib/fseterr.c: Include stdio-impl.h.
38523         (fseterr): Remove redundant #defines.
38524         * lib/fwritable.c: Include stdio-impl.h.
38525         (fwritable: Remove redundant #defines.
38526         * lib/fwriting.c: Include stdio-impl.h.
38527         (fwriting): Remove redundant #defines.
38528         * modules/fbufmode (Files): Add lib/stdio-impl.h.
38529         * modules/fflush (Files): Likewise.
38530         * modules/fpurge (Files): Likewise.
38531         * modules/freadable (Files): Likewise.
38532         * modules/freadahead (Files): Likewise.
38533         * modules/freading (Files): Likewise.
38534         * modules/freadptr (Files): Likewise.
38535         * modules/freadseek (Files): Likewise.
38536         * modules/fseeko (Files): Likewise.
38537         * modules/fseterr (Files): Likewise.
38538         * modules/fwritable (Files): Likewise.
38539         * modules/fwriting (Files): Likewise.
38541 2008-04-26  Bruno Haible  <bruno@clisp.org>
38543         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
38544         restore_seek_optimization, update_fpos_cache): New functions, extracted
38545         from rpl_fflush.
38546         (rpl_fflush): Use them.
38547         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
38548         (gl_REPLACE_FFLUSH): Use it.
38550 2008-04-26  Bruno Haible  <bruno@clisp.org>
38552         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
38553         on Solaris.
38554         * tests/test-xstrtoimax.sh: Likewise.
38555         * tests/test-xstrtoumax.sh: Likewise.
38556         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38558 2008-04-26  Bruno Haible  <bruno@clisp.org>
38560         * modules/memchr-tests: New file.
38561         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
38563 2008-04-26  Eric Blake  <ebb9@byu.net>
38564             Bruno Haible  <bruno@clisp.org>
38566         * lib/memchr.c: Include intprops.h.
38567         (__memchr): Optimize parallel detection of matching bytes. Rename local
38568         variables. Add explanatory comments.
38570 2008-04-26  Bruno Haible  <bruno@clisp.org>
38572         Fix module 'memchr', broken since 2000-10-28.
38573         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
38575 2008-04-26  Bruno Haible  <bruno@clisp.org>
38577         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
38578         comments.
38580 2008-04-25  Eric Blake  <ebb9@byu.net>
38582         Use native fstatat on cygwin 1.7.0.
38583         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
38584         first.
38586 2008-04-23  Eric Blake  <ebb9@byu.net>
38588         Improve memchr2 performance.
38589         * lib/memchr2.c (memchr2): Further optimize parallel detection of
38590         NUL bytes.
38591         * modules/memchr2 (Depends-on): Use intprops.h.
38593 2008-04-23  Simon Josefsson  <simon@josefsson.org>
38595         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
38596         an inline function instead of a CPP macro.  Patch by Ben Pfaff
38597         <blp@cs.stanford.edu>.
38599 2008-04-23  Simon Josefsson  <simon@josefsson.org>
38601         * lib/arpa_inet.in.h: New file.
38603         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
38604         (Makefile.am): Sed in substitute header file.
38606         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
38607         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
38609         * modules/inet_ntop (configure.ac): Use
38610         gl_ARPA_INET_MODULE_INDICATOR.
38612         * modules/inet_pton (configure.ac): Use
38613         gl_ARPA_INET_MODULE_INDICATOR.
38615 2008-04-22  Jim Meyering  <meyering@redhat.com>
38617         * modules/verify (License): Re-license as LGPLv2+.
38619 2008-04-22  Simon Josefsson  <simon@josefsson.org>
38621         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
38622         parameter to void* as per POSIX standard (MinGW uses char*).
38624 2008-04-21  Bruno Haible  <bruno@clisp.org>
38626         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
38627         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
38628         Define to replacements if REPLACE_ISWCNTRL is 1.
38629         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
38630         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
38631         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
38632         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
38633         what it fixes.
38634         * doc/posix-functions/iswalpha.texi: Likewise.
38635         * doc/posix-functions/iswblank.texi: Likewise.
38636         * doc/posix-functions/iswcntrl.texi: Likewise.
38637         * doc/posix-functions/iswdigit.texi: Likewise.
38638         * doc/posix-functions/iswgraph.texi: Likewise.
38639         * doc/posix-functions/iswlower.texi: Likewise.
38640         * doc/posix-functions/iswprint.texi: Likewise.
38641         * doc/posix-functions/iswpunct.texi: Likewise.
38642         * doc/posix-functions/iswspace.texi: Likewise.
38643         * doc/posix-functions/iswupper.texi: Likewise.
38644         * doc/posix-functions/iswxdigit.texi: Likewise.
38645         Reported by Alain Guibert.
38647 2008-04-21  Bruno Haible  <bruno@clisp.org>
38649         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
38650         Patch by Alain Guibert.
38652 2008-04-21  Bruno Haible  <bruno@clisp.org>
38654         Fix test failures on mingw.
38655         * tests/test-xstrtol.c (print_no_progname): New function.
38656         (main): Install it in error_print_progname hook.
38657         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
38658         * tests/test-xstrtoimax.sh: Likewise.
38659         * tests/test-xstrtoumax.sh: Likewise.
38661 2008-04-21  Bruno Haible  <bruno@clisp.org>
38663         Fix test failure on mingw.
38664         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
38666 2008-04-21  Bruno Haible  <bruno@clisp.org>
38668         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
38669         Actually assign a value.
38671 2008-04-20  Bruno Haible  <bruno@clisp.org>
38673         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
38674         take 2.
38675         * lib/canonicalize.c (canonicalize_file_name): Elide if the
38676         'canonicalize-lgpl' module is also used.
38677         * lib/canonicalize-lgpl.c: Undo last change.
38678         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
38680 2008-04-20  Bruno Haible  <bruno@clisp.org>
38682         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
38683         config.h. Provide _mkdir based fallback for mingw.
38684         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
38685         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
38686         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
38687         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
38688         rather than defining mkdir in config.h.
38689         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
38690         (gl_SYS_STAT_H_DEFAULTS): New macro.
38691         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
38692         HAVE_IO_H any more.
38693         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
38694         HAVE_DECL_MKDIR and HAVE_IO_H.
38696 2008-04-20  Bruno Haible  <bruno@clisp.org>
38698         * lib/isapipe.c: Port to native Windows platforms.
38700 2008-04-20  Bruno Haible  <bruno@clisp.org>
38702         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
38704 2008-04-21  Eric Blake  <ebb9@byu.net>
38706         Work around preprocessors that don't handle UINTMAX_MAX.
38707         * lib/memchr2.c (memchr2): Avoid embedded #if.
38708         Reported by Alain Guibert, fix suggested by Bruno Haible.
38710 2008-04-21  Simon Josefsson  <simon@josefsson.org>
38712         * doc/posix-functions/strftime.texi (strftime): Explain better
38713         Windows incompatibility.  Suggested by Micah Cowan
38714         <micah@cowan.name>.
38716 2008-04-20  Bruno Haible  <bruno@clisp.org>
38718         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
38719         unistr/u8-mblen.
38721 2008-04-20  Bruno Haible  <bruno@clisp.org>
38723         Fix test failure on platforms with non-GNU iconv.
38724         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
38725         (U_TO_U8): Use it, rather than u16_to_u8.
38726         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
38727         units at the end of the input string.
38728         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
38730 2008-04-20  Bruno Haible  <bruno@clisp.org>
38732         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
38733         when the resulting length is 0.
38734         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
38736 2008-04-20  Bruno Haible  <bruno@clisp.org>
38738         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
38739         works.
38740         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
38742 2008-04-20  Bruno Haible  <bruno@clisp.org>
38744         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
38745         * modules/tsearch-tests (configure.ac): Test for initstate function.
38747 2008-04-20  Bruno Haible  <bruno@clisp.org>
38749         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
38750         for nlink_t if missing.
38751         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
38753 2008-04-19  Bruno Haible  <bruno@clisp.org>
38755         Work around snprintf bug on Linux libc5.
38756         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
38757         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
38758         gl_SNPRINTF_SIZE1.
38759         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
38760         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
38761         that test failed.
38762         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
38763         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
38764         * modules/snprintf (Files): Add m4/printf.m4.
38765         * modules/vsnprintf (Files): Likewise.
38766         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
38767         * doc/posix-functions/vsnprintf.texi: Likewise.
38769 2008-04-19  Bruno Haible  <bruno@clisp.org>
38771         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
38772         from 0.0058 to less than 10^-7.
38774 2008-04-19  Bruno Haible  <bruno@clisp.org>
38776         Fix rounding when a precision is given.
38777         * lib/vasnprintf.c (is_borderline): New function.
38778         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
38779         9...9x.
38780         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
38781         %e, %g.
38782         * tests/test-vasprintf-posix.c (test_function): Likewise.
38783         * tests/test-snprintf-posix.h (test_function): Likewise.
38784         * tests/test-sprintf-posix.h (test_function): Likewise.
38785         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
38786         * tests/test-printf-posix.h (test_function): Likewise.
38787         * tests/test-printf-posix.output: Update.
38788         Reported by John Darrington <john@darrington.wattle.id.au> via
38789         Ben Pfaff <blp@cs.stanford.edu>.
38791 2008-04-18  Simon Josefsson  <simon@josefsson.org>
38793         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
38794         Suggested by Bruno Haible <bruno@clisp.org>.
38796 2008-04-17  Bruno Haible  <bruno@clisp.org>
38798         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
38799         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
38800         implementation.
38801         Patch by Bruce Merry <bmerry@gmail.com>.
38803 2008-04-17  Simon Josefsson  <simon@josefsson.org>
38805         * doc/posix-functions/strftime.texi (strftime): Mention that %e
38806         doesn't work under Windows.
38808 2008-04-16  Bruno Haible  <bruno@clisp.org>
38810         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
38811         New macros.
38812         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
38813         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
38814         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
38815         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
38816         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
38817         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
38818         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
38819         macros.
38820         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
38821         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
38822         Northern Sotho, Uighur.
38824 2008-04-16  Bruno Haible  <bruno@clisp.org>
38826         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
38827         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
38828         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
38829         Reported by Daniel Bergström <daniel@octocode.com>.
38831 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
38832             Bruno Haible  <bruno@clisp.org>
38834         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
38835         function.
38836         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
38837         New functions, mostly extracted from gl_locale_name_default.
38838         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
38840 2008-04-16  Eric Blake  <ebb9@byu.net>
38842         Adjust strtod detection to catch glibc 2.7 bug.
38843         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
38844         Reported by John Gatewood Ham.
38846 2008-04-16  Bruno Haible  <bruno@clisp.org>
38848         Add tentative support for Linux libc5.
38849         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
38850         * lib/fpurge.c (fpurge): Likewise.
38851         * lib/freadable.c (freadable): Likewise.
38852         * lib/freadahead.c (freadahead): Likewise.
38853         * lib/freading.c (freading): Likewise.
38854         * lib/freadptr.c (freadptr): Likewise.
38855         * lib/freadseek.c (freadptrinc): Likewise.
38856         * lib/fseeko.c (rpl_fseeko): Likewise.
38857         * lib/fseterr.c (fseterr): Likewise.
38858         * lib/fwritable.c (fwritable): Likewise.
38859         * lib/fwriting.c (fwriting): Likewise.
38860         Reported by Alain Guibert <alguibert+bts@free.fr>.
38862 2008-04-15  Bruno Haible  <bruno@clisp.org>
38864         * modules/mathl (configure.ac): Define module indicator.
38866 2008-04-15  Bruno Haible  <bruno@clisp.org>
38868         * lib/logl.c (logl): Remove unused variables.
38870 2008-04-15  Bruno Haible  <bruno@clisp.org>
38872         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
38873         fails.
38875 2008-04-15  Bruno Haible  <bruno@clisp.org>
38877         * lib/trim.c (trim2): Fix argument of isspace() macro.
38879 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
38881         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
38882         to 0.
38883         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
38885 2008-04-14  Bruno Haible  <bruno@clisp.org>
38887         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
38888         AC_LANG_PROGRAM argument.
38889         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
38890         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
38891         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
38892         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
38893         * m4/math_h.m4 (gl_MATH_H): Likewise.
38894         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
38895         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
38896         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
38897         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
38898         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
38899         * m4/regex.m4 (gl_REGEX): Likewise.
38900         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
38901         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
38902         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
38903         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
38904         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
38905         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
38906         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
38907         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
38909 2008-04-14  Jim Meyering  <meyering@redhat.com>
38911         test-strtod: fix typos: s/abs/fabs/
38912         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
38914 2008-04-13  Bruno Haible  <bruno@clisp.org>
38916         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
38917         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
38918         module is also used and while not building the reloc-wrapper.
38920 2008-04-13  Bruno Haible  <bruno@clisp.org>
38922         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
38924 2008-04-13  Bruno Haible  <bruno@clisp.org>
38926         Fix AIX compilation failure introduced on 2008-04-02.
38927         * tests/test-frexp.c (exp): Undefine before redefining.
38928         * tests/test-frexpl.c (exp): Likewise.
38930 2008-04-13  Bruno Haible  <bruno@clisp.org>
38932         Work around a HP-UX stdio bug.
38933         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
38934         * tests/test-ftello.c (main): Likewise.
38935         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
38936         * doc/posix-functions/ftello.texi: Likewise.
38938 2008-04-13  Bruno Haible  <bruno@clisp.org>
38940         Make test-signbit pass on HP-UX/hppa.
38941         * tests/test-signbit.c (minus_zerol): New variable.
38942         (test_signbitl): Use it.
38944 2008-04-13  Bruno Haible  <bruno@clisp.org>
38946         Make truncl work on OSF/1 4.0.
38947         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
38948         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
38949         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
38950         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
38951         HAVE_DECL_TRUNCL.
38952         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
38953         HAVE_DECL_TRUNCL.
38954         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
38956 2008-04-13  Bruno Haible  <bruno@clisp.org>
38958         * lib/unictype.h: Remove trailing comma from enumeration definitions.
38960 2008-04-13  Bruno Haible  <bruno@clisp.org>
38962         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
38963         expression, so as to avoid HP-UX 11 cc compiler bug.
38965 2008-04-13  Bruno Haible  <bruno@clisp.org>
38967         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
38969 2008-04-13  Bruno Haible  <bruno@clisp.org>
38971         * lib/git-merge-changelog.c: Remove empty declaration outside of
38972         functions.
38974 2008-04-13  Bruno Haible  <bruno@clisp.org>
38976         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
38978 2008-04-13  Bruno Haible  <bruno@clisp.org>
38980         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
38981         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
38982         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
38983         also if it exists but lacks definitions of the SHUT_* macros.
38984         * modules/sys_socket (Description): Update.
38985         Reported by Elbert Pol <e.pol@chello.nl>.
38987 2008-04-13  Bruno Haible  <bruno@clisp.org>
38989         * lib/localcharset.c (OS2): Don't redefine if already defined.
38990         Reported by Elbert Pol <e.pol@chello.nl>.
38992 2008-04-13  Bruno Haible  <bruno@clisp.org>
38994         * lib/binary-io.h [__EMX__]: Include <io.h>.
38995         Reported by Elbert Pol <e.pol@chello.nl>.
38997 2008-04-12  Bruno Haible  <bruno@clisp.org>
38999         * lib/fpucw.h: Enable the definitions also for x86_64.
39000         Needed for NetBSD/x86_64.
39001         Reported by Thomas Klausner <tk@giga.or.at>.
39003 2008-04-12  Bruno Haible  <bruno@clisp.org>
39005         * tests/test-strtod.c: Include isnand.h.
39006         (main): Use isnand instead of isnan.
39007         Reported by Jim Meyering.
39009 2008-04-12  Bruno Haible  <bruno@clisp.org>
39011         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
39012         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
39014 2008-04-12  Jim Meyering  <meyering@redhat.com>
39016         * m4/math_h.m4 (gl_MATH_H): Fix typos.
39018 2008-04-12  Bruno Haible  <bruno@clisp.org>
39020         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
39021         Reported by Elbert Pol <e.pol@chello.nl>.
39023 2008-04-12  Eric Blake  <ebb9@byu.net>
39025         Work around Solaris 10 math.h bug.
39026         * m4/math_h.m4 (gl_MATH_H): Check for bug.
39027         (gl_MATH_H_DEFAULTS): Set up default.
39028         * modules/math (Makefile.am): Replace new indicators.
39029         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
39030         * tests/test-math.c (main): Test this.
39031         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
39032         * doc/posix-headers/math.texi (math.h): Mention bug.
39033         Reported by Nelson H. F. Beebe and Jim Meyering.
39035 2008-04-11  Bruno Haible  <bruno@clisp.org>
39037         Adapt to future versions of Apple GCC.
39038         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
39039         Reported by Peter O'Gorman <peter@pogma.com>.
39041 2008-04-11  Bruno Haible  <bruno@clisp.org>
39043         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
39045 2008-04-11  Bruno Haible  <bruno@clisp.org>
39047         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
39049         * modules/getaddrinfo-tests (Makefile.am): Define
39050         test_getaddrinfo_LDADD.
39052 2008-04-11  Bruno Haible  <bruno@clisp.org>
39054         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
39055         (init): Fix syntax error.
39056         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
39057         is declared.
39059 2008-04-11  Bruno Haible  <bruno@clisp.org>
39061         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
39062         * modules/glob (Depends-on): Add stdbool.
39064 2008-04-11  Bruno Haible  <bruno@clisp.org>
39066         * lib/trim.c: Include <string.h>.
39068 2008-04-11  Eric Blake  <ebb9@byu.net>
39070         Avoid compile failure on OS/2.
39071         * lib/regex_internal.h (internal_function): Disable optimization
39072         on OS/2 (__EMX__), where it caused compiler error.
39073         Reported by Elbert Pol.
39075 2008-04-11  Bruno Haible  <bruno@clisp.org>
39077         Flush the standard error stream before aborting. Needed on mingw.
39078         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
39079         * tests/test-array_list.c (ASSERT): Likewise.
39080         * tests/test-array_oset.c (ASSERT): Likewise.
39081         * tests/test-avltree_list.c (ASSERT): Likewise.
39082         * tests/test-avltree_oset.c (ASSERT): Likewise.
39083         * tests/test-avltreehash_list.c (ASSERT): Likewise.
39084         * tests/test-binary-io.c (ASSERT): Likewise.
39085         * tests/test-byteswap.c (ASSERT): Likewise.
39086         * tests/test-c-ctype.c (ASSERT): Likewise.
39087         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
39088         * tests/test-c-strcasestr.c (ASSERT): Likewise.
39089         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
39090         * tests/test-c-strstr.c (ASSERT): Likewise.
39091         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
39092         * tests/test-canonicalize.c (ASSERT): Likewise.
39093         * tests/test-carray_list.c (ASSERT): Likewise.
39094         * tests/test-ceilf1.c (ASSERT): Likewise.
39095         * tests/test-ceilf2.c (ASSERT): Likewise.
39096         * tests/test-ceill.c (ASSERT): Likewise.
39097         * tests/test-count-one-bits.c (ASSERT): Likewise.
39098         * tests/test-fbufmode.c (ASSERT): Likewise.
39099         * tests/test-fflush2.c (ASSERT): Likewise.
39100         * tests/test-floorf1.c (ASSERT): Likewise.
39101         * tests/test-floorf2.c (ASSERT): Likewise.
39102         * tests/test-floorl.c (ASSERT): Likewise.
39103         * tests/test-fopen.c (ASSERT): Likewise.
39104         * tests/test-fpending.c (ASSERT): Likewise.
39105         * tests/test-fprintf-posix.c (ASSERT): Likewise.
39106         * tests/test-fpurge.c (ASSERT): Likewise.
39107         * tests/test-freadable.c (ASSERT): Likewise.
39108         * tests/test-freadahead.c (ASSERT): Likewise.
39109         * tests/test-freading.c (ASSERT): Likewise.
39110         * tests/test-freadptr.c (ASSERT): Likewise.
39111         * tests/test-freadptr2.c (ASSERT): Likewise.
39112         * tests/test-freadseek.c (ASSERT): Likewise.
39113         * tests/test-freopen.c (ASSERT): Likewise.
39114         * tests/test-frexp.c (ASSERT): Likewise.
39115         * tests/test-frexpl.c (ASSERT): Likewise.
39116         * tests/test-fseek.c (ASSERT): Likewise.
39117         * tests/test-fseeko.c (ASSERT): Likewise.
39118         * tests/test-fstrcmp.c (ASSERT): Likewise.
39119         * tests/test-ftell.c (ASSERT): Likewise.
39120         * tests/test-ftello.c (ASSERT): Likewise.
39121         * tests/test-func.c (ASSERT): Likewise.
39122         * tests/test-fwritable.c (ASSERT): Likewise.
39123         * tests/test-fwriting.c (ASSERT): Likewise.
39124         * tests/test-getdelim.c (ASSERT): Likewise.
39125         * tests/test-getline.c (ASSERT): Likewise.
39126         * tests/test-i-ring.c (ASSERT): Likewise.
39127         * tests/test-iconv-utf.c (ASSERT): Likewise.
39128         * tests/test-iconv.c (ASSERT): Likewise.
39129         * tests/test-isfinite.c (ASSERT): Likewise.
39130         * tests/test-isnand.c (ASSERT): Likewise.
39131         * tests/test-isnanf.c (ASSERT): Likewise.
39132         * tests/test-isnanl.h (ASSERT): Likewise.
39133         * tests/test-ldexpl.c (ASSERT): Likewise.
39134         * tests/test-linked_list.c (ASSERT): Likewise.
39135         * tests/test-linkedhash_list.c (ASSERT): Likewise.
39136         * tests/test-localename.c (ASSERT): Likewise.
39137         * tests/test-lseek.c (ASSERT): Likewise.
39138         * tests/test-mbscasecmp.c (ASSERT): Likewise.
39139         * tests/test-mbscasestr1.c (ASSERT): Likewise.
39140         * tests/test-mbscasestr2.c (ASSERT): Likewise.
39141         * tests/test-mbscasestr3.c (ASSERT): Likewise.
39142         * tests/test-mbscasestr4.c (ASSERT): Likewise.
39143         * tests/test-mbschr.c (ASSERT): Likewise.
39144         * tests/test-mbscspn.c (ASSERT): Likewise.
39145         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
39146         * tests/test-mbspbrk.c (ASSERT): Likewise.
39147         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
39148         * tests/test-mbsrchr.c (ASSERT): Likewise.
39149         * tests/test-mbsspn.c (ASSERT): Likewise.
39150         * tests/test-mbsstr1.c (ASSERT): Likewise.
39151         * tests/test-mbsstr2.c (ASSERT): Likewise.
39152         * tests/test-mbsstr3.c (ASSERT): Likewise.
39153         * tests/test-memchr2.c (ASSERT): Likewise.
39154         * tests/test-memmem.c (ASSERT): Likewise.
39155         * tests/test-open.c (ASSERT): Likewise.
39156         * tests/test-printf-frexp.c (ASSERT): Likewise.
39157         * tests/test-printf-frexpl.c (ASSERT): Likewise.
39158         * tests/test-printf-posix.c (ASSERT): Likewise.
39159         * tests/test-quotearg.c (ASSERT): Likewise.
39160         * tests/test-rbtree_list.c (ASSERT): Likewise.
39161         * tests/test-rbtree_oset.c (ASSERT): Likewise.
39162         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
39163         * tests/test-round1.c (ASSERT): Likewise.
39164         * tests/test-roundf1.c (ASSERT): Likewise.
39165         * tests/test-roundl.c (ASSERT): Likewise.
39166         * tests/test-signbit.c (ASSERT): Likewise.
39167         * tests/test-sleep.c (ASSERT): Likewise.
39168         * tests/test-snprintf-posix.c (ASSERT): Likewise.
39169         * tests/test-snprintf.c (ASSERT): Likewise.
39170         * tests/test-sprintf-posix.c (ASSERT): Likewise.
39171         * tests/test-stat-time.c (ASSERT): Likewise.
39172         * tests/test-strcasestr.c (ASSERT): Likewise.
39173         * tests/test-strerror.c (ASSERT): Likewise.
39174         * tests/test-striconv.c (ASSERT): Likewise.
39175         * tests/test-striconveh.c (ASSERT): Likewise.
39176         * tests/test-striconveha.c (ASSERT): Likewise.
39177         * tests/test-strsignal.c (ASSERT): Likewise.
39178         * tests/test-strstr.c (ASSERT): Likewise.
39179         * tests/test-strtod.c (ASSERT): Likewise.
39180         * tests/test-trunc1.c (ASSERT): Likewise.
39181         * tests/test-trunc2.c (ASSERT): Likewise.
39182         * tests/test-truncf1.c (ASSERT): Likewise.
39183         * tests/test-truncf2.c (ASSERT): Likewise.
39184         * tests/test-truncl.c (ASSERT): Likewise.
39185         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
39186         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
39187         * tests/test-vasnprintf.c (ASSERT): Likewise.
39188         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
39189         * tests/test-vasprintf.c (ASSERT): Likewise.
39190         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
39191         * tests/test-vprintf-posix.c (ASSERT): Likewise.
39192         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
39193         * tests/test-vsnprintf.c (ASSERT): Likewise.
39194         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
39195         * tests/test-wcwidth.c (ASSERT): Likewise.
39196         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
39197         * tests/test-xprintf-posix.c (ASSERT): Likewise.
39198         * tests/test-xvasprintf.c (ASSERT): Likewise.
39199         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
39200         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
39201         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
39202         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
39203         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
39204         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
39205         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
39206         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
39207         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
39208         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
39209         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
39210         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
39211         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
39212         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
39213         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
39214         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
39215         * tests/unictype/test-block_list.c (ASSERT): Likewise.
39216         * tests/unictype/test-block_of.c (ASSERT): Likewise.
39217         * tests/unictype/test-block_test.c (ASSERT): Likewise.
39218         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
39219         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
39220         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
39221         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
39222         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
39223         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
39224         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
39225         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
39226         * tests/unictype/test-combining.c (ASSERT): Likewise.
39227         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
39228         * tests/unictype/test-digit.c (ASSERT): Likewise.
39229         * tests/unictype/test-mirror.c (ASSERT): Likewise.
39230         * tests/unictype/test-numeric.c (ASSERT): Likewise.
39231         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
39232         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
39233         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
39234         * tests/unictype/test-scripts.c (ASSERT): Likewise.
39235         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
39236         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
39237         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
39238         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
39239         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
39240         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
39241         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
39242         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
39243         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
39244         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
39245         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
39246         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
39247         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
39248         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
39249         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
39250         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
39251         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
39252         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
39253         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
39254         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
39255         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
39256         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
39257         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
39258         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
39259         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
39260         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
39261         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
39262         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
39263         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
39264         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
39265         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
39266         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
39267         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
39268         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
39269         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
39270         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
39271         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
39272         Reported by Eric Blake.
39274 2008-04-11  Bruno Haible  <bruno@clisp.org>
39276         * lib/wchar.in.h: Tweak comment.
39278 2008-04-11  Bruno Haible  <bruno@clisp.org>
39280         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
39281         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
39282         gl_COMMON.
39283         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
39285 2008-04-11  Bruno Haible  <bruno@clisp.org>
39287         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
39289 2008-04-11  Simon Josefsson  <simon@josefsson.org>
39291         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
39292         of attempting to use non-existing /dev/*random.  Based on patch
39293         from Adam Strzelecki <ono@java.pl> in
39294         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
39296 2008-04-08  Bruno Haible  <bruno@clisp.org>
39298         Add tentative support for emx+gcc.
39299         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
39300         * lib/fpurge.c (fpurge): Likewise.
39301         * lib/freadable.c (freadable): Likewise.
39302         * lib/freadahead.c (freadahead): Likewise.
39303         * lib/freading.c (freading): Likewise.
39304         * lib/freadptr.c (freadptr): Likewise.
39305         * lib/freadseek.c (freadptrinc): Likewise.
39306         * lib/fseeko.c (rpl_fseeko): Likewise.
39307         * lib/fseterr.c (fseterr): Likewise.
39308         * lib/fwritable.c (fwritable): Likewise.
39309         * lib/fwriting.c (fwriting): Likewise.
39310         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
39312 2008-04-09  Eric Blake  <ebb9@byu.net>
39314         Avoid some autoconf warnings.
39315         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
39316         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
39317         * m4/afs.m4 (gl_AFS): Likewise.
39318         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
39319         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
39320         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
39321         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
39322         (gl_INTEGER_TYPE_SUFFIX): Likewise.
39323         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
39324         (AC_CHECK_DECLS_ONCE): Likewise.
39325         Rename file...
39326         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
39327         gnulib-tool requires autoconf 2.59 or better.
39328         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
39330 2008-04-08  Eric Blake  <ebb9@byu.net>
39332         Use 'git describe --match' if present (added in git 1.5.5).
39333         * build-aux/git-version-gen: Limit result to tags that match 'v*'
39334         if possible.
39336 2008-04-08  Bruno Haible  <bruno@clisp.org>
39338         Add tentative support for OpenServer.
39339         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
39340         _ptr, _cnt.
39341         * lib/fpurge.c (fpurge): Likewise.
39342         * lib/freadable.c (freadable): Likewise.
39343         * lib/freadahead.c (freadahead): Likewise.
39344         * lib/freading.c (freading): Likewise.
39345         * lib/freadptr.c (freadptr): Likewise.
39346         * lib/freadseek.c (freadptrinc): Likewise.
39347         * lib/fseeko.c (rpl_fseeko): Likewise.
39348         * lib/fseterr.c (fseterr): Likewise.
39349         * lib/fwritable.c (fwritable): Likewise.
39350         * lib/fwriting.c (fwriting): Likewise.
39351         Reported by Roger Cornelius <rac@tenzing.org> and
39352         Brian K. White <brian@aljex.com>.
39354 2008-04-06  Jim Meyering  <meyering@redhat.com>
39356         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
39358 2008-04-06  Bruno Haible  <bruno@clisp.org>
39360         Avoid possible error with non-ASCII bytes in UTF-8 locales.
39361         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
39362         * tests/test-printf-posix.sh: Likewise.
39363         * tests/test-vfprintf-posix.sh: Likewise.
39364         * tests/test-vprintf-posix.sh: Likewise.
39365         * tests/test-xprintf-posix.sh: Likewise.
39367 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39369         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
39370         hide error from 'ls', needed on OS/2.
39371         Report by Elbert Pol <elbert.pol@gmail.com>.
39373 2008-04-04  Eric Blake  <ebb9@byu.net>
39375         Make test-fseeko.c failures meaningful.
39376         * tests/test-fseeko.c: Print line number on failure.
39377         * tests/test-fseek.c: Likewise.
39378         Reported by Nelson H. F. Beebe.
39380         Improve strtod bug detection check.
39381         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
39382         required for Solaris 10.
39383         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
39385 2008-04-04  Bruno Haible  <bruno@clisp.org>
39387         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
39388         by m4/setenv.m4.
39390 2008-04-03  Eric Blake  <ebb9@byu.net>
39392         Ensure sane .version contents.
39393         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
39394         version string.
39395         * build-aux/git-version-gen: Improve documentation.
39397         Make GNU make output nicer.
39398         * top/GNUmakefile [!_have-Makefile]: Add dependency on
39399         MAKECMDGOALS to enforce message for all command line targets.  Set
39400         srcdir for use in maint.mk.
39402         Another maintainer tweak.
39403         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
39404         a target that regenerates version.
39406 2008-04-03  Jim Meyering  <meyering@redhat.com>
39408         vc-list-files: don't cause coreutils "make po-check" failure
39409         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
39411 2008-04-03  Eric Blake  <ebb9@byu.net>
39413         Allow VPATH usage of vc-list-files.
39414         * build-aux/vc-list-files (scriptversion): Add timestamp.
39415         (options): Add --help, --version, -C.
39416         (CVS): Support installed cvsu.
39418 2008-04-02  Bruno Haible  <bruno@clisp.org>
39420         Avoid some "statement with no effect" warnings from gcc.
39421         * tests/test-wctype.c (main): Explicitly ignore unused values.
39422         Reported by Jim Meyering.
39424 2008-04-02  Jim Meyering  <meyering@redhat.com>
39426         Avoid some warnings from "gcc -Wshadow".
39427         * tests/test-frexp.c (exp): Define to a different identifier.
39428         * tests/test-frexpl.c (exp): Likewise.
39430 2008-04-03  Jim Meyering  <meyering@redhat.com>
39432         bootstrap: remove dangling *.[ch] symlinks from lib
39433         * build-aux/bootstrap [dangling symlink removal]: Move find's
39434         -depth option to precede all others, to avoid a warning.
39435         Remove *.[ch] files too, and from "$source_base" (usually lib/).
39437 2008-04-02  Bruno Haible  <bruno@clisp.org>
39439         Avoid some warnings from "gcc -Wshadow".
39440         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
39441         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
39442         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
39443         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
39444         Reported by Jim Meyering.
39446 2008-04-01  Bruno Haible  <bruno@clisp.org>
39448         Fix test to work on IRIX 6.5 with cc.
39449         * tests/test-math.c (numeric_equal): New function.
39450         (main): Use it.
39452 2008-04-01  Bruno Haible  <bruno@clisp.org>
39454         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
39456 2008-04-01  Bruno Haible  <bruno@clisp.org>
39458         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
39459         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
39460         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
39461         (Depends-on): Remove math.
39463         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
39464         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
39465         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
39466         (Depends-on): Remove math.
39468         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
39469         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
39470         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
39471         (Depends-on): Remove math.
39472         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
39473         (Depends-on): Remove math.
39475         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
39476         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
39477         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
39478         (Depends-on): Remove math.
39479         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
39480         (Depends-on): Remove math.
39482         * tests/test-round1.c: Include nan.h.
39483         (main): Use NaNd instead of NAN.
39484         * modules/round-tests (Files): Add tests/nan.h.
39486         * tests/test-trunc1.c: Include nan.h.
39487         (main): Use NaNd instead of NAN.
39488         * modules/trunc-tests (Files): Add tests/nan.h.
39490         * tests/test-roundf1.c: Include nan.h.
39491         (main): Use NaNf instead of NAN.
39492         * modules/roundf-tests (Files): Add tests/nan.h.
39494         * tests/test-truncf1.c: Include nan.h.
39495         (main): Use NaNf instead of NAN.
39496         * modules/truncf-tests (Files): Add tests/nan.h.
39498         * tests/test-ceilf1.c: Include nan.h.
39499         (main): Use NaNf instead of NAN.
39500         * modules/ceilf-tests (Files): Add tests/nan.h.
39502         * tests/test-floorf1.c: Include nan.h.
39503         (main): Use NaNf instead of NAN.
39504         * modules/floorf-tests (Files): Add tests/nan.h.
39506         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
39507         (main): Use NaNf instead of NAN.
39508         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
39510         * tests/test-isnand.c: Include nan.h instead of <math.h>.
39511         (main): Use NaNd instead of NAN.
39512         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
39514         * tests/test-frexp.c: Include nan.h.
39515         (main): Use NaNd instead of NAN.
39516         * modules/frexp-tests (Files): Add tests/nan.h.
39518         * lib/isnan.c: Don't include <math.h>.
39519         (FUNC): Don't use NAN macro.
39520         * modules/isnand-nolibm (Depends-on): Remove math.
39521         * modules/isnanf-nolibm (Depends-on): Remove math.
39522         * modules/isnanl (Depends-on): Remove math.
39523         * modules/isnanl-nolibm (Depends-on): Remove math.
39525         * tests/nan.h: New file.
39527 2008-04-01  Eric Blake  <ebb9@byu.net>
39529         Fix typos.
39530         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
39531         values to be the right type.
39533         For now, cater to gnulib strtod inaccuracies.
39534         * tests/test-strtod.c (main): Allow 1-ulp error on expected
39535         fractional results.  While not as nice from a QoI perspective, it
39536         is a quicker patch than correctly implementing decimal to binary
39537         rounding.
39539 2008-03-31  Eric Blake  <ebb9@byu.net>
39541         Guarantee a definition of NAN.
39542         * lib/math.in.h (NAN): Define if missing.
39543         * tests/test-math.c (main): Test it.
39544         * doc/posix-headers/math.texi (math.h): Document this.
39545         * lib/isnan.c (rpl_isnand): Use it.
39546         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
39547         * tests/test-floorf1.c (NaN): Likewise.
39548         * tests/test-frexp.c (NaN): Likewise.
39549         * tests/test-isnand.c (NaN): Likewise.
39550         * tests/test-isnanf.c (NaN): Likewise.
39551         * tests/test-round1.c (NaN): Likewise.
39552         * tests/test-roundf1.c (NaN): Likewise.
39553         * tests/test-snprintf-posix.h (NaN): Likewise.
39554         * tests/test-sprintf-posix.h (NaN): Likewise.
39555         * tests/test-trunc1.c (NaN): Likewise.
39556         * tests/test-truncf1.c (NaN): Likewise.
39557         * tests/test-vasnprintf-posix.c (NaN): Likewise.
39558         * tests/test-vasprintf-posix.c (NaN): Likewise.
39559         * modules/isnand-nolibm (Depends-on): Add math.
39560         * modules/isnanf-nolibm (Depends-on): Likewise.
39561         * modules/isnanl (Depends-on): Likewise.
39562         * modules/isnanl-nolibm (Depends-on): Likewise.
39563         * modules/snprintf-posix-tests (Depends-on): Likewise.
39564         * modules/sprintf-posix-tests (Depends-on): Likewise.
39565         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
39566         * modules/vsprintf-posix-tests (Depends-on): Likewise.
39567         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
39568         * modules/vasprintf-posix-tests (Depends-on): Likewise.
39570 2008-03-31  Bruno Haible  <bruno@clisp.org>
39572         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
39573         * doc/posix-functions/strtod.texi: Likewise.
39575 2008-03-31  Bruno Haible  <bruno@clisp.org>
39577         * tests/test-strtod.c (main): Don't use C99 syntax.
39579 2008-03-31  Bruno Haible  <bruno@clisp.org>
39581         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
39582         Reported by Eric Blake.
39584 2008-03-31  Jim Meyering  <meyering@redhat.com>
39586         Don't compare actual signbit return values.
39587         * tests/test-strtod.c (main): Rather, compare only their
39588         zero/non-zero nature.
39590 2008-03-31  Eric Blake  <ebb9@byu.net>
39592         More strtod documentation.
39593         * doc/posix-functions/strtod.texi (strtod): Interpret more test
39594         failures as distinct bugs.
39596 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
39598         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
39599         Problem reported by Erik Benada in
39600         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
39602 2008-03-30  Bruno Haible  <bruno@clisp.org>
39604         * tests/test-strtod.c: Add comments about which assertion fails on which
39605         platform.
39606         * doc/posix-functions/strtod.texi: Add info about many more platforms.
39608 2008-03-30  Eric Blake  <ebb9@byu.net>
39610         Test signbit behavior on zeros.
39611         * tests/test-signbit.c (test_signbitf): Add tests for zero.
39612         (test_signbitd, test_signbitl): Likewise.
39614         More strtod touchups.
39615         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
39616         sign of negative underflow, for now.  Use .5, not .1.
39617         * doc/posix-functions/strtod.texi (strtod): Mention these
39618         limitations.
39619         Reported by Jim Meyering.
39621 2008-03-30  Bruno Haible  <bruno@clisp.org>
39623         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
39624         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
39626 2008-03-30  Bruno Haible  <bruno@clisp.org>
39628         Avoid failure when attempting to return empty iconv results on some
39629         platforms.
39630         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
39631         allocation, don't report ENOMEM when the resulting string is empty.
39633 2008-03-30  Bruno Haible  <bruno@clisp.org>
39635         Fix buffer overrun.
39636         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
39637         Don't consider the width for tmp_length. Check count against tmp_length
39638         before doing the padding. Ensure enough allocation during padding.
39640 2008-03-30  Eric Blake  <ebb9@byu.net>
39642         strtod touchups.
39643         * lib/strtod.c (strtod): Avoid compiler warnings.
39644         Reported by Jim Meyering.
39646 2008-03-30  Bruno Haible  <bruno@clisp.org>
39648         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
39649         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
39650         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
39651         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
39652         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
39653         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
39654         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
39655         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
39657         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
39658         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
39659         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
39660         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
39661         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
39662         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
39663         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
39664         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
39666         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
39667         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
39668         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
39669         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
39670         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
39671         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
39672         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
39673         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
39675         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
39676         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
39678         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
39679         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
39681         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
39682         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
39684         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
39685         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
39686         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
39688         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
39689         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
39690         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
39692         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
39693         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
39694         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
39696         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
39697         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
39698         * modules/vasprintf (Depends-on): Add EOVERFLOW.
39700         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
39701         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
39702         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
39703         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
39704         (Depends-on): Add EOVERFLOW.
39705         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
39706         (Depends-on): Add EOVERFLOW.
39707         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
39708         (Depends-on): Add EOVERFLOW.
39709         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
39710         (Depends-on): Add EOVERFLOW.
39711         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
39712         (Depends-on): Add EOVERFLOW.
39713         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
39714         (Depends-on): Add EOVERFLOW.
39715         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
39716         (Depends-on): Add EOVERFLOW.
39717         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
39718         (Depends-on): Add EOVERFLOW.
39720         * lib/sprintf.c (EOVERFLOW): Remove fallback.
39721         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
39722         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
39724         * lib/snprintf.c (EOVERFLOW): Remove fallback.
39725         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
39726         * modules/snprintf (Depends-on): Add EOVERFLOW.
39728         * lib/poll.c (EOVERFLOW): Remove fallback.
39729         * modules/poll (Depends-on): Add EOVERFLOW.
39731         * lib/getugroups.c (EOVERFLOW): Remove fallback.
39732         * modules/getugroups (Depends-on): Add EOVERFLOW.
39734         * lib/getdelim.c (EOVERFLOW): Remove fallback.
39735         * modules/getdelim (Depends-on): Add EOVERFLOW.
39737         * lib/ftell.c (EOVERFLOW): Remove fallback.
39738         * modules/ftell (Depends-on): Add EOVERFLOW.
39740         * lib/fprintf.c (EOVERFLOW): Remove fallback.
39741         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
39742         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
39744         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
39746         * modules/EOVERFLOW-tests: New file.
39747         * tests/test-EOVERFLOW.c: New file.
39749         * modules/EOVERFLOW: New file.
39750         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
39752 2008-03-30  Bruno Haible  <bruno@clisp.org>
39754         Fix bug introduced on 2007-06-10.
39755         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
39756         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
39758 2008-03-30  Bruno Haible  <bruno@clisp.org>
39760         Improve freadseek's efficiency after ungetc.
39761         * lib/freadseek.c: Include freadahead.h.
39762         (freadptrinc): New function, extracted from freadseek.
39763         (freadseek): Use it in a loop. Use freadahead to determine the number
39764         of loop iterations.
39765         * modules/freadseek (Depends-on): Add freadahead.
39766         (configure.ac): Require AC_C_INLINE.
39768 2008-03-30  Bruno Haible  <bruno@clisp.org>
39770         * lib/freadseek.c (freadseek): Don't ignore the return value of
39771         freadptr.
39773 2008-03-29  Eric Blake  <ebb9@byu.net>
39775         Add hex float support.
39776         * modules/strtod (Depends-on): Add c-ctype.
39777         (Link): Mention POW_LIB.
39778         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
39779         whitespace between 'e' and exponent.
39780         * tests/test-strtod.c (main): Enable hex float tests.
39781         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
39782         now provides.
39784         Document various strtod bugs, with some fixes.
39785         * doc/posix-functions/strtod.texi (strtod): Document bugs with
39786         "-0x", "inf", "nan", and hex constants.
39787         * doc/posix-functions/atof.texi (atof): Likewise.
39788         * modules/stdlib (Makefile.am): Support strtod.
39789         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
39790         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
39791         detect additional strtod bugs.
39792         * lib/stdlib.in.h (rpl_strtod): Add declarations.
39793         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
39794         bool where appropriate.  Parse 'inf' and 'nan'.
39795         * tests/test-strtod.c: New file.
39796         * modules/strtod (Depends-on): Add stdbool, stdlib.
39797         (configure.ac): Turn on module indicator.
39798         * modules/strtod-tests: New module.
39800 2008-03-29  Eric Blake  <ebb9@byu.net>
39802         Fix ftell on mingw.
39803         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
39804         * modules/ftell-tests (Depends-on): Add binary-io.
39805         * modules/ftello-tests (Depends-on): Likewise.
39806         * tests/test-ftell.c (main): Enhance test to cover behavior after
39807         ungetc.  Enforce binary mode.
39808         * tests/test-ftello.c (main): Likewise.
39810         Pass test-freadseek on cygwin.
39811         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
39812         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
39813         ungetc buffer.
39815         * tests/test-fflush2.c (main): Fix typo.
39817 2008-03-29  Bruno Haible  <bruno@clisp.org>
39819         * tests/test-fflush2.c (main): Temporarily disable the contents of
39820         this test.
39821         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
39822         Reported by Eric Blake.
39824 2008-03-28  Simon Josefsson  <simon@josefsson.org>
39826         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
39827         (GC_SHA224_DIGEST_SIZE): Add.
39829         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
39830         (gc_hash_digest_length): Likewise.
39831         (gc_hash_buffer): Likewise.
39833 2008-03-25  Bruno Haible  <bruno@clisp.org>
39835         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
39836         detail which gettext release to use.
39837         Reported by Simon Josefsson.
39839 2008-03-26  Jim Meyering  <meyering@redhat.com>
39841         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
39842         * modules/gnumakefile (clean-GNUmakefile): Also, use
39843         test ... && ... || : syntax rather than if-then ... fi.
39845         gnumakefile: Don't double-quote-expand $(VPATH) value.
39846         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
39848 2008-03-24  Eric Blake  <ebb9@byu.net>
39850         Alter GNUmakefile to install into top directory.
39851         * modules/maintainer-makefile: Split, and add dependency...
39852         * modules/gnumakefile: to this new module.
39853         * build-aux/GNUmakefile: Move...
39854         * top/GNUmakefile: ...here.
39855         * build-aux/maint.mk: Move...
39856         * top/maint.mk: ...here.
39857         * MODULES.html.sh (Support for maintaining...): Document new
39858         module.
39860 2008-03-23  Bruno Haible  <bruno@clisp.org>
39862         * gnulib-tool: New options --vc-files, --no-vc-files.
39863         (func_usage): Document them.
39864         (vc_files): New variable.
39865         (func_import): Consider vc_files.
39866         (func_create_testdir): Set vc_files to empty.
39867         Suggested by Jim Meyering and Karl Berry.
39869 2008-03-23  Bruno Haible  <bruno@clisp.org>
39871         Fix regex compilation error on HP-UX 11.
39872         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
39873         * modules/regex (Files): Add m4/mbstate_t.m4.
39874         Reported by Ton Voon <ton.voon@altinity.com>.
39876 2008-03-23  Bruno Haible  <bruno@clisp.org>
39878         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
39880 2008-03-23  Eric Blake  <ebb9@byu.net>
39881             Bruno Haible  <bruno@clisp.org>
39883         Install files from top/ in the destination directory.
39884         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
39885         augmentation also for the files from top/.
39886         (func_import, func_create_testdir): Rewrite file names:
39887         top/filename -> filename.
39889 2008-03-23  Bruno Haible  <bruno@clisp.org>
39891         Tweak "gnulib --version" output.
39892         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
39894 2008-03-23  Bruno Haible  <bruno@clisp.org>
39896         Tweak "gnulib --version" output.
39897         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
39898         rather than contents of ChangeLog, when possible.
39900 2008-03-21  Eric Blake  <ebb9@byu.net>
39902         More --version tweaks.
39903         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
39904         date of last ChangeLog entry.
39906 2008-03-21  Jim Meyering  <meyering@redhat.com>
39908         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
39910 2008-03-20  Eric Blake  <ebb9@byu.net>
39912         VPATH fix.
39913         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
39915 2008-03-20  Simon Josefsson  <simon@josefsson.org>
39917         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
39918         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
39920 2008-03-20  Eric Blake  <ebb9@byu.net>
39922         Sync GNUmakefile with coreutils.
39923         * build-aux/GNUmakefile (have-Makefile): Rename...
39924         (_have-Makefile): ...to this, for namespace consideration.
39925         (GNUmakefile.cfg): Include, if present.
39926         (_autoreconf): Define a default.
39927         (_is-dist-target): New rule for rebuilds to pick up intra-release
39928         version.
39929         (maint-cfg.mk): Rename...
39930         (cfg.mk): ...to this.
39932 2008-03-18  Jim Meyering  <meyering@redhat.com>
39934         New script and module: mktempd
39935         * MODULES.html.sh (maint+release support): Add mktempd.
39936         * build-aux/mktempd: New file.
39937         * modules/mktempd: New file.
39939 2008-03-15  Jim Meyering  <meyering@redhat.com>
39941         Undo last change.
39942         * lib/sha1.c, lib/md5.c: 63 != ~63.
39943         Reported by Andreas Schwab.
39945         sha1.c, md5.c: Hoist a redundant expression.
39946         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
39947         "ctx->buflen" only once, before calling *_process_block.
39948         * lib/md5.c (md5_process_bytes): Likewise.
39950 2008-03-14  Eric Blake  <ebb9@byu.net>
39952         Bump copyright year in files generated by gnulib-tool.
39953         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
39954         gnulib-tool, rather than hard-coding it.
39956         Fix 'gnulib-tool --version' output to work with git.
39957         * gnulib-tool (func_gnulib_dir): New function, extracted from...
39958         (startup): ...here.
39959         (func_version): Use it to invoke git-version-gen, rather than
39960         relying on CVS keyword expansion.  Modernize wording.
39961         (cvsdatestamp, last_checkin_date, version): Kill unused
39962         variables.
39964 2008-03-12  Jim Meyering  <meyering@redhat.com>
39966         Recognize optional cast of the argument to free.
39967         * build-aux/useless-if-before-free: Update regexps.
39969         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
39971 2008-03-11  Bruno Haible  <bruno@clisp.org>
39973         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
39974         by a single package.
39975         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
39976         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
39977         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
39978         Reported by Sam Steingold <sds@gnu.org>.
39980 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
39982         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
39983         repositories.
39985 2008-03-11  Bruno Haible  <bruno@clisp.org>
39987         Avoid conflicts between local macro definitions.
39988         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
39989         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
39991 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
39992             Bruno Haible  <bruno@clisp.org>
39994         Make va_copy work with some version of xlc on AIX 5.1.
39995         * lib/stdarg.in.h: New file.
39996         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
39997         On AIX, use a <stdarg.h> file substitute.
39998         * modules/stdarg (Files): Add lib/stdarg.in.h.
39999         (Depends-on): Add include_next.
40000         (Makefile.am): Build a stdarg.h substitute if requested.
40001         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
40003 2008-03-10  Bruno Haible  <bruno@clisp.org>
40005         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
40006         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
40007         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
40009 2008-03-10  Bruno Haible  <bruno@clisp.org>
40011         * modules/stdlib (Depends-on): Add include_next, remove
40012         absolute-header.
40014 2008-03-09  Bruno Haible  <bruno@clisp.org>
40016         * lib/freadahead.h (freadahead): Document more precisely.
40017         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
40018         the sum of both buffer sizes.
40019         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
40020         * NEWS: Document the change.
40022 2008-03-09  Bruno Haible  <bruno@clisp.org>
40024         Extend freadptr to return also the buffer size.
40025         * lib/freadptr.h (freadptr): Add sizep argument.
40026         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
40027         (freadptr): Add sizep argument. Determine buffer size like freadahead
40028         does.
40029         * tests/test-freadptr.c: Don't include freadahead.h.
40030         (main): Adapt for new calling convention of freadptr.
40031         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
40032         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
40033         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
40034         tests/test-freadptr2.sh.
40035         (Depends): Remove freadahead.
40036         (TESTS): Add test-freadptr2.sh.
40037         (check_PROGRAMS): Add test-freadptr2.
40039 2008-03-09  Bruno Haible  <bruno@clisp.org>
40041         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
40042         Report and solution by Simon Josefsson.
40044 2008-03-06  Bruno Haible  <bruno@clisp.org>
40046         Make fflush after ungetc work on BSD platforms.
40047         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
40048         * tests/test-fflush2.c: New file.
40049         * tests/test-fflush2.sh: New file.
40050         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
40051         tests/test-fflush2.c.
40052         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
40053         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
40055 2008-03-06  Eric Blake  <ebb9@byu.net>
40057         Likewise for ftello.
40058         * modules/ftello (Dependencies): Add extensions.
40059         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
40061 2008-03-06  Bruno Haible  <bruno@clisp.org>
40063         * modules/fseeko (Dependencies): Add extensions.
40064         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
40065         Needed on glibc systems.
40067 2008-03-06  Bruno Haible  <bruno@clisp.org>
40069         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
40070         email address.
40071         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
40073 2008-03-06  Bruno Haible  <bruno@clisp.org>
40075         * users.txt: Add libgnupdf.
40077 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
40079         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
40080         (Header File Substitutes, Function Substitutes,
40081         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
40082         (Build robot for gnulib): Fix typo.
40084 2008-03-06  Bruno Haible  <bruno@clisp.org>
40086         * doc/gnulib-tool.texi (VCS Issues): Small updates.
40087         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
40089 2008-03-06  Bruno Haible  <bruno@clisp.org>
40091         * doc/func.texi: New file, extracted from doc/gnulib.texi.
40092         * doc/gnulib.texi: Include it.
40094 2008-03-06  Simon Josefsson  <simon@josefsson.org>
40096         * modules/func (License): Change license to unlimited; there was
40097         no LGPL parts in the module anyway.
40099 2008-03-06  Simon Josefsson  <simon@josefsson.org>
40101         * modules/__func__: Renamed to modules/func.
40102         * modules/__func__-tests: Renamed to modules/func-tests.
40103         * tests/test-__func__.c: Renamed to tests/test-func.c.
40104         * m4/__func__.m4: Renamed to m4/func.m4.
40105         * doc/gnulib.texi (__func__): Section renamed to func.
40106         Suggested by Eric Blake <ebb9@byu.net>.
40108 2008-03-06  Simon Josefsson  <simon@josefsson.org>
40110         * doc/gnulib.texi (__func__): Use C99 terminology when talking
40111         about __func__.  Make example self-contained.  Suggested by Eric
40112         Blake <ebb9@byu.net>.
40114         * tests/test-__func__.c (main): Avoid extraneous () around __func.
40115         Suggested by Eric Blake <ebb9@byu.net>.
40117 2008-03-06  Simon Josefsson  <simon@josefsson.org>
40119         * modules/__func__: New file.
40120         * modules/__func__-tests: New file.
40121         * tests/test-__func__.c: New file.
40122         * m4/__func__.m4: New file.
40123         * doc/gnulib.texi (__func__): Document __func__ module.
40125 2008-03-05  Simon Josefsson  <simon@josefsson.org>
40127         * modules/byteswap (License): Re-license as LGPLv2+.
40129 2008-03-05  Simon Josefsson  <simon@josefsson.org>
40131         * doc/Makefile: Add pdf target.
40133 2008-03-05  Simon Josefsson  <simon@josefsson.org>
40135         * modules/inline (License): Use 'unlimited', since there are only
40136         *.m4 files in this module.
40138 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
40139             Bruno Haible  <bruno@clisp.org>
40141         Add support for HP C 7.1 on OpenVMS 8.3.
40142         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
40144 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
40146         Update VMS specifics.
40147         * lib/getopt.c [VMS]: Remove include of unixlib.h.
40149 2008-03-02  Jim Meyering  <meyering@redhat.com>
40151         Remove the last dependency on the "free" module.
40152         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
40153         Reported by Bob Proulx.
40155         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
40157         Remove useless "if" tests before free.  Deprecate "free" module.
40158         * doc/posix-functions/free.texi: Mention that this
40159         module is no longer useful.
40160         * modules/free (Notice): Say this module is obsolete.
40161         * modules/readutmp (Depends-on): Remove free.
40162         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
40163         * lib/putenv.c (putenv): Likewise.
40164         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
40165         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
40166         * tests/test-c-strcasestr.c (main): Likewise.
40167         * tests/test-c-strstr.c (main): Likewise.
40168         * tests/test-mbscasestr1.c (main): Likewise.
40169         * tests/test-mbscasestr2.c (main): Likewise.
40170         * tests/test-mbsstr1.c (main): Likewise.
40171         * tests/test-mbsstr2.c (main): Likewise.
40172         * tests/test-memmem.c (main): Likewise.
40173         * tests/test-strcasestr.c (main): Likewise.
40174         * tests/test-striconv.c (main): Likewise.
40175         * tests/test-striconveh.c (main): Likewise.
40176         * tests/test-striconveha.c (main): Likewise.
40177         * tests/test-strstr.c (main): Likewise.
40179         * build-aux/git-version-gen: Adjust a comment and the Usage string.
40181         bootstrap: sync from coreutils again
40182         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
40184 2008-03-01  Jim Meyering  <meyering@redhat.com>
40186         bootstrap: sync from coreutils
40187         * build-aux/bootstrap (update_po_files): Copy a .po file into place
40188         also when the target doesn't exist.
40190 2008-03-01  Eric Blake  <ebb9@byu.net>
40192         Fix bugs in last patch.
40193         * lib/memchr2.c (memchr2): Fix typo.
40194         * tests/test-memchr2.c: Test previous bug, and don't use GNU
40195         extension.
40196         Reported by Bruce Korb.
40198         New module 'memchr2'.
40199         * modules/memchr2: New file.
40200         * modules/memchr2-tests: Likewise.
40201         * lib/memchr2.h: Likewise.
40202         * lib/memchr2.c: Likewise, based on memchr.c.
40203         * tests/test-memchr2.c: New test.
40204         * MODULES.html.sh (String handling): Add memchr2.
40206 2008-02-29  Bruno Haible  <bruno@clisp.org>
40208         * modules/freadseek-tests: New file.
40209         * tests/test-freadseek.sh: New file.
40210         * tests/test-freadseek.c: New file.
40212         New module 'freadseek'.
40213         * modules/freadseek: New file.
40214         * lib/freadseek.h: New file.
40215         * lib/freadseek.c: New file.
40216         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
40218 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
40220         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
40221         wydawca.
40223         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
40224         program_invocation_name and program_invocation_short_name are
40225         present.
40227 2008-02-28  Bruno Haible  <bruno@clisp.org>
40229         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
40230         * tests/test-freadptr.sh: Also test non-seekable stdin.
40232 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
40234         * build-aux/bootstrap (source_base, m4_base)
40235         (doc_base, tests_base): New variables.
40236         (gnulib_tool_options): Do not hardcode base directories, use
40237         the above variables instead.
40239 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
40241         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
40243 2008-02-28  Bruno Haible  <bruno@clisp.org>
40245         * modules/freadptr-tests: New file.
40246         * tests/test-freadptr.sh: New file.
40247         * tests/test-freadptr.c: New file.
40249         New module 'freadptr'.
40250         * modules/freadptr: New file.
40251         * lib/freadptr.h: New file.
40252         * lib/freadptr.c: New file.
40253         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
40255 2008-02-26  Karl Berry  <karl@freefriends.org>
40257         Sync from Libtool:
40258         * libltdl/argz.c (argz_add, argz_count): New functions.
40259         * libltdl/argz.in.h: Declare them.
40260         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
40262 2008-02-22  Bruno Haible  <bruno@clisp.org>
40264         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
40265         is a pointer type.  Needed for HP-UX 10.
40266         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
40267         * doc/posix-functions/gmtime_r.texi: Likewise.
40268         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
40270 2008-02-24  Bruno Haible  <bruno@clisp.org>
40272         * modules/environ-tests: New file.
40273         * tests/test-environ.c: New file.
40275         New module 'environ'.
40276         * modules/environ: New file.
40277         * lib/unistd.in.h (environ): New declaration.
40278         * m4/environ.m4: New file.
40279         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
40280         after use.
40281         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
40282         HAVE_DECL_ENVIRON.
40283         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
40284         HAVE_DECL_ENVIRON.
40285         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
40286         wrong claim that 'environ' is missing on some systems.
40287         * modules/execute (Depends-on): Add environ.
40288         * lib/execute.c (environ): Remove fallback declaration.
40289         * modules/pipe (Depends-on): Add environ.
40290         * lib/pipe.c (environ): Remove fallback declaration.
40291         * modules/setenv (Depends-on): Add environ.
40292         * lib/setenv.c (environ): Remove fallback declaration.
40293         * modules/unsetenv (Depends-on): Add environ.
40294         * lib/unsetenv.c (environ): Remove fallback declaration.
40295         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
40296         m4/environ.m4.
40297         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
40298         (gl_PREREQ_UNSETENV): Likewise.
40300 2008-02-24  Bruno Haible  <bruno@clisp.org>
40302         * doc/posix-functions/environ.texi: Document the MacOS X problem.
40304 2008-02-20  Bob Proulx  <bob@proulx.com>
40306         Enable use of older two part flavor 'git describe'.
40307         * build-aux/git-version-gen: If using the older two part flavor of
40308         git version then recreate the third part now present in the
40309         newer three part flavor of git describe.
40311 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
40313         * lib/fts.c (fts_build): Typo correction to comment.
40315 2008-02-17  Bruno Haible  <bruno@clisp.org>
40317         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
40318         generating no-op conflicts.
40320 2008-02-17  Bruno Haible  <bruno@clisp.org>
40322         Speed up by 10%.
40323         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
40324         result_entries, rather than an index-based loop.
40326 2008-02-17  Bruno Haible  <bruno@clisp.org>
40328         Speed up by 25%.
40329         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
40330         'hashcode_cached'.
40331         (entry_create): New function.
40332         (entry_hashcode): Use the cached hashcode if possible.
40333         (read_changelog_file, try_split_merged_entry): Use entry_create.
40335 2008-02-17  Bruno Haible  <bruno@clisp.org>
40337         Speed up from O(n^2) to O(n) for long ChangeLog files.
40338         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
40339         (read_changelog_file): Change implementation of entries_reversed list
40340         to rbtreehash.
40341         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
40343 2008-02-17  Bruno Haible  <bruno@clisp.org>
40345         New option --split-merged-entry.
40346         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
40347         (find_paragraph_end, try_split_merged_entry): New functions.
40348         (long_options): Add option --split-merged-entry.
40349         (usage): Document option --split-merged-entry.
40350         (main): Implement option --split-merged-entry.
40351         Reported by Eric Blake.
40353 2008-02-17  Bruno Haible  <bruno@clisp.org>
40355         * lib/git-merge-changelog.c: Include c-strstr.h.
40356         (main): Support the "git pull --rebase" situation.
40357         * modules/git-merge-changelog (Depends-on): Add c-strstr.
40358         Reported by Eric Blake.
40360 2008-02-16  Eric Blake  <ebb9@byu.net>
40362         Avoid doubling \ in common case of "c-maybe" quoting style.
40363         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
40364         eliding outer quotes.
40365         * lib/quotearg.h: Document this.
40366         * tests/test-quotearg.c (result_strings, inputs, results_g)
40367         (flag_results, locale_results): Test it by adding a new string to
40368         each test group.
40369         (compare_strings): Test new string.
40371 2008-02-13  Eric Blake  <ebb9@byu.net>
40373         Avoid trigraph quoting in default output.
40374         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
40375         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
40376         unless explicitly requested.
40377         * tests/test-quotearg.c (flag_results, main): Add additional tests.
40379 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
40381         Don't rely on signed integer overflowing to negative value.
40382         * lib/getugroups.c (getugroups): Include <limits.h>.
40383         Instead, compare against INT_MAX, and increment only if the test passes.
40385 2008-02-13  Jim Meyering  <meyering@redhat.com>
40386         and Eric Blake  <ebb9@byu.net>
40388         Avoid shadowing warning and compile errors on Linux.
40389         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
40390         forwarding macros on Linux.
40391         (dcgettext): Define a stub, for Linux.
40392         (results_g, main): Avoid warnings.
40394 2008-02-12  Eric Blake  <ebb9@byu.net>
40396         Silence warning in last patch.
40397         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
40399         Quotearg part 4: add tests, fix c-maybe colon quoting.
40400         * lib/quotearg.h: Improve documentation.
40401         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
40402         escapes when adding outer quotes.  When quoting trigraphs, use
40403         valid C notation.  When quoting NUL, omit extra characters if next
40404         character is not digit.  Alter prototype.
40405         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
40406         callers.
40407         * modules/quotearg-tests: New module.
40408         * tests/test-quotearg.c: New test.
40410 2008-02-07  Eric Blake  <ebb9@byu.net>
40412         Quotearg part 3: add flag to control outer quote elision.
40413         * lib/quotearg.h (c_maybe_quoting_style): New style.
40414         (enum quoting_flags): Better documentation of flags.
40415         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
40416         c-maybe style.
40417         (quotearg_buffer_restyled): Handle new flag to elide outer
40418         quotes.
40420         Quotearg part 2: add flag that can control NUL elision.
40421         * lib/quotearg.h (set_quoting_flags): New prototype.
40422         * lib/quotearg.c (struct quoting_options): Add flag field.
40423         (set_quoting_flags): New function.
40424         (quotearg_buffer_restyled): Add flags parameter.
40425         (quotearg_alloc_mem): Set the flag if length cannot be returned.
40426         (quotearg_n_options): Set the flag, since length cannot be
40427         returned.
40428         (quoting_options_from_style): Default flags correctly.
40430         Quotearg part 1: more wrappers, restore quotearg_char state.
40431         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
40432         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
40433         (quotearg_colon_mem): New wrappers.
40434         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
40435         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
40436         functions.
40437         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
40438         (quotearg_colon_mem): New functions.
40440 2008-02-11  Bruno Haible  <bruno@clisp.org>
40442         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
40443         library in the current directory: it does not work with parallel make.
40444         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
40446 2008-02-11  Bruno Haible  <bruno@clisp.org>
40448         * .gitattributes: New file.
40450 2008-02-11  Jim Meyering  <meyering@redhat.com>
40452         useless-if-before-free: Fix reversed exit values.
40453         * build-aux/useless-if-before-free: Use correct values
40454         for EXIT_MATCH and EXIT_NO_MATCH.
40456         * build-aux/useless-if-before-free: Close stdout carefully.
40458 2008-02-10  Bruno Haible  <bruno@clisp.org>
40460         New module 'git-merge-changelog'.
40461         * modules/git-merge-changelog: New file.
40462         * lib/git-merge-changelog.c: New file.
40464 2008-02-10  Jim Meyering  <meyering@redhat.com>
40466         useless-if-before-free: New option: --list (-l).
40468         useless-if-before-free: Don't exit immediately upon open failure.
40469         * build-aux/useless-if-before-free: Exit 2 for errors.
40470         Upon failure to open a file, don't exit immediately.
40471         Rather, just warn and continue with any remaining files.
40473 2008-02-10  Bruno Haible  <bruno@clisp.org>
40475         New abstract list operation 'node_set_value'.
40476         * lib/gl_list.h (gl_list_node_set_value): New function.
40477         (struct gl_list_implementation): New field node_set_value.
40478         * lib/gl_list.c (gl_list_node_set_value): New function.
40479         * lib/gl_array_list.c (gl_array_node_set_value): New function.
40480         (gl_array_list_implementation): Update.
40481         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
40482         (gl_carray_list_implementation): Update.
40483         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
40484         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
40485         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
40486         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
40487         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
40488         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
40489         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
40490         Update.
40491         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
40492         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
40493         (gl_sublist_list_implementation): Update.
40495 2008-02-10  Bruno Haible  <bruno@clisp.org>
40497         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
40498         Needed when ELEMENT is #defined to 'some_type *'.
40500 2008-02-10  Jim Meyering  <meyering@redhat.com>
40502         New script and module: useless-if-before-free
40503         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
40504         * build-aux/useless-if-before-free: New file.
40505         * modules/useless-if-before-free: New file.
40507         * build-aux/gitlog-to-changelog: Use committer date, not author date.
40509         xstrtol_error: Fix typo.
40510         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
40511         s/exit_failure/exit_status/.
40513 2008-02-09  Jim Meyering  <meyering@redhat.com>
40515         New script and module: gitlog-to-changelog
40516         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
40517         * modules/gitlog-to-changelog: New file.
40518         * build-aux/gitlog-to-changelog: New file.
40520 2008-02-08  Jim Meyering  <meyering@redhat.com>
40522         Avoid two "parameter unused" warnings.
40523         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
40524         Mark "st" as used.
40526         Use "git COMMAND", not "git-COMMAND".
40527         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
40528         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
40529         * build-aux/git-version-gen: Use "git status", not "git-status".
40531 2008-02-07  Bruno Haible  <bruno@clisp.org>
40533         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
40534         Avoids a crash on Windows Vista.
40535         Reported by Adam Strzelecki <ono@java.pl> via
40536         Simon Josefsson <simon@josefsson.org>.
40538 2008-02-06  Bruno Haible  <bruno@clisp.org>
40540         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
40541         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
40542         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
40543         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
40544         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
40545         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
40546         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
40547         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
40548         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
40549         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
40550         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
40551         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
40552         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
40553         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
40554         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
40555         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
40556         left-adjust flag.
40557         * tests/test-snprintf-posix.h (test_function): Likewise.
40558         * tests/test-sprintf-posix.h (test_function): Likewise.
40559         * tests/test-vasprintf-posix.c (test_function): Likewise.
40560         * doc/posix-functions/fprintf.texi: Update.
40561         * doc/posix-functions/printf.texi: Update.
40562         * doc/posix-functions/snprintf.texi: Update.
40563         * doc/posix-functions/sprintf.texi: Update.
40564         * doc/posix-functions/vfprintf.texi: Update.
40565         * doc/posix-functions/vprintf.texi: Update.
40566         * doc/posix-functions/vsnprintf.texi: Update.
40567         * doc/posix-functions/vsprintf.texi: Update.
40568         Reported by Peter Fales <psfales@alcatel-lucent.com>.
40570 2008-02-06  Bruno Haible  <bruno@clisp.org>
40572         Fix bug introduced on 2008-01-26.
40573         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
40575 2008-02-06  Bruno Haible  <bruno@clisp.org>
40577         Fix bug introduced on 2007-06-10.
40578         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
40579         !NEED_PRINTF_FLAG_ZERO.
40581 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
40583         getloadavg: use libperfstat on AIX5
40584         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
40586 2008-02-03  Bruno Haible  <bruno@clisp.org>
40588         * lib/diffseq.h: Add comments about required #includes.
40589         Reported by Michael Biggs <gnulib@doubleplum.net>.
40591 2008-02-01  Bruno Haible  <bruno@clisp.org>
40593         * users.txt: Add gnuit.
40595 2008-01-31  Bruno Haible  <bruno@clisp.org>
40597         * lib/md4.c (set_uint32): Mark as inline.
40598         * lib/md5.c (set_uint32): Likewise.
40599         * lib/sha1.c (set_uint32): Likewise.
40600         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
40601         * m4/md5.m4 (gl_MD5): Likewise.
40602         * m4/sha1.m4 (gl_SHA1): Likewise.
40604 2008-01-31  Jim Meyering  <meyering@redhat.com>
40606         Use "sizeof VAR", rather than a literal "4".
40607         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
40608         * lib/md4.c (md4_read_ctx): Likewise.
40609         * lib/sha1.c (sha1_read_ctx): Likewise.
40611 2008-01-31  Simon Josefsson  <simon@josefsson.org>
40613         * tests/test-sha1.c: New file, based on test-md5.c.
40615         * modules/crypto/sha1-tests: New file.
40617 2008-01-31  Simon Josefsson  <simon@josefsson.org>
40619         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
40621 2008-01-31  Jim Meyering  <meyering@redhat.com>
40623         Prefer "sizeof v" over the equivalent "4".
40624         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
40625         * lib/md5.c (set_uint32): Likewise.
40626         * lib/sha1.c (set_uint32): Likewise.
40628 2008-01-31  Simon Josefsson  <simon@josefsson.org>
40630         * lib/sha1.c (set_uint32): Mark function as static.
40632 2008-01-31  Simon Josefsson  <simon@josefsson.org>
40634         md2: clarify comments to say that alignment is not required.
40635         * lib/md2.h: Remove warning about alignment in comment.
40636         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
40637         never been required.
40639 2008-01-31  Simon Josefsson  <simon@josefsson.org>
40641         md4: adapt alignment constraint fix from sha1.
40642         * lib/md4.c (set_uint32): New function, from sha1.c
40643         (md4_read_ctx): Use it.
40644         (md4_finish_ctx): Doc fix.
40645         * lib/md4.h: Doc fix.
40647 2008-01-31  Simon Josefsson  <simon@josefsson.org>
40649         md5: adapt alignment constraint fix from sha1.
40650         * lib/md5.c (set_uint32): New function, from sha1.c
40651         (md5_read_ctx): Use it.
40652         (md5_finish_ctx): Doc fix.
40653         * lib/md5.h: Doc fix.
40655 2008-01-30  Peter Palfrader  <weasel@debian.org>
40657         sha1: remove the result buffer alignment constraint
40658         * lib/sha1.c (set_uint32): New function.
40659         (sha1_read_ctx): Rewrite to remove the result buffer alignment
40660         constraint.
40661         (sha1_finish_ctx): Remove comment warning about alignment constraint.
40662         * lib/sha1.h: Likewise.
40664 2008-01-30  Andreas Schwab  <schwab@suse.de>
40665             Bruno Haible  <bruno@clisp.org>
40667         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
40668         correct definition of LDBL_MIN_EXP.
40670 2008-01-30  Karl Berry  <karl@gnu.org>
40672         * config/srclist-update: try to preserve x bit on updates.
40673         * config/srclistvars.sh: update for karl.
40675 2008-01-29  Jim Meyering  <meyering@redhat.com>
40677         vasnprintf.c: Avoid warning about unused label
40678         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
40679         "overflow" label definition and associated code with the
40680         same cpp condition that guards the sole use of that label.
40682 2008-01-26  Bruno Haible  <bruno@clisp.org>
40684         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
40685         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
40686         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
40687         * lib/isnanl-nolibm.h (isnanl): Likewise.
40688         Reported by Paul Eggert <eggert@cs.ucla.edu>.
40690 2008-01-26  Bruno Haible  <bruno@clisp.org>
40692         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
40693         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
40695 2008-01-26  Bruno Haible  <bruno@clisp.org>
40697         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
40698         GCC >= 4.0 built-in.
40699         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
40701 2008-01-26  Bruno Haible  <bruno@clisp.org>
40703         Rename isnan, applicable to 'double' only, to isnand.
40704         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
40705         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
40706         (configure.ac): Update.
40707         (Include): Replace "isnan.h" with "isnand.h".
40708         * m4/isnand.m4: Renamed from m4/isnan.m4.
40709         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
40710         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
40711         instead of isnan.c.
40712         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
40713         instead of HAVE_ISNAN_IN_LIBC.
40714         (isnand): Renamed from isnan.
40715         * lib/isnand.c: New file.
40716         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
40717         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
40718         (Makefile.am): Update.
40719         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
40720         Include isnand.h instead of isnan.h.
40721         (main): Test isnand instead of isnan.
40722         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
40723         isnan-nolibm.
40724         * modules/frexp (Depends-on): Likewise.
40725         * modules/frexp-tests (Depends-on): Likewise.
40726         * modules/frexp-nolibm (Depends-on): Likewise.
40727         * modules/frexp-nolibm-tests (Depends-on): Likewise.
40728         * modules/isfinite (Depends-on): Likewise.
40729         * modules/round-tests (Depends-on): Likewise.
40730         * modules/signbit (Depends-on): Likewise.
40731         * modules/signbit-tests (Depends-on): Likewise.
40732         * modules/snprintf-posix (Depends-on): Likewise.
40733         * modules/sprintf-posix (Depends-on): Likewise.
40734         * modules/trunc-tests (Depends-on): Likewise.
40735         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
40736         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
40737         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
40738         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
40739         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
40740         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
40741         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
40742         * modules/vasnprintf-posix (Depends-on): Likewise.
40743         * modules/vasprintf-posix (Depends-on): Likewise.
40744         * modules/vfprintf-posix (Depends-on): Likewise.
40745         * modules/vsnprintf-posix (Depends-on): Likewise.
40746         * modules/vsprintf-posix (Depends-on): Likewise.
40747         * lib/frexp.c: Include isnand.h instead of isnan.h.
40748         (ISNAN): Set to isnand instead of isnan.
40749         * lib/isfinite.c: Include isnand.h instead of isnan.h.
40750         (gl_isfinited): Use isnand instead of isnan.
40751         * lib/signbitd.c: Include isnand.h instead of isnan.h.
40752         (gl_signbitd): Use isnand instead of isnan.
40753         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
40754         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
40755         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
40756         (main): Use isnand instead of isnan.
40757         * tests/test-round1.c: Include isnand.h.
40758         (main): Use isnand instead of isnan.
40759         * tests/test-round2.c: Include isnand.h instead of isnan.h.
40760         (ISNAN): Set to isnand instead of isnan.
40761         * tests/test-trunc1.c: Include isnand.h.
40762         (main): Use isnand instead of isnan.
40763         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
40764         (equal): Use isnand instead of isnan.
40765         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
40766         isnand-nolibm.
40767         * NEWS: Mention the change.
40769 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
40770             Bruno Haible  <bruno@clisp.org>
40772         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
40773         the GCC builtins for signbits are present and set
40774         REPLACE_SIGNBIT_USING_GCC if so.
40775         * lib/math.in.h (signbit): Define using GCC builtins if
40776         REPLACE_SIGNBIT_USING_GCC is set.
40777         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
40778         REPLACE_SIGNBIT_USING_GCC.
40779         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
40781 2008-01-25  Jim Meyering  <meyering@redhat.com>
40783         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
40784         * lib/poll.c: Include <config.h>, not "config.h".
40785         * tests/test-getaddrinfo.c: Likewise.
40787 2008-01-25  Simon Josefsson  <simon@josefsson.org>
40789         * modules/sockets-tests: New file.
40791 2008-01-24  Simon Josefsson  <simon@josefsson.org>
40793         * modules/sockets: New module, can be used to call WSA_Startup and
40794         WSA_Cleanup when needed.
40796         * lib/sockets.h, lib/sockets.c: New files.
40798         * m4/sockets.m4: New file.
40800         * tests/test-sockets.c: New file.
40802 2008-01-19  Bruno Haible  <bruno@clisp.org>
40804         * doc/posix-headers: Renamed from doc/headers.
40805         * doc/posix-functions: Renamed from doc/functions.
40806         * doc/gnulib.texi: Update.
40808 2008-01-19  Bruno Haible  <bruno@clisp.org>
40810         * doc/glibc-functions/strcasestr.texi: Include contents of
40811         doc/functions/strcasestr.texi, fixing the list of platforms.
40812         * doc/functions/strcasestr.texi: Remove file.
40814 2008-01-19  Bruno Haible  <bruno@clisp.org>
40816         * doc/glibc-functions/memmem.texi: Include contents of
40817         doc/functions/memmem.texi.
40818         * doc/functions/memmem.texi: Remove file.
40820 2008-01-18  Bruno Haible  <bruno@clisp.org>
40822         * doc/glibc-functions/*.texi: New files.
40823         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
40824         to use the new files.
40826 2008-01-17  Bruno Haible  <bruno@clisp.org>
40828         * tests/test-gethostname.c (main): Fix printf statement.
40830 2008-01-17  Simon Josefsson  <simon@josefsson.org>
40832         * modules/gethostname-tests: New file.
40834         * tests/test-gethostname.c: New file.
40836 2008-01-17  Simon Josefsson  <simon@josefsson.org>
40838         * lib/gethostname.c: Include string.h unconditionally, strncpy is
40839         used by the UNAME case.  Reported by Bruno Haible
40840         <bruno@clisp.org>.
40842 2008-01-17  Eric Blake  <ebb9@byu.net>
40844         Convert c-strcasestr to be more efficient.
40845         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
40846         (Depends-on): Add c-strcase, remove malloca, strnlen.
40847         * tests/test-c-strcasestr.c (main): Enhance test.
40848         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
40850 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
40852         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
40853         Use it in creating po/Makevars.
40855 2008-01-15  Simon Josefsson  <simon@josefsson.org>
40857         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
40858         Applications that requires it should initialize libgcrypt
40859         manually.
40861 2008-01-16  Simon Josefsson  <simon@josefsson.org>
40863         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
40865 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
40867         Fix problem with getdate on mingw32 reported by Simon Josefsson
40868         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
40869         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
40870         tzname", when deciding whether to declare tzname.
40871         * lib/strftime.c (tzname): Likewise.
40873 2008-01-15  Bruno Haible  <bruno@clisp.org>
40875         Work around a MacOS X 10.5 bug in frexpl().
40876         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
40877         * doc/functions/frexpl.texi: Document the bug.
40878         Reported by Elias Pipping <pipping@gentoo.org>.
40880 2008-01-14  Eric Blake  <ebb9@byu.net>
40882         Touch up previous patch.
40883         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
40884         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
40886         Convert strcasestr module to use Two-Way algorithm.
40887         * modules/strcasestr-simple: New module, based on the old
40888         strcasestr, but with Two-Way rather than KMP.
40889         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
40890         * lib/string.in.h (rpl_strcasestr): Declare.
40891         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
40892         performance.
40893         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
40894         * modules/string (Makefile.am): Support strcasestr.
40895         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
40896         * modules/strcasestr-tests (Depends-on): Check for alarm.
40897         * tests/test-strcasestr.c: Augment test.
40898         * lib/str-two-way.h: Clean up stray macro.
40899         * NEWS: Document new module.
40900         * MODULES.html.sh (string handling): Likewise.
40901         * doc/functions/strcasestr.texi: New file.
40902         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
40903         here, since it is not a POSIX function.
40905 2008-01-14  Colin Watson  <cjwatson@debian.org>
40906             Bruno Haible  <bruno@clisp.org>
40908         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
40909         works fine; if not, set REPLACE_STRSIGNAL.
40910         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
40911         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
40912         REPLACE_STRSIGNAL.
40913         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
40914         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
40915         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
40917 2008-01-14  Bruno Haible  <bruno@clisp.org>
40919         * modules/strsignal (Include): Change to <string.h>.
40921 2008-01-14  Colin Watson  <cjwatson@debian.org>
40923         * modules/argp (Notice): Add a notice recommending to change
40924         XGETTEXT_OPTIONS.
40925         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
40927 2008-01-13  Colin Watson  <cjwatson@debian.org>
40929         * modules/strsignal-tests: New file.
40930         * tests/test-strsignal.c: New file.
40932         * lib/strsignal.c: New file, from glibc with modifications.
40933         * lib/siglist.h: New file, from glibc with modifications.
40934         * lib/string.in.h (strsignal): New declaration.
40935         * m4/strsignal.m4: New file.
40936         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
40937         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
40938         * modules/strsignal: New file.
40939         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
40940         HAVE_DECL_STRSIGNAL.
40942 2008-01-13  Bruno Haible  <bruno@clisp.org>
40944         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
40945         locale encoding is not ASCII. Needed for OpenBSD 4.0.
40946         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
40947         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
40949 2008-01-13  Bruno Haible  <bruno@clisp.org>
40951         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
40952         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
40953         * lib/argp.h (__attribute__): Likewise.
40954         * lib/c-stack.c (__attribute__): Likewise.
40955         * lib/error.h (__attribute__): Likewise.
40956         * lib/fts.c (__attribute__): Likewise.
40957         * lib/openat.h (__attribute__): Likewise.
40958         * lib/stdio.in.h (__attribute__): Likewise.
40959         * lib/string.in.h (__attribute__): Likewise.
40960         * lib/utimens.c (__attribute__): Likewise.
40961         * lib/vasnprintf.h (__attribute__): Likewise.
40962         * lib/xalloc.h (__attribute__): Likewise.
40963         * lib/xprintf.h (__attribute__): Likewise.
40964         * lib/xstrtol.h (__attribute__): Likewise.
40965         * lib/xvasprintf.h (__attribute__): Likewise.
40967 2008-01-12  Bruno Haible  <bruno@clisp.org>
40969         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
40970         * doc/glibc-headers/a.out.texi: New file.
40971         * doc/glibc-headers/aliases.texi: New file.
40972         * doc/glibc-headers/alloca.texi: New file.
40973         * doc/glibc-headers/ar.texi: New file.
40974         * doc/glibc-headers/argp.texi: New file.
40975         * doc/glibc-headers/argz.texi: New file.
40976         * doc/glibc-headers/byteswap.texi: New file.
40977         * doc/glibc-headers/crypt.texi: New file.
40978         * doc/glibc-headers/endian.texi: New file.
40979         * doc/glibc-headers/envz.texi: New file.
40980         * doc/glibc-headers/err.texi: New file.
40981         * doc/glibc-headers/error.texi: New file.
40982         * doc/glibc-headers/execinfo.texi: New file.
40983         * doc/glibc-headers/fpu_control.texi: New file.
40984         * doc/glibc-headers/fstab.texi: New file.
40985         * doc/glibc-headers/fts.texi: New file.
40986         * doc/glibc-headers/getopt.texi: New file.
40987         * doc/glibc-headers/ieee754.texi: New file.
40988         * doc/glibc-headers/ifaddrs.texi: New file.
40989         * doc/glibc-headers/libintl.texi: New file.
40990         * doc/glibc-headers/mcheck.texi: New file.
40991         * doc/glibc-headers/mntent.texi: New file.
40992         * doc/glibc-headers/obstack.texi: New file.
40993         * doc/glibc-headers/paths.texi: New file.
40994         * doc/glibc-headers/printf.texi: New file.
40995         * doc/glibc-headers/pty.texi: New file.
40996         * doc/glibc-headers/resolv.texi: New file.
40997         * doc/glibc-headers/shadow.texi: New file.
40998         * doc/glibc-headers/sysexits.texi: New file.
40999         * doc/glibc-headers/ttyent.texi: New file.
41001 2008-01-12  Jim Meyering  <meyering@redhat.com>
41003         announce-gen: emit Gnulib's git-based version string.
41004         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
41005         New option --gnulib-version=V, where V is expected to be
41006         the output of running git describe in the gnulib directory.
41007         (get_tool_versions): Request feedback on xdelta.  I suspect it's
41008         not useful, and plan to stop publishing an xdelta file with each
41009         coreutils release.
41011         * build-aux/announce-gen: Also check for lzma-compressed files.
41013 2008-01-11  Bruno Haible  <bruno@clisp.org>
41015         * tests/test-memmem.c (main): Increase maximum allowed time.
41016         * tests/test-strstr.c (main): Likewise.
41018 2008-01-11  Bruno Haible  <bruno@clisp.org>
41020         * doc/functions/memmem.texi: Add more precisions about platforms.
41021         * doc/functions/strstr.texi: Likewise.
41023 2008-01-10  Eric Blake  <ebb9@byu.net>
41025         * m4/strstr.m4: Delete cruft from copy-n-paste.
41026         Reported by Bruno Haible.
41028 2008-01-10  Bruno Haible  <bruno@clisp.org>
41030         Make c-strstr rely on strstr.
41031         * lib/c-strstr.c: Don't include str-kmp.h.
41032         (c_strstr): Define in terms of strstr.
41033         * modules/c-strstr (Files): Remove lib/str-kmp.h.
41034         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
41036 2008-01-10  Bruno Haible  <bruno@clisp.org>
41038         * doc/gnulib.texi (String Functions in C Locale): New section.
41039         * doc/c-ctype.texi: New file.
41040         * doc/c-strcase.texi: New file.
41041         * doc/c-strcaseeq.texi: New file.
41042         * doc/c-strcasestr.texi: New file.
41043         * doc/c-strstr.texi: New file.
41044         * doc/c-strtod.texi: New file.
41045         * doc/c-strtold.texi: New file.
41047 2008-01-10  Eric Blake  <ebb9@byu.net>
41049         * lib/relocatable.h: Fix a comment.
41051 2008-01-10  Eric Blake  <ebb9@byu.net>
41053         Share two-way algorithm.
41054         * lib/str-two-way.h: New file, merged from...
41055         * lib/memmem.c: ...here...
41056         * lib/strstr.c: ...and here.
41057         * modules/memmem (Files): Use it.
41058         * modules/strstr (Files): Likewise.
41060         Avoid quadratic strstr implementations.
41061         * lib/strstr.c: New file.
41062         * m4/strstr.m4: Likewise.
41063         * modules/strstr: Likewise.
41064         * modules/strstr-tests: Likewise.
41065         * tests/test-strstr.c: Likewise.
41066         * lib/string.in.h (rpl_strstr): Declare.
41067         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
41068         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
41069         * modules/string (Makefile.am): Likewise.
41070         * MODULES.html.sh (string handling): Mention new module.
41071         * doc/functions/strstr.texi (strstr): Document the bug.
41073 2008-01-10  Bruno Haible  <bruno@clisp.org>
41075         * lib/relocatable.h (relocate): State whether result is freshly
41076         allocated or not.
41077         * lib/relocatable.c (relocate): Return a freshly allocated string
41078         instead of a pointer to a privately held string.
41079         Reported by Sylvain Beucler <beuc@gnu.org>.
41081 2008-01-10  Colin Watson  <cjwatson@debian.org>
41083         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
41084         s/S_ISNLK/S_ISLNK/.
41086 2008-01-09  Bruno Haible  <bruno@clisp.org>
41088         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
41089         and other files.
41090         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
41091         if it's only a guess.
41092         * modules/memmem: Simplify by depending on memmem-simple.
41094 2008-01-09  Bruno Haible  <bruno@clisp.org>
41096         Work around OpenBSD 4.0 tdelete() bug.
41097         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
41098         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
41099         macros and don't redefine the enum values.
41100         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
41101         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
41102         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
41104 2008-01-09  Bruno Haible  <bruno@clisp.org>
41106         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
41107         (main): Don't perform the tests if setlocale did not install a UTF-8
41108         locale. Needed on OpenBSD 4.0.
41109         * modules/wcwidth-tests (Depends-on): Add localcharset.
41111 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
41113         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
41114         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
41115         * NEWS: announce this.
41116         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
41118 2008-01-09  Simon Josefsson  <simon@josefsson.org>
41119         and Eric Blake  <ebb9@byu.net>
41121         Add memmem-simple module.
41122         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
41123         (gl_FUNC_MEMMEM): Separate performance from presence checks.
41124         * modules/memmem-simple: New file.
41125         * modules/memmem (Description): Tweak.
41126         * MODULES.html.sh (string handling): Mention new module.
41127         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
41128         addressed by memmem-simple.
41129         * NEWS: Document the difference.
41131 2008-01-09  Eric Blake  <ebb9@byu.net>
41133         Give gcc some memmem optimization hints.
41134         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
41135         (strcasestr): Declare as pure.
41136         * modules/memmem (Maintainer): Claim my implementation.
41138 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41140         Support AIX 6.1 and higher.
41141         * build-aux/config.libpath: Likewise.
41142         * build-aux/config.rpath: Likewise.
41144 2008-01-08  Jim Meyering  <meyering@redhat.com>
41145             Bruno Haible  <bruno@clisp.org>
41147         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
41148         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
41149         Reported by Peter Fales in
41150         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
41152 2008-01-08  Bruno Haible  <bruno@clisp.org>
41154         * modules/unictype/category-of (Depends-on): Add
41155         unictype/category-none.
41156         * modules/unictype/category-and-tests (Depends-on): Add
41157         unictype/category-{L,N,Lu,Nd}.
41158         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
41159         * modules/unictype/category-or-tests (Depends-on): Add
41160         unictype/category-{L,N}.
41161         * modules/unictype/category-name-tests (Depends-on): Add
41162         unictype/category-{Z,Nl}.
41163         Reported by Simon Josefsson.
41165 2008-01-08  Bruno Haible  <bruno@clisp.org>
41167         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
41168         convention better.
41169         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
41170         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
41171         Reported by Peter Miller <millerp@canb.auug.org.au>.
41173 2008-01-08  Eric Blake  <ebb9@byu.net>
41175         Rewrite memmem to guarantee linear complexity without malloc.
41176         * lib/memmem.c (memmem): Use Two-Way rather than
41177         Knuth-Morris-Pratt, to allow O(1) space usage.
41178         (critical_factorization, two_way_short_needle)
41179         (two_way_long_needle): New functions.
41180         (knuth_morris_pratt): Delete.
41181         * modules/memmem (Depends-on): No longer need malloca or stdbool.
41182         Add stdint.
41183         * tests/test-memmem.c (main): Add tests for periodic needle and
41184         sublinear performance.
41185         * doc/functions/memmem.texi (memmem): Document other deficiencies
41186         in cygwin and older glibc.
41188 2008-01-08  Bruno Haible  <bruno@clisp.org>
41190         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
41191         augmentation.
41193 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
41195         Add a configure time option: --disable-acl.
41196         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
41197         AC_ARG_ENABLE(acl).
41199 2008-01-06  Simon Josefsson  <simon@josefsson.org>
41201         * tests/test-localename.c: Don't include obsolete "setenv.h".
41203         * modules/localename-tests (Depends-on): Need unsetenv.
41205 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41207         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
41209 2008-01-06  Colin Watson  <cjwatson@debian.org>
41211         * users.txt: Add man-db.
41213 2008-01-07  Bruno Haible  <bruno@clisp.org>
41215         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
41216         previous section name.
41218 2008-01-07  Bruno Haible  <bruno@clisp.org>
41220         * lib/progname.c (set_program_name): Don't strip off a leading
41221         "lt-" prefix outside a .libs directory.
41222         Suggested by Paul Eggert.
41224 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
41225             Bruno Haible  <bruno@clisp.org>
41227         Improve memory cleanup in 'relocatable' module.
41228         * lib/relocatable.h (compute_curr_prefix): Change return type to
41229         'char *'.
41230         * lib/relocatable.c (compute_curr_prefix): Change return type to
41231         'char *'. Free curr_installdir after use.
41232         (relocate): Free curr_prefix_better after use.
41233         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
41235 2008-01-01  Bruno Haible  <bruno@clisp.org>
41237         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
41238         failure on older glibc systems.
41239         Reported by Peter Fales <psfales@alcatel-lucent.com>.
41241 2008-01-05  Eric Blake  <ebb9@byu.net>
41243         Avoid quadratic system memmem.
41244         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
41245         Reported by Ralf Wildenhues.
41247         Fix memmem test for mingw.
41248         * modules/memmem-tests (configure.ac): Check for alarm.
41249         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
41250         it.
41251         * doc/functions/memmem.texi: New file.
41252         * doc/gnulib.texi (Function Substitutes): Add memmem.
41253         Reported by Bruno Haible.
41255 2008-01-04  Bruno Haible  <bruno@clisp.org>
41257         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
41258         Require gl_HEADER_STRINGS_H_DEFAULTS, not
41259         gl_HEADER_STRING_H_DEFAULTS.
41261 2008-01-04  Eric Blake  <ebb9@byu.net>
41263         Shorten duration of memmem test.
41264         * tests/test-memmem.c (main): Use alarm to declare failure if test
41265         is taking too long.
41266         Reported by Ralf Wildenhues.
41268 2007-12-21  Simon Josefsson  <simon@josefsson.org>
41270         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
41271         string, needed by strerror.
41273 2008-01-03  Colin Watson  <cjwatson@debian.org>
41274             Bruno Haible  <bruno@clisp.org>
41276         * doc/gnulib-tool.texi (Localization): New section.
41278 2008-01-02  Bruno Haible  <bruno@clisp.org>
41280         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
41281         variables to 'unsigned char *' type.
41282         Reported by Paul Eggert.
41284 2008-01-02  Jim Meyering  <jim@meyering.net>
41286         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
41288 2007-12-31  Jim Meyering  <jim@meyering.net>
41290         Avoid use of private FTS type name.
41291         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
41293 2007-12-30  Karl Berry  <karl@gnu.org>
41295         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
41296         work around defect in Texinfo and/or the standalone Info browser.
41298 2007-12-30  Bruno Haible  <bruno@clisp.org>
41300         Unify 5 copies of the KMP code.
41301         * lib/str-kmp.h: New file.
41302         * lib/c-strcasestr.c: Include str-kmp.h.
41303         (knuth_morris_pratt): Remove function.
41304         (c_strcasestr): Update.
41305         * lib/c-strstr.c: Include str-kmp.h.
41306         (knuth_morris_pratt): Remove function.
41307         (c_strcasestr): Update.
41308         * lib/mbscasestr.c: Include str-kmp.h.
41309         (knuth_morris_pratt_unibyte): Remove function.
41310         * lib/mbsstr.c: Include str-kmp.h.
41311         (knuth_morris_pratt_unibyte): Remove function.
41312         * lib/strcasestr.c: Include str-kmp.h.
41313         (knuth_morris_pratt): Remove function.
41314         (strcasestr): Update.
41315         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
41316         * modules/c-strstr (Files): Likewise.
41317         * modules/mbscasestr (Files): Likewise.
41318         * modules/mbsstr (Files): Likewise.
41319         * modules/strcasestr (Files): Likewise.
41320         Suggested by Paul Eggert.
41322 2007-12-30  Bruno Haible  <bruno@clisp.org>
41324         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
41325         defined.
41327 2007-12-30  Bruno Haible  <bruno@clisp.org>
41329         * lib/xmalloca.h: Include xalloc.h.
41330         (xnmalloca): New macro.
41332 2007-12-30  Bruno Haible  <bruno@clisp.org>
41334         * lib/malloca.h (nmalloca): New macro.
41335         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
41336         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
41337         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
41338         knuth_morris_pratt_multibyte): Likewise.
41339         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
41340         knuth_morris_pratt_multibyte): Likewise.
41341         * lib/memmem.c (knuth_morris_pratt): Likewise.
41342         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
41344 2007-12-25  Bruno Haible  <bruno@clisp.org>
41346         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
41347         * lib/glob.c: Don't include openat.h.
41348         (link_exists2_p): Add back the code that deals with the
41349         !GLOB_ALTDIRFUNC case.
41350         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
41351         let it do the filename concatenation.
41352         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
41353         * modules/glob (Depends-on): Remove openat.
41355 2007-12-31  Bruno Haible  <bruno@clisp.org>
41357         * modules/dirfd (License): Change to LGPLv2+.
41358         Approved by Jim Meyering.
41360 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
41362         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
41363         when multiplying M by sizeof (size_t).
41365 2007-12-10  Martin Lambers  <marlam@marlam.de>
41367         Override getpagesize on mingw.
41368         * lib/getpagesize.c: New file.
41369         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
41370         * modules/getpagesize (Files): Add lib/getpagesize.c.
41371         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
41372         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
41373         REPLACE_GETPAGESIZE.
41374         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
41376 2007-12-25  Bruno Haible  <bruno@clisp.org>
41378         * modules/localcharset (Notice): New field.
41379         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
41380         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
41382 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
41383             Bruno Haible  <bruno@clisp.org>
41385         Avoid using the syntax symbol() in formatted documentation.
41386         * MODULES.html.sh (func_module): When replacing symbol() with a
41387         hyperlink, remove the parentheses. Show an error if some remain.
41388         Recognize and render the '...' syntax.
41389         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
41390         Rework. Add paragraph about GCC's inlining.
41391         * doc/alloca.texi: Likewise.
41392         * doc/error.texi: Remove parentheses from symbol reference.
41393         * doc/gnulib-intro.texi: Likewise.
41394         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
41395         * modules/fnmatch (Description): Reword to say "the ... function".
41396         * modules/full-read (Description): Likewise.
41397         * modules/full-write (Description): Likewise.
41398         * modules/safe-read (Description): Likewise.
41399         * modules/safe-write (Description): Likewise.
41400         * modules/strchrnul (Description): Likewise.
41401         * modules/trim (Description): Likewise.
41402         * modules/error (Description): Remove parentheses from symbol
41403         references.
41404         * modules/verror (Description): Likewise.
41405         Reported by Karl Berry.
41407 2007-12-25  Bruno Haible  <bruno@clisp.org>
41409         Fixup after 2007-10-16 commit.
41410         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
41412 2007-12-24  Bruno Haible  <bruno@clisp.org>
41414         Make --enable-relocatable work with DESTDIR.
41415         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
41416         to compute installdir from destprog.
41417         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
41418         also set the RELOC_DESTDIR variable.
41419         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
41421 2007-12-24  Bruno Haible  <bruno@clisp.org>
41423         Fix link error due to xalloc_die().
41424         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
41425         of xreadlink.
41426         * lib/relocwrapper.c: Update comments.
41427         * build-aux/install-reloc: Remove xreadlink.c from file list.
41428         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
41429         xreadlink.c.
41430         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
41432 2007-12-24  Bruno Haible  <bruno@clisp.org>
41434         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
41435         * lib/setenv.h: Remove file.
41436         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
41437         lib/setenv.h.
41438         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
41439         (Depends-on): Add stdlib.
41440         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
41441         gl_FUNC_UNSETENV.
41442         (Include): Replace setenv.h with <stdlib.h>.
41443         * modules/unsetenv: New file.
41444         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
41445         * lib/unsetenv.c: Include <stdlib.h> first.
41446         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
41447         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
41448         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
41449         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
41450         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
41451         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
41452         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
41453         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
41454         * doc/functions/unsetenv.texi: Update.
41455         * modules/xsetenv (Depends-on): Add unsetenv.
41456         * modules/getdate (Depends-on): Likewise.
41457         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
41458         * lib/xsetenv.c: Don't include setenv.h.
41459         * lib/getdate.y: Likewise.
41460         * lib/relocwrapper.c: Likewise.
41461         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
41462         (Depends-on): Add stdlib.
41463         * NEWS: Mention the changes.
41464         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
41466 2007-12-23  Bruno Haible  <bruno@clisp.org>
41468         * lib/memmem.c (memmem): Use lowercase variable names. Tab
41469         indentation.
41471 2007-12-23  Bruno Haible  <bruno@clisp.org>
41473         * lib/c-strcasestr.c: Add more comments.
41474         * lib/c-strstr.c: Likewise.
41475         * lib/mbscasestr.c: Likewise.
41476         * lib/mbsstr.c: Likewise.
41477         * lib/strcasestr.c: Likewise.
41478         * lib/memmem.c: Likewise.
41480 2007-12-23  Bruno Haible  <bruno@clisp.org>
41482         * tests/test-memmem.c: Include <string.h> first.
41484 2007-12-22  Bruno Haible  <bruno@clisp.org>
41486         * gnulib-tool (func_create_testdir): Change $auxdir while generating
41487         the contents of $testsbase.
41488         Reported by Ralf Wildenhues.
41490 2007-12-22  Bruno Haible  <bruno@clisp.org>
41492         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
41493         two variables local_ldadd_before, local_ldadd_last.
41495 2007-12-20  Eric Blake  <ebb9@byu.net>
41497         Work around circular library issue when cross-compiling.
41498         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
41499         that progname.o does not need to pull in rpl_memcmp.
41501 2007-12-19  Eric Blake  <ebb9@byu.net>
41503         Fix memmem to avoid O(n^2) worst-case complexity.
41504         * lib/memmem.c (knuth_morris_pratt): New function.
41505         (memmem): Use it if first few naive iterations fail.
41506         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
41507         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
41508         * modules/memchr (License): Likewise.
41509         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
41510         malloca.
41511         * tests/test-memmem.c: Rewrite, borrowing ideas from
41512         test-mbsstr1.c; the old version wouldn't even compile!
41513         * modules/memmem-tests: New file.
41514         * lib/string.in.h (rpl_memmem): Add declaration.
41515         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
41516         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
41517         REPLACE_MEMMEM.
41519 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
41521         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
41522         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
41523         before any system include files, and undef after them all.  This
41524         should fix a problem on VMS reported by John E. Malmberg in
41525         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
41527 2007-12-17  Eric Blake  <ebb9@byu.net>
41529         Revert addition of verify, for BSD/OS.
41530         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
41531         can't handle large files, for the sake of obsolete platforms.
41532         * modules/fseeko (Depends-on): Remove verify.
41533         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
41534         * doc/functions/ftello.texi (ftello): Likewise.
41535         * doc/functions/fgetpos.texi (fgetpos): Likewise.
41536         Reported by Larry Jones.
41538 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
41540         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
41541         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
41543 2007-12-17  Jim Meyering  <meyering@redhat.com>
41545         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
41546         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
41547         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
41548         * modules/getcwd (Depends-on): Add openat.
41549         Reported by Petr Salinger.
41551 2007-12-17  Bruno Haible  <bruno@clisp.org>
41553         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
41554         avoid a segmentation fault of the configure test on x86_64 systems.
41556 2007-12-15  Jim Meyering  <meyering@redhat.com>
41558         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
41560 2007-12-13  Eric Blake  <ebb9@byu.net>
41562         Another fseek test.
41563         * tests/test-fseek.c (main): Also test ungetc handling.
41564         * tests/test-fseeko.c (main): Likewise.
41565         * modules/fseeko (Depends-on): Add verify.
41566         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
41567         large.
41568         Reported by Larry Jones.
41570         Fix fseeko on mingw.
41571         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
41572         seek.
41574         Beef up fseek tests.
41575         * tests/test-fseek.c (main): Also test eof handling.
41576         * tests/test-fseeko.c (main): Likewise.
41577         Reported by Larry Jones.
41579 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
41581         Fix fseeko on BSD-based platforms.
41582         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
41583         successful seek.
41585 2007-12-12  Eric Blake  <ebb9@byu.net>
41587         Allow circular dependency of separate libtests.a
41588         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
41589         when use_libtests.
41591 2007-12-11  Eric Blake  <ebb9@byu.net>
41593         Fix bug with -0.0L in previous patch.
41594         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
41595         * tests/test-isnan.c (main): Also test on zeroes.
41596         * tests/test-isnanf.c (main): Likewise.
41597         * tests/test-isnanl.h (main): Likewise.
41599         Detect pseudo-denormals on x86 even when cross-compiling.
41600         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
41601         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
41602         invalid bit patterns that happen to satisfy ==.
41604         Avoid link failures with separate libtests.a.
41605         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
41606         last, to satisfy circular dependencies.
41608 2007-12-11  Eric Blake  <ebb9@byu.net>
41609         and Bruno Haible  <bruno@clisp.org>
41611         Fix OpenBSD 4.0 <float.h> handling of long double.
41612         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
41613         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
41614         * doc/headers/float.texi (float.h): Document OpenBSD bug.
41616 2007-12-11  Jim Meyering  <meyering@redhat.com>
41618         * users.txt: Add libvirt.
41620         Support versions of autoconf prior to 2.59c.
41621         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
41622         if it is not already defined.
41624 2007-12-09  Bruno Haible  <bruno@clisp.org>
41626         Let 'gnulib-tool --import' collect sources needed for the tests in
41627         tests/ rather than in lib/.
41628         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
41629         argument. If true, add rules to generate libtests.a, and put libtests.a
41630         into $(LDADD). Consider source files in subdirectories and set
41631         uses_subdirs.
41632         (func_emit_initmacro_start, func_emit_initmacro_end,
41633         func_emit_initmacro_done): Pass all arguments explicitly.
41634         (func_import): Determine two module lists main_modules,
41635         testsrelated_modules. Determine use_libtests. Determine two variables
41636         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
41637         instead of just sed_transform_lib_file. Determine two variables
41638         main_files and testsrelated_files. Compute 'files' as the union of
41639         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
41640         func_add_or_update. In the generated gnulib-comp.m4, collect the
41641         object files for tests/ in different variables than those for lib/.
41642         Substitute LIBTESTS_LIBDEPS.
41643         (func_create_testdir): Combine the uses_subdirs results from
41644         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
41646 2007-12-09  Bruno Haible  <bruno@clisp.org>
41648         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
41649         the build-aux directory.
41651 2007-12-09  Bruno Haible  <bruno@clisp.org>
41653         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
41654         introduced on 2006-09-09.
41656 2007-12-07  Jim Meyering  <meyering@redhat.com>
41658         Let these macros work also with autoconf-2.59.
41659         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
41660         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
41661         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
41663 2007-12-06  Jim Meyering  <meyering@redhat.com>
41665         Avoid a configure-time syntax error in gl_FUNC_ACL.
41666         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
41667         function in each branch, before testing the cache variable.
41669 2007-12-04  Eric Blake  <ebb9@byu.net>
41671         Make scripts executable.
41672         * build-aux/config.guess: Add execute permissions.
41673         * build-aux/config.sub: Likewise.
41674         * build-aux/gendocs.sh: Likewise.
41676         Fix frexp on mingw.
41677         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
41678         cross-compiling.
41679         * doc/functions/frexp.texi (frexp): Document the bug.
41681         Make cygwin fseeko check more reliable.
41682         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
41683         version numbers, rather than unrelated feature check.
41684         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
41685         * doc/functions/ftello.texi (ftello): Likewise.
41686         Reported by Bruno Haible.
41688         * m4/strerror.m4: Bump version number.
41690 2007-12-03  Bruno Haible  <bruno@clisp.org>
41692         * doc/functions/mprotect.texi: Mention the mingw problem.
41694 2007-12-03  Eric Blake  <ebb9@byu.net>
41696         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
41697         REPLACE_STRERROR is initialized before this macro.
41699 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
41701         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
41702         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
41703         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
41704         put -lsec in even for programs other than 'ls'.  This fixes a problem
41705         for gettext reported by Bruno Haible in
41706         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
41707         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
41708         Add support for Solaris 10.  This isn't efficient, but should get the
41709         job done for now.
41711 2007-12-03  James Youngman  <jay@gnu.org>
41713         * doc/regexprops-generic.texi: change "an close-group" to "a
41714         close-group" and "illegal" to "not allowed".
41716 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41718         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
41719         pr_byname.h. Needed for the rare case when the maintainer has done
41720         "make maintainer-clean" in the source directory and then attempts a
41721         build outside the source directory.
41722         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
41723         scripts_byname.h.
41725 2007-12-02  Martin Lambers <marlam@marlam.de>
41726             Bruno Haible  <bruno@clisp.org>
41728         * lib/getpagesize.h: Remove file.
41729         * lib/unistd.in.h: Include declaration of getpagesize here.
41730         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
41731         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
41732         HAVE_SYS_PARAM_H.
41733         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
41734         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
41735         * modules/getpagesize (Files): Remove lib/getpagesize.h.
41736         (Depends-on): Add unistd.
41737         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41738         (Include): Use <unistd.h> instead of getpagesize.h.
41739         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
41740         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
41741         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
41742         gl_GETPAGESIZE invocation, already handled by module dependency.
41743         * lib/pagealign_alloc.c: Don't include getpagesize.h.
41745 2007-12-02  Bruno Haible  <bruno@clisp.org>
41747         * modules/strings-tests: New file.
41748         * tests/test-strings.c: New file.
41750         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
41751         * lib/strings.in.h: New file.
41752         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
41753         * m4/strings_h.m4: New file.
41754         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
41755         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
41756         * modules/strings: New file.
41757         * modules/string (Makefile.am): Update.
41758         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
41759         Reported by Karl Berry.
41761 2007-12-01  Eric Blake  <ebb9@byu.net>
41763         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
41764         accomodate fix in cygwin 1.5.25.
41766 2007-12-01  Jim Meyering  <meyering@redhat.com>
41768         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
41769         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
41770         that would inhibit utf8-optimization of a regexp containing line-
41771         or buffer-anchors, e.g., `^', `$'.
41773 2007-11-30  Bruno Haible  <bruno@clisp.org>
41775         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
41776         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
41777         glthread_recursive_lock_init.
41778         * lib/lock.c (glthread_recursive_lock_init)
41779         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
41780         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
41782 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
41784         New function qset_acl, like set_acl but with syscall semantics.
41785         * lib/acl.h (qset_acl): New decl.
41786         * lib/acl.c (qset_acl): New function.
41787         (set_acl): Use new function.  Use more-consistent diagnostics.
41789 2007-11-28  Jim Meyering  <meyering@redhat.com>
41791         * modules/physmem (License): Change from GPL to LGPLv2+.
41793 2007-11-26  Bruno Haible  <bruno@clisp.org>
41795         * lib/vasnprintf.c (decode_long_double): Don't abort if the
41796         'long double' type has excess precision.
41797         Reported by Jim Meyering in
41798         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
41800 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41802         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
41803         Sync from <http://gnu.org/licenses>.
41804         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
41805         with license text from same location.
41806         * doc/maintain.texi, doc/standards.texi:  Sync from
41807         <http://savannah.gnu.org/projects/gnustandards>.
41809 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
41810         and Jim Meyering  <meyering@redhat.com>
41812         Adjust getdate' grammar to accept a slightly more regular language.
41813         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
41814         Before, the former was rejected.
41815         * lib/getdate.y (digits_to_date_time): New function, factored
41816         out of ...
41817         (number): ...here.  Just call digits_to_date_time.
41818         (hybrid): New non-terminal to handle an <unsigned number,
41819         signed relative offset> sequence consistently.
41821 2007-11-18  Jim Meyering  <meyering@redhat.com>
41823         Pull my changes from coreutils:
41824         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
41825         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
41826         use of $gnulib_tool_option_extras, so that it's separated from the
41827         preceding argument.
41829         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
41830         * build-aux/bootstrap (cp_mark_as_generated): Create any required
41831         parent destination directories before copying a file into place.
41833 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
41835         bootstrap: work also with 4-argument variant of AC_INIT
41836         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
41838 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
41840         Port test-getaddrinfo to Solaris.
41841         Problem reported by Bruno Haible in
41842         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
41843         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
41844         explanation of setting 'hints'.
41845         Don't reject an implementation merely because it returns EAI_SERVICE.
41846         (EAI_SERVICE): Define to 0 if not defined.
41848 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
41850         The license of gnu-make and posix-shell is now "GPLed build tool".
41851         * modules/gnu-make (License): Likewise.
41852         * modules/posix-shell (License): Likewise.
41854         New module posix-shell, for determining a POSIX shell
41855         or perhaps something that is close enough to a POSIX shell.
41856         * m4/posix-shell.m4: New file.
41857         * modules/posix-shell: New file.
41859         * MODULES.html.sh: Mention new module.
41861         New module gnu-make, for determining whether we're using GNU Make.
41862         * m4/gnu-make.m4: New file.
41863         * modules/gnu-make: New file.
41864         * MODULES.html.sh: Mention new module.
41866 2007-11-14  Jim Meyering  <meyering@redhat.com>
41868         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
41869         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
41870         use this macro to create a function _definition_.
41871         Remove useless "#undef ARGMATCH_DIE".
41873 2007-11-14  Bruno Haible  <bruno@clisp.org>
41875         * lib/config.charset: Update for OpenBSD 4.1.
41876         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
41878 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
41880         Document 64-bit #if problems in stdint.texi.
41881         * doc/headers/stdint.texi (stdint.h): Mention problems with
41882         64-bit-#if, and how to work around them.
41884         Don't insist on 'long long int' support in the preprocessor.  It
41885         breaks too many things.  For example, PRIdMAX still uses a 'long
41886         long int' format with the latest Sun compiler, even though
41887         HAVE_LONG_LONG_INT isn't defined due to that compiler's
41888         preprocessor problem.  This causes the latest coreutils to dump
41889         core on Solaris 10 sparc with the Sun C compiler.
41890         Instead, fix the 2007-10-16 problem in a different way, by evaluating
41891         the troublesome expressions at configure-time, not at #if-time.
41892         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
41893         preprocessor.
41894         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
41895         compile-time C checks, done at 'configure'-time.
41896         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
41897         * modules/inttypes (Makefile): Substitute the new symbols that
41898         gl_INTTYPES_H now generates.
41899         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
41901 2007-11-12  Bruno Haible  <bruno@clisp.org>
41903         Tests for Unicode character classification functions.
41905         * modules/unictype/bidicategory-byname-tests: New file.
41906         * modules/unictype/bidicategory-name-tests: New file.
41907         * modules/unictype/bidicategory-of-tests: New file.
41908         * modules/unictype/bidicategory-test-tests: New file.
41909         * modules/unictype/block-list-tests: New file.
41910         * modules/unictype/block-of-tests: New file.
41911         * modules/unictype/block-test-tests: New file.
41912         * modules/unictype/category-C-tests: New file.
41913         * modules/unictype/category-Cc-tests: New file.
41914         * modules/unictype/category-Cf-tests: New file.
41915         * modules/unictype/category-Cn-tests: New file.
41916         * modules/unictype/category-Co-tests: New file.
41917         * modules/unictype/category-Cs-tests: New file.
41918         * modules/unictype/category-L-tests: New file.
41919         * modules/unictype/category-Ll-tests: New file.
41920         * modules/unictype/category-Lm-tests: New file.
41921         * modules/unictype/category-Lo-tests: New file.
41922         * modules/unictype/category-Lt-tests: New file.
41923         * modules/unictype/category-Lu-tests: New file.
41924         * modules/unictype/category-M-tests: New file.
41925         * modules/unictype/category-Mc-tests: New file.
41926         * modules/unictype/category-Me-tests: New file.
41927         * modules/unictype/category-Mn-tests: New file.
41928         * modules/unictype/category-N-tests: New file.
41929         * modules/unictype/category-Nd-tests: New file.
41930         * modules/unictype/category-Nl-tests: New file.
41931         * modules/unictype/category-No-tests: New file.
41932         * modules/unictype/category-P-tests: New file.
41933         * modules/unictype/category-Pc-tests: New file.
41934         * modules/unictype/category-Pd-tests: New file.
41935         * modules/unictype/category-Pe-tests: New file.
41936         * modules/unictype/category-Pf-tests: New file.
41937         * modules/unictype/category-Pi-tests: New file.
41938         * modules/unictype/category-Po-tests: New file.
41939         * modules/unictype/category-Ps-tests: New file.
41940         * modules/unictype/category-S-tests: New file.
41941         * modules/unictype/category-Sc-tests: New file.
41942         * modules/unictype/category-Sk-tests: New file.
41943         * modules/unictype/category-Sm-tests: New file.
41944         * modules/unictype/category-So-tests: New file.
41945         * modules/unictype/category-Z-tests: New file.
41946         * modules/unictype/category-Zl-tests: New file.
41947         * modules/unictype/category-Zp-tests: New file.
41948         * modules/unictype/category-Zs-tests: New file.
41949         * modules/unictype/category-and-not-tests: New file.
41950         * modules/unictype/category-and-tests: New file.
41951         * modules/unictype/category-byname-tests: New file.
41952         * modules/unictype/category-name-tests: New file.
41953         * modules/unictype/category-none-tests: New file.
41954         * modules/unictype/category-of-tests: New file.
41955         * modules/unictype/category-or-tests: New file.
41956         * modules/unictype/category-test-withtable-tests: New file.
41957         * modules/unictype/combining-class-tests: New file.
41958         * modules/unictype/ctype-alnum-tests: New file.
41959         * modules/unictype/ctype-alpha-tests: New file.
41960         * modules/unictype/ctype-blank-tests: New file.
41961         * modules/unictype/ctype-cntrl-tests: New file.
41962         * modules/unictype/ctype-digit-tests: New file.
41963         * modules/unictype/ctype-graph-tests: New file.
41964         * modules/unictype/ctype-lower-tests: New file.
41965         * modules/unictype/ctype-print-tests: New file.
41966         * modules/unictype/ctype-punct-tests: New file.
41967         * modules/unictype/ctype-space-tests: New file.
41968         * modules/unictype/ctype-upper-tests: New file.
41969         * modules/unictype/ctype-xdigit-tests: New file.
41970         * modules/unictype/decimal-digit-tests: New file.
41971         * modules/unictype/digit-tests: New file.
41972         * modules/unictype/mirror-tests: New file.
41973         * modules/unictype/numeric-tests: New file.
41974         * modules/unictype/property-alphabetic-tests: New file.
41975         * modules/unictype/property-ascii-hex-digit-tests: New file.
41976         * modules/unictype/property-bidi-arabic-digit-tests: New file.
41977         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
41978         * modules/unictype/property-bidi-block-separator-tests: New file.
41979         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
41980         * modules/unictype/property-bidi-common-separator-tests: New file.
41981         * modules/unictype/property-bidi-control-tests: New file.
41982         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
41983         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
41984         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
41985         * modules/unictype/property-bidi-european-digit-tests: New file.
41986         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
41987         * modules/unictype/property-bidi-left-to-right-tests: New file.
41988         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
41989         * modules/unictype/property-bidi-other-neutral-tests: New file.
41990         * modules/unictype/property-bidi-pdf-tests: New file.
41991         * modules/unictype/property-bidi-segment-separator-tests: New file.
41992         * modules/unictype/property-bidi-whitespace-tests: New file.
41993         * modules/unictype/property-byname-tests: New file.
41994         * modules/unictype/property-combining-tests: New file.
41995         * modules/unictype/property-composite-tests: New file.
41996         * modules/unictype/property-currency-symbol-tests: New file.
41997         * modules/unictype/property-dash-tests: New file.
41998         * modules/unictype/property-decimal-digit-tests: New file.
41999         * modules/unictype/property-default-ignorable-code-point-tests: New file.
42000         * modules/unictype/property-deprecated-tests: New file.
42001         * modules/unictype/property-diacritic-tests: New file.
42002         * modules/unictype/property-extender-tests: New file.
42003         * modules/unictype/property-format-control-tests: New file.
42004         * modules/unictype/property-grapheme-base-tests: New file.
42005         * modules/unictype/property-grapheme-extend-tests: New file.
42006         * modules/unictype/property-grapheme-link-tests: New file.
42007         * modules/unictype/property-hex-digit-tests: New file.
42008         * modules/unictype/property-hyphen-tests: New file.
42009         * modules/unictype/property-id-continue-tests: New file.
42010         * modules/unictype/property-id-start-tests: New file.
42011         * modules/unictype/property-ideographic-tests: New file.
42012         * modules/unictype/property-ids-binary-operator-tests: New file.
42013         * modules/unictype/property-ids-trinary-operator-tests: New file.
42014         * modules/unictype/property-ignorable-control-tests: New file.
42015         * modules/unictype/property-iso-control-tests: New file.
42016         * modules/unictype/property-join-control-tests: New file.
42017         * modules/unictype/property-left-of-pair-tests: New file.
42018         * modules/unictype/property-line-separator-tests: New file.
42019         * modules/unictype/property-logical-order-exception-tests: New file.
42020         * modules/unictype/property-lowercase-tests: New file.
42021         * modules/unictype/property-math-tests: New file.
42022         * modules/unictype/property-non-break-tests: New file.
42023         * modules/unictype/property-not-a-character-tests: New file.
42024         * modules/unictype/property-numeric-tests: New file.
42025         * modules/unictype/property-other-alphabetic-tests: New file.
42026         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
42027         * modules/unictype/property-other-grapheme-extend-tests: New file.
42028         * modules/unictype/property-other-id-continue-tests: New file.
42029         * modules/unictype/property-other-id-start-tests: New file.
42030         * modules/unictype/property-other-lowercase-tests: New file.
42031         * modules/unictype/property-other-math-tests: New file.
42032         * modules/unictype/property-other-uppercase-tests: New file.
42033         * modules/unictype/property-paired-punctuation-tests: New file.
42034         * modules/unictype/property-paragraph-separator-tests: New file.
42035         * modules/unictype/property-pattern-syntax-tests: New file.
42036         * modules/unictype/property-pattern-white-space-tests: New file.
42037         * modules/unictype/property-private-use-tests: New file.
42038         * modules/unictype/property-punctuation-tests: New file.
42039         * modules/unictype/property-quotation-mark-tests: New file.
42040         * modules/unictype/property-radical-tests: New file.
42041         * modules/unictype/property-sentence-terminal-tests: New file.
42042         * modules/unictype/property-soft-dotted-tests: New file.
42043         * modules/unictype/property-space-tests: New file.
42044         * modules/unictype/property-terminal-punctuation-tests: New file.
42045         * modules/unictype/property-test-tests: New file.
42046         * modules/unictype/property-titlecase-tests: New file.
42047         * modules/unictype/property-unassigned-code-value-tests: New file.
42048         * modules/unictype/property-unified-ideograph-tests: New file.
42049         * modules/unictype/property-uppercase-tests: New file.
42050         * modules/unictype/property-variation-selector-tests: New file.
42051         * modules/unictype/property-white-space-tests: New file.
42052         * modules/unictype/property-xid-continue-tests: New file.
42053         * modules/unictype/property-xid-start-tests: New file.
42054         * modules/unictype/property-zero-width-tests: New file.
42055         * modules/unictype/scripts-tests: New file.
42056         * modules/unictype/syntax-c-ident-tests: New file.
42057         * modules/unictype/syntax-c-whitespace-tests: New file.
42058         * modules/unictype/syntax-java-ident-tests: New file.
42059         * modules/unictype/syntax-java-whitespace-tests: New file.
42060         * tests/unictype/test-bidi_byname.c: New file.
42061         * tests/unictype/test-bidi_name.c: New file.
42062         * tests/unictype/test-bidi_of.c: New file.
42063         * tests/unictype/test-bidi_test.c: New file.
42064         * tests/unictype/test-block_list.c: New file.
42065         * tests/unictype/test-block_of.c: New file.
42066         * tests/unictype/test-block_test.c: New file.
42067         * tests/unictype/test-categ_and.c: New file.
42068         * tests/unictype/test-categ_and_not.c: New file.
42069         * tests/unictype/test-categ_byname.c: New file.
42070         * tests/unictype/test-categ_name.c: New file.
42071         * tests/unictype/test-categ_none.c: New file.
42072         * tests/unictype/test-categ_of.c: New file.
42073         * tests/unictype/test-categ_or.c: New file.
42074         * tests/unictype/test-categ_test_withtable.c: New file.
42075         * tests/unictype/test-combining.c: New file.
42076         * tests/unictype/test-decdigit.c: New file.
42077         * tests/unictype/test-digit.c: New file.
42078         * tests/unictype/test-mirror.c: New file.
42079         * tests/unictype/test-numeric.c: New file.
42080         * tests/unictype/test-pr_byname.c: New file.
42081         * tests/unictype/test-pr_test.c: New file.
42082         * tests/unictype/test-predicate-part1.h: New file.
42083         * tests/unictype/test-predicate-part2.h: New file.
42084         * tests/unictype/test-scripts.c: New file.
42085         * tests/unictype/test-sy_c_ident.c: New file.
42086         * tests/unictype/test-sy_java_ident.c: New file.
42088         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
42089         for Unicode 5.0.0.
42090         * tests/unictype/test-categ_Cc.c: Likewise.
42091         * tests/unictype/test-categ_Cf.c: Likewise.
42092         * tests/unictype/test-categ_Cn.c: Likewise.
42093         * tests/unictype/test-categ_Co.c: Likewise.
42094         * tests/unictype/test-categ_Cs.c: Likewise.
42095         * tests/unictype/test-categ_L.c: Likewise.
42096         * tests/unictype/test-categ_Ll.c: Likewise.
42097         * tests/unictype/test-categ_Lm.c: Likewise.
42098         * tests/unictype/test-categ_Lo.c: Likewise.
42099         * tests/unictype/test-categ_Lt.c: Likewise.
42100         * tests/unictype/test-categ_Lu.c: Likewise.
42101         * tests/unictype/test-categ_M.c: Likewise.
42102         * tests/unictype/test-categ_Mc.c: Likewise.
42103         * tests/unictype/test-categ_Me.c: Likewise.
42104         * tests/unictype/test-categ_Mn.c: Likewise.
42105         * tests/unictype/test-categ_N.c: Likewise.
42106         * tests/unictype/test-categ_Nd.c: Likewise.
42107         * tests/unictype/test-categ_Nl.c: Likewise.
42108         * tests/unictype/test-categ_No.c: Likewise.
42109         * tests/unictype/test-categ_P.c: Likewise.
42110         * tests/unictype/test-categ_Pc.c: Likewise.
42111         * tests/unictype/test-categ_Pd.c: Likewise.
42112         * tests/unictype/test-categ_Pe.c: Likewise.
42113         * tests/unictype/test-categ_Pf.c: Likewise.
42114         * tests/unictype/test-categ_Pi.c: Likewise.
42115         * tests/unictype/test-categ_Po.c: Likewise.
42116         * tests/unictype/test-categ_Ps.c: Likewise.
42117         * tests/unictype/test-categ_S.c: Likewise.
42118         * tests/unictype/test-categ_Sc.c: Likewise.
42119         * tests/unictype/test-categ_Sk.c: Likewise.
42120         * tests/unictype/test-categ_Sm.c: Likewise.
42121         * tests/unictype/test-categ_So.c: Likewise.
42122         * tests/unictype/test-categ_Z.c: Likewise.
42123         * tests/unictype/test-categ_Zl.c: Likewise.
42124         * tests/unictype/test-categ_Zp.c: Likewise.
42125         * tests/unictype/test-categ_Zs.c: Likewise.
42126         * tests/unictype/test-ctype_alnum.c: Likewise.
42127         * tests/unictype/test-ctype_alpha.c: Likewise.
42128         * tests/unictype/test-ctype_blank.c: Likewise.
42129         * tests/unictype/test-ctype_cntrl.c: Likewise.
42130         * tests/unictype/test-ctype_digit.c: Likewise.
42131         * tests/unictype/test-ctype_graph.c: Likewise.
42132         * tests/unictype/test-ctype_lower.c: Likewise.
42133         * tests/unictype/test-ctype_print.c: Likewise.
42134         * tests/unictype/test-ctype_punct.c: Likewise.
42135         * tests/unictype/test-ctype_space.c: Likewise.
42136         * tests/unictype/test-ctype_upper.c: Likewise.
42137         * tests/unictype/test-ctype_xdigit.c: Likewise.
42138         * tests/unictype/test-decdigit.h: Likewise.
42139         * tests/unictype/test-digit.h: Likewise.
42140         * tests/unictype/test-numeric.h: Likewise.
42141         * tests/unictype/test-pr_alphabetic.c: Likewise.
42142         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
42143         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
42144         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
42145         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
42146         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
42147         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
42148         * tests/unictype/test-pr_bidi_control.c: Likewise.
42149         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
42150         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
42151         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
42152         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
42153         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
42154         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
42155         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
42156         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
42157         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
42158         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
42159         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
42160         * tests/unictype/test-pr_combining.c: Likewise.
42161         * tests/unictype/test-pr_composite.c: Likewise.
42162         * tests/unictype/test-pr_currency_symbol.c: Likewise.
42163         * tests/unictype/test-pr_dash.c: Likewise.
42164         * tests/unictype/test-pr_decimal_digit.c: Likewise.
42165         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
42166         * tests/unictype/test-pr_deprecated.c: Likewise.
42167         * tests/unictype/test-pr_diacritic.c: Likewise.
42168         * tests/unictype/test-pr_extender.c: Likewise.
42169         * tests/unictype/test-pr_format_control.c: Likewise.
42170         * tests/unictype/test-pr_grapheme_base.c: Likewise.
42171         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
42172         * tests/unictype/test-pr_grapheme_link.c: Likewise.
42173         * tests/unictype/test-pr_hex_digit.c: Likewise.
42174         * tests/unictype/test-pr_hyphen.c: Likewise.
42175         * tests/unictype/test-pr_id_continue.c: Likewise.
42176         * tests/unictype/test-pr_id_start.c: Likewise.
42177         * tests/unictype/test-pr_ideographic.c: Likewise.
42178         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
42179         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
42180         * tests/unictype/test-pr_ignorable_control.c: Likewise.
42181         * tests/unictype/test-pr_iso_control.c: Likewise.
42182         * tests/unictype/test-pr_join_control.c: Likewise.
42183         * tests/unictype/test-pr_left_of_pair.c: Likewise.
42184         * tests/unictype/test-pr_line_separator.c: Likewise.
42185         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
42186         * tests/unictype/test-pr_lowercase.c: Likewise.
42187         * tests/unictype/test-pr_math.c: Likewise.
42188         * tests/unictype/test-pr_non_break.c: Likewise.
42189         * tests/unictype/test-pr_not_a_character.c: Likewise.
42190         * tests/unictype/test-pr_numeric.c: Likewise.
42191         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
42192         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
42193         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
42194         * tests/unictype/test-pr_other_id_continue.c: Likewise.
42195         * tests/unictype/test-pr_other_id_start.c: Likewise.
42196         * tests/unictype/test-pr_other_lowercase.c: Likewise.
42197         * tests/unictype/test-pr_other_math.c: Likewise.
42198         * tests/unictype/test-pr_other_uppercase.c: Likewise.
42199         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
42200         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
42201         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
42202         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
42203         * tests/unictype/test-pr_private_use.c: Likewise.
42204         * tests/unictype/test-pr_punctuation.c: Likewise.
42205         * tests/unictype/test-pr_quotation_mark.c: Likewise.
42206         * tests/unictype/test-pr_radical.c: Likewise.
42207         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
42208         * tests/unictype/test-pr_soft_dotted.c: Likewise.
42209         * tests/unictype/test-pr_space.c: Likewise.
42210         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
42211         * tests/unictype/test-pr_titlecase.c: Likewise.
42212         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
42213         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
42214         * tests/unictype/test-pr_uppercase.c: Likewise.
42215         * tests/unictype/test-pr_variation_selector.c: Likewise.
42216         * tests/unictype/test-pr_white_space.c: Likewise.
42217         * tests/unictype/test-pr_xid_continue.c: Likewise.
42218         * tests/unictype/test-pr_xid_start.c: Likewise.
42219         * tests/unictype/test-pr_zero_width.c: Likewise.
42220         * tests/unictype/test-sy_c_whitespace.c: Likewise.
42221         * tests/unictype/test-sy_java_whitespace.c: Likewise.
42223 2007-11-12  Bruno Haible  <bruno@clisp.org>
42225         Unicode character classification functions.
42226         * lib/unictype.h: New file.
42227         * modules/unictype/base: New file.
42228         * modules/unictype/category-L: New file.
42229         * modules/unictype/category-Lu: New file.
42230         * modules/unictype/category-Ll: New file.
42231         * modules/unictype/category-Lt: New file.
42232         * modules/unictype/category-Lm: New file.
42233         * modules/unictype/category-Lo: New file.
42234         * modules/unictype/category-M: New file.
42235         * modules/unictype/category-Mn: New file.
42236         * modules/unictype/category-Mc: New file.
42237         * modules/unictype/category-Me: New file.
42238         * modules/unictype/category-N: New file.
42239         * modules/unictype/category-Nd: New file.
42240         * modules/unictype/category-Nl: New file.
42241         * modules/unictype/category-No: New file.
42242         * modules/unictype/category-P: New file.
42243         * modules/unictype/category-Pc: New file.
42244         * modules/unictype/category-Pd: New file.
42245         * modules/unictype/category-Ps: New file.
42246         * modules/unictype/category-Pe: New file.
42247         * modules/unictype/category-Pi: New file.
42248         * modules/unictype/category-Pf: New file.
42249         * modules/unictype/category-Po: New file.
42250         * modules/unictype/category-S: New file.
42251         * modules/unictype/category-Sm: New file.
42252         * modules/unictype/category-Sc: New file.
42253         * modules/unictype/category-Sk: New file.
42254         * modules/unictype/category-So: New file.
42255         * modules/unictype/category-Z: New file.
42256         * modules/unictype/category-Zs: New file.
42257         * modules/unictype/category-Zl: New file.
42258         * modules/unictype/category-Zp: New file.
42259         * modules/unictype/category-C: New file.
42260         * modules/unictype/category-Cc: New file.
42261         * modules/unictype/category-Cf: New file.
42262         * modules/unictype/category-Cs: New file.
42263         * modules/unictype/category-Co: New file.
42264         * modules/unictype/category-Cn: New file.
42265         * modules/unictype/category-or: New file.
42266         * modules/unictype/category-of: New file.
42267         * modules/unictype/category-test: New file.
42268         * modules/unictype/category-test-withtable: New file.
42269         * modules/unictype/category-byname: New file.
42270         * modules/unictype/category-none: New file.
42271         * modules/unictype/category-and: New file.
42272         * modules/unictype/category-and-not: New file.
42273         * modules/unictype/category-name: New file.
42274         * modules/unictype/combining-class: New file.
42275         * modules/unictype/category-all: New file.
42276         * modules/unictype/bidicategory-all: New file.
42277         * modules/unictype/bidicategory-byname: New file.
42278         * modules/unictype/bidicategory-name: New file.
42279         * modules/unictype/bidicategory-of: New file.
42280         * modules/unictype/bidicategory-test: New file.
42281         * modules/unictype/decimal-digit: New file.
42282         * modules/unictype/digit: New file.
42283         * modules/unictype/numeric: New file.
42284         * modules/unictype/mirror: New file.
42285         * modules/unictype/property-white-space: New file.
42286         * modules/unictype/property-alphabetic: New file.
42287         * modules/unictype/property-other-alphabetic: New file.
42288         * modules/unictype/property-not-a-character: New file.
42289         * modules/unictype/property-default-ignorable-code-point: New file.
42290         * modules/unictype/property-other-default-ignorable-code-point: New
42291         file.
42292         * modules/unictype/property-deprecated: New file.
42293         * modules/unictype/property-logical-order-exception: New file.
42294         * modules/unictype/property-variation-selector: New file.
42295         * modules/unictype/property-private-use: New file.
42296         * modules/unictype/property-unassigned-code-value: New file.
42297         * modules/unictype/property-uppercase: New file.
42298         * modules/unictype/property-other-uppercase: New file.
42299         * modules/unictype/property-lowercase: New file.
42300         * modules/unictype/property-other-lowercase: New file.
42301         * modules/unictype/property-titlecase: New file.
42302         * modules/unictype/property-soft-dotted: New file.
42303         * modules/unictype/property-id-start: New file.
42304         * modules/unictype/property-other-id-start: New file.
42305         * modules/unictype/property-id-continue: New file.
42306         * modules/unictype/property-other-id-continue: New file.
42307         * modules/unictype/property-xid-start: New file.
42308         * modules/unictype/property-xid-continue: New file.
42309         * modules/unictype/property-pattern-white-space: New file.
42310         * modules/unictype/property-pattern-syntax: New file.
42311         * modules/unictype/property-join-control: New file.
42312         * modules/unictype/property-grapheme-base: New file.
42313         * modules/unictype/property-grapheme-extend: New file.
42314         * modules/unictype/property-other-grapheme-extend: New file.
42315         * modules/unictype/property-grapheme-link: New file.
42316         * modules/unictype/property-bidi-control: New file.
42317         * modules/unictype/property-bidi-left-to-right: New file.
42318         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
42319         * modules/unictype/property-bidi-arabic-right-to-left: New file.
42320         * modules/unictype/property-bidi-european-digit: New file.
42321         * modules/unictype/property-bidi-eur-num-separator: New file.
42322         * modules/unictype/property-bidi-eur-num-terminator: New file.
42323         * modules/unictype/property-bidi-arabic-digit: New file.
42324         * modules/unictype/property-bidi-common-separator: New file.
42325         * modules/unictype/property-bidi-block-separator: New file.
42326         * modules/unictype/property-bidi-segment-separator: New file.
42327         * modules/unictype/property-bidi-whitespace: New file.
42328         * modules/unictype/property-bidi-non-spacing-mark: New file.
42329         * modules/unictype/property-bidi-boundary-neutral: New file.
42330         * modules/unictype/property-bidi-pdf: New file.
42331         * modules/unictype/property-bidi-embedding-or-override: New file.
42332         * modules/unictype/property-bidi-other-neutral: New file.
42333         * modules/unictype/property-hex-digit: New file.
42334         * modules/unictype/property-ascii-hex-digit: New file.
42335         * modules/unictype/property-ideographic: New file.
42336         * modules/unictype/property-unified-ideograph: New file.
42337         * modules/unictype/property-radical: New file.
42338         * modules/unictype/property-ids-binary-operator: New file.
42339         * modules/unictype/property-ids-trinary-operator: New file.
42340         * modules/unictype/property-zero-width: New file.
42341         * modules/unictype/property-space: New file.
42342         * modules/unictype/property-non-break: New file.
42343         * modules/unictype/property-iso-control: New file.
42344         * modules/unictype/property-format-control: New file.
42345         * modules/unictype/property-dash: New file.
42346         * modules/unictype/property-hyphen: New file.
42347         * modules/unictype/property-punctuation: New file.
42348         * modules/unictype/property-line-separator: New file.
42349         * modules/unictype/property-paragraph-separator: New file.
42350         * modules/unictype/property-quotation-mark: New file.
42351         * modules/unictype/property-sentence-terminal: New file.
42352         * modules/unictype/property-terminal-punctuation: New file.
42353         * modules/unictype/property-currency-symbol: New file.
42354         * modules/unictype/property-math: New file.
42355         * modules/unictype/property-other-math: New file.
42356         * modules/unictype/property-paired-punctuation: New file.
42357         * modules/unictype/property-left-of-pair: New file.
42358         * modules/unictype/property-combining: New file.
42359         * modules/unictype/property-composite: New file.
42360         * modules/unictype/property-decimal-digit: New file.
42361         * modules/unictype/property-numeric: New file.
42362         * modules/unictype/property-diacritic: New file.
42363         * modules/unictype/property-extender: New file.
42364         * modules/unictype/property-ignorable-control: New file.
42365         * modules/unictype/property-test: New file.
42366         * modules/unictype/property-byname: New file.
42367         * modules/unictype/property-all: New file.
42368         * modules/unictype/scripts: New file.
42369         * modules/unictype/scripts-all: New file.
42370         * modules/unictype/block-of: New file.
42371         * modules/unictype/block-test: New file.
42372         * modules/unictype/block-list: New file.
42373         * modules/unictype/block-all: New file.
42374         * modules/unictype/syntax-c-whitespace: New file.
42375         * modules/unictype/syntax-java-whitespace: New file.
42376         * modules/unictype/syntax-c-ident: New file.
42377         * modules/unictype/syntax-java-ident: New file.
42378         * modules/unictype/ctype-alnum: New file.
42379         * modules/unictype/ctype-alpha: New file.
42380         * modules/unictype/ctype-cntrl: New file.
42381         * modules/unictype/ctype-digit: New file.
42382         * modules/unictype/ctype-graph: New file.
42383         * modules/unictype/ctype-lower: New file.
42384         * modules/unictype/ctype-print: New file.
42385         * modules/unictype/ctype-punct: New file.
42386         * modules/unictype/ctype-space: New file.
42387         * modules/unictype/ctype-upper: New file.
42388         * modules/unictype/ctype-xdigit: New file.
42389         * modules/unictype/ctype-blank: New file.
42390         * lib/unictype/bidi_byname.c: New file.
42391         * lib/unictype/bidi_name.c: New file.
42392         * lib/unictype/bidi_of.c: New file.
42393         * lib/unictype/bidi_test.c: New file.
42394         * lib/unictype/bitmap.h: New file.
42395         * lib/unictype/block_test.c: New file.
42396         * lib/unictype/blocks.c: New file.
42397         * lib/unictype/categ_C.c: New file.
42398         * lib/unictype/categ_Cc.c: New file.
42399         * lib/unictype/categ_Cf.c: New file.
42400         * lib/unictype/categ_Cn.c: New file.
42401         * lib/unictype/categ_Co.c: New file.
42402         * lib/unictype/categ_Cs.c: New file.
42403         * lib/unictype/categ_L.c: New file.
42404         * lib/unictype/categ_Ll.c: New file.
42405         * lib/unictype/categ_Lm.c: New file.
42406         * lib/unictype/categ_Lo.c: New file.
42407         * lib/unictype/categ_Lt.c: New file.
42408         * lib/unictype/categ_Lu.c: New file.
42409         * lib/unictype/categ_M.c: New file.
42410         * lib/unictype/categ_Mc.c: New file.
42411         * lib/unictype/categ_Me.c: New file.
42412         * lib/unictype/categ_Mn.c: New file.
42413         * lib/unictype/categ_N.c: New file.
42414         * lib/unictype/categ_Nd.c: New file.
42415         * lib/unictype/categ_Nl.c: New file.
42416         * lib/unictype/categ_No.c: New file.
42417         * lib/unictype/categ_P.c: New file.
42418         * lib/unictype/categ_Pc.c: New file.
42419         * lib/unictype/categ_Pd.c: New file.
42420         * lib/unictype/categ_Pe.c: New file.
42421         * lib/unictype/categ_Pf.c: New file.
42422         * lib/unictype/categ_Pi.c: New file.
42423         * lib/unictype/categ_Po.c: New file.
42424         * lib/unictype/categ_Ps.c: New file.
42425         * lib/unictype/categ_S.c: New file.
42426         * lib/unictype/categ_Sc.c: New file.
42427         * lib/unictype/categ_Sk.c: New file.
42428         * lib/unictype/categ_Sm.c: New file.
42429         * lib/unictype/categ_So.c: New file.
42430         * lib/unictype/categ_Z.c: New file.
42431         * lib/unictype/categ_Zl.c: New file.
42432         * lib/unictype/categ_Zp.c: New file.
42433         * lib/unictype/categ_Zs.c: New file.
42434         * lib/unictype/categ_and.c: New file.
42435         * lib/unictype/categ_and_not.c: New file.
42436         * lib/unictype/categ_byname.c: New file.
42437         * lib/unictype/categ_name.c: New file.
42438         * lib/unictype/categ_none.c: New file.
42439         * lib/unictype/categ_of.c: New file.
42440         * lib/unictype/categ_or.c: New file.
42441         * lib/unictype/categ_test.c: New file.
42442         * lib/unictype/combining.c: New file.
42443         * lib/unictype/ctype_alnum.c: New file.
42444         * lib/unictype/ctype_alpha.c: New file.
42445         * lib/unictype/ctype_blank.c: New file.
42446         * lib/unictype/ctype_cntrl.c: New file.
42447         * lib/unictype/ctype_digit.c: New file.
42448         * lib/unictype/ctype_graph.c: New file.
42449         * lib/unictype/ctype_lower.c: New file.
42450         * lib/unictype/ctype_print.c: New file.
42451         * lib/unictype/ctype_punct.c: New file.
42452         * lib/unictype/ctype_space.c: New file.
42453         * lib/unictype/ctype_upper.c: New file.
42454         * lib/unictype/ctype_xdigit.c: New file.
42455         * lib/unictype/decdigit.c: New file.
42456         * lib/unictype/digit.c: New file.
42457         * lib/unictype/identsyntaxmap.h: New file.
42458         * lib/unictype/mirror.c: New file.
42459         * lib/unictype/numeric.c: New file.
42460         * lib/unictype/pr_alphabetic.c: New file.
42461         * lib/unictype/pr_ascii_hex_digit.c: New file.
42462         * lib/unictype/pr_bidi_arabic_digit.c: New file.
42463         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
42464         * lib/unictype/pr_bidi_block_separator.c: New file.
42465         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
42466         * lib/unictype/pr_bidi_common_separator.c: New file.
42467         * lib/unictype/pr_bidi_control.c: New file.
42468         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
42469         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
42470         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
42471         * lib/unictype/pr_bidi_european_digit.c: New file.
42472         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
42473         * lib/unictype/pr_bidi_left_to_right.c: New file.
42474         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
42475         * lib/unictype/pr_bidi_other_neutral.c: New file.
42476         * lib/unictype/pr_bidi_pdf.c: New file.
42477         * lib/unictype/pr_bidi_segment_separator.c: New file.
42478         * lib/unictype/pr_bidi_whitespace.c: New file.
42479         * lib/unictype/pr_byname.c: New file.
42480         * lib/unictype/pr_byname.gperf: New file.
42481         * lib/unictype/pr_combining.c: New file.
42482         * lib/unictype/pr_composite.c: New file.
42483         * lib/unictype/pr_currency_symbol.c: New file.
42484         * lib/unictype/pr_dash.c: New file.
42485         * lib/unictype/pr_decimal_digit.c: New file.
42486         * lib/unictype/pr_default_ignorable_code_point.c: New file.
42487         * lib/unictype/pr_deprecated.c: New file.
42488         * lib/unictype/pr_diacritic.c: New file.
42489         * lib/unictype/pr_extender.c: New file.
42490         * lib/unictype/pr_format_control.c: New file.
42491         * lib/unictype/pr_grapheme_base.c: New file.
42492         * lib/unictype/pr_grapheme_extend.c: New file.
42493         * lib/unictype/pr_grapheme_link.c: New file.
42494         * lib/unictype/pr_hex_digit.c: New file.
42495         * lib/unictype/pr_hyphen.c: New file.
42496         * lib/unictype/pr_id_continue.c: New file.
42497         * lib/unictype/pr_id_start.c: New file.
42498         * lib/unictype/pr_ideographic.c: New file.
42499         * lib/unictype/pr_ids_binary_operator.c: New file.
42500         * lib/unictype/pr_ids_trinary_operator.c: New file.
42501         * lib/unictype/pr_ignorable_control.c: New file.
42502         * lib/unictype/pr_iso_control.c: New file.
42503         * lib/unictype/pr_join_control.c: New file.
42504         * lib/unictype/pr_left_of_pair.c: New file.
42505         * lib/unictype/pr_line_separator.c: New file.
42506         * lib/unictype/pr_logical_order_exception.c: New file.
42507         * lib/unictype/pr_lowercase.c: New file.
42508         * lib/unictype/pr_math.c: New file.
42509         * lib/unictype/pr_non_break.c: New file.
42510         * lib/unictype/pr_not_a_character.c: New file.
42511         * lib/unictype/pr_numeric.c: New file.
42512         * lib/unictype/pr_other_alphabetic.c: New file.
42513         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
42514         * lib/unictype/pr_other_grapheme_extend.c: New file.
42515         * lib/unictype/pr_other_id_continue.c: New file.
42516         * lib/unictype/pr_other_id_start.c: New file.
42517         * lib/unictype/pr_other_lowercase.c: New file.
42518         * lib/unictype/pr_other_math.c: New file.
42519         * lib/unictype/pr_other_uppercase.c: New file.
42520         * lib/unictype/pr_paired_punctuation.c: New file.
42521         * lib/unictype/pr_paragraph_separator.c: New file.
42522         * lib/unictype/pr_pattern_syntax.c: New file.
42523         * lib/unictype/pr_pattern_white_space.c: New file.
42524         * lib/unictype/pr_private_use.c: New file.
42525         * lib/unictype/pr_punctuation.c: New file.
42526         * lib/unictype/pr_quotation_mark.c: New file.
42527         * lib/unictype/pr_radical.c: New file.
42528         * lib/unictype/pr_sentence_terminal.c: New file.
42529         * lib/unictype/pr_soft_dotted.c: New file.
42530         * lib/unictype/pr_space.c: New file.
42531         * lib/unictype/pr_terminal_punctuation.c: New file.
42532         * lib/unictype/pr_test.c: New file.
42533         * lib/unictype/pr_titlecase.c: New file.
42534         * lib/unictype/pr_unassigned_code_value.c: New file.
42535         * lib/unictype/pr_unified_ideograph.c: New file.
42536         * lib/unictype/pr_uppercase.c: New file.
42537         * lib/unictype/pr_variation_selector.c: New file.
42538         * lib/unictype/pr_white_space.c: New file.
42539         * lib/unictype/pr_xid_continue.c: New file.
42540         * lib/unictype/pr_xid_start.c: New file.
42541         * lib/unictype/pr_zero_width.c: New file.
42542         * lib/unictype/scripts.c: New file.
42543         * lib/unictype/sy_c_ident.c: New file.
42544         * lib/unictype/sy_c_whitespace.c: New file.
42545         * lib/unictype/sy_java_ident.c: New file.
42546         * lib/unictype/sy_java_whitespace.c: New file.
42548         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
42549         Unicode 5.0.0.
42550         * lib/unictype/blocks.h: Likewise.
42551         * lib/unictype/categ_C.h: Likewise.
42552         * lib/unictype/categ_Cc.h: Likewise.
42553         * lib/unictype/categ_Cf.h: Likewise.
42554         * lib/unictype/categ_Cn.h: Likewise.
42555         * lib/unictype/categ_Co.h: Likewise.
42556         * lib/unictype/categ_Cs.h: Likewise.
42557         * lib/unictype/categ_L.h: Likewise.
42558         * lib/unictype/categ_Ll.h: Likewise.
42559         * lib/unictype/categ_Lm.h: Likewise.
42560         * lib/unictype/categ_Lo.h: Likewise.
42561         * lib/unictype/categ_Lt.h: Likewise.
42562         * lib/unictype/categ_Lu.h: Likewise.
42563         * lib/unictype/categ_M.h: Likewise.
42564         * lib/unictype/categ_Mc.h: Likewise.
42565         * lib/unictype/categ_Me.h: Likewise.
42566         * lib/unictype/categ_Mn.h: Likewise.
42567         * lib/unictype/categ_N.h: Likewise.
42568         * lib/unictype/categ_Nd.h: Likewise.
42569         * lib/unictype/categ_Nl.h: Likewise.
42570         * lib/unictype/categ_No.h: Likewise.
42571         * lib/unictype/categ_P.h: Likewise.
42572         * lib/unictype/categ_Pc.h: Likewise.
42573         * lib/unictype/categ_Pd.h: Likewise.
42574         * lib/unictype/categ_Pe.h: Likewise.
42575         * lib/unictype/categ_Pf.h: Likewise.
42576         * lib/unictype/categ_Pi.h: Likewise.
42577         * lib/unictype/categ_Po.h: Likewise.
42578         * lib/unictype/categ_Ps.h: Likewise.
42579         * lib/unictype/categ_S.h: Likewise.
42580         * lib/unictype/categ_Sc.h: Likewise.
42581         * lib/unictype/categ_Sk.h: Likewise.
42582         * lib/unictype/categ_Sm.h: Likewise.
42583         * lib/unictype/categ_So.h: Likewise.
42584         * lib/unictype/categ_Z.h: Likewise.
42585         * lib/unictype/categ_Zl.h: Likewise.
42586         * lib/unictype/categ_Zp.h: Likewise.
42587         * lib/unictype/categ_Zs.h: Likewise.
42588         * lib/unictype/categ_of.h: Likewise.
42589         * lib/unictype/combining.h: Likewise.
42590         * lib/unictype/ctype_alnum.h: Likewise.
42591         * lib/unictype/ctype_alpha.h: Likewise.
42592         * lib/unictype/ctype_blank.h: Likewise.
42593         * lib/unictype/ctype_cntrl.h: Likewise.
42594         * lib/unictype/ctype_digit.h: Likewise.
42595         * lib/unictype/ctype_graph.h: Likewise.
42596         * lib/unictype/ctype_lower.h: Likewise.
42597         * lib/unictype/ctype_print.h: Likewise.
42598         * lib/unictype/ctype_punct.h: Likewise.
42599         * lib/unictype/ctype_space.h: Likewise.
42600         * lib/unictype/ctype_upper.h: Likewise.
42601         * lib/unictype/ctype_xdigit.h: Likewise.
42602         * lib/unictype/decdigit.h: Likewise.
42603         * lib/unictype/digit.h: Likewise.
42604         * lib/unictype/mirror.h: Likewise.
42605         * lib/unictype/numeric.h: Likewise.
42606         * lib/unictype/pr_alphabetic.h: Likewise.
42607         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
42608         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
42609         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
42610         * lib/unictype/pr_bidi_block_separator.h: Likewise.
42611         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
42612         * lib/unictype/pr_bidi_common_separator.h: Likewise.
42613         * lib/unictype/pr_bidi_control.h: Likewise.
42614         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
42615         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
42616         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
42617         * lib/unictype/pr_bidi_european_digit.h: Likewise.
42618         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
42619         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
42620         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
42621         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
42622         * lib/unictype/pr_bidi_pdf.h: Likewise.
42623         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
42624         * lib/unictype/pr_bidi_whitespace.h: Likewise.
42625         * lib/unictype/pr_combining.h: Likewise.
42626         * lib/unictype/pr_composite.h: Likewise.
42627         * lib/unictype/pr_currency_symbol.h: Likewise.
42628         * lib/unictype/pr_dash.h: Likewise.
42629         * lib/unictype/pr_decimal_digit.h: Likewise.
42630         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
42631         * lib/unictype/pr_deprecated.h: Likewise.
42632         * lib/unictype/pr_diacritic.h: Likewise.
42633         * lib/unictype/pr_extender.h: Likewise.
42634         * lib/unictype/pr_format_control.h: Likewise.
42635         * lib/unictype/pr_grapheme_base.h: Likewise.
42636         * lib/unictype/pr_grapheme_extend.h: Likewise.
42637         * lib/unictype/pr_grapheme_link.h: Likewise.
42638         * lib/unictype/pr_hex_digit.h: Likewise.
42639         * lib/unictype/pr_hyphen.h: Likewise.
42640         * lib/unictype/pr_id_continue.h: Likewise.
42641         * lib/unictype/pr_id_start.h: Likewise.
42642         * lib/unictype/pr_ideographic.h: Likewise.
42643         * lib/unictype/pr_ids_binary_operator.h: Likewise.
42644         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
42645         * lib/unictype/pr_ignorable_control.h: Likewise.
42646         * lib/unictype/pr_iso_control.h: Likewise.
42647         * lib/unictype/pr_join_control.h: Likewise.
42648         * lib/unictype/pr_left_of_pair.h: Likewise.
42649         * lib/unictype/pr_line_separator.h: Likewise.
42650         * lib/unictype/pr_logical_order_exception.h: Likewise.
42651         * lib/unictype/pr_lowercase.h: Likewise.
42652         * lib/unictype/pr_math.h: Likewise.
42653         * lib/unictype/pr_non_break.h: Likewise.
42654         * lib/unictype/pr_not_a_character.h: Likewise.
42655         * lib/unictype/pr_numeric.h: Likewise.
42656         * lib/unictype/pr_other_alphabetic.h: Likewise.
42657         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
42658         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
42659         * lib/unictype/pr_other_id_continue.h: Likewise.
42660         * lib/unictype/pr_other_id_start.h: Likewise.
42661         * lib/unictype/pr_other_lowercase.h: Likewise.
42662         * lib/unictype/pr_other_math.h: Likewise.
42663         * lib/unictype/pr_other_uppercase.h: Likewise.
42664         * lib/unictype/pr_paired_punctuation.h: Likewise.
42665         * lib/unictype/pr_paragraph_separator.h: Likewise.
42666         * lib/unictype/pr_pattern_syntax.h: Likewise.
42667         * lib/unictype/pr_pattern_white_space.h: Likewise.
42668         * lib/unictype/pr_private_use.h: Likewise.
42669         * lib/unictype/pr_punctuation.h: Likewise.
42670         * lib/unictype/pr_quotation_mark.h: Likewise.
42671         * lib/unictype/pr_radical.h: Likewise.
42672         * lib/unictype/pr_sentence_terminal.h: Likewise.
42673         * lib/unictype/pr_soft_dotted.h: Likewise.
42674         * lib/unictype/pr_space.h: Likewise.
42675         * lib/unictype/pr_terminal_punctuation.h: Likewise.
42676         * lib/unictype/pr_titlecase.h: Likewise.
42677         * lib/unictype/pr_unassigned_code_value.h: Likewise.
42678         * lib/unictype/pr_unified_ideograph.h: Likewise.
42679         * lib/unictype/pr_uppercase.h: Likewise.
42680         * lib/unictype/pr_variation_selector.h: Likewise.
42681         * lib/unictype/pr_white_space.h: Likewise.
42682         * lib/unictype/pr_xid_continue.h: Likewise.
42683         * lib/unictype/pr_xid_start.h: Likewise.
42684         * lib/unictype/pr_zero_width.h: Likewise.
42685         * lib/unictype/scripts.h: Likewise.
42686         * lib/unictype/scripts_byname.gperf: Likewise.
42687         * lib/unictype/sy_c_ident.h: Likewise.
42688         * lib/unictype/sy_c_whitespace.h: Likewise.
42689         * lib/unictype/sy_java_ident.h: Likewise.
42690         * lib/unictype/sy_java_whitespace.h: Likewise.
42692         * lib/unictype/Makefile: New file.
42693         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
42694         glibc.
42695         * lib/unictype/3level.h: New file, copied from glibc.
42696         * lib/unictype/3levelbit.h: New file.
42698 2007-11-11  Bruno Haible  <bruno@clisp.org>
42700         * modules/gperf: New file.
42701         * modules/iconv_open (Depends-on): Add it.
42702         (Makefile.am): Remove the GPERF definition.
42704 2007-11-11  Bruno Haible  <bruno@clisp.org>
42706         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
42707         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
42709 2007-11-11  Bruno Haible  <bruno@clisp.org>
42711         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
42712         (usage): Remove function.
42714 2007-11-11  Bruno Haible  <bruno@clisp.org>
42716         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
42717         gl_FUNC_CEILF_LIBS.
42718         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
42719         gl_FUNC_CEIL_LIBS.
42720         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
42721         gl_FUNC_CEILL_LIBS.
42722         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
42723         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
42724         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
42726 2007-11-11  Bruno Haible  <bruno@clisp.org>
42728         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
42729         roundf were declared but do not exist on functions.
42730         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
42731         roundl were declared but do not exist on functions.
42732         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
42733         HAVE_FLOORL_AND_CEILL, respectively.
42734         Needed for Sun C on Solaris 10.
42736 2007-11-11  Bruno Haible  <bruno@clisp.org>
42738         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
42739         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
42740         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
42741         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
42742         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
42743         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
42744         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
42745         HAVE_DECL_ROUNDF.
42746         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
42747         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
42748         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
42749         of HAVE_DECL_ROUND*.
42750         * modules/math (Makefile.am): Update.
42752 2007-11-10  Bruno Haible  <bruno@clisp.org>
42754         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
42755         ptrdiff_t as m4/intl.m4.
42757 2007-11-10  Jim Meyering  <meyering@redhat.com>
42759         Avoid link failure for the argmatch test.
42760         * tests/test-argmatch.c (usage): Define function to avoid a link
42761         failure: argmatch_die requires a usage function.
42763 2007-11-09  Bruno Haible  <bruno@clisp.org>
42765         * doc/functions/snprintf.texi: Mention BeOS deficiency.
42766         * doc/functions/vsnprintf.texi: Likewise.
42767         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
42768         with a size argument < 2.
42770 2007-11-09  Bruno Haible  <bruno@clisp.org>
42772         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
42773         buffer. Fixes an inefficiency introduced on 2007-11-03.
42775 2007-11-09  Bruno Haible  <bruno@clisp.org>
42777         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
42778         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
42780 2007-11-08  Jim Meyering  <meyering@redhat.com>
42782         Change cache variable name prefix "jm_" to "gl_" everywhere.
42783         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
42784         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
42785         * m4/uptime.m4: s/gl_/jm_/
42787 2007-11-07  Bruno Haible  <bruno@clisp.org>
42789         Update to GNU gettext 0.17.
42790         * m4/intl.m4: Update to GNU gettext 0.17.
42791         * m4/po.m4: Likewise.
42792         * modules/gettext (Files): Remove m4/ulonglong.m4.
42793         (configure.ac): Require gettext infrastructure from version 0.17.
42795 2007-11-06  Bruno Haible  <bruno@clisp.org>
42797         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
42798         symbolic values are not defined in a public header.
42799         * lib/freadable.c (freadable) [QNX]: Likewise.
42800         * lib/freadahead.c (freadahead) [QNX]: Likewise.
42801         * lib/freading.c (freading) [QNX]: Likewise.
42802         * lib/fseterr.c (fseterr) [QNX]: Likewise.
42803         * lib/fwritable.c (fwritable) [QNX]: Likewise.
42804         * lib/fwriting.c (fwriting) [QNX]: Likewise.
42805         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
42806         Reported by Alain Magloire.
42808         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
42810 2007-11-05  Bruno Haible  <bruno@clisp.org>
42812         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
42813         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
42814         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
42815         Reported by Eric Blake.
42817 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42818             Bruno Haible  <bruno@clisp.org>
42820         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
42821         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
42822         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
42823         (malloc): Undefine also before including <stdlib.h>.
42824         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
42825         Needed on OSF/1 4.0.
42827 2007-11-05  Jim Meyering  <meyering@redhat.com>
42829         git-version-gen: sync from coreutils.
42830         * build-aux/git-version-gen: Add comments.
42831         Change the first '-' to '.' in the snapshot version string,
42832         e.g., 6.9-377-08144 -> 6.9.377-08144
42833         Remove first parameter.
42834         Don't declare a version "-dirty" merely because a time
42835         stamp has changed.
42837 2007-11-04  Bruno Haible  <bruno@clisp.org>
42839         * lib/lock.h: Protect all macro definitions containing an 'if'
42840         statement through a "do { ... } while (0)".
42841         * lib/tls.h: Likewise.
42843 2007-11-04  Bruno Haible  <bruno@clisp.org>
42845         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
42847 2007-11-04  Bruno Haible  <bruno@clisp.org>
42849         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
42850         * modules/fprintf-posix (Depends-on): Add nocrash.
42851         * modules/snprintf-posix (Depends-on): Likewise.
42852         * modules/sprintf-posix (Depends-on): Likewise.
42853         * modules/vasnprintf-posix (Depends-on): Likewise.
42854         * modules/vasprintf-posix (Depends-on): Likewise.
42855         * modules/vfprintf-posix (Depends-on): Likewise.
42856         * modules/vsnprintf-posix (Depends-on): Likewise.
42857         * modules/vsprintf-posix (Depends-on): Likewise.
42858         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
42859         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
42860         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
42861         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
42862         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
42863         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
42864         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
42866 2007-11-04  Bruno Haible  <bruno@clisp.org>
42868         * modules/nocrash: New file.
42869         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
42870         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
42872 2007-11-04  Bruno Haible  <bruno@clisp.org>
42874         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
42875         precision handling.
42876         * tests/test-vasprintf-posix.c (test_function): Likewise.
42877         * tests/test-snprintf-posix.h (test_function): Likewise.
42878         * tests/test-sprintf-posix.h (test_function): Likewise.
42880         Fix *printf behaviour for large precisions on mingw and BeOS.
42881         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
42882         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
42883         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
42884         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
42885         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
42886         gl_PRINTF_PRECISION and test its result. Invoke
42887         gl_PREREQ_VASNPRINTF_PRECISION.
42888         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
42889         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
42890         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
42891         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
42892         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
42893         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
42894         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
42895         * doc/functions/fprintf.texi: Update.
42896         * doc/functions/printf.texi: Update.
42897         * doc/functions/snprintf.texi: Update.
42898         * doc/functions/sprintf.texi: Update.
42899         * doc/functions/vfprintf.texi: Update.
42900         * doc/functions/vprintf.texi: Update.
42901         * doc/functions/vsnprintf.texi: Update.
42902         * doc/functions/vsprintf.texi: Update.
42904 2007-11-04  Bruno Haible  <bruno@clisp.org>
42906         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
42908 2007-11-04  Bruno Haible  <bruno@clisp.org>
42910         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
42911         Reported by Sylvain Beucler <beuc@gnu.org>.
42913 2007-11-03  Bruno Haible  <bruno@clisp.org>
42915         * tests/test-fprintf-posix2.sh: New file.
42916         * tests/test-fprintf-posix2.c: New file.
42917         * modules/fprintf-posix-tests (Files): Add them.
42918         (TESTS): Add test-fprintf-posix2.sh.
42919         (configure.ac): Check for getrlimit and setrlimit.
42920         (check_PROGRAMS): Add test-fprintf-posix2.
42922         * tests/test-printf-posix2.sh: New file.
42923         * tests/test-printf-posix2.c: New file.
42924         * modules/printf-posix-tests (Files): Add them.
42925         (TESTS): Add test-printf-posix2.sh.
42926         (configure.ac): Check for getrlimit and setrlimit.
42927         (check_PROGRAMS): Add test-printf-posix2.
42929         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
42930         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
42931         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
42932         (decode_double): New function, copied from decode_long_double.
42933         (scale10_round_decimal_decoded): New function, extracted from
42934         scale10_round_decimal_long_double.
42935         (scale10_round_decimal_long_double): Use it.
42936         (scale10_round_decimal_double): New function.
42937         (floorlog10): New function.
42938         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
42939         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
42940         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
42941         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
42942         gl_PRINTF_ENOMEM and test its result. Invoke
42943         gl_PREREQ_VASNPRINTF_ENOMEM.
42944         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
42945         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
42946         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
42947         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
42948         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
42949         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
42950         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
42951         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
42952         * modules/snprintf-posix (Depends-on): Likewise.
42953         * modules/sprintf-posix (Depends-on): Likewise.
42954         * modules/vasnprintf-posix (Depends-on): Likewise.
42955         * modules/vasprintf-posix (Depends-on): Likewise.
42956         * modules/vfprintf-posix (Depends-on): Likewise.
42957         * modules/vsnprintf-posix (Depends-on): Likewise.
42958         * modules/vsprintf-posix (Depends-on): Likewise.
42959         * doc/functions/fprintf.texi: Update.
42960         * doc/functions/printf.texi: Update.
42961         * doc/functions/snprintf.texi: Update.
42962         * doc/functions/sprintf.texi: Update.
42963         * doc/functions/vfprintf.texi: Update.
42964         * doc/functions/vprintf.texi: Update.
42965         * doc/functions/vsnprintf.texi: Update.
42966         * doc/functions/vsprintf.texi: Update.
42968 2007-11-03  Bruno Haible  <bruno@clisp.org>
42970         * modules/frexp-nolibm-tests: New file.
42972         * modules/frexp-nolibm: New file.
42973         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
42975 2007-11-03  Bruno Haible  <bruno@clisp.org>
42977         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
42978         value is C99 compliant.
42979         Needed for OSF/1 5.1.
42981 2007-11-03  Bruno Haible  <bruno@clisp.org>
42983         Fix out-of-memory handling of vasnprintf.
42984         * lib/printf-parse.c: Include <errno.h>.
42985         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
42986         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
42987         is already set.
42989 2007-11-02  Eric Blake  <ebb9@byu.net>
42991         Fix tests on cygwin.
42992         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
42994 2007-11-01  Bruno Haible  <bruno@clisp.org>
42996         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
42997         warning.
42998         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
42999         needed for POSIX compatibility.
43001 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
43003         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
43004         for compatibility with GNU.
43006 2007-11-01  Bruno Haible  <bruno@clisp.org>
43008         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
43009         (putenv): Renamed from rpl_putenv. Change argument type from
43010         'const char *' to 'char *'.
43011         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
43012         of defining putenv in config.h, just set REPLACE_PUTENV.
43013         * modules/putenv (Depends-on): Add stdlib.
43014         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
43015         (Include): Use <stdlib.h>.
43016         * lib/stdlib.in.h (putenv): New declaration.
43017         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
43018         REPLACE_PUTENV.
43019         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
43020         REPLACE_PUTENV.
43021         Needed for MacOS X 10.5.0.
43022         Reported by Peter O'Gorman <peter@pogma.com>.
43024 2007-11-01  Jim Meyering  <meyering@redhat.com>
43026         Treat an empty date string exactly like "0".
43027         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
43028         if the remaining date string (to be parsed) is empty, use "0".
43029         Reported by Mischa Molhoek and discussed in this thread:
43030         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
43032 2007-10-31  Bruno Haible  <bruno@clisp.org>
43034         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
43035         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
43036         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
43037         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
43038         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
43039         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
43041 2007-10-31  Bruno Haible  <bruno@clisp.org>
43043         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
43044         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
43045         (AC_TYPE_LONG_LONG_INT): Use it.
43046         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
43047         it as well.
43048         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
43049         to m4/longlong.m4.
43050         * modules/stdint (Files): Remove m4/ulonglong.m4.
43051         * modules/strtoull (Files): Use m4/longlong.m4 instead of
43052         m4/ulonglong.m4.
43053         * modules/strtoumax (Files): Likewise.
43055 2007-10-30  Bruno Haible  <bruno@clisp.org>
43057         * modules/xvasprintf-posix: New file.
43058         Suggested by Eric Blake.
43060 2007-10-30  Bruno Haible  <bruno@clisp.org>
43062         * modules/xprintf-posix-tests: New file.
43063         * tests/test-xprintf-posix.sh: New file.
43064         * tests/test-xprintf-posix.c: New file.
43065         * tests/test-xfprintf-posix.c: New file.
43067         * modules/xprintf-posix: New file.
43069 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43071         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
43072         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
43073         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
43075 2007-10-29  Bruno Haible  <bruno@clisp.org>
43077         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
43078         contain the special marker '_cv_'.
43079         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
43080         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
43081         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
43082         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
43083         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
43084         Reported by Ralf Wildenhues.
43086 2007-10-29  Bruno Haible  <bruno@clisp.org>
43088         * gnulib-tool (func_import): When --lgpl is not specified, set
43089         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
43090         GPLv3.
43091         Reported by Simon Josefsson.
43093 2007-10-28  Bruno Haible  <bruno@clisp.org>
43095         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
43096         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
43097         HAVE_DECL_ISFINITE.
43098         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
43099         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
43100         HAVE_DECL_ISFINITE.
43102 2007-10-28  Bruno Haible  <bruno@clisp.org>
43104         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
43105         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
43107 2007-10-28  Bruno Haible  <bruno@clisp.org>
43109         Fix link errors with Sun C 5.0 on Solaris 10.
43110         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
43111         function is declared but not present in the compiler's libm.
43112         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
43113         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
43114         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
43115         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
43116         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
43117         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
43118         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
43119         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
43120         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
43121         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
43122         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
43123         HAVE_DECL_FLOORL.
43125 2007-10-28  Bruno Haible  <bruno@clisp.org>
43127         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
43128         gl_FUNC_FLOORL. Cache the result.
43129         (gl_FUNC_FLOORL): Use it.
43130         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
43131         gl_FUNC_CEILL. Cache the result.
43132         (gl_FUNC_CEILL): Use it.
43134         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
43135         gl_FUNC_FLOOR. Cache the result.
43136         (gl_FUNC_FLOOR): Use it.
43137         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
43138         gl_FUNC_CEIL. Cache the result.
43139         (gl_FUNC_CEIL): Use it.
43141         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
43142         gl_FUNC_FLOORF. Cache the result.
43143         (gl_FUNC_FLOORF): Use it.
43144         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
43145         gl_FUNC_CEILF. Cache the result.
43146         (gl_FUNC_CEILF): Use it.
43148 2007-10-28  Bruno Haible  <bruno@clisp.org>
43150         * gnulib-tool: Allow specifying the LGPL version number through
43151         --lgpl=2 or --lgpl=3.
43152         (func_usage): Document --lgpl with argument.
43153         Handle --lgpl=... arguments.
43154         (func_import): Recognize also gl_LGPL calls with an argument. When
43155         --lgpl=2 is used and the module's license is just LGPL, report an
43156         error. Set sed_transform_lib_file according to the lgpl variable. In
43157         the generated files, use --lgpl or gl_LGPL invocations with argument,
43158         if necessary.
43159         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
43160         an LGPv2+ license.
43161         * doc/gnulib-tool.texi (Modified imports): Update explanation of
43162         gl_LGPL macro.
43164 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43165             Bruno Haible  <bruno@clisp.org>
43167         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
43168         (u16_uctomb_aux): Likewise.
43169         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
43170         !HAVE_INLINE.
43171         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
43173 2007-10-28  Bruno Haible  <bruno@clisp.org>
43175         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
43176         Invoke AM_GETTEXT_OPTION if it exists.
43177         * modules/vasprintf: Likewise.
43178         * modules/verror: Likewise.
43179         * modules/xprintf: Likewise.
43180         * modules/xvasprintf: Likewise.
43182 2007-10-27  Ben Pfaff  <blp@gnu.org>
43184         * lib/math.in.h: Define isfinite macro and prototypes for
43185         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
43186         implementations.
43187         * m4/math_h.m4: New substitutions for isfinite module.
43188         * lib/isfinite.c: New file.
43189         * m4/isfinite.m4: New file.
43190         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
43191         * modules/isfinite: New file.
43192         * modules/isfinite-tests: New file.
43193         * tests/tests-isfinite.c: New file.
43194         * doc/functions/isfinite.texi: Mention isfinite module.
43195         * MODULES.html.sh: Mention new module.
43197 2007-10-27  Ben Pfaff  <blp@gnu.org>
43199         Ralf Wildenhues reported that Tru64 4.0D declares the round
43200         functions but does not have definitions.
43201         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
43202         cannot be found in any library, set the output variable to
43203         "missing" instead of "".
43204         * m4/round.m4: Also use our substitute if we cannot find round in
43205         any library, even if it is declared.
43206         * m4/roundf.m4: Likewise for roundf.
43207         * m4/roundl.m4: Likewise for roundl.
43208         * lib/math.in.h: Undefine roundf, round, roundl before defining
43209         their replacements, to allow for hypothetical systems where these
43210         may be defined as macros but not available in libraries.
43212 2007-10-27  Bruno Haible  <bruno@clisp.org>
43214         * doc/gnulib.texi: Invoke @firstparagraphindent.
43215         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
43216         changes in gnulib.
43217         (Source changes): New section.
43219 2007-10-26  Bruno Haible  <bruno@clisp.org>
43221         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
43222         borrowed from autoconf.
43224 2007-10-26  Bruno Haible  <bruno@clisp.org>
43226         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
43227         strerror returned the empty string. Needed on HP-UX 11.00.
43229 2007-10-24  Micah Cowan  <micah@cowan.name>
43231         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
43232         * build-aux/bootstrap: Remove support for now-unnecessary option,
43233         --cvs-user, and envvars CVS_USER, CVS_RSH.
43235 2007-10-24  Jim Meyering  <meyering@redhat.com>
43237         Avoid diagnostics from sha1sum when there is no cached checksum.
43238         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
43239         if the po.s1 file hasn't been created yet.
43241         * build-aux/bootstrap: Sync from coreutils:
43242         2007-10-24  Jim Meyering  <meyering@redhat.com>
43243         Get gnulib from the git repository, not from an obsolete cvs one.
43244         * build-aux/bootstrap: Suggestion from Micah Cowan.
43245         2007-10-04  Jim Meyering  <jim@meyering.net>
43246         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
43247         (update_po_files): Work also when there are no .po files in po/.
43249 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
43251         * README: Append ".git" to git and cg examples.
43252         Problem reported by Benoit Sigoure.
43254 2007-10-23  Micah Cowan  <micah@cowan.name>
43256         * users.txt: Add wget.
43258 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43260         Fix linking of some unistdio tests on FreeBSD.
43261         * modules/unistdio/u16-vsnprintf-tests
43262         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
43263         * modules/unistdio/u16-vsprintf-tests
43264         (test_u16_vsnprintf1_LDADD): Likewise.
43265         * modules/unistdio/u32-vsnprintf-tests
43266         (test_u32_vsnprintf1_LDADD): Likewise.
43267         * modules/unistdio/u32-vsprintf-tests
43268         (test_u32_vsprintf1_LDADD): Likewise.
43269         * modules/unistdio/u8-vsnprintf-tests
43270         (test_u8_vsnprintf1_LDADD): Likewise.
43271         * modules/unistdio/u8-vsprintf-tests
43272         (test_u8_vsprintf1_LDADD): Likewise.
43273         * modules/unistdio/ulc-vsnprintf-tests
43274         (test_ulc_vsnprintf1_LDADD): Likewise.
43275         * modules/unistdio/ulc-vsprintf-tests
43276         (test_ulc_vsprintf1_LDADD): Likewise.
43278         Fix linking of some uniconv tests on FreeBSD.
43279         * modules/uniconv/u16-conv-from-enc-tests
43280         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
43281         * modules/uniconv/u16-conv-to-enc-tests
43282         (test_u16_conv_to_enc_LDADD): Likewise.
43283         * modules/uniconv/u16-strconv-from-enc-tests
43284         (test_u16_strconv_from_enc_LDADD): Likewise.
43285         * modules/uniconv/u16-strconv-to-enc-tests
43286         (test_u16_strconv_to_enc_LDADD): Likewise.
43287         * modules/uniconv/u32-conv-from-enc-tests
43288         (test_u32_conv_from_enc_LDADD): Likewise.
43289         * modules/uniconv/u32-conv-to-enc-tests
43290         (test_u32_conv_to_enc_LDADD): Likewise.
43291         * modules/uniconv/u32-strconv-from-enc-tests
43292         (test_u32_strconv_from_enc_LDADD): Likewise.
43293         * modules/uniconv/u32-strconv-to-enc-tests
43294         (test_u32_strconv_to_enc_LDADD): Likewise.
43295         * modules/uniconv/u8-conv-from-enc-tests
43296         (test_u8_conv_from_enc_LDADD): Likewise.
43297         * modules/uniconv/u8-conv-to-enc-tests
43298         (test_u8_conv_to_enc_LDADD): Likewise.
43299         * modules/uniconv/u8-strconv-from-enc-tests
43300         (test_u8_strconv_from_enc_LDADD): Likewise.
43301         * modules/uniconv/u8-strconv-to-enc-tests
43302         (test_u8_strconv_to_enc_LDADD): Likewise.
43304 2007-10-22  Bruno Haible  <bruno@clisp.org>
43306         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
43307         size.
43309 2007-10-22  Eric Blake  <ebb9@byu.net>
43311         Tweak x*printf documentation.
43312         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
43313         variable name and comments.
43314         Suggested by Bruno Haible.
43316 2007-10-22  Bruno Haible  <bruno@clisp.org>
43318         * lib/acl.c (copy_acl): Fix file name in comment.
43320 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
43322         Fix Tru64 problem with stdbool.h.
43323         * lib/stdbool.in.h (false, true):
43324         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
43325         Don't declare as an enum in this situation; it runs afoul of Tru64.
43326         Problem reported by Steven M. Schweda in
43327         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
43329 2007-10-22  Eric Blake  <ebb9@byu.net>
43331         Also wrap vf?printf.
43332         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
43333         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
43334         (xvprintf, xvfprintf): New functions.
43336 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43338         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
43339         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
43341         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
43342         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
43344 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
43346         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
43347         by Bruno Haible.
43349 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43351         * lib/getloadavg.c
43352         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
43353         Undef `sys' after including sys/table.h, for Tru64 4.0D.
43355         * tests/test-i-ring.c: Work for C89.
43357 2007-10-22  Bruno Haible  <bruno@clisp.org>
43359         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
43360         -1u, in preprocessor expression, so that we don't test for the bug
43361         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
43362         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
43364 2007-10-22  Eric Blake  <ebb9@byu.net>
43366         * tests/test-yesno.sh: Silence stderr during test.
43368 2007-10-22  Simon Josefsson  <simon@josefsson.org>
43370         * modules/crypto/gc-camellia: New file.
43372         * m4/gc-camellia.m4: New file.
43374         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
43376         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
43378 2007-10-22  Simon Josefsson  <simon@josefsson.org>
43380         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
43381         --help to stdout.  Reported by sms@antinode.org (Steven
43382         M. Schweda).
43384 2007-10-22  Simon Josefsson  <simon@josefsson.org>
43386         * users.txt: Fix link to libksba.
43388 2007-10-21  Ben Pfaff  <blp@gnu.org>
43390         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
43391         round.c roundf implementation that depends on floorf and ceilf to
43392         be tested unconditionally.
43394 2007-10-21  Ben Pfaff  <blp@gnu.org>
43396         * m4/check-libm-func.m4: Removed.
43397         * m4/check-math-lib.m4: New file.
43398         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
43399         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
43400         definition and lack of AC_LIBOBJ([roundf]).
43401         * m4/roundl.m4: Ditto, and similarly for roundl.
43402         * modules/round: Reference new m4 file.
43403         * modules/roundf: Ditto.
43404         * modules/roundl: Ditto.
43405         * tests/test-round2.c (main): Use ROUND instead of round.
43406         Bug report from Bruno Haible.
43408 2007-10-21  Bruno Haible  <bruno@clisp.org>
43410         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
43411         context.
43413 2007-10-21  Bruno Haible  <bruno@clisp.org>
43415         * tests/test-wcwidth.c (main): Allow negative result for some control
43416         characters.
43418         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
43419         Needed on OSF/1 5.1.
43421 2007-10-21  Bruno Haible  <bruno@clisp.org>
43423         * tests/test-floorf1.c: Include isnanf.h.
43424         (main): Use isnanf() instead of isnan().
43425         * tests/test-ceilf1.c: Include isnanf.h.
43426         (main): Use isnanf() instead of isnan().
43427         * tests/test-truncf1.c: Include isnanf.h.
43428         (main): Use isnanf() instead of isnan().
43429         * tests/test-roundf1.c: Include isnanf.h.
43430         (main): Use isnanf() instead of isnan().
43432 2007-10-21  Eric Blake  <ebb9@byu.net>
43434         * users.txt: Update URL for m4.
43436 2007-10-21  Bruno Haible  <bruno@clisp.org>
43438         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
43440 2007-10-21  Bruno Haible  <bruno@clisp.org>
43442         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
43443         Git's management files if the CVS files are not present.
43445 2007-10-20  Bruno Haible  <bruno@clisp.org>
43447         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
43448         gcc-3.4.x.
43450 2007-10-20  Ben Pfaff  <blp@gnu.org>
43452         * lib/math.in.h: Declare round, roundf, roundl if we are providing
43453         implementations.
43454         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
43455         * lib/round.c: New file.
43456         * lib/roundf.c: New file.
43457         * lib/roundl.c: New file.
43458         * m4/round.m4: New file.
43459         * m4/roundf.m4: New file.
43460         * m4/roundl.m4: New file.
43461         * m4/check-libm-func-m4: New file.
43462         * modules/math: Replace round, roundf, roundl related @VARS@ in
43463         math.in.h.
43464         * modules/round: New file.
43465         * modules/round-tests: New file.
43466         * modules/roundf: New file.
43467         * modules/roundf-tests: New file.
43468         * modules/roundl: New file.
43469         * modules/roundl-tests: New file.
43470         * tests/test-round1.c: New file.
43471         * tests/test-round2.c: New file.
43472         * tests/test-roundf1.c: New file.
43473         * tests/test-roundf2.c: New file.
43474         * tests/test-roundl.c: New file.
43475         * doc/functions/round.texi: Mention round module.
43476         * doc/functions/roundf.texi: Mention roundf module.
43477         * doc/functions/roundl.texi: Mention roundl module.
43478         * MODULES.html.sh: Mention new modules.
43479         Thanks to Bruno Haible for suggestions.
43481 2007-10-20  Jim Meyering  <meyering@redhat.com>
43483         * lib/xprintf.c: Include <config.h> unconditionally.
43485         Change xprintf's license to GPL.
43486         * modules/xprintf (License): s/LGPL/GPL/, since this module
43487         depends on modules (exit and exitfail) which are GPL.
43488         Suggestion from Bruno Haible.
43490         xprintf fixes.
43491         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
43492         Use a clearer diagnostic.
43493         Patch from Bruno Haible.
43495 2007-10-20  Bruno Haible  <bruno@clisp.org>
43497         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
43498         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
43499         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43501 2007-10-20  Bruno Haible  <bruno@clisp.org>
43503         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
43504         precision in the comparison result > x - 1 or similar.
43505         * tests/test-ceilf2.c (correct_result_p): Likewise.
43506         * tests/test-truncf2.c (correct_result_p): Likewise.
43507         * tests/test-trunc2.c (correct_result_p): Likewise.
43508         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43510 2007-10-20  Bruno Haible  <bruno@clisp.org>
43512         * modules/ceil: New file.
43513         * m4/ceil.m4: New file.
43514         * doc/functions/ceil.texi: Mention the 'ceil' module.
43516 2007-10-20  Bruno Haible  <bruno@clisp.org>
43518         * modules/floor: New file.
43519         * m4/floor.m4: New file.
43520         * doc/functions/floor.texi: Mention the 'floor' module.
43522 2007-10-20  Bruno Haible  <bruno@clisp.org>
43524         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
43525         of %a.
43526         * modules/floorf-tests (Depends-on): Likewise.
43527         * modules/truncf-tests (Depends-on): Likewise.
43528         * modules/trunc-tests (Depends-on): Likewise.
43529         Reported by Ben Pfaff.
43531 2007-10-19  Jim Meyering  <meyering@redhat.com>
43533         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
43534         Don't bother testing specific errno values.  Just test ferror.
43536         New module: xprintf
43537         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
43539 2007-10-19  Bruno Haible  <bruno@clisp.org>
43541         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
43542         syntax.
43543         * modules/javaexec (Makefile.am): Likewise.
43544         * modules/relocatable-prog (Makefile.am): Likewise.
43545         Suggested by Jim Meyering.
43547 2007-10-18  Bruno Haible  <bruno@clisp.org>
43549         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
43550         Reported by Jim Meyering.
43552 2007-10-18  Eric Blake  <ebb9@byu.net>
43554         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
43556 2007-10-18  Bruno Haible  <bruno@clisp.org>
43558         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
43559         the format string into writable memory. Needed in Fortify conditions.
43561 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
43562             Bruno Haible  <bruno@clisp.org>
43564         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
43565         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
43566         * modules/trim (Depends-on): Add mbchar.
43567         (configure.ac): Add gl_FUNC_MBRTOWC.
43568         (Makefile.am): Augment lib_SOURCES.
43570 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
43572         Modify glob.c to use fstatat and dirfd, to simplify it.
43573         Suggested by Eric Blake.
43574         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
43575         Don't include <stdbool.h>; not used.
43576         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
43577         (link_exists_p): Simplify implementation, since we can now assume
43578         dirfd and fstatat.
43579         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
43581 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43583         * gnulib-tool (func_get_dependencies): Fix sed script to
43584         match only tests.
43586 2007-10-17  Bruno Haible  <bruno@clisp.org>
43588         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
43589         allow locale names without encoding suffix.
43590         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
43591         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
43593 2007-10-16  Bruno Haible  <bruno@clisp.org>
43595         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
43596         * lib/getgroups.c (getgroups): Likewise.
43597         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
43599 2007-10-16  Bruno Haible  <bruno@clisp.org>
43601         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
43602         * modules/malloc-posix (License): Likewise.
43603         * modules/realloc-posix (License): Likewise.
43604         * modules/calloc-posix (License): Likewise.
43605         * modules/intprops (License): Change from GPL to LGPL, with
43606         Paul Eggert's approval.
43608 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
43610         Merge glibc changes into lib/glob.c.
43612         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
43613         2007-10-15 04:59:03 UTC.  Here are the changes:
43615         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
43617         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
43619         * lib/glob.c: Add some branch prediction throughout.
43621         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
43623         [BZ #5103]
43624         * lib/glob.c (glob): Recognize patterns starting \/.
43626         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
43628         [BZ #3996]
43629         * lib/glob.c (attribute_hidden): Define if not defined.
43630         (glob): Unescape dirname, filename or username when needed and not
43631         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
43632         is NULL.  Handle unescaped [ in pattern without closing ].
43633         Don't pass GLOB_CHECK down to recursive glob for directories.
43634         (__glob_pattern_type): New function.
43635         (__glob_pattern_p): Implement using __glob_pattern_type.
43636         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
43637         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
43638         Remove unreachable code.
43640         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
43642         * lib/glob.c (glob_in_dir): Add some comments and asserts to
43643         explain why there are no leaks.
43645         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
43647         [BZ #3253]
43648         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
43649         time, rather allocate increasingly bigger arrays of pointers, if
43650         possible with alloca, if too large with malloc.
43652 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
43654         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
43655         Problem reported by H.Merijn Brand in
43656         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
43657         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
43658         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
43660 2007-10-15  Bruno Haible  <bruno@clisp.org>
43662         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
43663         with explicit rpl_ prefix.
43664         * lib/fopen.c (fopen): Likewise.
43665         * lib/freopen.c (freopen): Likewise.
43666         * lib/iconv.c (iconv): Likewise.
43667         * lib/iconv_close.c (iconv_close): Likewise.
43669 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43671         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
43673 2007-10-15  Bruno Haible  <bruno@clisp.org>
43675         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
43676         <stddef.h> instead of <stdlib.h> since we only need NULL.
43677         Reported by Ben Pfaff <blp@cs.stanford.edu>.
43679 2007-10-15  Bruno Haible  <bruno@clisp.org>
43681         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
43682         Replace paragraph talking about LIBOBJS.
43683         Reported by Colin Watson <cjwatson@debian.org>.
43685 2007-10-15  Bruno Haible  <bruno@clisp.org>
43687         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
43688         <stdlib.h> before using NULL.
43690 2007-10-15  Simon Josefsson  <simon@josefsson.org>
43692         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
43693         Reported by Albert Chin <china@thewrittenword.com>.
43695 2007-10-14  Bruno Haible  <bruno@clisp.org>
43697         * modules/iconv_open-utf-tests: New file.
43698         * tests/test-iconv-utf.c: New file.
43700         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
43701         * modules/iconv_open-utf: New file.
43702         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
43703         (iconv, iconv_close): New declarations.
43704         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
43705         be defined.
43706         (iconv_open): Add special handling of conversion between UTF-8 and
43707         UTF-{16,32}{BE,LE}.
43708         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
43709         * lib/iconv_close.c: New file.
43710         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
43711         gl_FUNC_ICONV_OPEN.
43712         (gl_FUNC_ICONV_OPEN): Use it.
43713         (gl_FUNC_ICONV_OPEN_UTF): New macro.
43714         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
43715         and REPLACE_ICONV_UTF.
43716         * modules/iconv_open (Depends-on): Add c-strcase.
43717         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
43718         ICONV_CONST.
43719         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
43721 2007-10-13  Albert Chin  <china@thewrittenword.com>
43722             Bruno Haible  <bruno@clisp.org>
43724         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
43725         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
43727 2007-10-13  Bruno Haible  <bruno@clisp.org>
43729         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
43730         defined, use the ISO C99 inline semantics.
43731         * lib/argp.h (ARGP_EI): Likewise.
43733 2007-10-13  Bruno Haible  <bruno@clisp.org>
43735         Handle 'inline' change in gcc 4.3.0.
43736         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
43737         argp_fmtstream_write, argp_fmtstream_set_lmargin,
43738         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
43739         argp_fmtstream_point): Disable 'extern' declaration if the function
43740         definition is going to be provided inline.
43741         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
43742         semantics, not the ISO C99 inline semantics.
43743         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
43744         'extern' declaration if the function definition is going to be provided
43745         inline.
43746         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
43747         the GNU C inline semantics, not the ISO C99 inline semantics. With
43748         GCC 4.2, avoid a warning.
43750 2007-10-13  Bruno Haible  <bruno@clisp.org>
43752         * lib/freading.h (freading): Enable the use of __freading for
43753         glibc >= 2.7.
43754         * lib/freading.c (freading): Likewise.
43756 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
43758         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
43759         "warning: C99 inline functions are not supported; using GNU89".
43761 2007-10-12  Bruno Haible  <bruno@clisp.org>
43763         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
43764         of 2.
43765         * tests/test-ceilf2.c: New file.
43766         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
43768         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
43769         * modules/ceilf-tests: Update.
43771 2007-10-12  Bruno Haible  <bruno@clisp.org>
43773         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
43774         of 2.
43775         * tests/test-floorf2.c: New file.
43776         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
43778         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
43779         * modules/floorf-tests: Update.
43781 2007-10-12  Bruno Haible  <bruno@clisp.org>
43783         * tests/test-trunc2.c: New file.
43784         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
43786         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
43787         * modules/trunc-tests: Update.
43789 2007-10-12  Bruno Haible  <bruno@clisp.org>
43791         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
43792         of 2.
43793         * tests/test-truncf2.c: New file.
43794         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
43796         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
43797         * modules/truncf-tests: Update.
43799 2007-10-11  Eric Blake  <ebb9@byu.net>
43801         Don't claim strerror is broken on Interix.
43802         * doc/functions/strerror.texi (strerror): Known broken systems are
43803         now Solaris 8, and not Interix.
43804         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
43805         Interix on cross-compile.
43806         Reported by Martin Koeppe in
43807         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
43809 2007-10-11  Bruno Haible  <bruno@clisp.org>
43811         * modules/i-ring-tests: New file.
43812         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
43813         instead of assert.
43815 2007-10-11  Bruno Haible  <bruno@clisp.org>
43817         * modules/filenamecat-tests: New file.
43818         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
43819         * lib/filenamecat.c: Remove test code.
43821 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
43823         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
43825         * lib/strerror.c: Include <string.h> always, to test interface,
43826         and to remove the need for the dummy.
43827         Include intprops.h to compute width instead of doing it ourselves
43828         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
43829         (strerror): Define it to return NULL if there's no system strerror.
43830         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
43831         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
43832         ancient pre-strerror Unix systems well any more.  Saying "unknown
43833         system error" is enough.
43834         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
43835         simpler strerror.c implementation.
43836         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
43837         Simplify the tests to reflect the simpler strerror implementation.
43838         * modules/strerror (Depends-on): Add intprops.
43840 2007-10-09  Eric Blake  <ebb9@byu.net>
43842         Silence test-fpending.
43843         * modules/fpending-tests (Files): Add wrapper script.
43844         * tests/test-fpending.sh: New file.
43846 2007-10-09  Bruno Haible  <bruno@clisp.org>
43848         * MODULES.html.sh (func_module): Don't create a hyperlink for
43849         function names like 'printf_frexp'.
43850         (Misc): Add crc, memxor.
43851         (Characteristics of floating types): New section.
43852         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
43853         isnanf-nolibm, signbit, trunc, truncf, truncl.
43854         (Enhancements for ISO C 99 functions): New subsection Input/output.
43855         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
43856         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
43857         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
43858         (Compatibility checks for POSIX:2001 functions): Add clock-time.
43859         (Enhancements for POSIX:2001 functions): Add chdir-long.
43860         (File system functions): Add areadlink, chdir-safer, read-file.
43861         Remove cycle-check.
43862         (File system as inode set): New section.
43863         (Date and time): Add gethrxtime.
43864         (Multithreading): Add openmp.
43865         (Internationalization functions): Add localename.
43866         (Unicode string functions): Add unistr/u*-mbsnlen.
43867         (Support for maintaining and releasing projects): Add git-version-gen.
43868         (Lone files): Remove directories.
43870 2007-10-08  Ben Pfaff  <blp@gnu.org>
43872         * lib/xmalloca.h: Fix typo in comment.
43874 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
43876         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
43877         when avoiding problems with integer overflow.  Use a portable test
43878         instead.
43880 2007-10-08  Simon Josefsson  <simon@josefsson.org>
43882         * modules/dummy (License): Change to LGPLv2+.
43883         * modules/float (License): Likewise
43884         * modules/realloc (License): Likewise
43885         * modules/stdlib (License): Likewise
43887 2007-10-07  Bruno Haible  <bruno@clisp.org>
43889         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
43890         * floor.c (TWO_MANT_DIG): Likewise.
43891         * ceil.c (TWO_MANT_DIG): Likewise.
43892         Reported by Ben Pfaff.
43894 2007-10-07  Bruno Haible  <bruno@clisp.org>
43896         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
43897         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
43898         * lib/frexp.c (FUNC): Likewise.
43899         * lib/printf-frexp.h (printf_frexp): Likewise.
43900         * lib/printf-frexpl.h (printf_frexpl): Likewise.
43901         * lib/printf-frexp.c (FUNC): Likewise.
43902         Suggested by Jim Meyering.
43904 2007-10-07  Jim Meyering  <meyering@redhat.com>
43906         Make xnanosleep's integer overflow test more robust.
43907         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
43908         so that gcc-4.3.0 doesn't optimize away this test for overflow.
43910 2007-10-07  Bruno Haible  <bruno@clisp.org>
43912         * NEWS: Mention the license change.
43914         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
43915         abbreviations in the modules files.
43917         Change copyright notice from GPLv2+ to GPLv3+.
43918         * README: Change copyright notice.
43919         * MODULES.html.sh: Likewise.
43920         * build-aux/bootstrap.conf: Likewise.
43921         * build-aux/config.libpath: Likewise.
43922         * build-aux/csharpcomp.sh.in: Likewise.
43923         * build-aux/csharpexec.sh.in: Likewise.
43924         * build-aux/install-reloc: Likewise.
43925         * build-aux/javacomp.sh.in: Likewise.
43926         * build-aux/javaexec.sh.in: Likewise.
43927         * build-aux/ldd.sh.in: Likewise.
43928         * build-aux/reloc-ldflags: Likewise.
43929         * build-aux/relocatable.sh.in: Likewise.
43930         * build-aux/x-to-1.in: Likewise.
43931         * check-module: Likewise.
43932         * config/srclistvars.sh: Likewise.
43933         * gnulib-tool: Likewise.
43934         * lib/acl-internal.h: Likewise.
43935         * lib/acl.c: Likewise.
43936         * lib/acl.h: Likewise.
43937         * lib/acl_entries.c: Likewise.
43938         * lib/areadlink-with-size.c: Likewise.
43939         * lib/areadlink.c: Likewise.
43940         * lib/areadlink.h: Likewise.
43941         * lib/argmatch.c: Likewise.
43942         * lib/argmatch.h: Likewise.
43943         * lib/argp-ba.c: Likewise.
43944         * lib/argp-eexst.c: Likewise.
43945         * lib/argp-fmtstream.c: Likewise.
43946         * lib/argp-fmtstream.h: Likewise.
43947         * lib/argp-fs-xinl.c: Likewise.
43948         * lib/argp-help.c: Likewise.
43949         * lib/argp-namefrob.h: Likewise.
43950         * lib/argp-parse.c: Likewise.
43951         * lib/argp-pin.c: Likewise.
43952         * lib/argp-pv.c: Likewise.
43953         * lib/argp-pvh.c: Likewise.
43954         * lib/argp-xinl.c: Likewise.
43955         * lib/argp.h: Likewise.
43956         * lib/at-func.c: Likewise.
43957         * lib/atanl.c: Likewise.
43958         * lib/backupfile.c: Likewise.
43959         * lib/backupfile.h: Likewise.
43960         * lib/basename.c: Likewise.
43961         * lib/binary-io.h: Likewise.
43962         * lib/byteswap.in.h: Likewise.
43963         * lib/c-stack.c: Likewise.
43964         * lib/c-stack.h: Likewise.
43965         * lib/c-strcasestr.c: Likewise.
43966         * lib/c-strcasestr.h: Likewise.
43967         * lib/c-strstr.c: Likewise.
43968         * lib/c-strstr.h: Likewise.
43969         * lib/c-strtod.c: Likewise.
43970         * lib/calloc.c: Likewise.
43971         * lib/canon-host.c: Likewise.
43972         * lib/canon-host.h: Likewise.
43973         * lib/canonicalize-lgpl.c: Likewise.
43974         * lib/canonicalize.c: Likewise.
43975         * lib/canonicalize.h: Likewise.
43976         * lib/ceil.c: Likewise.
43977         * lib/ceilf.c: Likewise.
43978         * lib/ceill.c: Likewise.
43979         * lib/chdir-long.c: Likewise.
43980         * lib/chdir-long.h: Likewise.
43981         * lib/chdir-safer.c: Likewise.
43982         * lib/chdir-safer.h: Likewise.
43983         * lib/chown.c: Likewise.
43984         * lib/classpath.c: Likewise.
43985         * lib/classpath.h: Likewise.
43986         * lib/clean-temp.c: Likewise.
43987         * lib/clean-temp.h: Likewise.
43988         * lib/cloexec.c: Likewise.
43989         * lib/close-stream.c: Likewise.
43990         * lib/closein.c: Likewise.
43991         * lib/closein.h: Likewise.
43992         * lib/closeout.c: Likewise.
43993         * lib/closeout.h: Likewise.
43994         * lib/concat-filename.c: Likewise.
43995         * lib/copy-file.c: Likewise.
43996         * lib/copy-file.h: Likewise.
43997         * lib/count-one-bits.h: Likewise.
43998         * lib/crc.c: Likewise.
43999         * lib/crc.h: Likewise.
44000         * lib/creat-safer.c: Likewise.
44001         * lib/csharpcomp.c: Likewise.
44002         * lib/csharpcomp.h: Likewise.
44003         * lib/csharpexec.c: Likewise.
44004         * lib/csharpexec.h: Likewise.
44005         * lib/cycle-check.c: Likewise.
44006         * lib/cycle-check.h: Likewise.
44007         * lib/diacrit.c: Likewise.
44008         * lib/diacrit.h: Likewise.
44009         * lib/diffseq.h: Likewise.
44010         * lib/dirchownmod.c: Likewise.
44011         * lib/dirent.in.h: Likewise.
44012         * lib/dirfd.c: Likewise.
44013         * lib/dirfd.h: Likewise.
44014         * lib/dirname.c: Likewise.
44015         * lib/dirname.h: Likewise.
44016         * lib/dummy.c: Likewise.
44017         * lib/dup-safer.c: Likewise.
44018         * lib/dup2.c: Likewise.
44019         * lib/eealloc.h: Likewise.
44020         * lib/error.c: Likewise.
44021         * lib/error.h: Likewise.
44022         * lib/euidaccess.c: Likewise.
44023         * lib/exclude.c: Likewise.
44024         * lib/exclude.h: Likewise.
44025         * lib/execute.c: Likewise.
44026         * lib/execute.h: Likewise.
44027         * lib/exitfail.c: Likewise.
44028         * lib/exitfail.h: Likewise.
44029         * lib/expl.c: Likewise.
44030         * lib/fatal-signal.c: Likewise.
44031         * lib/fatal-signal.h: Likewise.
44032         * lib/fbufmode.c: Likewise.
44033         * lib/fbufmode.h: Likewise.
44034         * lib/fchdir.c: Likewise.
44035         * lib/fchmodat.c: Likewise.
44036         * lib/fchownat.c: Likewise.
44037         * lib/fcntl--.h: Likewise.
44038         * lib/fcntl-safer.h: Likewise.
44039         * lib/fcntl.in.h: Likewise.
44040         * lib/fd-safer.c: Likewise.
44041         * lib/fflush.c: Likewise.
44042         * lib/file-has-acl.c: Likewise.
44043         * lib/file-set.c: Likewise.
44044         * lib/file-type.c: Likewise.
44045         * lib/file-type.h: Likewise.
44046         * lib/fileblocks.c: Likewise.
44047         * lib/filemode.c: Likewise.
44048         * lib/filemode.h: Likewise.
44049         * lib/filename.h: Likewise.
44050         * lib/filenamecat.c: Likewise.
44051         * lib/filenamecat.h: Likewise.
44052         * lib/findprog.c: Likewise.
44053         * lib/findprog.h: Likewise.
44054         * lib/float.in.h: Likewise.
44055         * lib/floor.c: Likewise.
44056         * lib/floorf.c: Likewise.
44057         * lib/floorl.c: Likewise.
44058         * lib/fopen-safer.c: Likewise.
44059         * lib/fopen.c: Likewise.
44060         * lib/fpending.c: Likewise.
44061         * lib/fpending.h: Likewise.
44062         * lib/fprintf.c: Likewise.
44063         * lib/fprintftime.h: Likewise.
44064         * lib/fpucw.h: Likewise.
44065         * lib/fpurge.c: Likewise.
44066         * lib/fpurge.h: Likewise.
44067         * lib/freadable.c: Likewise.
44068         * lib/freadable.h: Likewise.
44069         * lib/freadahead.c: Likewise.
44070         * lib/freadahead.h: Likewise.
44071         * lib/freading.c: Likewise.
44072         * lib/freading.h: Likewise.
44073         * lib/free.c: Likewise.
44074         * lib/freopen.c: Likewise.
44075         * lib/frexp.c: Likewise.
44076         * lib/frexpl.c: Likewise.
44077         * lib/fseek.c: Likewise.
44078         * lib/fseterr.c: Likewise.
44079         * lib/fseterr.h: Likewise.
44080         * lib/fstatat.c: Likewise.
44081         * lib/fstrcmp.c: Likewise.
44082         * lib/fstrcmp.h: Likewise.
44083         * lib/fsusage.c: Likewise.
44084         * lib/fsusage.h: Likewise.
44085         * lib/ftell.c: Likewise.
44086         * lib/ftello.c: Likewise.
44087         * lib/fts-cycle.c: Likewise.
44088         * lib/fts.c: Likewise.
44089         * lib/fts_.h: Likewise.
44090         * lib/full-read.c: Likewise.
44091         * lib/full-read.h: Likewise.
44092         * lib/full-write.c: Likewise.
44093         * lib/full-write.h: Likewise.
44094         * lib/fwritable.c: Likewise.
44095         * lib/fwritable.h: Likewise.
44096         * lib/fwriteerror.c: Likewise.
44097         * lib/fwriteerror.h: Likewise.
44098         * lib/fwriting.c: Likewise.
44099         * lib/fwriting.h: Likewise.
44100         * lib/gcd.c: Likewise.
44101         * lib/gcd.h: Likewise.
44102         * lib/getcwd.c: Likewise.
44103         * lib/getdate.h: Likewise.
44104         * lib/getdate.y: Likewise.
44105         * lib/getdomainname.c: Likewise.
44106         * lib/getdomainname.h: Likewise.
44107         * lib/getgroups.c: Likewise.
44108         * lib/gethostname.c: Likewise.
44109         * lib/gethrxtime.c: Likewise.
44110         * lib/gethrxtime.h: Likewise.
44111         * lib/getloadavg.c: Likewise.
44112         * lib/getndelim2.c: Likewise.
44113         * lib/getndelim2.h: Likewise.
44114         * lib/getnline.c: Likewise.
44115         * lib/getnline.h: Likewise.
44116         * lib/getopt.c: Likewise.
44117         * lib/getopt.in.h: Likewise.
44118         * lib/getopt1.c: Likewise.
44119         * lib/getopt_int.h: Likewise.
44120         * lib/getpagesize.h: Likewise.
44121         * lib/getsubopt.c: Likewise.
44122         * lib/gettime.c: Likewise.
44123         * lib/getugroups.c: Likewise.
44124         * lib/getugroups.h: Likewise.
44125         * lib/getusershell.c: Likewise.
44126         * lib/gl_anyavltree_list1.h: Likewise.
44127         * lib/gl_anyavltree_list2.h: Likewise.
44128         * lib/gl_anyhash_list1.h: Likewise.
44129         * lib/gl_anyhash_list2.h: Likewise.
44130         * lib/gl_anylinked_list1.h: Likewise.
44131         * lib/gl_anylinked_list2.h: Likewise.
44132         * lib/gl_anyrbtree_list1.h: Likewise.
44133         * lib/gl_anyrbtree_list2.h: Likewise.
44134         * lib/gl_anytree_list1.h: Likewise.
44135         * lib/gl_anytree_list2.h: Likewise.
44136         * lib/gl_anytree_oset.h: Likewise.
44137         * lib/gl_anytreehash_list1.h: Likewise.
44138         * lib/gl_anytreehash_list2.h: Likewise.
44139         * lib/gl_array_list.c: Likewise.
44140         * lib/gl_array_list.h: Likewise.
44141         * lib/gl_array_oset.c: Likewise.
44142         * lib/gl_array_oset.h: Likewise.
44143         * lib/gl_avltree_list.c: Likewise.
44144         * lib/gl_avltree_list.h: Likewise.
44145         * lib/gl_avltree_oset.c: Likewise.
44146         * lib/gl_avltree_oset.h: Likewise.
44147         * lib/gl_avltreehash_list.c: Likewise.
44148         * lib/gl_avltreehash_list.h: Likewise.
44149         * lib/gl_carray_list.c: Likewise.
44150         * lib/gl_carray_list.h: Likewise.
44151         * lib/gl_linked_list.c: Likewise.
44152         * lib/gl_linked_list.h: Likewise.
44153         * lib/gl_linkedhash_list.c: Likewise.
44154         * lib/gl_linkedhash_list.h: Likewise.
44155         * lib/gl_list.c: Likewise.
44156         * lib/gl_list.h: Likewise.
44157         * lib/gl_oset.c: Likewise.
44158         * lib/gl_oset.h: Likewise.
44159         * lib/gl_rbtree_list.c: Likewise.
44160         * lib/gl_rbtree_list.h: Likewise.
44161         * lib/gl_rbtree_oset.c: Likewise.
44162         * lib/gl_rbtree_oset.h: Likewise.
44163         * lib/gl_rbtreehash_list.c: Likewise.
44164         * lib/gl_rbtreehash_list.h: Likewise.
44165         * lib/gl_sublist.c: Likewise.
44166         * lib/gl_sublist.h: Likewise.
44167         * lib/group-member.c: Likewise.
44168         * lib/group-member.h: Likewise.
44169         * lib/hard-locale.c: Likewise.
44170         * lib/hard-locale.h: Likewise.
44171         * lib/hash-pjw.c: Likewise.
44172         * lib/hash-pjw.h: Likewise.
44173         * lib/hash-triple.c: Likewise.
44174         * lib/hash.c: Likewise.
44175         * lib/hash.h: Likewise.
44176         * lib/human.c: Likewise.
44177         * lib/human.h: Likewise.
44178         * lib/i-ring.c: Likewise.
44179         * lib/i-ring.h: Likewise.
44180         * lib/idcache.c: Likewise.
44181         * lib/imaxabs.c: Likewise.
44182         * lib/imaxdiv.c: Likewise.
44183         * lib/inet_pton.c: Likewise.
44184         * lib/inet_pton.h: Likewise.
44185         * lib/intprops.h: Likewise.
44186         * lib/inttostr.c: Likewise.
44187         * lib/inttostr.h: Likewise.
44188         * lib/inttypes.in.h: Likewise.
44189         * lib/isapipe.c: Likewise.
44190         * lib/isdir.c: Likewise.
44191         * lib/isnan.c: Likewise.
44192         * lib/isnan.h: Likewise.
44193         * lib/isnanf.c: Likewise.
44194         * lib/isnanf.h: Likewise.
44195         * lib/isnanl-nolibm.h: Likewise.
44196         * lib/isnanl.c: Likewise.
44197         * lib/isnanl.h: Likewise.
44198         * lib/javacomp.c: Likewise.
44199         * lib/javacomp.h: Likewise.
44200         * lib/javaexec.c: Likewise.
44201         * lib/javaexec.h: Likewise.
44202         * lib/javaversion.c: Likewise.
44203         * lib/javaversion.h: Likewise.
44204         * lib/javaversion.java: Likewise.
44205         * lib/lbrkprop.h: Likewise.
44206         * lib/lchmod.h: Likewise.
44207         * lib/lchown.c: Likewise.
44208         * lib/ldexpl.c: Likewise.
44209         * lib/linebreak.c: Likewise.
44210         * lib/linebreak.h: Likewise.
44211         * lib/linebuffer.c: Likewise.
44212         * lib/linebuffer.h: Likewise.
44213         * lib/locale.in.h: Likewise.
44214         * lib/logl.c: Likewise.
44215         * lib/long-options.c: Likewise.
44216         * lib/long-options.h: Likewise.
44217         * lib/lstat.c: Likewise.
44218         * lib/lstat.h: Likewise.
44219         * lib/math.in.h: Likewise.
44220         * lib/mbchar.c: Likewise.
44221         * lib/mbchar.h: Likewise.
44222         * lib/mbfile.h: Likewise.
44223         * lib/mbiter.h: Likewise.
44224         * lib/mbscasecmp.c: Likewise.
44225         * lib/mbscasestr.c: Likewise.
44226         * lib/mbschr.c: Likewise.
44227         * lib/mbscspn.c: Likewise.
44228         * lib/mbslen.c: Likewise.
44229         * lib/mbsncasecmp.c: Likewise.
44230         * lib/mbsnlen.c: Likewise.
44231         * lib/mbspbrk.c: Likewise.
44232         * lib/mbspcasecmp.c: Likewise.
44233         * lib/mbsrchr.c: Likewise.
44234         * lib/mbssep.c: Likewise.
44235         * lib/mbsspn.c: Likewise.
44236         * lib/mbsstr.c: Likewise.
44237         * lib/mbstok_r.c: Likewise.
44238         * lib/mbswidth.c: Likewise.
44239         * lib/mbswidth.h: Likewise.
44240         * lib/mbuiter.h: Likewise.
44241         * lib/memcasecmp.c: Likewise.
44242         * lib/memcasecmp.h: Likewise.
44243         * lib/memchr.c: Likewise.
44244         * lib/memcmp.c: Likewise.
44245         * lib/memcoll.c: Likewise.
44246         * lib/memcoll.h: Likewise.
44247         * lib/memcpy.c: Likewise.
44248         * lib/memrchr.c: Likewise.
44249         * lib/mkancesdirs.c: Likewise.
44250         * lib/mkdir-p.c: Likewise.
44251         * lib/mkdir-p.h: Likewise.
44252         * lib/mkdir.c: Likewise.
44253         * lib/mkdirat.c: Likewise.
44254         * lib/mkdtemp.c: Likewise.
44255         * lib/mkstemp-safer.c: Likewise.
44256         * lib/mkstemp.c: Likewise.
44257         * lib/modechange.c: Likewise.
44258         * lib/modechange.h: Likewise.
44259         * lib/mountlist.c: Likewise.
44260         * lib/mountlist.h: Likewise.
44261         * lib/mpsort.c: Likewise.
44262         * lib/nanosleep.c: Likewise.
44263         * lib/obstack.c: Likewise.
44264         * lib/obstack.h: Likewise.
44265         * lib/open-safer.c: Likewise.
44266         * lib/open.c: Likewise.
44267         * lib/openat-die.c: Likewise.
44268         * lib/openat-priv.h: Likewise.
44269         * lib/openat-proc.c: Likewise.
44270         * lib/openat.c: Likewise.
44271         * lib/openat.h: Likewise.
44272         * lib/pagealign_alloc.c: Likewise.
44273         * lib/pagealign_alloc.h: Likewise.
44274         * lib/physmem.c: Likewise.
44275         * lib/physmem.h: Likewise.
44276         * lib/pipe-safer.c: Likewise.
44277         * lib/pipe.c: Likewise.
44278         * lib/pipe.h: Likewise.
44279         * lib/posixtm.c: Likewise.
44280         * lib/posixtm.h: Likewise.
44281         * lib/posixver.c: Likewise.
44282         * lib/printf-frexp.c: Likewise.
44283         * lib/printf-frexp.h: Likewise.
44284         * lib/printf-frexpl.c: Likewise.
44285         * lib/printf-frexpl.h: Likewise.
44286         * lib/printf.c: Likewise.
44287         * lib/progname.c: Likewise.
44288         * lib/progname.h: Likewise.
44289         * lib/progreloc.c: Likewise.
44290         * lib/putenv.c: Likewise.
44291         * lib/quote.c: Likewise.
44292         * lib/quote.h: Likewise.
44293         * lib/quotearg.c: Likewise.
44294         * lib/quotearg.h: Likewise.
44295         * lib/raise.c: Likewise.
44296         * lib/readline.c: Likewise.
44297         * lib/readline.h: Likewise.
44298         * lib/readlink.c: Likewise.
44299         * lib/readtokens.c: Likewise.
44300         * lib/readtokens.h: Likewise.
44301         * lib/readtokens0.c: Likewise.
44302         * lib/readtokens0.h: Likewise.
44303         * lib/readutmp.c: Likewise.
44304         * lib/readutmp.h: Likewise.
44305         * lib/realloc.c: Likewise.
44306         * lib/relocwrapper.c: Likewise.
44307         * lib/rename-dest-slash.c: Likewise.
44308         * lib/rename.c: Likewise.
44309         * lib/rmdir.c: Likewise.
44310         * lib/rpmatch.c: Likewise.
44311         * lib/safe-read.c: Likewise.
44312         * lib/safe-read.h: Likewise.
44313         * lib/safe-write.c: Likewise.
44314         * lib/safe-write.h: Likewise.
44315         * lib/same-inode.h: Likewise.
44316         * lib/same.c: Likewise.
44317         * lib/same.h: Likewise.
44318         * lib/save-cwd.c: Likewise.
44319         * lib/save-cwd.h: Likewise.
44320         * lib/savedir.c: Likewise.
44321         * lib/savedir.h: Likewise.
44322         * lib/savewd.c: Likewise.
44323         * lib/savewd.h: Likewise.
44324         * lib/search.in.h: Likewise.
44325         * lib/setenv.c: Likewise.
44326         * lib/setenv.h: Likewise.
44327         * lib/settime.c: Likewise.
44328         * lib/sh-quote.c: Likewise.
44329         * lib/sh-quote.h: Likewise.
44330         * lib/sig2str.c: Likewise.
44331         * lib/sig2str.h: Likewise.
44332         * lib/signal.in.h: Likewise.
44333         * lib/signbitd.c: Likewise.
44334         * lib/signbitf.c: Likewise.
44335         * lib/signbitl.c: Likewise.
44336         * lib/sigprocmask.c: Likewise.
44337         * lib/sincosl.c: Likewise.
44338         * lib/sleep.c: Likewise.
44339         * lib/sprintf.c: Likewise.
44340         * lib/sqrtl.c: Likewise.
44341         * lib/stat-time.h: Likewise.
44342         * lib/stdio--.h: Likewise.
44343         * lib/stdio-safer.h: Likewise.
44344         * lib/stdlib--.h: Likewise.
44345         * lib/stdlib-safer.h: Likewise.
44346         * lib/stdlib.in.h: Likewise.
44347         * lib/stpcpy.c: Likewise.
44348         * lib/stpncpy.c: Likewise.
44349         * lib/strchrnul.c: Likewise.
44350         * lib/strcspn.c: Likewise.
44351         * lib/strerror.c: Likewise.
44352         * lib/strftime.c: Likewise.
44353         * lib/strftime.h: Likewise.
44354         * lib/striconveh.c: Likewise.
44355         * lib/striconveh.h: Likewise.
44356         * lib/striconveha.c: Likewise.
44357         * lib/striconveha.h: Likewise.
44358         * lib/stripslash.c: Likewise.
44359         * lib/strnlen1.c: Likewise.
44360         * lib/strnlen1.h: Likewise.
44361         * lib/strtod.c: Likewise.
44362         * lib/strtoimax.c: Likewise.
44363         * lib/strtok_r.c: Likewise.
44364         * lib/strtol.c: Likewise.
44365         * lib/strtoll.c: Likewise.
44366         * lib/strtoul.c: Likewise.
44367         * lib/strtoull.c: Likewise.
44368         * lib/sysexits.in.h: Likewise.
44369         * lib/tempname.c: Likewise.
44370         * lib/tempname.h: Likewise.
44371         * lib/timespec.h: Likewise.
44372         * lib/tls.c: Likewise.
44373         * lib/tls.h: Likewise.
44374         * lib/tmpdir.c: Likewise.
44375         * lib/tmpdir.h: Likewise.
44376         * lib/tmpfile-safer.c: Likewise.
44377         * lib/tmpfile.c: Likewise.
44378         * lib/trigl.c: Likewise.
44379         * lib/trigl.h: Likewise.
44380         * lib/trim.c: Likewise.
44381         * lib/trim.h: Likewise.
44382         * lib/trunc.c: Likewise.
44383         * lib/truncf.c: Likewise.
44384         * lib/truncl.c: Likewise.
44385         * lib/tsearch.c: Likewise.
44386         * lib/unicodeio.c: Likewise.
44387         * lib/unicodeio.h: Likewise.
44388         * lib/unistd--.h: Likewise.
44389         * lib/unistd-safer.h: Likewise.
44390         * lib/unistdio/ulc-fprintf.c: Likewise.
44391         * lib/unistdio/ulc-vfprintf.c: Likewise.
44392         * lib/unlinkdir.c: Likewise.
44393         * lib/unlinkdir.h: Likewise.
44394         * lib/unlocked-io.h: Likewise.
44395         * lib/unsetenv.c: Likewise.
44396         * lib/userspec.c: Likewise.
44397         * lib/utime.c: Likewise.
44398         * lib/utimecmp.c: Likewise.
44399         * lib/utimecmp.h: Likewise.
44400         * lib/utimens.c: Likewise.
44401         * lib/verify.h: Likewise.
44402         * lib/verror.c: Likewise.
44403         * lib/verror.h: Likewise.
44404         * lib/version-etc-fsf.c: Likewise.
44405         * lib/version-etc.c: Likewise.
44406         * lib/version-etc.h: Likewise.
44407         * lib/vfprintf.c: Likewise.
44408         * lib/vprintf.c: Likewise.
44409         * lib/vsprintf.c: Likewise.
44410         * lib/w32spawn.h: Likewise.
44411         * lib/wait-process.c: Likewise.
44412         * lib/wait-process.h: Likewise.
44413         * lib/wcwidth.c: Likewise.
44414         * lib/write-any-file.c: Likewise.
44415         * lib/xalloc-die.c: Likewise.
44416         * lib/xalloc.h: Likewise.
44417         * lib/xasprintf.c: Likewise.
44418         * lib/xgetcwd.c: Likewise.
44419         * lib/xgetcwd.h: Likewise.
44420         * lib/xgetdomainname.c: Likewise.
44421         * lib/xgetdomainname.h: Likewise.
44422         * lib/xgethostname.c: Likewise.
44423         * lib/xmalloc.c: Likewise.
44424         * lib/xmalloca.c: Likewise.
44425         * lib/xmalloca.h: Likewise.
44426         * lib/xmemcoll.c: Likewise.
44427         * lib/xnanosleep.c: Likewise.
44428         * lib/xreadlink.c: Likewise.
44429         * lib/xreadlink.h: Likewise.
44430         * lib/xsetenv.c: Likewise.
44431         * lib/xsetenv.h: Likewise.
44432         * lib/xstriconv.c: Likewise.
44433         * lib/xstriconv.h: Likewise.
44434         * lib/xstrndup.c: Likewise.
44435         * lib/xstrndup.h: Likewise.
44436         * lib/xstrtod.c: Likewise.
44437         * lib/xstrtod.h: Likewise.
44438         * lib/xstrtol-error.c: Likewise.
44439         * lib/xstrtol.c: Likewise.
44440         * lib/xstrtol.h: Likewise.
44441         * lib/xtime.h: Likewise.
44442         * lib/xvasprintf.c: Likewise.
44443         * lib/xvasprintf.h: Likewise.
44444         * lib/yesno.c: Likewise.
44445         * lib/yesno.h: Likewise.
44446         * posix-modules: Likewise.
44447         * tests/test-alloca-opt.c: Likewise.
44448         * tests/test-arcfour.c: Likewise.
44449         * tests/test-arctwo.c: Likewise.
44450         * tests/test-argmatch.c: Likewise.
44451         * tests/test-argp-2.sh: Likewise.
44452         * tests/test-argp.c: Likewise.
44453         * tests/test-arpa_inet.c: Likewise.
44454         * tests/test-array_list.c: Likewise.
44455         * tests/test-array_oset.c: Likewise.
44456         * tests/test-atexit.c: Likewise.
44457         * tests/test-avltree_list.c: Likewise.
44458         * tests/test-avltree_oset.c: Likewise.
44459         * tests/test-avltreehash_list.c: Likewise.
44460         * tests/test-base64.c: Likewise.
44461         * tests/test-binary-io.c: Likewise.
44462         * tests/test-byteswap.c: Likewise.
44463         * tests/test-c-ctype.c: Likewise.
44464         * tests/test-c-strcasecmp.c: Likewise.
44465         * tests/test-c-strcasestr.c: Likewise.
44466         * tests/test-c-strncasecmp.c: Likewise.
44467         * tests/test-c-strstr.c: Likewise.
44468         * tests/test-canonicalize-lgpl.c: Likewise.
44469         * tests/test-canonicalize.c: Likewise.
44470         * tests/test-carray_list.c: Likewise.
44471         * tests/test-ceilf.c: Likewise.
44472         * tests/test-ceill.c: Likewise.
44473         * tests/test-count-one-bits.c: Likewise.
44474         * tests/test-crc.c: Likewise.
44475         * tests/test-dirname.c: Likewise.
44476         * tests/test-fbufmode.c: Likewise.
44477         * tests/test-fcntl.c: Likewise.
44478         * tests/test-fflush.c: Likewise.
44479         * tests/test-floorf.c: Likewise.
44480         * tests/test-floorl.c: Likewise.
44481         * tests/test-fopen.c: Likewise.
44482         * tests/test-fprintf-posix.c: Likewise.
44483         * tests/test-fprintf-posix.h: Likewise.
44484         * tests/test-fpurge.c: Likewise.
44485         * tests/test-freadable.c: Likewise.
44486         * tests/test-freadahead.c: Likewise.
44487         * tests/test-freading.c: Likewise.
44488         * tests/test-freopen.c: Likewise.
44489         * tests/test-frexp.c: Likewise.
44490         * tests/test-frexpl.c: Likewise.
44491         * tests/test-fseek.c: Likewise.
44492         * tests/test-fseeko.c: Likewise.
44493         * tests/test-fseterr.c: Likewise.
44494         * tests/test-fstrcmp.c: Likewise.
44495         * tests/test-ftell.c: Likewise.
44496         * tests/test-ftello.c: Likewise.
44497         * tests/test-fwritable.c: Likewise.
44498         * tests/test-fwriting.c: Likewise.
44499         * tests/test-getaddrinfo.c: Likewise.
44500         * tests/test-getpass.c: Likewise.
44501         * tests/test-gettimeofday.c: Likewise.
44502         * tests/test-hmac-md5.c: Likewise.
44503         * tests/test-hmac-sha1.c: Likewise.
44504         * tests/test-iconv.c: Likewise.
44505         * tests/test-iconvme.c: Likewise.
44506         * tests/test-inttypes.c: Likewise.
44507         * tests/test-isnan.c: Likewise.
44508         * tests/test-isnanf.c: Likewise.
44509         * tests/test-isnanl-nolibm.c: Likewise.
44510         * tests/test-isnanl.c: Likewise.
44511         * tests/test-isnanl.h: Likewise.
44512         * tests/test-ldexpl.c: Likewise.
44513         * tests/test-linked_list.c: Likewise.
44514         * tests/test-linkedhash_list.c: Likewise.
44515         * tests/test-locale.c: Likewise.
44516         * tests/test-localename.c: Likewise.
44517         * tests/test-lock.c: Likewise.
44518         * tests/test-lseek.c: Likewise.
44519         * tests/test-malloca.c: Likewise.
44520         * tests/test-math.c: Likewise.
44521         * tests/test-mbscasecmp.c: Likewise.
44522         * tests/test-mbscasestr1.c: Likewise.
44523         * tests/test-mbscasestr2.c: Likewise.
44524         * tests/test-mbscasestr3.c: Likewise.
44525         * tests/test-mbscasestr4.c: Likewise.
44526         * tests/test-mbschr.c: Likewise.
44527         * tests/test-mbscspn.c: Likewise.
44528         * tests/test-mbsncasecmp.c: Likewise.
44529         * tests/test-mbspbrk.c: Likewise.
44530         * tests/test-mbspcasecmp.c: Likewise.
44531         * tests/test-mbsrchr.c: Likewise.
44532         * tests/test-mbsspn.c: Likewise.
44533         * tests/test-mbsstr1.c: Likewise.
44534         * tests/test-mbsstr2.c: Likewise.
44535         * tests/test-mbsstr3.c: Likewise.
44536         * tests/test-md5.c: Likewise.
44537         * tests/test-memmem.c: Likewise.
44538         * tests/test-netinet_in.c: Likewise.
44539         * tests/test-open.c: Likewise.
44540         * tests/test-printf-frexp.c: Likewise.
44541         * tests/test-printf-frexpl.c: Likewise.
44542         * tests/test-printf-posix.c: Likewise.
44543         * tests/test-printf-posix.h: Likewise.
44544         * tests/test-rbtree_list.c: Likewise.
44545         * tests/test-rbtree_oset.c: Likewise.
44546         * tests/test-rbtreehash_list.c: Likewise.
44547         * tests/test-read-file.c: Likewise.
44548         * tests/test-rijndael.c: Likewise.
44549         * tests/test-search.c: Likewise.
44550         * tests/test-signbit.c: Likewise.
44551         * tests/test-sleep.c: Likewise.
44552         * tests/test-snprintf-posix.c: Likewise.
44553         * tests/test-snprintf-posix.h: Likewise.
44554         * tests/test-snprintf.c: Likewise.
44555         * tests/test-sprintf-posix.c: Likewise.
44556         * tests/test-sprintf-posix.h: Likewise.
44557         * tests/test-stat-time.c: Likewise.
44558         * tests/test-stdbool.c: Likewise.
44559         * tests/test-stdint.c: Likewise.
44560         * tests/test-stdio.c: Likewise.
44561         * tests/test-stdlib.c: Likewise.
44562         * tests/test-stpncpy.c: Likewise.
44563         * tests/test-strcasestr.c: Likewise.
44564         * tests/test-striconv.c: Likewise.
44565         * tests/test-striconveh.c: Likewise.
44566         * tests/test-striconveha.c: Likewise.
44567         * tests/test-string.c: Likewise.
44568         * tests/test-sys_select.c: Likewise.
44569         * tests/test-sys_socket.c: Likewise.
44570         * tests/test-sys_stat.c: Likewise.
44571         * tests/test-sys_time.c: Likewise.
44572         * tests/test-sysexits.c: Likewise.
44573         * tests/test-time.c: Likewise.
44574         * tests/test-tls.c: Likewise.
44575         * tests/test-trunc.c: Likewise.
44576         * tests/test-truncf.c: Likewise.
44577         * tests/test-truncl.c: Likewise.
44578         * tests/test-unistd.c: Likewise.
44579         * tests/test-vasnprintf-posix.c: Likewise.
44580         * tests/test-vasnprintf-posix2.c: Likewise.
44581         * tests/test-vasnprintf.c: Likewise.
44582         * tests/test-vasprintf-posix.c: Likewise.
44583         * tests/test-vasprintf.c: Likewise.
44584         * tests/test-verify.c: Likewise.
44585         * tests/test-vfprintf-posix.c: Likewise.
44586         * tests/test-vprintf-posix.c: Likewise.
44587         * tests/test-vsnprintf-posix.c: Likewise.
44588         * tests/test-vsnprintf.c: Likewise.
44589         * tests/test-vsprintf-posix.c: Likewise.
44590         * tests/test-wchar.c: Likewise.
44591         * tests/test-wctype.c: Likewise.
44592         * tests/test-wcwidth.c: Likewise.
44593         * tests/test-xstrtol.c: Likewise.
44594         * tests/test-xvasprintf.c: Likewise.
44595         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
44596         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
44597         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
44598         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
44599         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
44600         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
44601         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
44602         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
44603         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
44604         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
44605         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
44606         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
44607         * tests/uniname/test-uninames.c: Likewise.
44608         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
44609         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
44610         * tests/unistdio/test-u16-printf1.h: Likewise.
44611         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
44612         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
44613         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
44614         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
44615         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
44616         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
44617         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
44618         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
44619         * tests/unistdio/test-u32-printf1.h: Likewise.
44620         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
44621         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
44622         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
44623         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
44624         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
44625         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
44626         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
44627         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
44628         * tests/unistdio/test-u8-printf1.h: Likewise.
44629         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
44630         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
44631         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
44632         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
44633         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
44634         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
44635         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
44636         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
44637         * tests/unistdio/test-ulc-printf1.h: Likewise.
44638         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
44639         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
44640         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
44641         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
44642         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
44643         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
44644         * tests/uniwidth/test-u16-strwidth.c: Likewise.
44645         * tests/uniwidth/test-u16-width.c: Likewise.
44646         * tests/uniwidth/test-u32-strwidth.c: Likewise.
44647         * tests/uniwidth/test-u32-width.c: Likewise.
44648         * tests/uniwidth/test-u8-strwidth.c: Likewise.
44649         * tests/uniwidth/test-u8-width.c: Likewise.
44650         * tests/uniwidth/test-uc_width.c: Likewise.
44651         * config/srclist-update: Likewise.
44652         (fixlicense): Update to GPLv3+.
44654         Change copyright notice from LGPLv2.1+ to LGPLv3+.
44655         * tests/test-tsearch.c: Change copyright notice.
44657         Change copyright notice from LGPLv2.0+ to LGPLv3+.
44658         * lib/c-strcaseeq.h: Change copyright notice.
44659         * lib/streq.h: Likewise.
44660         * lib/uniconv.h: Likewise.
44661         * lib/uniconv/u-conv-from-enc.h: Likewise.
44662         * lib/uniconv/u-conv-to-enc.h: Likewise.
44663         * lib/uniconv/u-strconv-from-enc.h: Likewise.
44664         * lib/uniconv/u-strconv-to-enc.h: Likewise.
44665         * lib/uniconv/u16-conv-from-enc.c: Likewise.
44666         * lib/uniconv/u16-conv-to-enc.c: Likewise.
44667         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
44668         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
44669         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
44670         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
44671         * lib/uniconv/u32-conv-from-enc.c: Likewise.
44672         * lib/uniconv/u32-conv-to-enc.c: Likewise.
44673         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
44674         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
44675         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
44676         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
44677         * lib/uniconv/u8-conv-from-enc.c: Likewise.
44678         * lib/uniconv/u8-conv-to-enc.c: Likewise.
44679         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
44680         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
44681         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
44682         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
44683         * lib/uniname.h: Likewise.
44684         * lib/uniname/uniname.c: Likewise.
44685         * lib/unistdio.h: Likewise.
44686         * lib/unistdio/u-asnprintf.h: Likewise.
44687         * lib/unistdio/u-asprintf.h: Likewise.
44688         * lib/unistdio/u-printf-args.c: Likewise.
44689         * lib/unistdio/u-printf-args.h: Likewise.
44690         * lib/unistdio/u-printf-parse.h: Likewise.
44691         * lib/unistdio/u-snprintf.h: Likewise.
44692         * lib/unistdio/u-sprintf.h: Likewise.
44693         * lib/unistdio/u-vasprintf.h: Likewise.
44694         * lib/unistdio/u-vsnprintf.h: Likewise.
44695         * lib/unistdio/u-vsprintf.h: Likewise.
44696         * lib/unistdio/u16-asnprintf.c: Likewise.
44697         * lib/unistdio/u16-asprintf.c: Likewise.
44698         * lib/unistdio/u16-printf-parse.c: Likewise.
44699         * lib/unistdio/u16-snprintf.c: Likewise.
44700         * lib/unistdio/u16-sprintf.c: Likewise.
44701         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
44702         * lib/unistdio/u16-u16-asprintf.c: Likewise.
44703         * lib/unistdio/u16-u16-snprintf.c: Likewise.
44704         * lib/unistdio/u16-u16-sprintf.c: Likewise.
44705         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
44706         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
44707         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
44708         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
44709         * lib/unistdio/u16-vasnprintf.c: Likewise.
44710         * lib/unistdio/u16-vasprintf.c: Likewise.
44711         * lib/unistdio/u16-vsnprintf.c: Likewise.
44712         * lib/unistdio/u16-vsprintf.c: Likewise.
44713         * lib/unistdio/u32-asnprintf.c: Likewise.
44714         * lib/unistdio/u32-asprintf.c: Likewise.
44715         * lib/unistdio/u32-printf-parse.c: Likewise.
44716         * lib/unistdio/u32-snprintf.c: Likewise.
44717         * lib/unistdio/u32-sprintf.c: Likewise.
44718         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
44719         * lib/unistdio/u32-u32-asprintf.c: Likewise.
44720         * lib/unistdio/u32-u32-snprintf.c: Likewise.
44721         * lib/unistdio/u32-u32-sprintf.c: Likewise.
44722         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
44723         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
44724         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
44725         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
44726         * lib/unistdio/u32-vasnprintf.c: Likewise.
44727         * lib/unistdio/u32-vasprintf.c: Likewise.
44728         * lib/unistdio/u32-vsnprintf.c: Likewise.
44729         * lib/unistdio/u32-vsprintf.c: Likewise.
44730         * lib/unistdio/u8-asnprintf.c: Likewise.
44731         * lib/unistdio/u8-asprintf.c: Likewise.
44732         * lib/unistdio/u8-printf-parse.c: Likewise.
44733         * lib/unistdio/u8-snprintf.c: Likewise.
44734         * lib/unistdio/u8-sprintf.c: Likewise.
44735         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
44736         * lib/unistdio/u8-u8-asprintf.c: Likewise.
44737         * lib/unistdio/u8-u8-snprintf.c: Likewise.
44738         * lib/unistdio/u8-u8-sprintf.c: Likewise.
44739         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
44740         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
44741         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
44742         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
44743         * lib/unistdio/u8-vasnprintf.c: Likewise.
44744         * lib/unistdio/u8-vasprintf.c: Likewise.
44745         * lib/unistdio/u8-vsnprintf.c: Likewise.
44746         * lib/unistdio/u8-vsprintf.c: Likewise.
44747         * lib/unistdio/ulc-asnprintf.c: Likewise.
44748         * lib/unistdio/ulc-asprintf.c: Likewise.
44749         * lib/unistdio/ulc-printf-parse.c: Likewise.
44750         * lib/unistdio/ulc-snprintf.c: Likewise.
44751         * lib/unistdio/ulc-sprintf.c: Likewise.
44752         * lib/unistdio/ulc-vasnprintf.c: Likewise.
44753         * lib/unistdio/ulc-vasprintf.c: Likewise.
44754         * lib/unistdio/ulc-vsnprintf.c: Likewise.
44755         * lib/unistdio/ulc-vsprintf.c: Likewise.
44756         * lib/unistr.h: Likewise.
44757         * lib/unistr/u-cpy-alloc.h: Likewise.
44758         * lib/unistr/u-cpy.h: Likewise.
44759         * lib/unistr/u-endswith.h: Likewise.
44760         * lib/unistr/u-move.h: Likewise.
44761         * lib/unistr/u-set.h: Likewise.
44762         * lib/unistr/u-startswith.h: Likewise.
44763         * lib/unistr/u-stpcpy.h: Likewise.
44764         * lib/unistr/u-stpncpy.h: Likewise.
44765         * lib/unistr/u-strcat.h: Likewise.
44766         * lib/unistr/u-strcpy.h: Likewise.
44767         * lib/unistr/u-strcspn.h: Likewise.
44768         * lib/unistr/u-strdup.h: Likewise.
44769         * lib/unistr/u-strlen.h: Likewise.
44770         * lib/unistr/u-strncat.h: Likewise.
44771         * lib/unistr/u-strncpy.h: Likewise.
44772         * lib/unistr/u-strnlen.h: Likewise.
44773         * lib/unistr/u-strpbrk.h: Likewise.
44774         * lib/unistr/u-strspn.h: Likewise.
44775         * lib/unistr/u-strstr.h: Likewise.
44776         * lib/unistr/u-strtok.h: Likewise.
44777         * lib/unistr/u16-check.c: Likewise.
44778         * lib/unistr/u16-chr.c: Likewise.
44779         * lib/unistr/u16-cmp.c: Likewise.
44780         * lib/unistr/u16-cpy-alloc.c: Likewise.
44781         * lib/unistr/u16-cpy.c: Likewise.
44782         * lib/unistr/u16-endswith.c: Likewise.
44783         * lib/unistr/u16-mblen.c: Likewise.
44784         * lib/unistr/u16-mbsnlen.c: Likewise.
44785         * lib/unistr/u16-mbtouc-aux.c: Likewise.
44786         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
44787         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
44788         * lib/unistr/u16-mbtouc.c: Likewise.
44789         * lib/unistr/u16-mbtoucr.c: Likewise.
44790         * lib/unistr/u16-move.c: Likewise.
44791         * lib/unistr/u16-next.c: Likewise.
44792         * lib/unistr/u16-prev.c: Likewise.
44793         * lib/unistr/u16-set.c: Likewise.
44794         * lib/unistr/u16-startswith.c: Likewise.
44795         * lib/unistr/u16-stpcpy.c: Likewise.
44796         * lib/unistr/u16-stpncpy.c: Likewise.
44797         * lib/unistr/u16-strcat.c: Likewise.
44798         * lib/unistr/u16-strchr.c: Likewise.
44799         * lib/unistr/u16-strcmp.c: Likewise.
44800         * lib/unistr/u16-strcpy.c: Likewise.
44801         * lib/unistr/u16-strcspn.c: Likewise.
44802         * lib/unistr/u16-strdup.c: Likewise.
44803         * lib/unistr/u16-strlen.c: Likewise.
44804         * lib/unistr/u16-strmblen.c: Likewise.
44805         * lib/unistr/u16-strmbtouc.c: Likewise.
44806         * lib/unistr/u16-strncat.c: Likewise.
44807         * lib/unistr/u16-strncmp.c: Likewise.
44808         * lib/unistr/u16-strncpy.c: Likewise.
44809         * lib/unistr/u16-strnlen.c: Likewise.
44810         * lib/unistr/u16-strpbrk.c: Likewise.
44811         * lib/unistr/u16-strrchr.c: Likewise.
44812         * lib/unistr/u16-strspn.c: Likewise.
44813         * lib/unistr/u16-strstr.c: Likewise.
44814         * lib/unistr/u16-strtok.c: Likewise.
44815         * lib/unistr/u16-to-u32.c: Likewise.
44816         * lib/unistr/u16-to-u8.c: Likewise.
44817         * lib/unistr/u16-uctomb-aux.c: Likewise.
44818         * lib/unistr/u16-uctomb.c: Likewise.
44819         * lib/unistr/u32-check.c: Likewise.
44820         * lib/unistr/u32-chr.c: Likewise.
44821         * lib/unistr/u32-cmp.c: Likewise.
44822         * lib/unistr/u32-cpy-alloc.c: Likewise.
44823         * lib/unistr/u32-cpy.c: Likewise.
44824         * lib/unistr/u32-endswith.c: Likewise.
44825         * lib/unistr/u32-mblen.c: Likewise.
44826         * lib/unistr/u32-mbsnlen.c: Likewise.
44827         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
44828         * lib/unistr/u32-mbtouc.c: Likewise.
44829         * lib/unistr/u32-mbtoucr.c: Likewise.
44830         * lib/unistr/u32-move.c: Likewise.
44831         * lib/unistr/u32-next.c: Likewise.
44832         * lib/unistr/u32-prev.c: Likewise.
44833         * lib/unistr/u32-set.c: Likewise.
44834         * lib/unistr/u32-startswith.c: Likewise.
44835         * lib/unistr/u32-stpcpy.c: Likewise.
44836         * lib/unistr/u32-stpncpy.c: Likewise.
44837         * lib/unistr/u32-strcat.c: Likewise.
44838         * lib/unistr/u32-strchr.c: Likewise.
44839         * lib/unistr/u32-strcmp.c: Likewise.
44840         * lib/unistr/u32-strcpy.c: Likewise.
44841         * lib/unistr/u32-strcspn.c: Likewise.
44842         * lib/unistr/u32-strdup.c: Likewise.
44843         * lib/unistr/u32-strlen.c: Likewise.
44844         * lib/unistr/u32-strmblen.c: Likewise.
44845         * lib/unistr/u32-strmbtouc.c: Likewise.
44846         * lib/unistr/u32-strncat.c: Likewise.
44847         * lib/unistr/u32-strncmp.c: Likewise.
44848         * lib/unistr/u32-strncpy.c: Likewise.
44849         * lib/unistr/u32-strnlen.c: Likewise.
44850         * lib/unistr/u32-strpbrk.c: Likewise.
44851         * lib/unistr/u32-strrchr.c: Likewise.
44852         * lib/unistr/u32-strspn.c: Likewise.
44853         * lib/unistr/u32-strstr.c: Likewise.
44854         * lib/unistr/u32-strtok.c: Likewise.
44855         * lib/unistr/u32-to-u16.c: Likewise.
44856         * lib/unistr/u32-to-u8.c: Likewise.
44857         * lib/unistr/u32-uctomb.c: Likewise.
44858         * lib/unistr/u8-check.c: Likewise.
44859         * lib/unistr/u8-chr.c: Likewise.
44860         * lib/unistr/u8-cmp.c: Likewise.
44861         * lib/unistr/u8-cpy-alloc.c: Likewise.
44862         * lib/unistr/u8-cpy.c: Likewise.
44863         * lib/unistr/u8-endswith.c: Likewise.
44864         * lib/unistr/u8-mblen.c: Likewise.
44865         * lib/unistr/u8-mbsnlen.c: Likewise.
44866         * lib/unistr/u8-mbtouc-aux.c: Likewise.
44867         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
44868         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
44869         * lib/unistr/u8-mbtouc.c: Likewise.
44870         * lib/unistr/u8-mbtoucr.c: Likewise.
44871         * lib/unistr/u8-move.c: Likewise.
44872         * lib/unistr/u8-next.c: Likewise.
44873         * lib/unistr/u8-prev.c: Likewise.
44874         * lib/unistr/u8-set.c: Likewise.
44875         * lib/unistr/u8-startswith.c: Likewise.
44876         * lib/unistr/u8-stpcpy.c: Likewise.
44877         * lib/unistr/u8-stpncpy.c: Likewise.
44878         * lib/unistr/u8-strcat.c: Likewise.
44879         * lib/unistr/u8-strchr.c: Likewise.
44880         * lib/unistr/u8-strcmp.c: Likewise.
44881         * lib/unistr/u8-strcpy.c: Likewise.
44882         * lib/unistr/u8-strcspn.c: Likewise.
44883         * lib/unistr/u8-strdup.c: Likewise.
44884         * lib/unistr/u8-strlen.c: Likewise.
44885         * lib/unistr/u8-strmblen.c: Likewise.
44886         * lib/unistr/u8-strmbtouc.c: Likewise.
44887         * lib/unistr/u8-strncat.c: Likewise.
44888         * lib/unistr/u8-strncmp.c: Likewise.
44889         * lib/unistr/u8-strncpy.c: Likewise.
44890         * lib/unistr/u8-strnlen.c: Likewise.
44891         * lib/unistr/u8-strpbrk.c: Likewise.
44892         * lib/unistr/u8-strrchr.c: Likewise.
44893         * lib/unistr/u8-strspn.c: Likewise.
44894         * lib/unistr/u8-strstr.c: Likewise.
44895         * lib/unistr/u8-strtok.c: Likewise.
44896         * lib/unistr/u8-to-u16.c: Likewise.
44897         * lib/unistr/u8-to-u32.c: Likewise.
44898         * lib/unistr/u8-uctomb-aux.c: Likewise.
44899         * lib/unistr/u8-uctomb.c: Likewise.
44900         * lib/unitypes.h: Likewise.
44901         * lib/uniwidth.h: Likewise.
44902         * lib/uniwidth/cjk.h: Likewise.
44903         * lib/uniwidth/u16-strwidth.c: Likewise.
44904         * lib/uniwidth/u16-width.c: Likewise.
44905         * lib/uniwidth/u32-strwidth.c: Likewise.
44906         * lib/uniwidth/u32-width.c: Likewise.
44907         * lib/uniwidth/u8-strwidth.c: Likewise.
44908         * lib/uniwidth/u8-width.c: Likewise.
44909         * lib/uniwidth/width.c: Likewise.
44911 2007-10-07  Bruno Haible  <bruno@clisp.org>
44913         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
44914         The file is still under LGPL (see modules/inttypes).
44916 2007-10-06  Bruno Haible  <bruno@clisp.org>
44918         * modules/trunc (Dependencies): Add 'extensions'.
44919         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
44920         Reported by Ben Pfaff <blp@gnu.org>.
44922 2007-10-06  Bruno Haible  <bruno@clisp.org>
44924         * modules/freopen-tests: New file.
44925         * tests/test-freopen.c: New file.
44927         * modules/fopen-tests: New file.
44928         * tests/test-fopen.c: New file.
44930         * modules/fopen: New file.
44931         * lib/fopen.c: New file.
44932         * m4/fopen.m4: New file.
44933         * modules/freopen: New file.
44934         * lib/freopen.c: New file.
44935         * m4/freopen.m4: New file.
44936         * lib/stdio.in.h (fopen, freopen): New declarations.
44937         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
44938         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
44939         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
44940         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
44941         * doc/functions/fopen.texi: Mention the 'fopen' module.
44942         * doc/functions/freopen.texi: Mention the 'freopen' module.
44944 2007-10-06  Bruno Haible  <bruno@clisp.org>
44946         * modules/open-tests: New file.
44947         * tests/test-open.c: New file.
44949         * modules/open: New file.
44950         * lib/open.c: New file.
44951         * m4/open.m4: New file.
44952         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
44953         lib/open.c does.
44954         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
44955         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
44956         macros.
44957         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
44958         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
44959         REPLACE_OPEN.
44960         * doc/functions/open.texi: Mention the 'open' module.
44962 2007-10-04  Bruno Haible  <bruno@clisp.org>
44964         * modules/ceill-tests: New file.
44965         * tests/test-ceill.c: New file.
44967         * modules/ceill: New file.
44968         * lib/ceill.c: Replace entire file.
44969         * m4/ceill.m4: New file.
44970         * lib/math.in.h (ceill): Replace declaration.
44971         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
44972         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
44973         * doc/functions/ceill.texi: Mention the 'ceill' module.
44974         * modules/mathl (Files): Remove lib/ceill.c.
44975         (Depends-on): Add ceill.
44977 2007-10-04  Bruno Haible  <bruno@clisp.org>
44979         * modules/ceilf-tests: New file.
44980         * tests/test-ceilf.c: New file.
44982         * modules/ceilf: New file.
44983         * lib/ceil.c: New file.
44984         * lib/ceilf.c: New file.
44985         * m4/ceilf.m4: New file.
44986         * lib/math.in.h (ceilf): New declaration.
44987         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
44988         HAVE_DECL_CEILF.
44989         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
44990         HAVE_DECL_CEILF.
44991         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
44993 2007-10-04  Bruno Haible  <bruno@clisp.org>
44995         * modules/floorl-tests: New file.
44996         * tests/test-floorl.c: New file.
44998         * modules/floorl: New file.
44999         * lib/floorl.c: Replace entire file.
45000         * m4/floorl.m4: New file.
45001         * lib/math.in.h (floorl): Replace declaration.
45002         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
45003         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
45004         * doc/functions/floorl.texi: Mention the 'floorl' module.
45005         * modules/mathl (Files): Remove lib/floorl.c.
45006         (Depends-on): Add floorl.
45008 2007-10-04  Bruno Haible  <bruno@clisp.org>
45010         * modules/floorf-tests: New file.
45011         * tests/test-floorf.c: New file.
45013         * modules/floorf: New file.
45014         * lib/floor.c: New file.
45015         * lib/floorf.c: New file.
45016         * m4/floorf.m4: New file.
45017         * lib/math.in.h (floorf): New declaration.
45018         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
45019         HAVE_DECL_FLOORF.
45020         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
45021         HAVE_DECL_FLOORF.
45022         * doc/functions/floorf.texi: Mention the 'floorf' module.
45024 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
45025             Bruno Haible  <bruno@clisp.org>
45027         Advertise for the Git server instead of the CVS server.
45028         * doc/gnulib-intro.texi (Steady Development): Mention the Git
45029         repository instead of the CVS one.
45030         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
45031         about all VCS systems generically.
45032         * doc/gnulib.texi (Introduction): Capitalize `Git'.
45034 2007-10-04  Bruno Haible  <bruno@clisp.org>
45036         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
45037         means.
45038         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
45040 2007-10-04  Bruno Haible  <bruno@clisp.org>
45042         * modules/truncl-tests: New file.
45043         * tests/test-truncl.c: New file.
45045         * modules/truncl: New file.
45046         * lib/truncl.c: New file.
45047         * m4/truncl.m4: New file.
45048         * lib/math.in.h (truncl): New declaration.
45049         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
45050         HAVE_DECL_TRUNCL.
45051         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
45052         HAVE_DECL_TRUNCL.
45053         * doc/functions/truncl.texi: Mention the 'truncl' module.
45055 2007-10-04  Bruno Haible  <bruno@clisp.org>
45057         * modules/truncf-tests: New file.
45058         * tests/test-truncf.c: New file.
45060         * modules/truncf: New file.
45061         * lib/trunc.c: Make paramerizable through USE_* macros.
45062         * lib/truncf.c: New file.
45063         * m4/truncf.m4: New file.
45064         * lib/math.in.h (truncf): New declaration.
45065         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
45066         HAVE_DECL_TRUNCF.
45067         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
45068         HAVE_DECL_TRUNCF.
45069         * doc/functions/truncf.texi: Mention the 'truncf' module.
45071 2007-10-03  Bruno Haible  <bruno@clisp.org>
45073         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
45074         augmentation also for tests modules.
45075         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
45076         * modules/atexit-tests (Makefile.am): Likewise.
45077         * modules/binary-io-tests (Makefile.am): Likewise.
45078         * modules/c-strcase-tests (Makefile.am): Likewise.
45079         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
45080         * modules/canonicalize-tests (Makefile.am): Likewise.
45081         * modules/closein-tests (Makefile.am): Likewise.
45082         * modules/fprintf-posix-tests (Makefile.am): Likewise.
45083         * modules/freadahead-tests (Makefile.am): Likewise.
45084         * modules/fseek-tests (Makefile.am): Likewise.
45085         * modules/fseeko-tests (Makefile.am): Likewise.
45086         * modules/ftell-tests (Makefile.am): Likewise.
45087         * modules/ftello-tests (Makefile.am): Likewise.
45088         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
45089         * modules/isnanl-tests (Makefile.am): Likewise.
45090         * modules/lseek-tests (Makefile.am): Likewise.
45091         * modules/mbscasecmp-tests (Makefile.am): Likewise.
45092         * modules/mbscasestr-tests (Makefile.am): Likewise.
45093         * modules/mbschr-tests (Makefile.am): Likewise.
45094         * modules/mbscspn-tests (Makefile.am): Likewise.
45095         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
45096         * modules/mbspbrk-tests (Makefile.am): Likewise.
45097         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
45098         * modules/mbsrchr-tests (Makefile.am): Likewise.
45099         * modules/mbsspn-tests (Makefile.am): Likewise.
45100         * modules/mbsstr-tests (Makefile.am): Likewise.
45101         * modules/printf-posix-tests (Makefile.am): Likewise.
45102         * modules/snprintf-posix-tests (Makefile.am): Likewise.
45103         * modules/sprintf-posix-tests (Makefile.am): Likewise.
45104         * modules/tsearch-tests (Makefile.am): Likewise.
45105         * modules/uniname/uniname-tests (Makefile.am): Likewise.
45106         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
45107         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
45108         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
45109         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
45110         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
45111         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
45112         * modules/vprintf-posix-tests (Makefile.am): Likewise.
45113         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
45114         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
45115         * modules/xstrtoimax-tests (Makefile.am): Likewise.
45116         * modules/xstrtol-tests (Makefile.am): Likewise.
45117         * modules/xstrtoumax-tests (Makefile.am): Likewise.
45118         * modules/yesno-tests (Makefile.am): Likewise.
45120 2007-10-03  Bruno Haible  <bruno@clisp.org>
45122         * modules/trunc-tests: New file.
45123         * tests/test-trunc.c: New file.
45125         * modules/trunc: New file.
45126         * lib/trunc.c: New file.
45127         * m4/trunc.m4: New file.
45128         * lib/math.in.h (trunc): New declaration.
45129         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
45130         HAVE_DECL_TRUNC.
45131         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
45132         HAVE_DECL_TRUNC.
45133         * doc/functions/trunc.texi: Mention the 'trunc' module.
45135 2007-10-03  Bruno Haible  <bruno@clisp.org>
45137         * tests/test-fpending.c: New file, mostly copied
45138         from coreutils/lib/t-fpending.c.
45139         * modules/fpending-tests: New file.
45141 2007-10-03  Bruno Haible  <bruno@clisp.org>
45143         Port the stdio extensions to QNX (untested).
45144         * lib/fseterr.c (fseterr): Add support for QNX.
45145         * lib/fbufmode.c (fbufmode): Likewise.
45146         * lib/freadable.c (freadable): Likewise.
45147         * lib/fwritable.c (fwritable): Likewise.
45148         * lib/freading.c (freading): Likewise.
45149         * lib/fwriting.c (fwriting): Likewise.
45150         * lib/freadahead.c (freadahed): Likewise.
45151         * lib/fpurge.c (fpurge): Likewise.
45152         * lib/fseeko.c (rpl_fseeko): Likewise.
45154 2007-10-03  Bruno Haible  <bruno@clisp.org>
45155             Jim Meyering  <jim@meyering.net>
45156             Eric Blake  <ebb9@byu.net>
45158         * doc/relocatable.texi: Use @command instead of @program.
45160 2007-10-02  Jim Meyering  <jim@meyering.net>
45162         Perform one more "_.h" -> ".in.h" substitution.
45163         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
45164         instead of unistd_.h here, too.
45166 2007-10-01  Bruno Haible  <bruno@clisp.org>
45168         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
45169         Needed for the alloca-opt module.
45171 2007-09-30  Bruno Haible  <bruno@clisp.org>
45173         * lib/alloca.in.h: Renamed from lib/alloca_.h.
45174         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
45175         alloca_.h.
45176         * lib/argz.in.h: Renamed from lib/argz_.h.
45177         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
45178         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
45179         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
45180         byteswap_.h.
45181         * lib/dirent.in.h: Renamed from lib/dirent_.h.
45182         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
45183         dirent_.h.
45184         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
45185         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
45186         fcntl_.h.
45187         * lib/float.in.h: Renamed from lib/float_.h.
45188         * modules/float (Files, Makefile.am): Use float.in.h instead of
45189         float_.h.
45190         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
45191         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
45192         fnmatch_.h.
45193         * lib/getopt.in.h: Renamed from lib/getopt_.h.
45194         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
45195         getopt_.h.
45196         * lib/glob.in.h: Renamed from lib/glob_.h.
45197         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
45198         * lib/iconv.in.h: Renamed from lib/iconv_.h.
45199         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
45200         iconv_.h.
45201         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
45202         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
45203         inttypes_.h.
45204         * lib/locale.in.h: Renamed from lib/locale_.h.
45205         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
45206         locale_.h.
45207         * lib/math.in.h: Renamed from lib/math_.h.
45208         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
45209         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
45210         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
45211         of netinet_in_.h. Add dependency.
45212         * lib/poll.in.h: Renamed from lib/poll_.h.
45213         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
45214         * lib/search.in.h: Renamed from lib/search_.h.
45215         * modules/search (Files, Makefile.am): Use search.in.h instead of
45216         search_.h.
45217         * lib/signal.in.h: Renamed from lib/signal_.h.
45218         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
45219         _signal.h.
45220         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
45221         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
45222         stdbool_.h.
45223         * lib/stdint.in.h: Renamed from lib/stdint_.h.
45224         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
45225         stdint_.h.
45226         * lib/stdio.in.h: Renamed from lib/stdio_.h.
45227         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
45228         stdio_.h.
45229         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
45230         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
45231         stdlib_.h.
45232         * lib/string.in.h: Renamed from lib/string_.h.
45233         * modules/string (Files, Makefile.am): Use string.in.h instead of
45234         string_.h.
45235         * doc/gnulib-tool.texi (Initial import): Update.
45236         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
45237         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
45238         of sys_select_.h. Add dependency.
45239         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
45240         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
45241         of sys_socket_.h.
45242         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
45243         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
45244         sys_stat_.h.
45245         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
45246         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
45247         sys_time_.h.
45248         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
45249         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
45250         sysexits_.h.
45251         * lib/time.in.h: Renamed from lib/time_.h.
45252         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
45253         * lib/unistd.in.h: Renamed from lib/unistd_.h.
45254         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
45255         unistd_.h.
45256         * lib/wchar.in.h: Renamed from lib/wchar_.h.
45257         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
45258         wchar_.h.
45259         * lib/wctype.in.h: Renamed from lib/wctype_.h.
45260         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
45261         wctype_.h.
45262         * build-aux/bootstrap (slurp): Update.
45263         * lib/.cppi-disable: Update.
45265 2007-09-30  Bruno Haible  <bruno@clisp.org>
45267         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
45268         Needed on BeOS.
45270 2007-09-30  Bruno Haible  <bruno@clisp.org>
45272         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
45274 2007-09-29  Bruno Haible  <bruno@clisp.org>
45276         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
45278 2007-09-29  Bruno Haible  <bruno@clisp.org>
45280         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
45281         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
45282         * build-aux/install-reloc: Compile also areadlink.c.
45283         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
45285 2007-09-29  Bruno Haible  <bruno@clisp.org>
45287         * gnulib-tool (func_emit_initmacro_done): Indentation.
45289 2007-09-29  Bruno Haible  <bruno@clisp.org>
45291         * README: Add CVS checkout update instructions.
45292         Info from Bob Proulx <bob@proulx.com>.
45294 2007-09-28  Eric Blake  <ebb9@byu.net>
45296         Provide move-if-change.
45297         * build-aux/move-if-change: New file, based on best practice
45298         rather than any canonical upstream location.
45300 2007-09-28  Jim Meyering  <jim@meyering.net>
45302         Fix canonicalize loop-detection corner case.
45303         Do not attempt to stat the symlink values stored via seen_triple.
45304         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
45305         on linux-2.6.18, (but not 2.6.22).
45306         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
45307         triple_compare.  The former compares dev,ino,filename, while the latter
45308         would actually stat dirname(filename) when dev and ino were equal.
45309         * lib/hash-triple.c: Install <string.h>.
45310         (STREQ): Define.
45311         (triple_compare_ino_str): New function.
45312         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
45314 2007-09-28  Eric Blake  <ebb9@byu.net>
45316         Enforce that AC_REPLACE_FUNCS files exist.
45317         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
45318         override check for typos.
45320         Fix test-closein on Solaris 10.
45321         * tests/test-closein.c (main): Don't assume stdin can be inherited
45322         closed on all systems.
45323         * tests/test-closein.sh: Likewise.
45324         Reported by Piotr Tarnowski.
45326 2007-09-28  Jim Meyering  <jim@meyering.net>
45328         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
45330 2007-09-27  Jim Meyering  <jim@meyering.net>
45332         canonicalize: Avoid a false-positive cycle failure.
45333         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
45334         Sort.  Remove cycle-check.
45335         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
45336         not cycle-check.h.
45337         (seen_triple): New function.
45338         (canonicalize_filename_mode): Use it instead of cycle-check.
45339         * tests/test-canonicalize.c: Add a test for this bug.
45340         * tests/test-canonicalize.sh: Set up and run the test.
45342         New module, file-set, from coreutils.
45343         * modules/file-set: Define it.
45344         * lib/file-set.c, lib/file-set.h: Implement.
45346         New module, hash-triple, from coreutils.
45347         * modules/hash-triple: Define it.
45348         * lib/hash-triple.c, lib/hash-triple.h: Implement.
45350 2007-09-25  Eric Blake  <ebb9@byu.net>
45352         Fix strerror on Interix.
45353         * lib/string_.h (strerror): Declare replacement.
45354         * doc/functions/strerror.texi (strerror): Document the Interix
45355         shortcoming.
45356         * modules/string (Makefile.am): Support new hooks.
45357         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
45358         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
45359         gl_FUNC_STRERROR_SEPARATE.
45360         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
45361         * lib/strerror.c (rpl_strerror): Provide replacement.
45362         * modules/strerror (Depends-on): Add string.
45363         (configure.ac): Detect use of module.
45364         * tests/test-strerror.c: New file.
45365         * modules/strerror-tests: New test module.
45366         * modules/argp (Depends-on): Add strerror.
45367         * modules/error (Depends-on): Likewise.
45368         Reported by Martin Koeppe.
45370 2007-09-24  Bruno Haible  <bruno@clisp.org>
45372         * README: Update git instructions.
45374 2007-09-24  Eric Blake  <ebb9@byu.net>
45376         Revert fpending breakage from 2007-09-08.
45377         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
45378         __fpending.c.
45380 2007-09-24  Jim Meyering  <jim@meyering.net>
45382         filenamecat.c: Add a test.
45383         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
45384         showing how the function works when DIR is the empty string.
45386 2007-09-21  Simon Josefsson  <simon@josefsson.org>
45388         * tests/test-canonicalize.sh: Turn on executable bit.
45390 2007-09-19  Eric Blake  <ebb9@byu.net>
45392         * README: Update CVS instructions.
45394 2007-09-18  Bruno Haible  <bruno@clisp.org>
45396         * modules/areadlink: New file.
45397         * lib/areadlink.h (areadlink): New declaration.
45398         * lib/areadlink.c: New file, based on lib/xreadlink.c.
45400 2007-09-17  Jim Meyering  <jim@meyering.net>
45402         * lib/savewd.c (ESTALE) [!defined]: Define.
45403         Reported to be required on Interix by Martin Koeppe.
45405 2007-09-17  Bruno Haible  <bruno@clisp.org>
45407         * gnulib-tool (func_version): Use $version.
45409 2007-09-16  Bruno Haible  <bruno@clisp.org>
45411         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
45412         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
45413         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
45414         Reported by Greg Schafer <gschafer@zip.com.au>.
45416 2007-09-15  Bruno Haible  <bruno@clisp.org>
45418         * gnulib-tool (sed): Try a little harder to make bash understand the
45419         alias.
45420         Reported by Bruce Korb <bruce.korb@gmail.com>.
45422 2007-09-13  Eric Blake  <ebb9@byu.net>
45424         * ChangeLog: Remove conflict markers.
45426 2007-09-13  Simon Josefsson  <simon@josefsson.org>
45428         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
45429         Reported by Bruno Haible <bruno@clisp.org>.
45431 2007-09-12  Bruno Haible  <bruno@clisp.org>
45433         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
45434         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
45435         is not defined.
45437 2007-09-12  Eric Blake  <ebb9@byu.net>
45439         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
45440         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
45441         Autoconf definition.
45442         * modules/euidaccess (Depends-on): Add extensions, for
45443         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
45444         * modules/fnmatch (Depends-on): Likewise.
45445         * modules/getaddrinfo (Depends-on): Likewise.
45446         * modules/getdelim (Depends-on): Likewise.
45447         * modules/getline (Depends-on): Likewise.
45448         * modules/getsubopt (Depends-on): Likewise.
45449         * modules/gettext (Depends-on): Likewise.
45450         * modules/group-member (Depends-on): Likewise.
45451         * modules/mbchar (Depends-on): Likewise.
45452         * modules/memmem (Depends-on): Likewise.
45453         * modules/mempcpy (Depends-on): Likewise.
45454         * modules/memrchr (Depends-on): Likewise.
45455         * modules/pagealign_alloc (Depends-on): Likewise.
45456         * modules/readutmp (Depends-on): Likewise.
45457         * modules/stpcpy (Depends-on): Likewise.
45458         * modules/stpncpy (Depends-on): Likewise.
45459         * modules/strchrnul (Depends-on): Likewise.
45460         * modules/strndup (Depends-on): Likewise.
45461         * modules/strsep (Depends-on): Likewise.
45462         * modules/strverscmp (Depends-on): Likewise.
45463         * modules/vasprintf (Depends-on): Likewise.
45464         * modules/wcwidth (Depends-on): Likewise.
45465         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
45466         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
45467         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
45468         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
45469         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
45470         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
45471         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
45472         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
45473         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
45474         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
45475         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
45476         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
45477         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
45478         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
45479         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
45480         * m4/readutmp.m4 (gl_READUTMP): Likewise.
45481         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
45482         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
45483         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
45484         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
45485         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
45486         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
45487         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
45488         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
45489         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
45490         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
45491         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
45492         so that lock.m4 can be used in gettext without extensions module.
45494 2007-09-11  Bruno Haible  <bruno@clisp.org>
45496         * m4/isc-posix.m4: Remove file.
45497         Suggested by Eric Blake.
45499 2007-09-11  Eric Blake  <ebb9@byu.net>
45501         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
45503 2007-09-10  Bruno Haible  <bruno@clisp.org>
45505         * posix-modules: Fix typo in error message.
45506         Reported by Matt <mkraai@beckman.com>.
45508 2007-09-09  Bruno Haible  <bruno@clisp.org>
45510         * doc/functions/getdelim.texi: Update list of platforms lacking the
45511         function.
45512         * doc/functions/getline.texi: Likewise.
45514 2007-09-09  Jim Meyering  <jim@meyering.net>
45516         * lib/hash.c (hash_initialize): Detect calloc failure.
45517         Reported by Bruno Haible.
45519 2007-09-09  Bruno Haible  <bruno@clisp.org>
45521         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
45522         malloc or realloc fails.
45524 2007-09-09  Bruno Haible  <bruno@clisp.org>
45526         * modules/getcwd (Depends-on): Add malloc-posix.
45527         * modules/glob (Depends-on): Likewise.
45528         * modules/putenv (Depends-on): Likewise.
45529         * modules/strdup (Depends-on): Likewise.
45530         * modules/getdelim (Depends-on): Add realloc-posix.
45531         * modules/read-file (Depends-on): Likewise.
45533 2007-09-09  Bruno Haible  <bruno@clisp.org>
45535         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
45536         (gl_FUNC_MALLOC_POSIX): Require it.
45537         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
45538         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
45539         * modules/realloc (Files): Add m4/malloc.m4.
45540         * modules/calloc (Files): Likewise.
45542 2007-09-09  Bruno Haible  <bruno@clisp.org>
45544         * modules/malloc-posix: New file.
45545         * modules/malloc (Depends-on): Add malloc-posix.
45546         * lib/malloc.c: Include errno.h.
45547         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
45548         and a POSIX-compatible malloc into a single function. Set ENOMEM
45549         when returning NULL.
45550         * m4/malloc.m4: New file.
45551         * doc/functions/malloc.texi: Mention the malloc-posix module.
45552         * lib/stdlib_.h (malloc): New declaration.
45553         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
45554         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
45555         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
45556         and HAVE_MALLOC_POSIX.
45558 2007-09-09  Bruno Haible  <bruno@clisp.org>
45560         * modules/realloc-posix: New file.
45561         * modules/realloc (Depends-on): Add realloc-posix.
45562         * lib/realloc.c: Include errno.h.
45563         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
45564         and a POSIX-compatible realloc into a single function. Set ENOMEM
45565         when returning NULL.
45566         * m4/realloc.m4: New file.
45567         * doc/functions/realloc.texi: Mention the realloc-posix module.
45568         * lib/stdlib_.h (realloc): New declaration.
45569         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
45570         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
45571         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
45572         and HAVE_REALLOC_POSIX.
45574 2007-09-09  Bruno Haible  <bruno@clisp.org>
45576         * modules/calloc-posix: New file.
45577         * modules/calloc (Depends-on): Add calloc-posix.
45578         * lib/calloc.c: Include errno.h.
45579         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
45580         and a POSIX-compatible calloc into a single function. Set ENOMEM
45581         when returning NULL.
45582         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
45583         * doc/functions/calloc.texi: Mention the calloc-posix module.
45584         * lib/stdlib_.h (calloc): New declaration.
45585         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
45586         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
45587         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
45588         and HAVE_CALLOC_POSIX.
45590 2007-09-09  Bruno Haible  <bruno@clisp.org>
45592         Allow for modules to show an arbitrary notice.
45593         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
45594         * gnulib-tool: New option --extract-notice.
45595         (func_usage): Document it.
45596         (sed_extract_prog): Update.
45597         (func_get_notice): New function.
45598         (func_modules_notice): New function.
45599         (func_import, func_create_testdir): Invoke it.
45600         Suggested by Jim Meyering.
45602 2007-09-09  Bruno Haible  <bruno@clisp.org>
45604         * gnulib-tool: New options --verbose, --quiet.
45605         (func_usage): Document them.
45606         (verbose): New variable.
45607         (func_execute_command): New function.
45608         (func_import): Don't show the module list and the file list if
45609         $verbose < 0.
45610         (func_create_testdir): Likewise. Use func_execute_command.
45611         (func_create_megatestdir): Use func_execute_command.
45613 2007-09-08  Bruno Haible  <bruno@clisp.org>
45615         * gnulib-tool (func_import): Prefer rsync over wget when available,
45616         for fetching the PO files.
45618 2007-09-08  Bruno Haible  <bruno@clisp.org>
45620         * posix-modules: New file. Portions copied from gnulib-tool.
45621         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
45623 2007-09-08  Jim Meyering  <jim@meyering.net>
45625         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
45626         * lib/fpending.h: Rename from __fpending.h.
45627         * lib/fpending.c: Rename from __fpending.c.
45628         Include "fpending.h", not "__fpending.h".
45629         * lib/__fpending.h, lib/__fpending.c: Remove files.
45630         * modules/fpending (Files): Reflect new file names.
45631         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
45633 2007-09-08  Bruno Haible  <bruno@clisp.org>
45635         * m4/inttypes-h.m4: Remove stub file.
45637 2007-09-07  Simon Josefsson  <simon@josefsson.org>
45639         * doc/headers/stdint.texi: Discuss #include_next issue.
45641 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
45643         * build-aux/bootstrap: Remove obsolete comment about wget --help.
45645 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45647         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
45648         in variable name.
45650 2007-09-03  Jim Meyering  <jim@meyering.net>
45652         New module: git-version-gen.
45653         * modules/git-version-gen: New file.
45655         Import changes from coreutils for bootstrap script.
45657         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
45659         bootstrap: uses rsync to download the .po files
45660         * build-aux/bootstrap (po_download_command_format): New global.
45661         (download_po_files): Use rsync.
45662         (update_po_files): Don't remove .po files after download,
45663         so future rsync runs can take advantage of the copies.
45665         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
45667         Solve the unnecessary-.po-file-regeneration problem once and for all.
45668         * build-aux/bootstrap (download_po_files): New function, renamed from
45669         get_translations.  Now, downloads, but doesn't update LINGUAS.
45670         (update_po_files): New function.
45672         bootstrap: Ignore more.
45673         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
45674         uniwidth to e.g., lib/.gitignore.
45675         (slurp): Handle the sys_stat_.h -> sys mapping, too.
45677         * build-aux/bootstrap: New setting: vc_ignore.
45678         (insert_sorted_if_absent): Create $file if absent.
45679         Adapt to new, possibly empty, list: $vc_ignore.
45681         bootstrap: generate more ignorable names
45682         * build-aux/bootstrap (slurp): When generating ignorable names,
45683         also map .sin to .sed, .gperf to .c, and .y to .c.
45685 2007-09-03  Jim Meyering  <jim@meyering.net>
45687         * build-aux/git-version-gen: New file, from coreutils.  For details, see
45688         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
45690 2007-09-02  Bruno Haible  <bruno@clisp.org>
45692         Fix mis-recognition of 'mcs' on QNX 6.
45693         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
45694         output contains the string "Mono".
45695         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
45696         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
45698 2007-09-01  Bruno Haible  <bruno@clisp.org>
45700         Fix collision between uniwidth/* and linebreak modules.
45701         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
45702         u32_width): Remove declarations.
45703         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
45704         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
45705         streq3, streq2, streq1, streq0): Remove functions.
45706         (STREQ): Remove macro.
45707         (is_cjk_encoding): Remove function.
45708         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
45709         (uc_width, u8_width, u16_width, u32_width): Remove functions.
45710         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
45711         * NEWS: Document the change.
45713 2007-09-01  Bruno Haible  <bruno@clisp.org>
45715         * lib/streq.h: Add double-inclusion guard.
45717 2007-09-01  Karl Berry  <karl@gnu.org>
45719         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
45721 2007-08-28  Jim Meyering  <jim@meyering.net>
45723         Rename mreadlink_with_size to areadlink_with_size.
45724         * NEWS: Document the change.
45725         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
45726         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
45727         * lib/mreadlink.h: Rename this to...
45728         * lib/areadlink.h: ...this.
45729         * modules/mreadlink-with-size: Rename this to...
45730         * modules/areadlink-with-size: ...this.
45731         * lib/canonicalize.c: Reflect the renaming.
45732         * modules/canonicalize: Likewise.
45734 2007-08-26  Bruno Haible  <bruno@clisp.org>
45736         * gnulib-tool (func_import): When deciding which files to remove,
45737         consider also dangling symbolic links.
45738         Reported by Eric Blake.
45740 2007-08-26  Bruno Haible  <bruno@clisp.org>
45742         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
45744 2007-08-23  Simon Josefsson  <simon@josefsson.org>
45746         * lib/readline.c: Don't include getline.h, the prototype is now
45747         found in stdio.h.
45749 2007-08-23  Jim Meyering  <jim@meyering.net>
45751         Getdelim touchup.
45752         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
45753         around the funlockfile call, since funlockfile never sets errno.
45754         Don't set errno upon failed realloc.
45756 2007-08-22  Eric Blake  <ebb9@byu.net>
45758         Getline touchups.
45759         * lib/getdelim.c (getdelim): Revert regression that required *n to
45760         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
45761         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
45762         getdelim, rather than whether implementation is missing.
45763         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
45764         * lib/stdio_.h (getline): Also declare if replacement is
45765         required.
45766         * doc/functions/getdelim.texi: New file.
45767         * doc/functions/getline.texi: Likewise.
45768         * doc/gnulib.texi (Function Substitutes): Add new files.
45769         Reported by Bruno Haible.
45771 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
45773         * users.txt: Add Guile.
45775 2007-08-22  Eric Blake  <ebb9@byu.net>
45777         * tests/test-getdelim.c (main): Use remove, not unlink.
45778         * tests/test-getline.c (main): Likewise.
45780         Move getline and getdelim into stdio.h, per POSIX 200x.
45781         * modules/getline (Files): Remove getline.h.
45782         (Depends-on): Add stdio.
45783         (configure.ac): Add module indicator.
45784         * modules/getdelim (Files): Remove getdelim.h.
45785         (Depends-on): Add stdio.
45786         (configure.ac): Add module indicator.
45787         * modules/stdio (Makefile.am): Work with new indicators.
45788         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
45789         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
45790         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
45791         * lib/getdelim.h: Delete.
45792         * lib/getline.h: Delete.
45793         * lib/stdio_.h (getdelim, getline): Declare.
45794         * modules/getdelim-tests: New module.
45795         * modules/getline-tests: Likewise.
45796         * tests/test-getdelim.c: New file.
45797         * tests/test-getline.c: Likewise.
45798         * NEWS: Document the change.
45799         * lib/getline.c: Update choice of header.
45800         * lib/csharpcomp.c: Likewise.
45801         * lib/getpass.c: Likewise.
45802         * lib/javacomp.c: Likewise.
45803         * lib/javaversion.c: Likewise.
45804         * lib/yesno.c: Likewise.
45805         * lib/getdelim.c: Likewise.
45806         (getdelim): Set errno on failure, and avoid memory leak.
45808 2007-08-19  Bruno Haible  <bruno@clisp.org>
45810         * modules/closein (Depends-on): Add freadahead.
45811         * lib/closein.c: Include freadahead.h.
45812         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
45813         is zero.
45815 2007-08-19  Bruno Haible  <bruno@clisp.org>
45817         * modules/freadahead-tests: New file.
45818         * tests/test-freadahead.sh: New file.
45819         * tests/test-freadahead.c: New file.
45821         * modules/freadahead: New file.
45822         * lib/freadahead.h: New file.
45823         * lib/freadahead.c: New file.
45824         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
45825         fbufmode, fpurge, freadable, fwritable.
45827 2007-08-19  Eric Blake  <ebb9@byu.net>
45829         Test yesno in combination with closein.
45830         * lib/yesno.c (yesno): Document use of stdin.
45831         * modules/yesno-tests (Files): New module.
45832         * tests/test-yesno.c (main): New file.
45833         * tests/test-yesno.sh: Likewise.
45835 2007-08-19  Bruno Haible  <bruno@clisp.org>
45837         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
45838         * lib/fseeko.c (rpl_fseeko): Likewise.
45839         * lib/fseterr.c (fseterr): Likewise.
45841 2007-08-19  Bruno Haible  <bruno@clisp.org>
45843         * tests/test-lseek.c (main): Disable a test for BeOS.
45844         * doc/functions/lseek.texi: Document the BeOS bug.
45846 2007-08-19  Bruno Haible  <bruno@clisp.org>
45847             Eric Blake  <ebb9@byu.net>
45849         * lib/lseek.c: Include <sys/stat.h>.
45850         (rpl_lseek): Add workaround code also for Unix platforms.
45851         Needed for BeOS.
45852         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
45853         * doc/functions/lseek.texi: Document BeOS definiency.
45855 2007-08-18  Bruno Haible  <bruno@clisp.org>
45857         * modules/fstrcmp-tests: New file.
45858         * tests/test-fstrcmp.c: New file.
45860 2007-08-18  Bruno Haible  <bruno@clisp.org>
45862         * modules/fstrcmp: New file, from GNU gettext with modifications.
45863         * lib/fstrcmp.h: New file, from GNU gettext.
45864         * lib/fstrcmp.c: New file, from GNU gettext.
45865         * MODULES.html.sh (String handling): Add fstrcmp.
45867 2007-08-18  Bruno Haible  <bruno@clisp.org>
45869         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
45870         'bool'.
45871         (diag, compareseq): Remove const from the ctxt argument.
45872         (USE_HEURISTIC): Undefine at the end.
45874 2007-08-18  Jim Meyering  <jim@meyering.net>
45876         New file: lib/idcache.h
45877         * NEWS: Mention the addition.
45878         * modules/idcache (Files): Add lib/idcache.h
45879         * lib/idcache.c: Include "idcache.h".
45880         Don't include <sys/types.h>.
45881         Add a FIXME comment.
45882         Move file-scoped "static" declarations to the top.
45883         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
45885 2007-08-17  Bruno Haible  <bruno@clisp.org>
45886         and Paul Eggert  <eggert@cs.ucla.edu>
45888         * MODULES.html.sh: Add diffseq.
45889         * modules/diffseq: New file.
45890         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
45891         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
45893 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
45895         Import changes from coreutils for bootstrap script.
45897         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
45899         * build-aux/bootstrap (slurp): Work even in environments where
45900         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
45901         current code does not slurp files whose names start with ".", and
45902         this looks like it might be a troublesome area.
45904         2007-07-11  Jim Meyering  <jim@meyering.net>
45906         If there's a GPL vN copyright comment, require that N == 3.
45908         2007-07-08  Jim Meyering  <jim@meyering.net>
45910         Run the coreutils-specific code only if tests/Makefile.am.in exists.
45911         * build-aux/bootstrap (mam_template): Move definition out of loop.
45913         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
45915         * build-aux/bootstrap (symlink_to_dir): Rename function from
45916         symlink_to_gnulib.  Add a directory parameter.  Update all
45917         callers.
45918         (cp_mark_as_generated): Also check for -- and link to -- files in
45919         gl/.
45921         2007-07-08  Jim Meyering  <jim@meyering.net>
45923         Adapt to deeper hierarchy in gnulib.
45924         * build-aux/bootstrap (symlink_to_dir): If the destination
45925         directory doesn't exist, create it. This is required at least for
45926         "lib/uniwidth/cjk.h".
45928         2007-05-15  Jim Meyering  <jim@meyering.net>
45930         * build-aux/bootstrap: Now that generated Makefile.am files
45931         are no longer under version control, they must be created at
45932         bootstrap time.
45934 2007-08-14  Ben Pfaff  <blp@gnu.org>
45936         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
45938 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
45940         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
45941         given the changes below.
45942         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
45943         even on hosts that have padding bits beyond the supported 64.
45945 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
45947         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
45948         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
45949         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
45950         depends on it.
45951         (xstrtol_error): Remove.
45952         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
45953         but with a different signature.
45954         (ATTRIBUTE_NORETURN, __attribute__): New macros.
45955         * lib/xstrtol-error.c: Include exitfail.h.
45956         (xstrtol_fatal): New function, with a different signature from the
45957         old xstrtol_error, so that the caller need not worry about passing
45958         in an exit status, or about storage management of the option argument.
45959         (xstrtol_error): Now a static function.  Redo signature to
45960         implement xstrtol_fatal.  Output the correct number of hyphens in
45961         front of the option so that the caller need not worry about
45962         storage management.
45963         (N_): New macro.
45964         (_): Remove; not used now.
45965         * modules/xstrtol: Depend on getopt.
45966         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
45967         of old STRTOL_FATAL_ERROR macro.
45968         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
45969         of test program.
45970         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
45971         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
45973 2007-08-08  Eric Blake  <ebb9@byu.net>
45975         * lib/xstrtol-error.c: Add missing include.
45977         Move xstrtol messages into gnulib domain, when --pobase is used.
45978         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
45979         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
45980         * modules/xstrtol (Files): Distribute new file.
45981         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
45982         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
45983         * tests/test-xstrtol.c: ...into new file.
45984         * tests/test-xstrtoul.c: Also test xstrtoul.
45985         * tests/test-xstrtoimax.c: Also test xstrtoimax.
45986         * tests/test-xstrtoumax.c: Also test xstrtoumax.
45987         * tests/test-xstrtol.sh: Drive the tests.
45988         * tests/test-xstrtoimax.sh: Likewise.
45989         * tests/test-xstrtoumax.sh: Likewise.
45990         * modules/xstrtol-tests: New module.
45991         * modules/xstrtoimax-tests: Likewise.
45992         * modules/xstrtoumax-tests: Likewise.
45994 2007-08-08  Jim Meyering  <jim@meyering.net>
45996         New function: mfile_name_concat.
45997         * lib/filenamecat.c (mfile_name_concat): New function, just like
45998         file_name_concat, but return NULL upon failure rather than exiting
45999         with a diagnostic.
46000         * lib/filenamecat.h: Declare it.
46002 2007-08-07  Bruno Haible  <bruno@clisp.org>
46004         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
46005         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
46006         warning from gcc.
46007         Reported by Eric Blake.
46009 2007-08-07  Simon Josefsson  <simon@josefsson.org>
46011         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
46012         * modules/crypto/arcfour (License): Likewise.
46013         * modules/crypto/des-tests (License): Likewise.
46014         * modules/crypto/gc-arctwo-tests (License): Likewise.
46015         * modules/crypto/gc-des-tests (License): Likewise.
46016         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
46017         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
46018         * modules/crypto/gc-md2-tests (License): Likewise.
46019         * modules/crypto/gc-md4-tests (License): Likewise.
46020         * modules/crypto/gc-md5-tests (License): Likewise.
46021         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
46022         * modules/crypto/gc-rijndael-tests (License): Likewise.
46023         * modules/crypto/gc-sha1-tests (License): Likewise.
46024         * modules/crypto/gc-tests (License): Likewise.
46025         * modules/crypto/hmac-md5 (License): Likewise.
46026         * modules/crypto/hmac-sha1 (License): Likewise.
46027         * modules/crypto/md2-tests (License): Likewise.
46028         * modules/crypto/md4-tests (License): Likewise.
46029         * modules/crypto/md5 (License): Likewise.
46030         * modules/crypto/rijndael (License): Likewise.
46031         * modules/crypto/sha1 (License): Likewise.
46032         * modules/memxor (License): Likewise.
46034 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
46035         and Bruno Haible  <bruno@clisp.org>
46037         * NEWS: Describe interface changes to human, xstrtol.
46038         * lib/human.h: Include <xstrtol.h>.
46039         (human_options): Return enum strtol_error, not int.  Remove
46040         bool arg; take int * instead.
46041         * lib/human.c: Don't include "gettext.h".
46042         (_): Remove; no longer used.
46043         Don't include <xstrtol.h>, since human.h does it.
46044         (human_options): Adjust to abovementioned interface changes.
46045         Do not report error to stderr; that's now the caller's
46046         responsibility.
46047         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
46048         interface change.
46049         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
46050         Str, Argument_type_string.  All uses changed.  Put " argument"
46051         in diagnostics to make them clearer.  Change wording of suffix
46052         message for clarity.
46053         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
46054         Argument_type_string.
46055         (STRTOL_FATAL_WARN): Remove; no longer used.
46056         * modules/human (Depends-on): Remove gettext-h.
46058 2007-08-06  Simon Josefsson  <simon@josefsson.org>
46060         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
46062 2007-07-31  Bruno Haible  <bruno@clisp.org>
46064         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
46065         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
46066         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
46068 2007-07-31  Bruno Haible  <bruno@clisp.org>
46070         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
46071         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
46073 2007-07-30  Bruno Haible  <bruno@clisp.org>
46075         * modules/base64 (License): Use the synonymous term "LGPLv2+".
46076         * modules/c-ctype (License): Likewise.
46077         * modules/c-strcase (License): Likewise.
46078         * modules/check-version (License): Likewise.
46079         * modules/iconv (License): Likewise.
46080         * modules/iconv_open (License): Likewise.
46081         * modules/read-file (License): Likewise.
46082         * modules/striconv (License): Likewise.
46083         * modules/strverscmp (License): Likewise.
46084         * modules/vasprintf (License): Likewise.
46085         * modules/crypto/des (License): Likewise.
46086         * modules/crypto/gc (License): Likewise.
46087         * modules/crypto/gc-arcfour (License): Likewise.
46088         * modules/crypto/gc-arctwo (License): Likewise.
46089         * modules/crypto/gc-des (License): Likewise.
46090         * modules/crypto/gc-hmac-md5 (License): Likewise.
46091         * modules/crypto/gc-hmac-sha1 (License): Likewise.
46092         * modules/crypto/gc-md2 (License): Likewise.
46093         * modules/crypto/gc-md4 (License): Likewise.
46094         * modules/crypto/gc-md5 (License): Likewise.
46095         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
46096         * modules/crypto/gc-random (License): Likewise.
46097         * modules/crypto/gc-rijndael (License): Likewise.
46098         * modules/crypto/gc-sha1 (License): Likewise.
46099         * modules/crypto/md2 (License): Likewise.
46100         * modules/crypto/md4 (License): Likewise.
46102 2007-07-30  Jim Meyering  <jim@meyering.net>
46104         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
46105         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
46106         it has valid stat data.  This bug would cause du not to count the
46107         sizes of inaccessible directories.
46108         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
46109         in <http://bugzilla.redhat.com/250077>.
46111 2007-07-25  Peter O'Gorman  <peter@pogma.com>
46112             Bruno Haible  <bruno@clisp.org>
46114         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
46115         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
46116         #include_next, gives a diagnostic about it, but reports no error in
46117         the exit code.
46118         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
46120 2007-07-24  Ben Pfaff  <blp@gnu.org>
46122         Improve name: "count-one-bits" is better than "popcount".
46123         * MODULES.html.sh: Update name.
46124         * lib/popcount.h: Renamed lib/count-one-bits.h.
46125         (popcount): Renamed count_one_bits.
46126         (popcountl): Renamed count_one_bits_l.
46127         (popcountll): Renamed count_one_bits_ll.
46128         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
46129         * modules/popcount: Renamed module/count-one-bits.
46130         * modules/popcount-tests: Renamed module/count-one-bits-tests.
46131         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
46133 2007-07-23  Ben Pfaff  <blp@gnu.org>
46135         * lib/popcount.h (popcount32): Reduce size of constants, to allow
46136         better code generation, and add U to large constants to avoid
46137         warnings, in non-GCC case.
46138         Suggested by Bruno Haible.
46140 2007-07-23  Ben Pfaff  <blp@gnu.org>
46142         * lib/popcount.h: Use verify_true instead of if...abort.
46143         * modules/popcount: Depend on verify module.
46144         Suggested by Jim Meyering.
46146 2007-07-23  Bruno Haible  <bruno@clisp.org>
46148         * gnulib-tool (func_import): Create a .cvsignore file also when the
46149         directory is not yet in CVS but the toplevel directory is. When
46150         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
46151         Reported by Karl Berry.
46153 2007-07-22  Ben Pfaff  <blp@gnu.org>
46155         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
46156         case.
46157         Suggested by Eric Blake.
46159 2007-07-22  Ben Pfaff  <blp@gnu.org>
46161         New module: popcount.
46162         * MODULES.html.sh: Add popcount.
46163         * modules/popcount: New file.
46164         * modules/popcount-tests: New file.
46165         * tests/test-popcount.c: New file.
46166         * lib/popcount.h: New file.
46167         * m4/popcount.m4: New file.
46169 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
46171         * build-aux/announce-gen: Update to GPLv3.
46173         * build-aux/config.guess: Update from config.
46175 2007-07-21  Bruno Haible  <bruno@clisp.org>
46177         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
46178         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
46180 2007-07-20  Jim Meyering  <jim@meyering.net>
46182         * check-module: Diagnose a self-dependency.
46184 2007-07-19  Bruno Haible  <bruno@clisp.org>
46186         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
46187         empty.
46188         Reported by Eric Blake.
46190 2007-07-18  Bruno Haible  <bruno@clisp.org>
46192         * gnulib-tool: New options --po-base, --po-domain.
46193         (func_usage): Document them.
46194         (pobase, po_domain): New variables.
46195         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
46196         DEFAULT_TEXT_DOMAIN.
46197         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
46198         (func_import): Consider pobase and po_domain. Create a po/ directory.
46199         (func_create_testdir): Set pobase and po_domain to empty.
46200         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
46201         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
46203 2007-07-18  Bruno Haible  <bruno@clisp.org>
46205         * gnulib-tool (func_get_automake_snippet): Synthesize also an
46206         EXTRA_DIST augmentation for files in build-aux/.
46208 2007-07-16  Bruno Haible  <bruno@clisp.org>
46210         * modules/lseek (License): Use the synonymous term "LGPLv2+".
46211         * modules/getdelim (License): Likewise.
46213 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46215         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
46216         * modules/d-type (License): Likewise.
46217         * modules/extensions (License): Likewise.
46218         * modules/fnmatch (License): Likewise.
46219         * modules/fseeko (License): Likewise.
46220         * modules/getaddrinfo (License): Likewise.
46221         * modules/getline (License): Likewise.
46222         * modules/getlogin_r (License): Likewise.
46223         * modules/getpass (License): Likewise.
46224         * modules/gettimeofday (License): Likewise.
46225         * modules/glob (License): Likewise.
46226         * modules/inet_ntop (License): Likewise.
46227         * modules/malloc (License): Likewise.
46228         * modules/malloca (License): Likewise.
46229         * modules/memmem (License): Likewise.
46230         * modules/mempcpy (License): Likewise.
46231         * modules/memset (License): Likewise.
46232         * modules/minmax (License): Likewise.
46233         * modules/mktime (License): Likewise.
46234         * modules/netinet_in (License): Likewise.
46235         * modules/pathmax (License): Likewise.
46236         * modules/poll (License): Likewise.
46237         * modules/regex (License): Likewise.
46238         * modules/snprintf (License): Likewise.
46239         * modules/stdbool (License): Likewise.
46240         * modules/stdint (License): Likewise.
46241         * modules/stdio (License): Likewise.
46242         * modules/strcase (License): Likewise.
46243         * modules/strcasestr (License): Likewise.
46244         * modules/strdup (License): Likewise.
46245         * modules/string (License): Likewise.
46246         * modules/strndup (License): Likewise.
46247         * modules/strnlen (License): Likewise.
46248         * modules/strpbrk (License): Likewise.
46249         * modules/strptime (License): Likewise.
46250         * modules/strsep (License): Likewise.
46251         * modules/sys_select (License): Likewise.
46252         * modules/sys_socket (License): Likewise.
46253         * modules/sys_stat (License): Likewise.
46254         * modules/sys_time (License): Likewise.
46255         * modules/time (License): Likewise.
46256         * modules/time_r (License): Likewise.
46257         * modules/timegm (License): Likewise.
46258         * modules/unistd (License): Likewise.
46259         * modules/vsnprintf (License): Likewise.
46260         * modules/wctype (License): Likewise.
46262 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46264         * modules/argz (License): LGPLv2+.
46266 2007-07-15  Karl Berry  <karl@gnu.org>
46268         * doc/gnulib.texi: revise node structure per new fdl.texi.
46270 2007-07-14  Bruno Haible  <bruno@clisp.org>
46272         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
46273         the output file.
46274         * lib/uniname/uninames.h: Regenerated.
46276 2007-07-14  Karl Berry  <karl@gnu.org>
46278         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
46279         omitting sectioning and index commands.
46281 2007-07-13  Bruno Haible  <bruno@clisp.org>
46283         New gnulib-tool option --more-symlinks.
46284         * gnulib-tool (func_usage): Document --more-symlinks.
46285         (do_copyrights): New variable.
46286         Recognize option --more-symlinks.
46287         (func_import): Don't add a copyright notice transform to
46288         sed_transform_lib_file if do_copyrights is empty.
46290 2007-07-13  Bruno Haible  <bruno@clisp.org>
46292         * lib/vasnprintf.c (decimal_point_char): Define also if
46293         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
46294         && !NEED_PRINTF_DIRECTIVE_A.
46295         Reported by Clemens Koller <clemens.koller@anagramm.de> via
46296         Gary V. Vaughan <gary@gnu.org>.
46298 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
46300         * lib/inttypes_.h: Undo previous change, since it was fixed
46301         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
46303 2007-07-13  Bruno Haible  <bruno@clisp.org>
46305         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
46306         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
46308 2007-07-13  Jim Meyering  <jim@meyering.net>
46310         df: Don't fail for Tru64's "file-on-file mount".
46311         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
46312         so we fall through and use statfs instead.  Details here:
46313         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
46314         Reported by Albert Chin.
46316 2007-07-13  Bruno Haible  <bruno@clisp.org>
46318         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
46319         * modules/configmake (License): Likewise.
46320         * modules/gettext (License): Likewise.
46321         * modules/gettext-h (License): Likewise.
46322         * modules/include_next (License): Likewise.
46323         * modules/link-warning (License): Likewise.
46324         * modules/localcharset (License): Likewise.
46325         * modules/localename (License): Likewise.
46326         * modules/lock (License): Likewise.
46327         * modules/relocatable-lib-lgpl (License): Likewise.
46328         * modules/size_max (License): Likewise.
46329         * modules/vasnprintf (License): Likewise.
46330         * modules/wchar (License): Likewise.
46331         * modules/xsize (License): Likewise.
46333 2007-07-13  Bruno Haible  <bruno@clisp.org>
46335         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
46336         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
46338 2007-07-12  Bruno Haible  <bruno@clisp.org>
46340         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
46341         in the modules files.
46343 2007-07-11  Karl Berry  <karl@gnu.org>
46345         * MODULES.html.sh (func_module): use
46346          sed -e '\|^'"${includefile}"'$|d'
46347          instead of /.../d, to avoid errors on $includefile's containing /.
46349 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
46351         * gnulib-tool (func_import): Avoid duplication of --avoid
46352         statements
46353         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
46354         names to `_' in variable names.
46356 2007-07-10  Eric Blake  <ebb9@byu.net>
46358         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
46359         * NEWS: Document this change.
46361 2007-07-08  Bruno Haible  <bruno@clisp.org>
46363         Update to Unicode 5.0.
46364         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
46365         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
46366         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
46367         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
46368         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
46369         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
46370         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
46371         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
46372         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
46373         U+10A3F, U+1D242..U+1D244.
46374         (nonspacing_table_ind): Update.
46375         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
46376         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
46378 2007-07-08  Bruno Haible  <bruno@clisp.org>
46380         Update to Unicode 5.0.
46381         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
46382         code transform. Extend the name index field of unicode_name_to_code and
46383         unicode_code_to_name from 16 to 24 bits.
46384         * lib/uniname/uniname.c (unicode_character_name,
46385         unicode_name_character): Add the range 0x12xxx to the code transform.
46386         * lib/uniname/uninames.h: Regenerated.
46387         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
46389 2007-07-07  Bruno Haible  <bruno@clisp.org>
46391         * modules/wcwidth-tests: New file.
46392         * tests/test-wcwidth.c: New file.
46394         Work around MacOS X wcwidth() bug.
46395         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
46396         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
46397         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
46398         original wcwidth in non-UTF-8 locales.
46399         * modules/wcwidth (Depends-on): Add localcharset, streq,
46400         uniwidth/width.
46401         * doc/functions/wcwidth.texi: Update.
46403 2007-07-07  Bruno Haible  <bruno@clisp.org>
46405         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
46406         (wcwidth): New declaration.
46407         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
46408         macros.
46409         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
46410         here. Prepare for creating <wchar.h> unconditionally.
46411         * modules/wchar (Depends-on): Add link-warning.
46412         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
46413         REPLACE_WCWIDTH, and GL_LINK_WARNING.
46414         * lib/wcwidth.h: Remove file.
46415         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
46416         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
46417         * modules/wcwidth (Files): Remove lib/wcwidth.h.
46418         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
46419         (Include): Replace wcwidth.h with <wchar.h>.
46420         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
46421         * lib/mbchar.h: Don't include wcwidth.h.
46422         * lib/mbswidth.c: Likewise.
46423         * NEWS: Mention the change.
46425 2007-07-07  Bruno Haible  <bruno@clisp.org>
46427         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
46428         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
46429         definition with an external declaration.
46430         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
46431         defined as a function. Remove AC_C_INLINE requirement.
46432         * modules/wcwidth (Files): Add lib/wcwidth.c.
46433         (Makefile.am): Remove redundant statement.
46435 2007-07-07  Bruno Haible  <bruno@clisp.org>
46437         * MODULES.html.sh (Unicode string functions): Add the new modules.
46439         * tests/uniwidth/test-u32-strwidth.c: New file.
46440         * modules/uniwidth/u32-strwidth-tests: New file.
46442         * lib/uniwidth/u32-strwidth.c: New file.
46443         * modules/uniwidth/u32-strwidth: New file.
46445         * tests/uniwidth/test-u16-strwidth.c: New file.
46446         * modules/uniwidth/u16-strwidth-tests: New file.
46448         * lib/uniwidth/u16-strwidth.c: New file.
46449         * modules/uniwidth/u16-strwidth: New file.
46451         * tests/uniwidth/test-u8-strwidth.c: New file.
46452         * modules/uniwidth/u8-strwidth-tests: New file.
46454         * lib/uniwidth/u8-strwidth.c: New file.
46455         * modules/uniwidth/u8-strwidth: New file.
46457         * tests/uniwidth/test-u32-width.c: New file.
46458         * modules/uniwidth/u32-width-tests: New file.
46460         * lib/uniwidth/u32-width.c: New file.
46461         * modules/uniwidth/u32-width: New file.
46463         * tests/uniwidth/test-u16-width.c: New file.
46464         * modules/uniwidth/u16-width-tests: New file.
46466         * lib/uniwidth/u16-width.c: New file.
46467         * modules/uniwidth/u16-width: New file.
46469         * tests/uniwidth/test-u8-width.c: New file.
46470         * modules/uniwidth/u8-width-tests: New file.
46472         * lib/uniwidth/u8-width.c: New file.
46473         * modules/uniwidth/u8-width: New file.
46475         * tests/uniwidth/test-uc_width.c: New file.
46476         * modules/uniwidth/width-tests: New file.
46478         * lib/uniwidth/width.c: New file, from GNU libiconv.
46479         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
46480         * modules/uniwidth/width: New file.
46482         * lib/uniwidth.h: New file, from GNU libiconv.
46483         * modules/uniwidth/base: New file.
46485 2007-07-07  Bruno Haible  <bruno@clisp.org>
46487         * lib/uniname.h: New file, from GNU gettext.
46488         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
46489         * lib/uniname/uninames.h: New file, from GNU gettext.
46490         * lib/uniname/uniname.c: New file, from GNU gettext.
46491         * tests/uniname/test-uninames.sh: New file.
46492         * tests/uniname/test-uninames.c: New file, from GNU gettext.
46493         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
46494         * modules/uniname/base: New file.
46495         * modules/uniname/uniname: New file.
46496         * modules/uniname/uniname-tests: New file.
46497         * MODULES.html.sh (Unicode string functions): Add the new modules.
46499 2007-07-06  Bruno Haible  <bruno@clisp.org>
46501         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
46503 2007-07-06  Bruno Haible  <bruno@clisp.org>
46505         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
46506         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
46507         includes <cygwin/sys_time.h> which includes <sys/select.h> which
46508         include <sys/time.h>.
46509         Reported by Eric Blake.
46511 2007-07-06  Eric Blake  <ebb9@byu.net>
46513         Fix testing canonicalize on cygwin.
46514         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
46515         Revert patch from 2007-06-19.
46516         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
46517         canonicalize module is also in use.
46518         * tests/test-canonicalize.c: New file.
46519         * tests/test-canonicalize.sh: Likewise.
46520         * modules/canonicalize-tests: Likewise.
46522 2007-07-06  Jim Meyering  <jim@meyering.net>
46524         * lib/getugroups.c (getugroups): Detect getgrent failure.
46525         Adjust comment to reflect reality: this function may return -1.
46527 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
46529         * build-aux/bootstrap (TP_URL,get_translations): Update to use
46530         the new TP address.
46531         (usage): Fix typo
46532         (gnulib_mk): New variable.
46534 2007-07-05  Jim Meyering  <jim@meyering.net>
46536         Don't let endgrent clobber errno, no matter how improbable.
46537         * lib/getugroups.c (getugroups): Save and restore errno around
46538         endgrent call.
46540         Close the group DB even when failing with 2^31 or more members.
46541         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
46543 2007-07-04  Jim Meyering  <jim@meyering.net>
46545         * lib/getugroups.h: New file.
46546         * lib/getugroups.c: Include "getugroups.h".
46547         Remove uses of "register" keyword.
46548         Move local variable, "cp", down into scope where used.
46549         Give "username" parameter the "const" attribute.
46550         * modules/getugroups (Files): Add lib/getugroups.h
46552 2007-07-04  Karl Berry  <karl@gnu.org>
46554         * MODULES.html.sh (func_all_modules): Complete rename of
46555         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
46557 2007-07-02  Bruno Haible  <bruno@clisp.org>
46559         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
46560         mode, when inttypes.h comes from gnulib.
46561         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
46563 2007-07-02  Simon Josefsson  <simon@josefsson.org>
46565         * NEWS: Mention lgpl module name change.
46567         * modules/lgpl-2.1: Renamed from lgpl.
46569         * NEWS: Mention gpl module name change.
46571         * modules/gpl-3.0: New file, based on gpl-2.0.
46573         * modules/gpl-2.0: Renamed from gpl.
46575         * modules/gpl: Fix filename, doc/gpl.texi is now found at
46576         doc/gpl-2.0.texi.
46578 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
46580         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
46581         #define __STDC_LIMIT_MACROS temporarily while including
46582         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
46583         Problem reported by Joel E. Denny in
46584         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
46586 2007-07-01  Bruno Haible  <bruno@clisp.org>
46588         * lib/unistdio.h: New file.
46589         * lib/unistdio/u-asnprintf.h: New file.
46590         * lib/unistdio/u-asprintf.h: New file.
46591         * lib/unistdio/u-printf-args.c: New file.
46592         * lib/unistdio/u-printf-args.h: New file.
46593         * lib/unistdio/u-printf-parse.h: New file.
46594         * lib/unistdio/u-snprintf.h: New file.
46595         * lib/unistdio/u-sprintf.h: New file.
46596         * lib/unistdio/u-vasprintf.h: New file.
46597         * lib/unistdio/u-vsnprintf.h: New file.
46598         * lib/unistdio/u-vsprintf.h: New file.
46599         * lib/unistdio/ulc-asnprintf.c: New file.
46600         * lib/unistdio/ulc-asprintf.c: New file.
46601         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
46602         * lib/unistdio/ulc-printf-parse.c: New file.
46603         * lib/unistdio/ulc-snprintf.c: New file.
46604         * lib/unistdio/ulc-sprintf.c: New file.
46605         * lib/unistdio/ulc-vasnprintf.c: New file.
46606         * lib/unistdio/ulc-vasprintf.c: New file.
46607         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
46608         * lib/unistdio/ulc-vsnprintf.c: New file.
46609         * lib/unistdio/ulc-vsprintf.c: New file.
46610         * lib/unistdio/u8-asnprintf.c: New file.
46611         * lib/unistdio/u8-asprintf.c: New file.
46612         * lib/unistdio/u8-printf-parse.c: New file.
46613         * lib/unistdio/u8-snprintf.c: New file.
46614         * lib/unistdio/u8-sprintf.c: New file.
46615         * lib/unistdio/u8-vasnprintf.c: New file.
46616         * lib/unistdio/u8-vasprintf.c: New file.
46617         * lib/unistdio/u8-vsnprintf.c: New file.
46618         * lib/unistdio/u8-vsprintf.c: New file.
46619         * lib/unistdio/u8-u8-asnprintf.c: New file.
46620         * lib/unistdio/u8-u8-asprintf.c: New file.
46621         * lib/unistdio/u8-u8-snprintf.c: New file.
46622         * lib/unistdio/u8-u8-sprintf.c: New file.
46623         * lib/unistdio/u8-u8-vasnprintf.c: New file.
46624         * lib/unistdio/u8-u8-vasprintf.c: New file.
46625         * lib/unistdio/u8-u8-vsnprintf.c: New file.
46626         * lib/unistdio/u8-u8-vsprintf.c: New file.
46627         * lib/unistdio/u16-asnprintf.c: New file.
46628         * lib/unistdio/u16-asprintf.c: New file.
46629         * lib/unistdio/u16-printf-parse.c: New file.
46630         * lib/unistdio/u16-snprintf.c: New file.
46631         * lib/unistdio/u16-sprintf.c: New file.
46632         * lib/unistdio/u16-vasnprintf.c: New file.
46633         * lib/unistdio/u16-vasprintf.c: New file.
46634         * lib/unistdio/u16-vsnprintf.c: New file.
46635         * lib/unistdio/u16-vsprintf.c: New file.
46636         * lib/unistdio/u16-u16-asnprintf.c: New file.
46637         * lib/unistdio/u16-u16-asprintf.c: New file.
46638         * lib/unistdio/u16-u16-snprintf.c: New file.
46639         * lib/unistdio/u16-u16-sprintf.c: New file.
46640         * lib/unistdio/u16-u16-vasnprintf.c: New file.
46641         * lib/unistdio/u16-u16-vasprintf.c: New file.
46642         * lib/unistdio/u16-u16-vsnprintf.c: New file.
46643         * lib/unistdio/u16-u16-vsprintf.c: New file.
46644         * lib/unistdio/u32-asnprintf.c: New file.
46645         * lib/unistdio/u32-asprintf.c: New file.
46646         * lib/unistdio/u32-printf-parse.c: New file.
46647         * lib/unistdio/u32-snprintf.c: New file.
46648         * lib/unistdio/u32-sprintf.c: New file.
46649         * lib/unistdio/u32-vasnprintf.c: New file.
46650         * lib/unistdio/u32-vasprintf.c: New file.
46651         * lib/unistdio/u32-vsnprintf.c: New file.
46652         * lib/unistdio/u32-vsprintf.c: New file.
46653         * lib/unistdio/u32-u32-asnprintf.c: New file.
46654         * lib/unistdio/u32-u32-asprintf.c: New file.
46655         * lib/unistdio/u32-u32-snprintf.c: New file.
46656         * lib/unistdio/u32-u32-sprintf.c: New file.
46657         * lib/unistdio/u32-u32-vasnprintf.c: New file.
46658         * lib/unistdio/u32-u32-vasprintf.c: New file.
46659         * lib/unistdio/u32-u32-vsnprintf.c: New file.
46660         * lib/unistdio/u32-u32-vsprintf.c: New file.
46661         * tests/unistdio/test-ulc-asnprintf1.c: New file.
46662         * tests/unistdio/test-ulc-asnprintf1.h: New file.
46663         * tests/unistdio/test-ulc-printf1.h: New file.
46664         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
46665         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
46666         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
46667         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
46668         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
46669         * tests/unistdio/test-ulc-vasprintf1.c: New file.
46670         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
46671         * tests/unistdio/test-ulc-vsprintf1.c: New file.
46672         * tests/unistdio/test-u8-asnprintf1.c: New file.
46673         * tests/unistdio/test-u8-asnprintf1.h: New file.
46674         * tests/unistdio/test-u8-printf1.h: New file.
46675         * tests/unistdio/test-u8-vasnprintf1.c: New file.
46676         * tests/unistdio/test-u8-vasnprintf2.c: New file.
46677         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
46678         * tests/unistdio/test-u8-vasnprintf3.c: New file.
46679         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
46680         * tests/unistdio/test-u8-vasprintf1.c: New file.
46681         * tests/unistdio/test-u8-vsnprintf1.c: New file.
46682         * tests/unistdio/test-u8-vsprintf1.c: New file.
46683         * tests/unistdio/test-u16-asnprintf1.c: New file.
46684         * tests/unistdio/test-u16-asnprintf1.h: New file.
46685         * tests/unistdio/test-u16-printf1.h: New file.
46686         * tests/unistdio/test-u16-vasnprintf1.c: New file.
46687         * tests/unistdio/test-u16-vasnprintf2.c: New file.
46688         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
46689         * tests/unistdio/test-u16-vasnprintf3.c: New file.
46690         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
46691         * tests/unistdio/test-u16-vasprintf1.c: New file.
46692         * tests/unistdio/test-u16-vsnprintf1.c: New file.
46693         * tests/unistdio/test-u16-vsprintf1.c: New file.
46694         * tests/unistdio/test-u32-asnprintf1.c: New file.
46695         * tests/unistdio/test-u32-asnprintf1.h: New file.
46696         * tests/unistdio/test-u32-printf1.h: New file.
46697         * tests/unistdio/test-u32-vasnprintf1.c: New file.
46698         * tests/unistdio/test-u32-vasnprintf2.c: New file.
46699         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
46700         * tests/unistdio/test-u32-vasnprintf3.c: New file.
46701         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
46702         * tests/unistdio/test-u32-vasprintf1.c: New file.
46703         * tests/unistdio/test-u32-vsnprintf1.c: New file.
46704         * tests/unistdio/test-u32-vsprintf1.c: New file.
46705         * modules/unistdio/base: New file.
46706         * modules/unistdio/u-printf-args: New file.
46707         * modules/unistdio/ulc-asnprintf: New file.
46708         * modules/unistdio/ulc-asprintf: New file.
46709         * modules/unistdio/ulc-fprintf: New file.
46710         * modules/unistdio/ulc-printf-parse: New file.
46711         * modules/unistdio/ulc-snprintf: New file.
46712         * modules/unistdio/ulc-sprintf: New file.
46713         * modules/unistdio/ulc-vasnprintf: New file.
46714         * modules/unistdio/ulc-vasprintf: New file.
46715         * modules/unistdio/ulc-vfprintf: New file.
46716         * modules/unistdio/ulc-vsnprintf: New file.
46717         * modules/unistdio/ulc-vsprintf: New file.
46718         * modules/unistdio/u8-asnprintf: New file.
46719         * modules/unistdio/u8-asprintf: New file.
46720         * modules/unistdio/u8-printf-parse: New file.
46721         * modules/unistdio/u8-snprintf: New file.
46722         * modules/unistdio/u8-sprintf: New file.
46723         * modules/unistdio/u8-vasnprintf: New file.
46724         * modules/unistdio/u8-vasprintf: New file.
46725         * modules/unistdio/u8-vsnprintf: New file.
46726         * modules/unistdio/u8-vsprintf: New file.
46727         * modules/unistdio/u8-u8-asnprintf: New file.
46728         * modules/unistdio/u8-u8-asprintf: New file.
46729         * modules/unistdio/u8-u8-snprintf: New file.
46730         * modules/unistdio/u8-u8-sprintf: New file.
46731         * modules/unistdio/u8-u8-vasnprintf: New file.
46732         * modules/unistdio/u8-u8-vasprintf: New file.
46733         * modules/unistdio/u8-u8-vsnprintf: New file.
46734         * modules/unistdio/u8-u8-vsprintf: New file.
46735         * modules/unistdio/u16-asnprintf: New file.
46736         * modules/unistdio/u16-asprintf: New file.
46737         * modules/unistdio/u16-printf-parse: New file.
46738         * modules/unistdio/u16-snprintf: New file.
46739         * modules/unistdio/u16-sprintf: New file.
46740         * modules/unistdio/u16-vasnprintf: New file.
46741         * modules/unistdio/u16-vasprintf: New file.
46742         * modules/unistdio/u16-vsnprintf: New file.
46743         * modules/unistdio/u16-vsprintf: New file.
46744         * modules/unistdio/u16-u16-asnprintf: New file.
46745         * modules/unistdio/u16-u16-asprintf: New file.
46746         * modules/unistdio/u16-u16-snprintf: New file.
46747         * modules/unistdio/u16-u16-sprintf: New file.
46748         * modules/unistdio/u16-u16-vasnprintf: New file.
46749         * modules/unistdio/u16-u16-vasprintf: New file.
46750         * modules/unistdio/u16-u16-vsnprintf: New file.
46751         * modules/unistdio/u16-u16-vsprintf: New file.
46752         * modules/unistdio/u32-asnprintf: New file.
46753         * modules/unistdio/u32-asprintf: New file.
46754         * modules/unistdio/u32-printf-parse: New file.
46755         * modules/unistdio/u32-snprintf: New file.
46756         * modules/unistdio/u32-sprintf: New file.
46757         * modules/unistdio/u32-vasnprintf: New file.
46758         * modules/unistdio/u32-vasprintf: New file.
46759         * modules/unistdio/u32-vsnprintf: New file.
46760         * modules/unistdio/u32-vsprintf: New file.
46761         * modules/unistdio/u32-u32-asnprintf: New file.
46762         * modules/unistdio/u32-u32-asprintf: New file.
46763         * modules/unistdio/u32-u32-snprintf: New file.
46764         * modules/unistdio/u32-u32-sprintf: New file.
46765         * modules/unistdio/u32-u32-vasnprintf: New file.
46766         * modules/unistdio/u32-u32-vasprintf: New file.
46767         * modules/unistdio/u32-u32-vsnprintf: New file.
46768         * modules/unistdio/u32-u32-vsprintf: New file.
46769         * modules/unistdio/ulc-asnprintf-tests: New file.
46770         * modules/unistdio/ulc-vasnprintf-tests: New file.
46771         * modules/unistdio/ulc-vasprintf-tests: New file.
46772         * modules/unistdio/ulc-vsnprintf-tests: New file.
46773         * modules/unistdio/ulc-vsprintf-tests: New file.
46774         * modules/unistdio/u8-asnprintf-tests: New file.
46775         * modules/unistdio/u8-vasnprintf-tests: New file.
46776         * modules/unistdio/u8-vasprintf-tests: New file.
46777         * modules/unistdio/u8-vsnprintf-tests: New file.
46778         * modules/unistdio/u8-vsprintf-tests: New file.
46779         * modules/unistdio/u16-asnprintf-tests: New file.
46780         * modules/unistdio/u16-vasnprintf-tests: New file.
46781         * modules/unistdio/u16-vasprintf-tests: New file.
46782         * modules/unistdio/u16-vsnprintf-tests: New file.
46783         * modules/unistdio/u16-vsprintf-tests: New file.
46784         * modules/unistdio/u32-asnprintf-tests: New file.
46785         * modules/unistdio/u32-vasnprintf-tests: New file.
46786         * modules/unistdio/u32-vasprintf-tests: New file.
46787         * modules/unistdio/u32-vsnprintf-tests: New file.
46788         * modules/unistdio/u32-vsprintf-tests: New file.
46789         * MODULES.html.sh (Unicode string functions): Add the new modules.
46791 2007-07-01  Bruno Haible  <bruno@clisp.org>
46793         * lib/sprintf.c (sprintf): Limit the available length estimation,
46794         to avoid address wraparound.
46795         * lib/vsprintf.c (vsprintf): Likewise.
46796         * modules/sprintf-posix (Dependencies): Add stdint.
46797         * modules/vsprintf-posix (Dependencies): Likewise.
46799 2007-07-01  Bruno Haible  <bruno@clisp.org>
46801         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
46802         Windows PATH as well. Conservative double-quoting. Comments.
46804 2007-07-01  Bruno Haible  <bruno@clisp.org>
46805             Eric Blake  <ebb9@byu.net>
46806             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46808         * gnulib-tool (self_abspathname): Fix algorithm to cope with
46809         empty components in $PATH, denoting '.'.
46811 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46813         * gnulib-tool: Fix indentation.
46814         (func_create_megatestdir): Likewise.
46815         Report by Bruno Haible.
46817 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46819         Sync from Automake.
46820         * build-aux/gnupload: Fix shell portability issues with for loops.
46821         Report by Karl Berry.
46823 2007-06-29  Simon Josefsson  <simon@josefsson.org>
46825         * build-aux/maint.mk (POURL): Use translationproject.org.
46827 2007-06-27  Simon Josefsson  <simon@josefsson.org>
46828             Bruno Haible  <bruno@clisp.org>
46830         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
46831         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
46832         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
46833         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
46834         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
46836 2007-06-27  Bruno Haible  <bruno@clisp.org>
46838         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
46839         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
46841 2007-06-26  Karl Berry  <karl@gnu.org>
46843         * MODULES.html.sh: remove xreadlink-with-size.
46845 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
46847         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
46848         method that I hope also handles the double-include problem noted
46849         by Bruno Haible in
46850         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
46852 2007-06-23  Bruno Haible  <bruno@clisp.org>
46854         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
46855         Don't let the 'mostlyclean' target fail if the last subdirectory could
46856         not be removed.
46857         Reported by Karl Berry.
46859 2007-06-23  Bruno Haible  <bruno@clisp.org>
46861         * gnulib-tool (echo): Add a speedier workaround for ksh.
46862         * tests/test-echo.sh: Likewise.
46864 2007-06-23  Bruno Haible  <bruno@clisp.org>
46866         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
46867         * tests/test-echo.sh: Likewise.
46869 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46871         * gnulib-tool (IFS): Initialize early, so we don't set it to
46872         empty later.
46873         (self_abspathname): Rewrite algorithm to set it, reindent.
46874         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
46875         (func_create_megatestdir): Merge some sed scripts.
46877 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
46879         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
46880         exposed by Sun Studio 11 cc on Solaris 8.
46882 2007-06-22  Bruno Haible  <bruno@clisp.org>
46884         * gnulib-tool (echo): Ensure the echo primitive does not interpret
46885         backslashes.
46886         * tests/test-echo.sh: New file.
46888 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46890         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
46891         simplify `sed_replace_build_aux' scripts, they are portable but
46892         echoing them with `echo' is not.
46893         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
46895 2007-06-21  Karl Berry  <karl@gnu.org>
46897         * config/srclist.txt: guess we can't handle the licenses via
46898         srclist at the moment.
46900 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
46902         * MODULES.html.sh: Add include_next.
46903         * modules/include_next: New file.
46905 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
46907         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
46908         INCLUDE_NEXT.
46909         (gl_CHECK_NEXT_HEADERS): New macro.
46910         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
46911         the obsolescent gl_ABSOLUTE_HEADER.
46912         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
46913         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
46914         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
46915         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
46916         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
46917         * m4/math_h.m4 (gl_MATH_H): Likewise.
46918         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
46919         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
46920         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
46921         * m4/stdint.m4 (gl_STDINT_H): Likewise.
46922         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
46923         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
46924         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
46925         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
46926         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
46927         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
46928         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
46929         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
46930         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
46931         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
46932         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
46933         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
46934         * m4/inttypes.m4 (gl_INTTYPES_H): Define
46935         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
46936         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
46937         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
46938         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
46939         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
46940         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
46941         * lib/float_.h: Likewise.
46942         * lib/inttypes_.h: Likewise.
46943         * lib/math_.h: Likewise.
46944         * lib/search_.h: Likewise.
46945         * lib/signal_.h: Likewise.
46946         * lib/stdint_.h: Likewise.
46947         * lib/stdio_.h: Likewise.
46948         * lib/stdlib_.h: Likewise.
46949         * lib/string_.h: Likewise.
46950         * lib/sys_stat_.h: Likewise.
46951         * lib/sys_time_.h: Likewise.
46952         * lib/time_.h: Likewise.
46953         * lib/unistd_.h: Likewise.
46954         * lib/wchar_.h: Likewise.
46955         * lib/wctype_.h: Likewise.
46956         * lib/dirent_.h: Likewise.
46957         * lib/iconv_.h: Likewise.
46958         * lib/locale_.h: Likewise.
46959         * lib/netinet_in_.h: Likewise.
46960         * lib/sys_select_.h: Likewise.
46961         * lib/sys_socket_.h: Likewise.
46962         * lib/sysexits_.h: Likewise.
46963         * modules/fcntl (Depends-on): Depend on include_next, not
46964         absolute_header.
46965         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
46966         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
46967         * modules/fchdir: Likewise.
46968         * modules/float: Likewise.
46969         * modules/iconv_open: Likewise.
46970         * modules/inttypes: Likewise.
46971         * modules/locale: Likewise.
46972         * modules/math: Likewise.
46973         * modules/netinet_in: Likewise.
46974         * modules/search: Likewise.
46975         * modules/signal: Likewise.
46976         * modules/stdint: Likewise.
46977         * modules/stdio: Likewise.
46978         * modules/stdlib: Likewise.
46979         * modules/string: Likewise.
46980         * modules/sys_select: Likewise.
46981         * modules/sys_socket: Likewise.
46982         * modules/sys_stat: Likewise.
46983         * modules/sys_time: Likewise.
46984         * modules/sysexits: Likewise.
46985         * modules/time: Likewise.
46986         * modules/unistd: Likewise.
46987         * modules/wchar: Likewise.
46988         * modules/wctype: Likewise.
46989         * modules/sys_stat: Change maintainer to "all".
46990         * modules/unistd: Likewise.
46992 2007-06-20  Karl Berry  <karl@gnu.org>
46994         * config/srclist.txt: track www changes in license files.
46996 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
46998         * build-aux/bootstrap: Remove stray dot.
46999         Make sure build_aux settings are honored when linking
47000         gnulib_extra_files.
47002 2007-06-19  Eric Blake  <ebb9@byu.net>
47004         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
47005         Allow compilation on cygwin.
47007 2007-06-19  Jim Meyering  <jim@meyering.net>
47009         xreadlink-with-size: Remove module.  No longer used.
47010         Ex-callers now use xreadlink or mreadlink-with-size.
47011         * modules/xreadlink-with-size: Remove module.
47012         * lib/xreadlink-with-size.c: Remove file.
47013         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
47014         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
47015         just before the function definition *is* accurate.
47017         Eliminate one way canonicalize_filename_mode could exit.
47018         * lib/canonicalize.c (canonicalize_filename_mode):
47019         Use mreadlink_with_size, not xreadlink_with_size.
47021 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
47023         Detect porting problems to FreeBSD/arm, which has time_t wider than
47024         long int.  Original problem reported for GNU diff by Xin Li in
47025         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
47026         * modules/getdate (Depends-on): Add intprops, verify.
47027         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
47028         is an integer type no wider than long int.
47030 2007-06-18  Jim Meyering  <jim@meyering.net>
47032         New module: mreadlink-with-size.
47033         * MODULES.html.sh: Add mreadlink-with-size.
47034         * modules/mreadlink-with-size: New module
47035         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
47036         not xreadlink-with-size.
47037         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
47039 2007-06-16  Bruno Haible  <bruno@clisp.org>
47041         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
47042         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
47043         Reported by Gary V. Vaughan <gary@gnu.org>.
47045 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
47047         Revamp lchown so that it lives in unistd.h where it belongs.
47048         * lib/lchown.h: Remove.
47049         * lib/dirchownmod.c: Don't include lib/lchown.h.
47050         * lib/fchownat.c: Likewise.
47051         * lib/openat.c: Likewise.
47052         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
47053         does not follow symlinks.
47054         (EOPNOTSUPP): Define if not defined.
47055         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
47056         is defined to 0.
47057         (lchown): New decl.
47058         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
47059         Do not check for lchown decl.
47060         Set REPLACE_LCHOWN.
47061         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
47062         REPLACE_LCHOWN.
47063         * modules/chown: Make it clear it follows symlinks.
47064         * modules/lchown: Make it clear it doesn't follow symlinks.
47065         (Files): Remove lib/lchown.h
47066         (Depends-on): Add unistd.
47067         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
47068         (Include): Include <unistd.h>, not "lchown.h".
47069         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
47070         REPLACE_LCHOWN.
47072 2007-06-15  Jim Meyering  <jim@meyering.net>
47074         Change license (GPL to LGPL) of fsusage and dependents.
47075         * modules/fsusage (License): Change to LGPL.
47076         * modules/full-read (License): Likewise.
47077         * modules/full-write (License): Likewise.
47078         * modules/safe-read (License): Likewise.
47079         * modules/safe-write (License): Likewise.
47081 2007-06-14  Ben Pfaff  <blp@gnu.org>
47083         Missing part of allocsa -> malloca transition.
47084         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
47085         gl_MALLOCA.
47087 2007-06-12  Bruno Haible  <bruno@clisp.org>
47089         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
47090         to ia64, x86_64, i386.
47091         Reported by Eric Blake.
47093 2007-06-12  Bruno Haible  <bruno@clisp.org>
47095         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
47096         cross-compiling to x86_64.
47098 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
47100         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
47101         glitch reported by Ralf Wildenhues in
47102         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
47104         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
47105         Vin Shelton.
47107 2007-06-11  Bruno Haible  <bruno@clisp.org>
47109         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
47110         replacement string.
47111         Reported by Eric Blake.
47113 2007-06-10  Bruno Haible  <bruno@clisp.org>
47115         Prepare vasnprintf code for use with Unicode strings.
47116         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
47117         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
47118         TYPE_U32_STRING.
47119         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
47120         a_u32_string variants.
47121         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
47122         * lib/printf-args.c: Don't include config.h and the specification
47123         header if PRINTF_FETCHARGS is already defined.
47124         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
47125         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
47126         TYPE_U16_STRING, TYPE_U32_STRING.
47127         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
47128         u16_directive, u16_directives, u32_directive, u32_directives): New
47129         types.
47130         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
47131         New declarations.
47132         * lib/printf-parse.c: Don't include config.h and the specification
47133         header if PRINTF_PARSE is already defined. Eliminate the set of
47134         parameters for WIDE_CHAR_VERSION; the user of this file must provide
47135         them now. Include c-ctype.h.
47136         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
47137         directive and CHAR_T_ONLY_ASCII.
47138         * lib/vasnprintf.c: Don't include config.h and the specification header
47139         if VASNPRINTF is already defined.
47140         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
47141         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
47142         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
47143         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
47144         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
47145         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
47146         code accordingly.
47147         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
47148         pad_ourselves also in this case, with the 'c' and 's' directives, and
47149         with a different notion of "width".
47150         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
47152 2007-06-10  Bruno Haible  <bruno@clisp.org>
47154         * modules/unistr/u32-mbsnlen: New file.
47155         * lib/unistr/u32-mbsnlen.c: New file.
47157         * modules/unistr/u16-mbsnlen: New file.
47158         * lib/unistr/u16-mbsnlen.c: New file.
47160         * modules/unistr/u8-mbsnlen: New file.
47161         * lib/unistr/u8-mbsnlen.c: New file.
47163         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
47164         declarations.
47166 2007-06-10  Bruno Haible  <bruno@clisp.org>
47168         * lib/string_.h (mbsnlen): New declaration.
47169         * lib/mbsnlen.c: New file.
47170         * m4/mbsnlen.m4: New file.
47171         * modules/mbsnlen: New file.
47172         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
47173         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
47174         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
47176 2007-06-10  Bruno Haible  <bruno@clisp.org>
47178         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
47180 2007-06-10  Bruno Haible  <bruno@clisp.org>
47182         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
47183         * lib/mbuiter.h: Likewise.
47185 2007-06-10  Bruno Haible  <bruno@clisp.org>
47187         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
47188         declaration.
47190 2007-06-10  Karl Berry  <karl@gnu.org>
47192         * config/srclist.txt: remove gettext entries, Bruno prefers
47193         to update individually.
47195 2007-06-10  Bruno Haible  <bruno@clisp.org>
47197         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
47198         'maxlen'. Ensure only length + width bytes are allocated, not
47199         length + 1 + width.
47201 2007-06-09  Bruno Haible  <bruno@clisp.org>
47203         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
47204         (CHAR_T): Remove macro.
47205         (VASNPRINTF): Update.
47207 2007-06-09  Bruno Haible  <bruno@clisp.org>
47209         * MODULES.html.sh (Unicode string functions): Add the new modules.
47211         * modules/uniconv/u32-conv-to-enc: New file.
47212         * lib/uniconv/u32-conv-to-enc.c: New file.
47213         * modules/uniconv/u32-conv-to-enc-tests: New file.
47214         * tests/uniconv/test-u32-conv-to-enc.c: New file.
47216         * modules/uniconv/u16-conv-to-enc: New file.
47217         * lib/uniconv/u16-conv-to-enc.c: New file.
47218         * lib/uniconv/u-conv-to-enc.h: New file.
47219         * modules/uniconv/u16-conv-to-enc-tests: New file.
47220         * tests/uniconv/test-u16-conv-to-enc.c: New file.
47222         * modules/uniconv/u8-conv-to-enc: New file.
47223         * lib/uniconv/u8-conv-to-enc.c: New file.
47224         * modules/uniconv/u8-conv-to-enc-tests: New file.
47225         * tests/uniconv/test-u8-conv-to-enc.c: New file.
47227         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
47228         u32_conv_to_encoding): New declarations.
47230 2007-06-09  Bruno Haible  <bruno@clisp.org>
47232         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
47234 2007-06-09  Bruno Haible  <bruno@clisp.org>
47236         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
47237         * modules/malloca: Renamed from modules/allocsa, updated.
47238         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
47239         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
47240         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
47241         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
47242         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
47243         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
47244         * modules/xmalloca: Renamed from modules/xallocsa, updated.
47245         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
47246         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
47247         * modules/c-strcasestr (Depends-on): Update.
47248         * lib/c-strcasestr.c: Update.
47249         * modules/c-strstr (Depends-on): Update.
47250         * lib/c-strstr.c: Update.
47251         * modules/canonicalize-lgpl (Depends-on): Update.
47252         * lib/canonicalize-lgpl.c: Update.
47253         * modules/clean-temp (Depends-on): Update.
47254         * lib/clean-temp.c: Update.
47255         * modules/csharpcomp (Depends-on): Update.
47256         * lib/csharpcomp.c: Update.
47257         * modules/csharpexec (Depends-on): Update.
47258         * lib/csharpexec.c: Update.
47259         * modules/javacomp (Depends-on): Update.
47260         * lib/javacomp.c: Update.
47261         * modules/javaexec (Depends-on): Update.
47262         * lib/javaexec.c: Update.
47263         * modules/mbscasestr (Depends-on): Update.
47264         * lib/mbscasestr.c: Update.
47265         * modules/mbsstr (Depends-on): Update.
47266         * lib/mbsstr.c: Update.
47267         * modules/setenv (Depends-on): Update.
47268         * lib/setenv.c: Update.
47269         * modules/strcasestr (Depends-on): Update.
47270         * lib/strcasestr.c: Update.
47271         * modules/striconveha (Depends-on): Update.
47272         * lib/striconveha.c: Update.
47273         * modules/relocatable-prog-wrapper (Files): Update.
47274         * lib/relocwrapper.c: Update.
47275         * build-aux/install-reloc: Update.
47276         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
47278 2007-06-08  Bruno Haible  <bruno@clisp.org>
47280         Port to uClibc.
47281         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
47282         * lib/fpurge.c (fpurge): Likewise.
47283         * lib/freading.c (freading): Likewise.
47284         * lib/fseeko.c (rpl_fseeko): Likewise.
47285         * lib/fseterr.c (fseterr): Likewise.
47286         * lib/fwriting.c (fwriting): Likewise.
47287         * tests/test-fflush.c (main): Avoid a failure on uClibc.
47289 2007-06-08  Bruno Haible  <bruno@clisp.org>
47291         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
47292         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
47293         * modules/gettext (Files): Add m4/intlmacosx.m4.
47295 2007-06-07  Bruno Haible  <bruno@clisp.org>
47297         * modules/localename-tests: New file.
47298         * tests/test-localename.c: New file.
47300         New module 'localename'.
47301         * lib/localename.h: New file.
47302         * lib/localename.c: New file, from GNU gettext.
47303         * m4/localename.m4: New file.
47304         * modules/localename: New file.
47306 2007-06-07  Bruno Haible  <bruno@clisp.org>
47308         Work around the lack of <wchar.h> on some builds of uClibc.
47309         * doc/headers/wchar.texi: Update.
47310         * lib/wchar_.h: Include <wchar.h> only if it exists.
47311         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
47312         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
47313         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
47314         doesn't exist.
47315         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
47316         * modules/mbfile (Depends-on): Add wchar.
47317         * modules/mbiter (Depends-on): Likewise.
47318         * modules/mbuiter (Depends-on): Likewise.
47319         Reported by Simon Josefsson.
47321 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
47323         Work around problem reported by Steven M. Schweda in
47324         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
47325         Tru64 5.1B with the Compaq compiler environment installed declares
47326         an 'isblank' function but does not define it in the C library.
47327         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
47328         * lib/regex_internal.h (isblank): Likewise.
47329         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
47330         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
47332 2007-06-05  Bruno Haible  <bruno@clisp.org>
47334         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
47335         ia64.
47336         * modules/printf-safe: New file.
47337         * modules/fprintf-posix (Depends-on): Add printf-safe.
47338         * modules/printf-posix (Depends-on): Likewise.
47339         * modules/snprintf-posix (Depends-on): Likewise.
47340         * modules/sprintf-posix (Depends-on): Likewise.
47341         * modules/vasnprintf-posix (Depends-on): Likewise.
47342         * modules/vasprintf-posix (Depends-on): Likewise.
47343         * modules/vfprintf-posix (Depends-on): Likewise.
47344         * modules/vprintf-posix (Depends-on): Likewise.
47345         * modules/vsnprintf-posix (Depends-on): Likewise.
47346         * modules/vsprintf-posix (Depends-on): Likewise.
47347         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
47348         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
47349         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
47350         "no" on i386, x86_64, ia64.
47351         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
47352         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
47353         on i386, x86_64, ia64.
47354         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
47355         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
47356         on i386, x86_64, ia64.
47357         * tests/test-vasnprintf-posix.c: Include float.h.
47358         (LDBL80_WORDS): New macro.
47359         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
47360         on i386, x86_64, ia64.
47361         * tests/test-vasprintf-posix.c: Include float.h.
47362         (LDBL80_WORDS): New macro.
47363         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
47364         on i386, x86_64, ia64.
47365         * tests/test-snprintf-posix.c: Include float.h.
47366         * tests/test-sprintf-posix.c: Likewise.
47367         * tests/test-vsnprintf-posix.c: Likewise.
47368         * tests/test-vsprintf-posix.c: Likewise.
47370 2007-06-05  Bruno Haible  <bruno@clisp.org>
47372         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
47373         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
47374         non-IEEE numbers on i386, x86_64, ia64.
47375         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
47376         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
47377         * tests/test-isnanl.h: Include float.h.
47378         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
47380 2007-06-05  Bruno Haible  <bruno@clisp.org>
47382         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
47383         also the %a / %A. Handle the %a / %A code before this extra handling.
47385 2007-06-05  Bruno Haible  <bruno@clisp.org>
47387         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
47388         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
47390 2007-06-05  Bruno Haible  <bruno@clisp.org>
47392         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
47393         typo in variable name.
47395 2007-06-05  Eric Blake  <ebb9@byu.net>
47397         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
47398         Reported by Simon Josefsson.
47400 2007-06-04  Bruno Haible  <bruno@clisp.org>
47402         Avoid test failures on some PowerPC platforms.
47403         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
47404         Define differently for PowerPC.
47405         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
47406         Reported by Gary V. Vaughan <gary@gnu.org>.
47408 2007-06-02  Bruno Haible  <bruno@clisp.org>
47410         Fix test-stdint failure on FreeBSD/ia64.
47411         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
47412         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
47413         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
47414         * doc/headers/stdint.texi: Update.
47416 2007-06-01  Bruno Haible  <bruno@clisp.org>
47418         * tests/test-binary-io.c (main): Pass a third argument to open().
47419         Reported by Gary V. Vaughan <gary@gnu.org>.
47421 2007-06-01  Bruno Haible  <bruno@clisp.org>
47423         * doc/functions/frexpl.texi: Update for mingw.
47425 2007-06-01  Bruno Haible  <bruno@clisp.org>
47427         * tests/test-lseek.c (main): Disable test of errno for invalid third
47428         argument.
47429         * doc/functions/lseek.texi: Update.
47430         Reported by Gary V. Vaughan <gary@gnu.org>.
47432 2007-05-28  Bruno Haible  <bruno@clisp.org>
47434         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
47436 2007-05-31  Eric Blake  <ebb9@byu.net>
47438         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
47439         cross compiling.
47441 2007-05-30  Eric Blake  <ebb9@byu.net>
47442         and Bruno Haible  <bruno@clisp.org>
47444         Work around mingw test failures exposed by m4-1.4.9b.
47445         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
47446         * tests/test-unistd.c: Disable uid_t and git_t tests for the
47447         moment.
47449 2007-05-30  Bruno Haible  <bruno@clisp.org>
47451         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
47452         assuming that they are closed. Needed on HP-UX 11.
47454 2007-05-29  Bruno Haible  <bruno@clisp.org>
47456         Fix a problem with #include_next.
47457         * lib/dirent_.h: Split the double-inclusion guard.
47458         * lib/fcntl_.h: Likewise.
47459         * lib/float_.h: Likewise.
47460         * lib/iconv_.h: Likewise.
47461         * lib/inttypes_.h: Likewise.
47462         * lib/locale_.h: Likewise.
47463         * lib/math_.h: Likewise.
47464         * lib/netinet_in_.h: Likewise.
47465         * lib/search_.h: Likewise.
47466         * lib/signal_.h: Likewise.
47467         * lib/stdint_.h: Likewise.
47468         * lib/stdio_.h: Likewise.
47469         * lib/stdlib_.h: Likewise.
47470         * lib/string_.h: Likewise.
47471         * lib/sys_select_.h: Likewise.
47472         * lib/sys_socket_.h: Likewise.
47473         * lib/sys_stat_.h: Likewise.
47474         * lib/sys_time_.h: Likewise.
47475         * lib/sysexits_.h: Likewise.
47476         * lib/time_.h: Likewise.
47477         * lib/unistd_.h: Likewise.
47478         * lib/wchar_.h: Likewise.
47479         * lib/wctype_.h: Likewise.
47481 2007-05-29  Bruno Haible  <bruno@clisp.org>
47483         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
47484         for the moment.
47486 2007-05-29  Bruno Haible  <bruno@clisp.org>
47488         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
47489         invocation.
47490         Reported by Eric Blake.
47492 2007-05-29  Bruno Haible  <bruno@clisp.org>
47494         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
47495         compiling case.
47497 2007-05-29  Eric Blake  <ebb9@byu.net>
47498             Bruno Haible  <bruno@clisp.org>
47500         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
47501         cross compiles.
47503 2007-05-28  Eric Blake  <ebb9@byu.net>
47505         * modules/closein-tests (test_closein_LDADD): Support test on
47506         cygwin with libtool.
47508 2007-05-28  Bruno Haible  <bruno@clisp.org>
47510         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
47511         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
47512         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
47513         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
47514         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
47515         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
47516         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
47517         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
47518         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
47520 2007-05-28  Eric Blake  <ebb9@byu.net>
47522         Unconditionally include <config.h> in unit tests.
47523         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
47524         * tests/test-allocsa.c, tests/test-arcfour.c,
47525         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
47526         tests/test-array_list.c, tests/test-array_oset.c,
47527         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
47528         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
47529         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
47530         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
47531         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
47532         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
47533         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
47534         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
47535         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
47536         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
47537         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
47538         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
47539         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
47540         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
47541         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
47542         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
47543         test-md5.c, test-memmem.c, test-printf-posix.c,
47544         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
47545         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
47546         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
47547         test-strcasestr.c, test-striconv.c, test-striconveh.c,
47548         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
47549         test-vasnprintf-posix2.c, test-vasnprintf.c,
47550         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
47551         test-vfprintf-posix.c, test-vprintf-posix.c,
47552         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
47553         test-xvasprintf.c: Likewise.
47555 2007-05-28  Bruno Haible  <bruno@clisp.org>
47557         * gnulib-tool (func_import): Remember the --with-tests command-line
47558         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
47559         Reported by Eric Blake.
47561 2007-05-28  Bruno Haible  <bruno@clisp.org>
47563         * modules/ftell-tests: New file.
47564         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
47565         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
47567         * lib/ftell.c: New file.
47568         * modules/ftell: New file.
47569         * m4/ftell.m4: New file.
47570         * doc/functions/ftell.texi: Update.
47571         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
47572         REPLACE_FTELL.
47573         * lib/stdio_.h (rpl_ftell): New declaration.
47574         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
47575         REPLACE_FTELL.
47577 2007-05-28  Eric Blake  <ebb9@byu.net>
47579         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
47581 2007-05-28  Bruno Haible  <bruno@clisp.org>
47583         * modules/fseek-tests: New file.
47584         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
47585         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
47587         * lib/fseek.c: New file.
47588         * modules/fseek: New file.
47589         * m4/fseek.m4: New file.
47590         * doc/functions/fseek.texi: Update.
47591         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
47592         REPLACE_FSEEK.
47593         * lib/stdio_.h (rpl_fseek): New declaration.
47594         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
47595         REPLACE_FSEEK.
47597 2007-05-28  Bruno Haible  <bruno@clisp.org>
47599         * lib/stdio_.h (fflush): More comments.
47601 2007-05-28  Bruno Haible  <bruno@clisp.org>
47603         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
47604         runtime test.
47606 2007-05-28  Eric Blake  <ebb9@byu.net>
47608         Improve lseek module.
47609         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
47610         * lib/unistd_.h (lseek): Scale back link warning message.
47611         * tests/test-lseek.c: Beef up test.
47612         * tests/test-lseek.sh: Exercise more facets of lseek.
47613         Reported by Bruno Haible.
47615 2007-05-28  Bruno Haible  <bruno@clisp.org>
47617         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
47618         to define.
47620 2007-05-27  Bruno Haible  <bruno@clisp.org>
47622         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
47624 2007-05-27  Bruno Haible  <bruno@clisp.org>
47626         * modules/openmp: New file.
47627         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
47628         Noah Misch.
47630 2007-05-26  Bruno Haible  <bruno@clisp.org>
47632         * modules/chdir-long (Depends-on): Add fchdir.
47633         * modules/chdir-safer (Depends-on): Likewise.
47634         * modules/fts (Depends-on): Likewise.
47635         * modules/fts-lgpl (Depends-on): Likewise.
47636         * modules/openat (Depends-on): Likewise.
47637         * modules/savewd (Depends-on): Likewise.
47639 2007-05-24  Eric Blake  <ebb9@byu.net>
47641         Fix lseek on mingw.
47642         * modules/lseek: New module.
47643         * m4/lseek.m4: New file.
47644         * lib/lseek.c: New file.
47645         * modules/lseek-tests: New file.
47646         * tests/test-lseek.c: New file.
47647         * tests/test-lseek.sh: New file.
47648         * MODULES.html.sh: Document lseek module.
47649         * modules/fflush (Depends-on): Add lseek, fseeko.
47650         * modules/fseeko (Depends-on): Likewise.
47651         * modules/ftello (Depends-on): Likewise.
47652         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
47653         broken.
47654         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
47655         broken.
47656         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
47657         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
47658         * lib/ftello.c (rpl_ftello): Likewise.
47659         * tests/test-fseeko.c (main): Test this.
47660         * tests/test-fseeko.sh: Likewise.
47661         * tests/test-ftello.c (main): Likewise.
47662         * tests/test-ftello.sh: Likewise.
47663         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
47664         implies replacing fseek.
47665         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
47666         HAVE_FTELLO.
47667         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
47668         * modules/unistd (Makefile.am): Likewise.
47669         * lib/unistd_.h (lseek): Declare a replacement.
47670         * doc/functions/lseek.texi (lseek): Document this fix.
47671         * doc/functions/fseek.texi (fseek): Likewise.
47672         * doc/functions/ftell.texi (ftell): Likewise.
47674 2007-05-24  Bruno Haible  <bruno@clisp.org>
47676         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
47677         in the printed representation of a NaN.
47678         * tests/test-vasprintf-posix.c (test_function): Likewise.
47679         * tests/test-snprintf-posix.h (test_function): Likewise.
47680         * tests/test-sprintf-posix.h (test_function): Likewise.
47681         Reported by Eric Blake.
47683 2007-05-23  Eric Blake  <ebb9@byu.net>
47685         Fix fseeko/ftello on cygwin 1.5.24.
47686         * doc/functions/fseeko.texi (fseeko): Document the fix.
47687         * doc/functions/ftello.texi (ftello): Document the fix.
47688         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
47689         * doc/functions/stdout.text (stdout): New file.
47690         * doc/functions/stderr.text (stderr): New file.
47691         * doc/gnulib.texi (Function Substitutes): Use new files.
47692         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
47693         prior to 1.7.0.
47694         * tests/test-ftello.c (main): Likewise for ftello.
47695         * tests/test-fseeko.sh: New file.
47696         * tests/test-ftello.sh: New file.
47697         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
47698         with seekable stdin.
47699         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
47700         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
47701         (gl_REPLACE_FSEEKO): New macro.
47702         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
47703         * modules/fseeko (Files): Distribute fseeko.c.
47704         * modules/ftello (Files): Distribute ftello.c.
47705         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
47706         mode.
47707         * lib/ftello.c (rpl_ftello): New file.
47708         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
47709         fseeko, ftello.
47710         (gl_STDIN_LARGE_OFFSET): New macro.
47711         * modules/stdio (Makefile.am): Perform the replacement.
47712         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
47714 2007-05-23  Bruno Haible  <bruno@clisp.org>
47716         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
47717         GNULIB_POSIXCHECK is defined.
47719 2007-05-21  Bruno Haible  <bruno@clisp.org>
47721         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
47722         Check also the output for NaN arguments. When cross-compiling, guess
47723         no on IRIX.
47724         * lib/vasnprintf.c: Update comments.
47725         * tests/test-vasnprintf-posix.c (strisnan): New function.
47726         (test_function): Use it.
47727         * tests/test-vasprintf-posix.c (strisnan): New function.
47728         (test_function): Use it.
47729         * tests/test-snprintf-posix.h (strisnan): New function.
47730         (test_function): Use it.
47731         * tests/test-sprintf-posix.h (strisnan): New function.
47732         (test_function): Use it.
47733         Reported by Eric Blake.
47735 2007-05-20  Bruno Haible  <bruno@clisp.org>
47737         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
47738         numbers that fails on BeOS.
47739         * doc/functions/frexpl.texi: Update.
47741 2007-05-20  Jim Meyering  <jim@meyering.net>
47743         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
47744         forced upon us by glibc-2.6.
47746 2007-05-20  Bruno Haible  <bruno@clisp.org>
47748         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
47749         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
47750         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
47751         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
47752         NEED_PRINTF_INFINITE.
47753         (is_infinitel): New function.
47754         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
47755         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
47756         gl_PREREQ_VASNPRINTF_INFINITE.
47757         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
47758         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
47759         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
47760         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
47761         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
47762         gl_PREREQ_VASNPRINTF_INFINITE.
47763         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
47764         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
47765         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
47766         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
47767         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
47768         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
47769         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
47770         * doc/functions/fprintf.texi: Update.
47771         * doc/functions/printf.texi: Update.
47772         * doc/functions/snprintf.texi: Update.
47773         * doc/functions/sprintf.texi: Update.
47774         * doc/functions/vfprintf.texi: Update.
47775         * doc/functions/vprintf.texi: Update.
47776         * doc/functions/vsnprintf.texi: Update.
47777         * doc/functions/vsprintf.texi: Update.
47779 2007-05-20  Bruno Haible  <bruno@clisp.org>
47781         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
47782         was not found in libc.
47783         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
47785 2007-05-20  Bruno Haible  <bruno@clisp.org>
47787         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
47788         printed as "-nan" instead of "nan".
47789         * tests/test-vasprintf-posix.c (test_function): Likewise.
47790         * tests/test-snprintf-posix.h (test_function): Likewise.
47791         * tests/test-sprintf-posix.h (test_function): Likewise.
47792         Needed for HP-UX 11.
47794 2007-05-20  Jim Meyering  <jim@meyering.net>
47796         Fix buggy test for the fchownat-deref bug.
47797         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
47798         symlink required for the run-test.  Without it, this test would
47799         always declare that fchownat doesn't work, and client code would
47800         unnecessarily use the replacement function with fixed libc.
47801         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
47802         Reported by Greg Schafer.
47804 2007-05-19  Bruno Haible  <bruno@clisp.org>
47806         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
47807         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
47808         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
47809         Needed for IRIX 6.5 and Solaris 2.5.1.
47811 2007-05-19  Bruno Haible  <bruno@clisp.org>
47813         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
47814         (test_function): Skip tests involving -0.0 on platforms where
47815         -0.0 = 0.0.
47816         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
47817         (test_function): Skip tests involving -0.0 on platforms where
47818         -0.0 = 0.0.
47819         * tests/test-snprintf-posix.h (have_minus_zero): New function.
47820         (test_function): Skip tests involving -0.0 on platforms where
47821         -0.0 = 0.0.
47822         * tests/test-sprintf-posix.h (have_minus_zero): New function.
47823         (test_function): Skip tests involving -0.0 on platforms where
47824         -0.0 = 0.0.
47825         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
47826         tests.
47827         * tests/test-printf-posix.h (test_function): Likewise.
47828         * tests/test-printf-posix.output: Remove all -0.0 related results.
47829         Needed for IRIX 6.5.
47831 2007-05-19  Bruno Haible  <bruno@clisp.org>
47833         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
47834         printed as "nan0x7fffffff" instead of "nan".
47835         * tests/test-vasprintf-posix.c (test_function): Likewise.
47836         * tests/test-snprintf-posix.h (test_function): Likewise.
47837         * tests/test-sprintf-posix.h (test_function): Likewise.
47838         * tests/test-fprintf-posix.h (NaN): Remove macro.
47839         (test_function): Remove all NaN related tests.
47840         * tests/test-printf-posix.h (NaN): Remove macro.
47841         (test_function): Remove all NaN related tests.
47842         * tests/test-printf-posix.output: Remove all NaN related results.
47843         Needed for IRIX 6.5.
47845 2007-05-19  Bruno Haible  <bruno@clisp.org>
47847         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
47848         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
47850 2007-05-19  Bruno Haible  <bruno@clisp.org>
47852         * lib/float_.h: New file.
47853         * m4/float_h.m4: New file.
47854         * modules/float: New file.
47855         * modules/isnanl (Dependencies): Add float.
47856         * modules/isnanl-nolibm (Dependencies): Likewise.
47857         * modules/mathl (Dependencies): Likewise.
47858         * modules/printf-frexpl (Dependencies): Likewise.
47859         * modules/signbit (Dependencies): Likewise.
47860         * modules/vasnprintf (Dependencies): Likewise.
47861         * doc/headers/float.texi: Update.
47863 2007-05-19  Jim Meyering  <jim@meyering.net>
47865         * lib/utimens.c (gl_futimens): Rename from futimens,
47866         now that glibc-2.6 declares futimens.
47867         * lib/utimens.h: Likewise.
47869 2007-05-19  Bruno Haible  <bruno@clisp.org>
47871         Avoid test failures on mingw.
47872         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
47873         * tests/test-printf-posix.sh: Likewise.
47874         * tests/test-vfprintf-posix.sh: Likewise.
47875         * tests/test-vprintf-posix.sh: Likewise.
47877 2007-05-19  Bruno Haible  <bruno@clisp.org>
47879         Fix *printf result for NaN, Inf, -0.0 on mingw.
47880         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
47881         * lib/vasnprintf.c: Include math.h and isnan.h.
47882         (is_infinite_or_zero): New function.
47883         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
47884         values in the %f, %F, %e, %E, %g, %G directives.
47885         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
47886         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
47887         gl_PRINTF_INFINITE and test its result. Invoke
47888         gl_PREREQ_VASNPRINTF_INFINITE.
47889         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
47890         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
47891         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
47892         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
47893         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
47894         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
47895         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
47896         * doc/functions/fprintf.texi: Update.
47897         * doc/functions/printf.texi: Update.
47898         * doc/functions/snprintf.texi: Update.
47899         * doc/functions/sprintf.texi: Update.
47900         * doc/functions/vfprintf.texi: Update.
47901         * doc/functions/vprintf.texi: Update.
47902         * doc/functions/vsnprintf.texi: Update.
47903         * doc/functions/vsprintf.texi: Update.
47905 2007-05-19  Bruno Haible  <bruno@clisp.org>
47907         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
47908         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
47909         Instead of multiplying with 10^k, set extra_zeroes to k.
47910         (scale10_round_long_double): Remove function.
47912 2007-05-18  Bruno Haible  <bruno@clisp.org>
47914         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
47915         introduced on 2007-05-06.
47917 2007-05-18  Bruno Haible  <bruno@clisp.org>
47919         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
47920         %g directives.
47921         * tests/test-vasprintf-posix.c (test_function): Likewise.
47922         * tests/test-snprintf-posix.h (test_function): Likewise.
47923         * tests/test-sprintf-posix.h (test_function): Likewise.
47925 2007-05-18  Bruno Haible  <bruno@clisp.org>
47927         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
47928         (strmatch): New function.
47929         (test_function): Test the %f directive on numbers of various exponents.
47930         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
47931         (strmatch): New function.
47932         (test_function): Test the %f directive on numbers of various exponents.
47933         * tests/test-snprintf-posix.h (strmatch): New function.
47934         (test_function): Test the %f directive on numbers of various exponents.
47935         * tests/test-sprintf-posix.h (strmatch): New function.
47936         (test_function): Test the %f directive on numbers of various exponents.
47937         * tests/test-snprintf-posix.c (SIZEOF): New macro.
47938         * tests/test-sprintf-posix.c (SIZEOF): New macro.
47939         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
47940         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
47942 2007-05-18  Bruno Haible  <bruno@clisp.org>
47944         Add support for 'long double' number output.
47945         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
47946         * lib/vasnprintf.c: Include math.h and float+.h.
47947         (mp_limb_t): New type.
47948         (GMP_LIMB_BITS): New macro.
47949         (mp_twolimb_t): New type.
47950         (GMP_TWOLIMB_BITS): New macro.
47951         (mpn_t): New type.
47952         (multiply, divide, convert_to_decimal, decode_long_double,
47953         scale10_round_long_double, scale10_round_decimal_long_double,
47954         floorlog10l): New functions.
47955         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
47956         for the %f, %F, %e, %E, %g, %G directives.
47957         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
47958         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
47959         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
47960         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
47961         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
47962         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
47963         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
47964         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
47965         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
47966         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
47967         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
47968         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
47969         * modules/snprintf-posix (Depends-on): Likewise.
47970         * modules/sprintf-posix (Depends-on): Likewise.
47971         * modules/vasnprintf-posix (Depends-on): Likewise.
47972         * modules/vasprintf-posix (Depends-on): Likewise.
47973         * modules/vfprintf-posix (Depends-on): Likewise.
47974         * modules/vsnprintf-posix (Depends-on): Likewise.
47975         * modules/vsprintf-posix (Depends-on): Likewise.
47976         * modules/vasnprintf (Files): Add lib/float+.h.
47977         * doc/functions/fprintf.texi: Update.
47978         * doc/functions/printf.texi: Update.
47979         * doc/functions/snprintf.texi: Update.
47980         * doc/functions/sprintf.texi: Update.
47981         * doc/functions/vfprintf.texi: Update.
47982         * doc/functions/vprintf.texi: Update.
47983         * doc/functions/vsnprintf.texi: Update.
47984         * doc/functions/vsprintf.texi: Update.
47986 2007-05-18  Bruno Haible  <bruno@clisp.org>
47988         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
47990 2007-05-18  Bruno Haible  <bruno@clisp.org>
47992         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
47993         for printing 64-bit integers. Needed for mingw.
47995 2007-05-18  Bruno Haible  <bruno@clisp.org>
47997         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
47998         gl_FUNC_FREXPL_WORKS.
47999         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
48001 2007-05-18  Bruno Haible  <bruno@clisp.org>
48003         * modules/frexpl-nolibm-tests: New file.
48005         * modules/frexpl-nolibm: New file.
48006         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
48008 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
48010         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
48011         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
48012         GCC 4.2, which otherwise issues a lot of warnings.
48013         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
48014         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
48015         Likewise.
48016         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
48017         * modules/iconv_open (iconv.h): Likewise.
48018         * modules/locale (locale.h): Likewise.
48019         * modules/netinet_in (netinet/in.h): Likewise.
48020         * modules/sys_select (sys_select.h): Likewise.
48021         * modules/sys_socket (sys/socket.h): Likewise.
48022         * modules/sys_stat (sys/stat.h): Likewise.
48023         * modules/sysexits (sysexits.h): Likewise.
48024         * modules/unistd (unistd.h): Likewise.
48026 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48028         * modules/closein-tests (Makefile.am): Distribute
48029         `test-closein.sh'.
48031 2007-05-17  Bruno Haible  <bruno@clisp.org>
48033         * tests/test-printf-posix.output: Renamed from
48034         tests/test-fprintf-posix.out.
48035         * modules/fprintf-posix-tests: Update.
48036         * modules/printf-posix-tests: Update.
48037         * modules/vfprintf-posix-tests: Update.
48038         * modules/vprintf-posix-tests: Update.
48039         * tests/test-fprintf-posix.sh: Update.
48040         * tests/test-printf-posix.sh: Update.
48041         * tests/test-vfprintf-posix.sh: Update.
48042         * tests/test-vprintf-posix.sh: Update.
48043         Reported by Ralf Wildenhues.
48045 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
48047         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
48048         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
48049         GCC 4.2, which otherwise issues a lot of warnings.
48050         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
48051         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
48052         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
48053         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
48054         it should no longer be needed.
48055         * lib/string_.h: Likewise.
48056         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
48057         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
48058         * modules/inttypes (inttypes.h): Likewise.
48059         * modules/math (math.h): Likewise.
48060         * modules/search (search.h): Likewise.
48061         * modules/signal (signal.h): Likewise.
48062         * modules/stdint (stdint.h): Likewise.
48063         * modules/stdio (stdio.h): Likewise.
48064         * modules/stdlib (stdlib.h): Likewise.
48065         * modules/string (string.h): Likewise.
48066         * modules/sys_time (sys/time.h): Likewise.
48067         * modules/time (time.h): Likewise.
48068         * modules/wchar (wchar.h): Likewise.
48069         * modules/wctype (wtype.h): Likewise.
48071 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
48073         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
48075 2007-05-13  Bruno Haible  <bruno@clisp.org>
48077         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
48078         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
48079         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
48080         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
48081         (gl_PREREQ_STRTOK_R): Don't require it here.
48083 2007-05-13  Bruno Haible  <bruno@clisp.org>
48085         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
48086         when used in C++ mode.
48088 2007-05-12  Bruno Haible  <bruno@clisp.org>
48090         * lib/linebuffer.h: Tweak doc.
48091         * lib/linebuffer.c: Likewise.
48093 2007-05-12  James Youngman  <jay@gnu.org>
48095         * lib/linebuffer.c (readlinebuffer_delim): New function,
48096         like readlinebuffer, but use a caller-specified delimiter.
48097         (readlinebuffer): Just call readlinebuffer_delim with '\n'
48098         as the delimiter.
48099         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
48101 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
48103         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
48104         * modules/openat (Files): Remove openat-die.c.
48105         (Depends-on): Add openat-die.
48106         * modules/openat-die: New module.
48108 2007-05-06  Bruno Haible  <bruno@clisp.org>
48110         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
48111         Update with info about Cygwin.
48112         * doc/functions/fprintf.texi: Update.
48113         * doc/functions/printf.texi: Update.
48114         * doc/functions/snprintf.texi: Update.
48115         * doc/functions/sprintf.texi: Update.
48116         * doc/functions/vfprintf.texi: Update.
48117         * doc/functions/vprintf.texi: Update.
48118         * doc/functions/vsnprintf.texi: Update.
48119         * doc/functions/vsprintf.texi: Update.
48120         Reported by Eric Blake.
48122 2007-05-06  Bruno Haible  <bruno@clisp.org>
48124         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
48125         padding ourselves for the floating-point directives.
48126         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
48127         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
48128         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
48129         gl_PRINTF_FLAG_ZERO and test its result. Invoke
48130         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
48131         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
48132         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
48133         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
48134         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
48135         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
48136         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
48137         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
48138         * tests/test-snprintf-posix.h (test_function): Also check the width
48139         and some flags in the %f directive.
48140         * tests/test-sprintf-posix.h (test_function): Likewise.
48141         * tests/test-vasnprintf-posix.c (test_function): Likewise.
48142         * tests/test-vasprintf-posix.c (test_function): Likewise.
48143         * doc/functions/fprintf.texi: Update.
48144         * doc/functions/printf.texi: Update.
48145         * doc/functions/snprintf.texi: Update.
48146         * doc/functions/sprintf.texi: Update.
48147         * doc/functions/vfprintf.texi: Update.
48148         * doc/functions/vprintf.texi: Update.
48149         * doc/functions/vsnprintf.texi: Update.
48150         * doc/functions/vsprintf.texi: Update.
48152 2007-05-06  Bruno Haible  <bruno@clisp.org>
48154         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
48155         pass the ' flag character to sprintf or snprintf.
48156         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
48157         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
48158         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
48159         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
48160         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
48161         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
48162         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
48163         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
48164         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
48165         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
48166         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
48167         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
48168         * tests/test-snprintf-posix.h (test_function): Also check the grouping
48169         flag.
48170         * tests/test-sprintf-posix.h (test_function): Likewise.
48171         * tests/test-vasnprintf-posix.c (test_function): Likewise.
48172         * tests/test-vasprintf-posix.c (test_function): Likewise.
48173         * doc/functions/fprintf.texi: Update.
48174         * doc/functions/printf.texi: Update.
48175         * doc/functions/snprintf.texi: Update.
48176         * doc/functions/sprintf.texi: Update.
48177         * doc/functions/vfprintf.texi: Update.
48178         * doc/functions/vprintf.texi: Update.
48179         * doc/functions/vsnprintf.texi: Update.
48180         * doc/functions/vsprintf.texi: Update.
48182 2007-05-01  Bruno Haible  <bruno@clisp.org>
48184         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
48186 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
48188         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
48189         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
48191 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
48193         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
48194         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
48195         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
48197 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
48199         * lib/argp-help.c (struct hol_entry): New member `ord'.
48200         (HOL_ENTRY_PTRCMP): Use ord for comparison
48201         (hol_sort): Initialize ord.
48203 2007-05-01  Bruno Haible  <bruno@clisp.org>
48205         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
48206         Reported by Eric Blake.
48207         * doc/gnulib.texi (Function Substitutes): Update.
48209 2007-05-01  Bruno Haible  <bruno@clisp.org>
48211         * doc/functions.texi: Remove file, now redundant through
48212         doc/functions/*.texi.
48214 2007-05-01  Bruno Haible  <bruno@clisp.org>
48216         * modules/argp (Depends-on): Add sleep.
48218 2007-05-01  Bruno Haible  <bruno@clisp.org>
48220         * modules/sleep-tests: New file.
48221         * tests/test-sleep.c: New file.
48223         * modules/sleep: New file.
48224         * lib/sleep.c: New file.
48225         * m4/sleep.m4: New file.
48226         * lib/unistd_.h (sleep): New declaration.
48227         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
48228         HAVE_SLEEP.
48229         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
48230         * doc/functions/sleep.texi: Document the sleep module.
48232 2007-05-01  Bruno Haible  <bruno@clisp.org>
48234         * lib/sigprocmask.h: Remove file.
48235         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
48236         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
48237         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
48238         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
48239         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
48240         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
48241         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
48242         HAVE_SIGSET_T as a shell variable.
48243         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
48244         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
48245         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
48246         (Depends-on): Add signal. Remove verify.
48247         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
48248         (Include): Mention <signal.h> instead of sigprocmask.h.
48249         * NEWS: Mention the change.
48250         * lib/fatal-signal.c: Don't include sigprocmask.h.
48252 2007-05-01  Bruno Haible  <bruno@clisp.org>
48254         * modules/signal: New file.
48255         * lib/signal_.h: New file.
48256         * m4/signal_h.m4: New file.
48258 2007-05-01  Bruno Haible  <bruno@clisp.org>
48260         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
48261         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
48262         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
48263         HAVE_WCTYPE_CTMP_BUG into wctype.h.
48265 2007-05-01  Bruno Haible  <bruno@clisp.org>
48267         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
48268         configure time.
48269         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
48270         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
48271         * modules/sys_stat (Makefile.am): Substitute their values into
48272         sys/stat.h.
48274 2007-05-01  Bruno Haible  <bruno@clisp.org>
48276         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
48277         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
48278         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
48280 2007-05-01  Bruno Haible  <bruno@clisp.org>
48282         * doc/header/assert.texi: Undo last change: don't mention the gnulib
48283         'assert' module here.
48285 2007-05-01  Bruno Haible  <bruno@clisp.org>
48287         * doc/functions/*.texi: New files.
48288         * doc/functions/google-ranking.txt: New file.
48289         * doc/gnulib.texi (Function Substitutes): New chapter.
48290         (ctime, inet_ntoa): Remove sections.
48291         * doc/ctime.texi: Remove file.
48292         * doc/inet_ntoa.texi: Remove file.
48293         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
48294         dependencies.
48295         (%.info): New rule, specifying a --reference-limit.
48297 2007-05-01  Bruno Haible  <bruno@clisp.org>
48299         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
48301 2007-05-01  Bruno Haible  <bruno@clisp.org>
48303         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
48304         the portability of 'mkdir' to mingw systems.
48306 2007-05-01  Bruno Haible  <bruno@clisp.org>
48308         * doc/headers/google-ranking.txt: New file.
48310 2007-04-30  Eric Blake  <ebb9@byu.net>
48312         Prefer fseeko to fseek.
48313         * modules/getpass (Depends-on): Add fseeko.
48314         * lib/getpass.c (getpass): Use fseeko, not fseek.
48316 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
48318         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
48319         assumes the sorting is stable, while most qsort implementations
48320         are not.  Use argument addresses to ensure they never compare as
48321         equal.
48323         * tests/test-argp-2.sh (usage-indent test): Fix output
48324         (func_compare): Restore diff options
48325         * tests/test-argp.c: Restore #include "progname.h"
48327 2007-04-29  Bruno Haible  <bruno@clisp.org>
48329         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
48330         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
48331         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
48332         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
48333         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
48334         (configure.ac): Define CHECK_SNPRINTF_POSIX.
48335         (TESTS, check_PROGRAMS): Add test-snprintf.
48336         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
48337         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
48338         (TESTS, check_PROGRAMS): Add test-vsnprintf.
48339         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
48340         assertions that fail on HP-UX, OSF/1, or IRIX.
48341         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
48343 2007-04-29  Bruno Haible  <bruno@clisp.org>
48345         * MODULES.html.sh (posix_functions): Remove 'contents'.
48347 2007-04-29  Karl Berry  <karl@gnu.org>
48349         * config/srclist.txt (gendocs_template_min): new entry.
48351 2007-04-29  Bruno Haible  <bruno@clisp.org>
48353         Work around fpurge bug on BSD systems.
48354         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
48355         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
48356         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
48357         fpurge to rpl_fpurge if the system already has this function.
48358         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
48359         the case where the system already has this function. Correct invariants
48360         on BSD systems.
48361         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
48362         BSD systems.
48364 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
48366         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
48367         proposed by Sven Verdoolaege.
48369         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
48370         options.
48371         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
48372         (usage and help tests): Update
48374 2007-04-29  Bruno Haible  <bruno@clisp.org>
48376         * tests/test-fflush.c (main): Use a file of size 17, not 10.
48377         Print more information in case of failure. Disable a test on BeOS.
48379 2007-04-29  Bruno Haible  <bruno@clisp.org>
48381         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
48382         This helps debugging on systems on which no gdb is available.
48384 2007-04-29  Bruno Haible  <bruno@clisp.org>
48386         * lib/freading.h: Improve comments.
48387         * lib/fwriting.h: Likewise.
48388         * tests/test-freading.c (main): Don't check freading immediately after
48389         repositioning. Needed for glibc.
48391 2007-04-29  Bruno Haible  <bruno@clisp.org>
48393         * lib/freading.c (freading): Trivial simplification.
48395 2007-04-28  Bruno Haible  <bruno@clisp.org>
48397         * tests/test-fwriting.c (main): Also test the interaction between
48398         fflush and fwriting.
48399         * modules/fwriting-tests (Depends-on): Add fflush.
48401         * tests/test-freading.c (main): Also test the interaction between
48402         fflush and freading.
48403         * modules/freading-tests (Depends-on): Add fflush.
48405 2007-04-28  Bruno Haible  <bruno@clisp.org>
48407         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
48408         fseeko and ftello.
48409         Suggested by Eric Blake.
48411 2007-04-28  Jim Meyering  <jim@meyering.net>
48413         Avoid false-negative in gl_STDINT_H's C99 conformance test.
48414         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
48415         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
48417 2007-04-27  Eric Blake  <ebb9@byu.net>
48419         * doc/headers/assert.texi (assert.h): Document assert module use.
48421 2007-04-27  Bruno Haible  <bruno@clisp.org>
48423         * doc/headers/*.texi: New files.
48424         * doc/gnulib.texi (Header File Substitutes): New chapter.
48425         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
48426         dependencies.
48427         (standards.info ,standards.html, standards.dvi): Update dependencies.
48428         (mostlyclean, clean): New targets.
48430 2007-04-27  Bruno Haible  <bruno@clisp.org>
48432         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
48433         * modules/sysexits (Files, Makefile.am): Update.
48435         * lib/sys_socket_.h: Renamed from lib/socket_.h.
48436         * modules/sys_socket (Files, Makefile.am): Update.
48438         * lib/sys_stat_.h: Renamed from lib/stat_.h.
48439         * modules/sys_stat (Files, Makefile.am): Update.
48441 2007-04-27  Eric Blake  <ebb9@byu.net>
48443         * lib/freading.h: Improve comments.
48444         * lib/fwriting.h: Likewise.
48445         * lib/fflush.c: Likewise.
48447         Fix closein for mingw.
48448         * modules/closein-tests: Add tests for closein.
48449         * tests/test-closein.c: New file.
48450         * tests/test-closein.sh: Likewise.
48451         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
48452         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
48454 2007-04-27  Bruno Haible  <bruno@clisp.org>
48456         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
48457         version is < 6.
48458         * lib/math_.h [__DECC]: Likewise.
48459         * lib/stdio_.h [__DECC]: Likewise.
48460         * lib/stdlib_.h [__DECC]: Likewise.
48461         * lib/string_.h [__DECC]: Likewise.
48462         * lib/time_.h [__DECC]: Likewise.
48463         * lib/wchar_.h [__DECC]: Likewise.
48464         * lib/wctype_.h [__DECC]: Likewise.
48466 2007-04-27  Bruno Haible  <bruno@clisp.org>
48468         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
48470 2007-04-27  Bruno Haible  <bruno@clisp.org>
48472         * lib/fflush.c: Add comments.
48473         * modules/fpurge-tests (Depends-on): Add fflush.
48474         * modules/freadable-tests (Depends-on): Likewise.
48475         * modules/fwritable-tests (Depends-on): Likewise.
48477 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
48479         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
48480         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
48481         Report by Bruno Haible <bruno@clisp.org>.
48483 2007-04-26  Eric Blake  <ebb9@byu.net>
48485         Fix fflush on mingw.
48486         * modules/fflush (Depends-on): Add freading.
48487         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
48488         but unread data.
48490 2007-04-26  Eric Blake  <ebb9@byu.net>
48491         and Bruno Haible  <bruno@clisp.org>
48493         Implement freading and fwriting.
48494         * lib/freading.c: New file.
48495         * lib/freading.h: Likewise.
48496         * m4/freading.m4: Likewise.
48497         * modules/freading: Likewise.
48498         * modules/freading-tests: Likewise.
48499         * tests/test-freading.c: Likewise.
48500         * lib/fwriting.c: New file.
48501         * lib/fwriting.h: Likewise.
48502         * m4/fwriting.m4: Likewise.
48503         * modules/fwriting: Likewise.
48504         * modules/fwriting-tests: Likewise.
48505         * tests/test-fwriting.c: Likewise.
48506         * MODULES.html.sh (File stream based Input/Output): Mention them.
48508 2007-04-26  Bruno Haible  <bruno@clisp.org>
48510         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
48511         'long' when we assume it.
48512         Suggested by Eric Blake.
48514 2007-04-26  Bruno Haible  <bruno@clisp.org>
48516         Ensure fseeko, ftello are declared on glibc systems.
48517         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
48518         * modules/fseeko (configure.ac-early): Likewise.
48519         * modules/ftello (configure.ac-early): Likewise.
48520         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
48521         AC_FUNC_FSEEKO for this.
48522         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
48523         (gl_CHECK_FSEEKO): Remove macro.
48525 2007-04-26  Bruno Haible  <bruno@clisp.org>
48527         * tests/test-fflush.c (main): Also check the ftell result after
48528         fflush and fseek/fseeko.
48529         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
48530         file descriptor position cache in the stream.
48531         * lib/fseeko.c (rpl_fseeko): Likewise.
48533 2007-04-26  Bruno Haible  <bruno@clisp.org>
48535         * modules/fflush-tests (Depends-on): Add fseeko.
48537 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
48538             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48540         * lib/argz_.h: ensure error_t definition is obtained in same
48541         mechanism system argz.h would have.
48542         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
48543         argz facilities are known bad.  Err on the side of caution if
48544         cross-compiling.
48546 2007-04-25  Eric Blake  <ebb9@byu.net>
48548         * lib/fpurge.c (includes): Use stdlib.h for free.
48549         * tests/test-fflush.c (main): Also test fflush-fseeko.
48551 2007-04-25  Bruno Haible  <bruno@clisp.org>
48553         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
48554         * lib/fseeko.c: New file.
48555         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
48556         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
48557         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
48558         gl_FUNC_FSEEKO.
48559         (gl_FUNC_FSEEKO): Invoke it.
48560         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
48561         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
48562         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
48564 2007-04-25  Bruno Haible  <bruno@clisp.org>
48566         * modules/fflush (Depends-on): Add ftello.
48568 2007-04-25  Bruno Haible  <bruno@clisp.org>
48570         * modules/ftello-tests: New file.
48571         * tests/test-ftello.c: New file.
48573         * modules/ftello: New file.
48574         * m4/ftello.m4: New file.
48575         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
48576         HAVE_FTELLO.
48577         * lib/stdio_.h (ftello): New declaration.
48578         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
48579         HAVE_FTELLO.
48581 2007-04-25  Bruno Haible  <bruno@clisp.org>
48583         * modules/fseeko-tests: New file.
48584         * tests/test-fseeko.c: New file.
48586         * modules/fseeko: New file.
48587         * m4/fseeko.m4: New file.
48588         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
48589         HAVE_FSEEKO.
48590         * lib/stdio_.h (fseeko): New declaration.
48591         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
48592         HAVE_FSEEKO.
48594 2007-04-25  Bruno Haible  <bruno@clisp.org>
48596         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
48598 2007-04-25  Bruno Haible  <bruno@clisp.org>
48600         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
48601         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
48602         * tests/test-unistd.c: Likewise.
48603         * tests/test-fcntl.c: Likewise.
48605 2007-04-23  Eric Blake  <ebb9@byu.net>
48607         * lib/fflush.c: Fix missing include.
48608         Reported by Bruno Haible.
48610 2007-04-23  Bruno Haible  <bruno@clisp.org>
48612         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
48613         Reported by Eric Blake.
48615 2007-04-23  Bruno Haible  <bruno@clisp.org>
48617         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
48619 2007-04-23  Bruno Haible  <bruno@clisp.org>
48621         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
48623 2007-04-23  Bruno Haible  <bruno@clisp.org>
48625         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
48626         Needed on HP-UX 11.
48628 2007-04-16  Eric Blake  <ebb9@byu.net>
48630         Make fflush rely on fpurge.
48631         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
48632         open coding all variants.
48633         * modules/fflush (Depends-on): Add fpurge and unistd.
48634         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
48635         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
48637         Fix --with-tests compilation on cygwin.
48638         * modules/argmatch-tests (Makefile.am): List gnulib library first
48639         in LDADD.
48640         * modules/argp-tests (Makefile.am): Likewise.
48641         * modules/array-list-tests (Makefile.am): Likewise.
48642         * modules/array-oset-tests (Makefile.am): Likewise.
48643         * modules/avltree-list-tests (Makefile.am): Likewise.
48644         * modules/avltree-oset-tests (Makefile.am): Likewise.
48645         * modules/avltreehash-list-tests (Makefile.am): Likewise.
48646         * modules/carray-list-tests (Makefile.am): Likewise.
48647         * modules/dirname-tests (Makefile.am): Likewise.
48648         * modules/frexp-tests (Makefile.am): Likewise.
48649         * modules/isnanl-tests (Makefile.am): Likewise.
48650         * modules/linked-list-tests (Makefile.am): Likewise.
48651         * modules/linkedhash-list-tests (Makefile.am): Likewise.
48652         * modules/lock-tests (Makefile.am): Likewise.
48653         * modules/rbtree-list-tests (Makefile.am): Likewise.
48654         * modules/rbtree-oset-tests (Makefile.am): Likewise.
48655         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
48656         * modules/tls-tests (Makefile.am): Likewise.
48657         * modules/tsearch-tests (Makefile.am): Likewise.
48658         * modules/xvasprintf-tests (Makefile.am): Likewise.
48660         Fix fpurge for cygwin.
48661         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
48662         value.
48663         * modules/fpurge-tests (Depends-on): Clean up trash.
48665 2007-04-16  Simon Josefsson  <simon@josefsson.org>
48667         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
48669         * m4/autobuild.m4: Re-indent.
48671 2007-04-13  Bruno Haible  <bruno@clisp.org>
48673         * modules/fpurge-tests: New file.
48674         * tests/test-fpurge.c: New file.
48676         * modules/fpurge: New file.
48677         * lib/fpurge.h: New file.
48678         * lib/fpurge.c: New file.
48679         * m4/fpurge.m4: New file.
48681 2007-04-13  Bruno Haible  <bruno@clisp.org>
48683         * modules/fbufmode-tests: New file.
48684         * tests/test-fbufmode.c: New file.
48686         * modules/fbufmode: New file.
48687         * lib/fbufmode.h: New file.
48688         * lib/fbufmode.c: New file.
48689         * m4/fbufmode.m4: New file.
48691 2007-04-13  Bruno Haible  <bruno@clisp.org>
48693         * modules/fwritable-tests: New file.
48694         * tests/test-fwritable.c: New file.
48696         * modules/fwritable: New file.
48697         * lib/fwritable.h: New file.
48698         * lib/fwritable.c: New file.
48699         * m4/fwritable.m4: New file.
48701 2007-04-13  Bruno Haible  <bruno@clisp.org>
48703         * modules/freadable-tests: New file.
48704         * tests/test-freadable.c: New file.
48706         * modules/freadable: New file.
48707         * lib/freadable.h: New file.
48708         * lib/freadable.c: New file.
48709         * m4/freadable.m4: New file.
48711 2007-04-13  Bruno Haible  <bruno@clisp.org>
48713         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
48714         MOSTLYCLEANFILES.
48716 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
48718         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
48719         gzip bootstrap.conf to avoid dragging in i18n machinery.
48720         (gnulib_tool_option): Use it.
48722 2007-04-13  Bruno Haible  <bruno@clisp.org>
48724         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
48725         %F directives.
48726         * tests/test-vasprintf-posix.c (test_function): Likewise.
48727         * tests/test-snprintf-posix.h (test_function): Likewise.
48728         * tests/test-sprintf-posix.h (test_function): Likewise.
48729         * tests/test-fprintf-posix.h (test_function): Likewise.
48730         * tests/test-printf-posix.h (test_function): Likewise.
48731         * tests/test-fprintf-posix.out: Likewise.
48733 2007-04-13  Bruno Haible  <bruno@clisp.org>
48735         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
48736         * modules/tls-tests (configure.ac): Likewise.
48737         Reported by Arto C. Nirkko <anirkko@insel.ch>.
48739 2007-04-13  Bruno Haible  <bruno@clisp.org>
48741         * lib/tls.c (glthread_tls_get): Fix return type.
48742         Patch by Arto C. Nirkko <anirkko@insel.ch>.
48744 2007-04-12  Eric Blake  <ebb9@byu.net>
48746         * modules/gettime (Depends-on): Remove gettime.
48747         Reported by Dmitry V. Levin.
48749 2007-04-12  Bruno Haible  <bruno@clisp.org>
48751         * modules/fflush (Include): Mention <stdio.h>.
48752         * modules/strtoimax (Include): Mention <inttypes.h>.
48753         * modules/strtoumax (Include): Likewise.
48755 2007-04-12  Eric Blake  <ebb9@byu.net>
48757         * .cvsignore: New file.
48758         * .gitignore: Likewise.
48760 2007-04-12  Bruno Haible  <bruno@clisp.org>
48762         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
48763         not before, since $(LDADD) often contains libgnu.a.
48764         * modules/striconv-tests (test_striconv_LDADD): Likewise.
48765         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
48766         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
48767         Needed on Cygwin.
48769 2007-04-12  Eric Blake  <ebb9@byu.net>
48771         Work around glibc's failure to flush stdin on fclose.
48772         * lib/closein.c (close_stdin): Flush stdin before closing.
48774         Work around glibc's failure to reset seekable stdin on exit.
48775         * modules/closein: New module.
48776         * lib/closein.c: New file.
48777         * lib/closein.h: Likewise.
48778         * m4/closein.m4: Likewise.
48779         * MODULES.html.sh (File stream based Input/Output): Document it.
48781 2007-04-12  Simon Josefsson  <simon@josefsson.org>
48783         * gnulib-tool: Rename generated 'autobuild' script to
48784         'do-autobuild' in --create-megatestdir output.
48786         * doc/gnulib.texi (Build robot for gnulib): Fix.
48788 2007-04-12  Simon Josefsson  <simon@josefsson.org>
48790         * modules/sysexits (Depends-on): Add absolute-header.
48792 2007-04-12  Eric Blake  <ebb9@byu.net>
48794         No need to preserve errno on success.
48795         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
48796         Reported by Bruno Haible.
48798 2007-04-12  Simon Josefsson  <simon@josefsson.org>
48800         * MODULES.html.sh (Support for maintaining and releasing
48801         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
48803 2007-04-12  Simon Josefsson  <simon@josefsson.org>
48805         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
48807 2007-04-12  Simon Josefsson  <simon@josefsson.org>
48809         * modules/autobuild: New module.
48811         * m4/autobuild.m4: New file.
48813 2007-04-11  Bruno Haible  <bruno@clisp.org>
48815         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
48816         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
48817         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
48818         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
48819         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
48820         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
48821         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
48822         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
48823         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
48824         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
48825         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
48826         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
48827         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
48828         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
48829         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
48830         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
48831         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
48832         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
48833         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
48834         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
48835         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
48836         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
48837         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
48838         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
48839         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
48840         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
48841         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
48842         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
48843         Reported by Eric Blake.
48845 2007-04-11  Bruno Haible  <bruno@clisp.org>
48847         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
48849 2007-04-10  Bruno Haible  <bruno@clisp.org>
48851         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
48852         for NaN and Infinity. Needed on FreeBSD 6.1.
48853         * tests/test-vasnprintf-posix.c (test_function): Undo last change
48854         regarding results for "%010a" of Infinity and NaN.
48855         * tests/test-vasprintf-posix.c (test_function): Likewise.
48856         * tests/test-snprintf-posix.h (test_function): Likewise.
48857         * tests/test-sprintf-posix.h (test_function): Likewise.
48858         * tests/test-fprintf-posix.h (test_function): Likewise.
48859         * tests/test-printf-posix.h (test_function): Likewise.
48860         * tests/test-fprintf-posix.out: Likewise.
48862 2007-04-10  Bruno Haible  <bruno@clisp.org>
48864         * modules/locale-tests: New file.
48865         * tests/test-locale.c: New file.
48867         * modules/locale: New file.
48868         * lib/locale_.h: New file.
48869         * m4/locale_h.m4: New file.
48871 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
48872             Bruno Haible  <bruno@clisp.org>
48874         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
48875         be determined, test for availability of the copysignf, copysign,
48876         copysignl functions.
48877         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
48878         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
48879         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
48881 2007-04-09  Eric Blake  <ebb9@byu.net>
48883         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
48884         * modules/stdio (Makefile.am): Support fflush.
48885         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
48886         * modules/fflush: New file.
48887         * lib/fflush.c: Likewise.
48888         * m4/fflush.m4: Likewise.
48889         * modules/fflush-tests: New test.
48890         * tests/test-fflush.c: Likewise.
48891         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
48893 2007-04-06  Bruno Haible  <bruno@clisp.org>
48895         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
48896         (VASNPRINTF): Use signbit for faster determination whether to print a
48897         minus sign.
48898         * modules/vasnprintf (Files): Remove lib/float+.h.
48899         * modules/fprintf-posix (Depends-on): Add signbit.
48900         * modules/snprintf-posix (Depends-on): Likewise.
48901         * modules/sprintf-posix (Depends-on): Likewise.
48902         * modules/vasnprintf-posix (Depends-on): Likewise.
48903         * modules/vasprintf-posix (Depends-on): Likewise.
48904         * modules/vfprintf-posix (Depends-on): Likewise.
48905         * modules/vsnprintf-posix (Depends-on): Likewise.
48906         * modules/vsprintf-posix (Depends-on): Likewise.
48908 2007-04-06  Bruno Haible  <bruno@clisp.org>
48910         * tests/test-frexp.c (main): Test also the sign bit of zero results.
48911         * tests/test-frexpl.c (main): Likewise.
48912         * tests/test-ldexpl.c (main): Likewise.
48913         * modules/frexp-tests (Depends-on): Add signbit.
48914         * modules/frexpl-tests (Depdends-on): Likewise.
48915         * modules/ldexpl-tests (Depdends-on): Likewise.
48917 2007-04-06  Bruno Haible  <bruno@clisp.org>
48919         * modules/signbit-tests: New file.
48920         * tests/test-signbit.c: New file.
48922         * modules/signbit: New file.
48923         * lib/signbitf.c: New file.
48924         * lib/signbitd.c: New file.
48925         * lib/signbitl.c: New file.
48926         * m4/signbit.m4: New file.
48927         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
48928         (signbit): New macro.
48929         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
48930         REPLACE_SIGNBIT.
48931         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
48932         REPLACE_FREXPL into math.h.
48934 2007-04-06  Bruno Haible  <bruno@clisp.org>
48936         * modules/isnanf-nolibm-tests: New file.
48937         * tests/test-isnanf.c: New file.
48939         * modules/isnanf-nolibm: New file.
48940         * lib/isnanf.h: New file.
48941         * lib/isnanf.c: New file.
48942         * lib/isnan.c: Consider the USE_FLOAT macro.
48943         * m4/isnanf.m4: New file.
48945 2007-04-06  Bruno Haible  <bruno@clisp.org>
48947         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
48948         (Link): New section.
48950         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
48952 2007-04-06  Bruno Haible  <bruno@clisp.org>
48954         Assume the 'long double' type.
48955         * m4/longdouble.m4: Remove file.
48956         * config/srclist.txt: Don't mention longdouble.m4.
48957         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
48958         * lib/float+.h: Likewise.
48959         * lib/frexp.c: Likewise.
48960         * lib/printf-args.h: Likewise.
48961         * lib/printf-args.c: Likewise.
48962         * lib/printf-frexp.c: Likewise.
48963         * lib/printf-parse.c: Likewise.
48964         * lib/vasnprintf.c: Likewise.
48965         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
48966         * m4/intl.m4: Likewise.
48967         * m4/isnanl.m4: Likewise.
48968         * m4/printf.m4: Likewise.
48969         * m4/printf-frexpl.m4: Likewise.
48970         * m4/vasnprintf.m4: Likewise.
48971         * modules/allocsa (Files): Remove m4/longdouble.m4.
48972         * modules/gettext (Files): Likewise.
48973         * modules/relocatable-prog-wrapper (Files): Likewise.
48974         * modules/vasnprintf (Files): Likewise.
48975         * modules/isnanl (Files): Likewise.
48976         (Include): Simplify.
48977         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
48978         (Include): Simplify.
48979         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
48980         (Include): Simplify.
48981         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
48982         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
48983         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
48984         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
48985         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
48986         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
48987         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
48988         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
48989         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
48990         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
48991         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
48992         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
48993         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
48994         * tests/test-isnanl.c: Likewise.
48995         * tests/test-snprintf-posix.h: Likewise.
48996         * tests/test-sprintf-posix.h: Likewise.
48997         * tests/test-vasnprintf-posix.c: Likewise.
48998         * tests/test-vasnprintf-posix2.c: Likewise.
48999         * tests/test-vasprintf-posix.c: Likewise.
49001 2007-04-06  Bruno Haible  <bruno@clisp.org>
49003         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
49004         * lib/math_.h [__DECC]: Include the overridden include file through
49005         #include_next, outside the double-inclusion guard.
49006         * lib/stdio_.h [__DECC]: Likewise.
49007         * lib/stdlib_.h [__DECC]: Likewise.
49008         * lib/string_.h [__DECC]: Likewise.
49009         * lib/time_.h [__DECC]: Likewise.
49010         * lib/wchar_.h [__DECC]: Likewise.
49011         * lib/wctype_.h [__DECC]: Likewise.
49012         * lib/inttypes_.h [__DECC]: Likewise.
49013         Reported by Albert Chin <china@thewrittenword.com> in
49014         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
49016 2007-04-04  Eric Blake  <ebb9@byu.net>
49018         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
49019         1.5.x.
49021 2007-04-04  Bruno Haible  <bruno@clisp.org>
49023         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
49024         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
49026 2007-04-04  Bruno Haible  <bruno@clisp.org>
49028         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
49029         results for "%010a" of Infinity and NaN.
49030         * tests/test-vasprintf-posix.c (test_function): Likewise.
49031         * tests/test-snprintf-posix.h (test_function): Likewise.
49032         * tests/test-sprintf-posix.h (test_function): Likewise.
49033         * tests/test-fprintf-posix.h (test_function): Remove these tests.
49034         * tests/test-printf-posix.h (test_function): Likewise.
49035         * tests/test-fprintf-posix.out: Update.
49036         Needed for FreeBSD 6.1.
49038 2007-04-04  Bruno Haible  <bruno@clisp.org>
49040         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
49041         directly used by the gnulib modules nor by gnulib-tool.
49043 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
49045         * DEPENDENCIES: Give overall description of version dependency
49046         desirability.  Use more-typical names for apps.
49047         Add shell, coreutils, diffutils, grep, tar, gzip.
49049 2007-04-04  Simon Josefsson  <simon@josefsson.org>
49051         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
49053 2007-04-04  Karl Berry  <karl@gnu.org>
49055         * MODULES.html.sh (func_module): missing '.
49057 2007-04-03  Bruno Haible  <bruno@clisp.org>
49059         * modules/argmatch-tests (Makefile.am): New variable
49060         test_argmatch_LDADD.
49061         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
49062         * modules/array-list-tests (Makefile.am): New variable
49063         test_array_list_LDADD.
49064         * modules/array-oset-tests (Makefile.am): New variable
49065         test_array_oset_LDADD.
49066         * modules/avltree-list-tests (Makefile.am): New variable
49067         test_avltree_list_LDADD.
49068         * modules/avltree-oset-tests (Makefile.am): New variable
49069         test_avltree_oset_LDADD.
49070         * modules/avltreehash-list-tests (Makefile.am): New variable
49071         test_avltreehash_list_LDADD.
49072         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
49073         test_canonicalize_lgpl_LDADD.
49074         * modules/carray-list-tests (Makefile.am): New variable
49075         test_carray_list_LDADD.
49076         * modules/dirname-tests (Makefile.am): New variable
49077         test_dirname_LDADD.
49078         * modules/linked-list-tests (Makefile.am): New variable
49079         test_linked_list_LDADD.
49080         * modules/linkedhash-list-tests (Makefile.am): New variable
49081         test_linkedhash_list_LDADD.
49082         * modules/rbtree-list-tests (Makefile.am): New variable
49083         test_rbtree_list_LDADD.
49084         * modules/rbtree-oset-tests (Makefile.am): New variable
49085         test_rbtree_oset_LDADD.
49086         * modules/rbtreehash-list-tests (Makefile.am): New variable
49087         test_rbtreehash_list_LDADD.
49088         * modules/xvasprintf-tests (Makefile.am): New variable
49089         test_xvasprintf_LDADD.
49090         Reported by Eric Blake.
49092 2007-04-03  Eric Blake  <ebb9@byu.net>
49094         * DEPENDENCIES: Weaken m4 requirements.
49096 2007-04-03  Bruno Haible  <bruno@clisp.org>
49098         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
49099         * modules/isnanl-tests (configure.ac): Likewise.
49101 2007-04-03  Ben Pfaff  <blp@gnu.org>
49103         * modules/iconv_open: Add $(srcdir)/ to source directory
49104         references in Makefile fragments that call gperf, to fix VPATH
49105         builds.
49107 2007-04-03  Bruno Haible  <bruno@clisp.org>
49109         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
49110         * lib/ldexpl.c: Undo last change.
49112 2007-04-03  Bruno Haible  <bruno@clisp.org>
49114         * modules/printf-frexpl (Depends-on): Undo last change.
49115         (Files): Add m4/ldexpl.m4.
49117 2007-04-03  Bruno Haible  <bruno@clisp.org>
49119         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
49120         * modules/isnanl (Link): New section.
49122         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
49123         * modules/frexp (Link): New section.
49125         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
49126         * modules/frexpl (Link): New section.
49128         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
49129         * modules/ldexpl (Link): New section.
49131 2007-04-03  Bruno Haible  <bruno@clisp.org>
49133         * modules/TEMPLATE-EXTENDED: New file.
49134         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
49136 2007-04-03  Bruno Haible  <bruno@clisp.org>
49138         * DEPENDENCIES: New file.
49139         Suggested by Simon Josefsson.
49141 2007-04-03  Bruno Haible  <bruno@clisp.org>
49143         * doc/gnulib.texi: Escape @.
49145 2007-04-03  James Youngman  <jay@gnu.org>
49146         and Paul Eggert  <eggert@cs.ucla.edu>
49148         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
49149         birthtime on all systems that have birthtime, not just those which
49150         use st_birthtimensec rather than st_birthtim.  Putting zero in
49151         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
49152         that the birth time is not available for files on an NFS mount.
49154 2007-04-03  Simon Josefsson  <simon@josefsson.org>
49156         * modules/memxor: Move back from crypto/, suggested by Bruno.
49157         * modules/crypto/hmac-sha1: Fix memxor dependency.
49159         * modules/crypto/gc: Moved from ../.
49161 2007-04-02  Eric Blake  <ebb9@byu.net>
49163         * lib/ldexpl.c (includes): Avoid libm.
49165         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
49167 2007-04-02  Bruno Haible  <bruno@clisp.org>
49169         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
49170         on IRIX.
49172 2007-04-02  Bruno Haible  <bruno@clisp.org>
49174         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
49175         x86 or x86_64 platforms running MacOS X.
49176         Reported by Ryan Schmidt <@ryandesign.com>.
49178 2007-04-02  Bruno Haible  <bruno@clisp.org>
49180         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
49181         i386.
49183 2007-04-01  Simon Josefsson  <simon@josefsson.org>
49185         * modules/crypto/arcfour: Moved from ../.
49186         * modules/crypto/arcfour-tests: Moved from ../.
49187         * modules/crypto/arctwo: Moved from ../.
49188         * modules/crypto/arctwo-tests: Moved from ../.
49189         * modules/crypto/des: Moved from ../.
49190         * modules/crypto/des-tests: Moved from ../.
49191         * modules/crypto/gc-arcfour: Moved from ../.
49192         * modules/crypto/gc-arcfour-tests: Moved from ../.
49193         * modules/crypto/gc-arctwo: Moved from ../.
49194         * modules/crypto/gc-arctwo-tests: Moved from ../.
49195         * modules/crypto/gc-des: Moved from ../.
49196         * modules/crypto/gc-des-tests: Moved from ../.
49197         * modules/crypto/gc-hmac-md5: Moved from ../.
49198         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
49199         * modules/crypto/gc-hmac-sha1: Moved from ../.
49200         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
49201         * modules/crypto/gc-md2: Moved from ../.
49202         * modules/crypto/gc-md2-tests: Moved from ../.
49203         * modules/crypto/gc-md4: Moved from ../.
49204         * modules/crypto/gc-md4-tests: Moved from ../.
49205         * modules/crypto/gc-md5: Moved from ../.
49206         * modules/crypto/gc-md5-tests: Moved from ../.
49207         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
49208         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
49209         * modules/crypto/gc-random: Moved from ../.
49210         * modules/crypto/gc-rijndael: Moved from ../.
49211         * modules/crypto/gc-rijndael-tests: Moved from ../.
49212         * modules/crypto/gc-sha1: Moved from ../.
49213         * modules/crypto/gc-sha1-tests: Moved from ../.
49214         * modules/crypto/gc-tests: Moved from ../.
49215         * modules/crypto/hmac-md5: Moved from ../.
49216         * modules/crypto/hmac-md5-tests: Moved from ../.
49217         * modules/crypto/hmac-sha1: Moved from ../.
49218         * modules/crypto/hmac-sha1-tests: Moved from ../.
49219         * modules/crypto/md2: Moved from ../.
49220         * modules/crypto/md2-tests: Moved from ../.
49221         * modules/crypto/md4: Moved from ../.
49222         * modules/crypto/md4-tests: Moved from ../.
49223         * modules/crypto/md5: Moved from ../.
49224         * modules/crypto/md5-tests: Moved from ../.
49225         * modules/crypto/memxor: Moved from ../.
49226         * modules/crypto/rijndael: Moved from ../.
49227         * modules/crypto/rijndael-tests: Moved from ../.
49228         * modules/crypto/sha1: Moved from ../.
49230 2007-03-30  James Youngman  <jay@gnu.org>
49232         * tests/test-stat-time.c (prepare_test): use chmod() rather than
49233         rename() to change the ctime of a file (because ctime is unaffected
49234         by rename on jfs2 on AIX 5.1).
49235         (main): Start by doing cleanup, in case a previous run failed leaving
49236         test files behind.
49238 2007-03-31  Bruno Haible  <bruno@clisp.org>
49240         Support old proprietary implementations of iconv.
49241         * modules/iconv_open: New file.
49242         * lib/iconv_.h: New file.
49243         * m4/iconv_h.m4: New file.
49244         * lib/iconv_open.c: New file.
49245         * lib/iconv_open-aix.gperf: New file.
49246         * lib/iconv_open-hpux.gperf: New file.
49247         * lib/iconv_open-irix.gperf: New file.
49248         * lib/iconv_open-osf.gperf: New file.
49249         * m4/iconv_open.m4: New file.
49250         * modules/linebreak (Depends-on): Add iconv_open.
49251         * modules/striconv (Depends-on): Likewise.
49252         * modules/striconveh (Depends-on): Likewise.
49253         * modules/unicodeio (Depends-on): Likewise.
49254         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
49255         (iconv_t)(-1).
49256         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
49257         conversion if cd is (iconv_t)(-1).
49258         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
49259         is not possible.
49261 2007-03-31  Bruno Haible  <bruno@clisp.org>
49263         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
49264         work on Solaris either. Protect also second use of "autodetect_jp".
49266 2007-03-31  Bruno Haible  <bruno@clisp.org>
49268         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
49269         the function is not present.
49271 2007-03-31  Bruno Haible  <bruno@clisp.org>
49273         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
49274         the function is not present.
49276 2007-03-31  Bruno Haible  <bruno@clisp.org>
49278         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
49279         a bug in HP-UX iconv_open().
49281 2007-03-31  Bruno Haible  <bruno@clisp.org>
49283         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
49284         (Mathematics <math.h>): New section, add fpieee.
49285         (Input/output <stdio.h>): Add fseterr.
49286         (Mathematics <math.h>): New section, add printf-frexp.
49287         (Container data structures): Add sublist.
49288         (Core language properties): Add fpucw, inline.
49289         (Functions for greatest-width integer types <inttypes.h>): Add
49290         imaxabs, imaxdiv, inttypes.
49291         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
49292         isnanl-nolibm, ldexp.
49293         (Mathematics <math.h>): New section, add printf-frexpl.
49294         (Support for systems lacking POSIX:2001): Add fprintf-posix,
49295         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
49296         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
49297         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
49298         (Unicode string functions): Add unistr/u*-mbtoucr.
49299         (Java): Add javacomp-script, javaexec-script.
49300         (C#): Add csharpcomp-script, csharpexec-script.
49301         (Support for building libraries and executables): Add havelib,
49302         relocatable-*.
49303         (Support for maintaining and releasing projects): Renamed from
49304         'Support for maintaining and release projects'. Add announce-gen.
49306 2007-03-31  Bruno Haible  <bruno@clisp.org>
49308         * README: Talk primarily about git.
49309         (git and CVS): Renamed from CVS.
49310         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
49311         gnulib is available through git.
49312         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
49314 2007-03-30  Bruno Haible  <bruno@clisp.org>
49316         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
49317         * lib/poll_.h: Likewise.
49318         * lib/stat_.h: Likewise.
49319         * lib/sys_time_.h: Likewise.
49320         * lib/sysexit_.h: Likewise.
49321         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
49322         * lib/stdbool_.h: Likewise.
49323         * lib/byteswap_.h: Add double-inclusion guard.
49325 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
49327         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
49329 2007-03-30  Karl Berry  <karl@gnu.org>
49331         * config/srclist-update: double space after USA in the license
49332         substitution, since that's how it's usually (?) written.
49334 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
49336         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
49337         reported by Bruno Haible.
49339 2007-03-29  Bruno Haible  <bruno@clisp.org>
49341         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
49342         a bug in AIX iconv().
49344 2007-03-29  Bruno Haible  <bruno@clisp.org>
49346         * modules/ldexpl-tests: New file.
49347         * tests/test-ldexpl.c: New file.
49349 2007-03-29  Bruno Haible  <bruno@clisp.org>
49351         * lib/ldexpl.c: Include fpucw.h.
49352         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
49353         multiplication.
49354         * modules/ldexpl (Depends-on): Add fpucw.
49356 2007-03-29  Bruno Haible  <bruno@clisp.org>
49358         * modules/ldexpl: New file.
49359         * m4/ldexpl.m4: New file.
49360         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
49361         set.
49362         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
49363         REPLACE_LDEXPL.
49364         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
49365         REPLACE_LDEXPL.
49366         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
49367         gl_FUNC_LDEXPL_WORKS.
49368         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
49369         * modules/mathl (Files): Remove lib/ldexpl.c.
49370         (Depends-on): Add ldexpl.
49372 2007-03-29  Bruno Haible  <bruno@clisp.org>
49374         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
49376 2007-03-29  Bruno Haible  <bruno@clisp.org>
49378         * tests/test-striconveh.c (main): Don't assume that a direct conversion
49379         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
49380         and possibly also HP-UX.
49381         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
49382         work on AIX, IRIX, HP-UX, OSF/1.
49383         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
49384         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
49385         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
49386         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
49387         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
49388         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
49390 2007-03-29  Bruno Haible  <bruno@clisp.org>
49392         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
49394 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
49396         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
49397         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
49399 2007-03-29  Eric Blake  <ebb9@byu.net>
49401         * lib/acl-internal.h: Remove redundant include.
49402         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
49403         Cygwin when a file is locked.
49405 2007-03-29  Bruno Haible  <bruno@clisp.org>
49407         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
49408         file.
49409         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
49411 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
49413         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
49414         try to remove a parent directory if the child couldn't be removed
49415         (except for the first rmdir, which could fail because the child
49416         doesn't exist).  Problem reported by Jeff Blaine in
49417         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
49419 2007-03-28  Bruno Haible  <bruno@clisp.org>
49421         * lib/striconveh.c (utf8conv_carefully): New function.
49422         (mem_cd_iconveh_internal): Invoke it.
49424 2007-03-28  Bruno Haible  <bruno@clisp.org>
49426         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
49427         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
49428         input.
49429         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
49430         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
49431         unistr/u8-uctomb.
49433 2007-03-28  Bruno Haible  <bruno@clisp.org>
49435         * modules/unistr/u8-mbtoucr: New file.
49436         * lib/unistr/u8-mbtoucr.c: New file.
49437         * modules/unistr/u16-mbtoucr: New file.
49438         * lib/unistr/u16-mbtoucr.c: New file.
49439         * modules/unistr/u16-mbtoucr: New file.
49440         * lib/unistr/u16-mbtoucr.c: New file.
49441         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
49443 2007-03-27  Simon Josefsson  <simon@josefsson.org>
49444             Bruno Haible  <bruno@clisp.org>
49446         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
49447         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
49448         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
49450         * m4/stdio_h.m4: Add stubs for vasprintf too.
49452         * modules/stdio: Support vasprintf in sed command.
49454         * modules/vasprintf: Depend on stdio for prototypes.  Remove
49455         vasprintf.h.  Add stdio module indicator.
49457         * lib/stdio_.h: Declare asprintf and vasprintf, based on
49458         vasprintf.h.
49460         * lib/vasprintf.h: File removed.
49462         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
49463         * lib/vasprintf.c: Ditto.
49464         * lib/xvasprintf.c: Ditto.
49465         * tests/test-vasprintf-posix.c: Ditto.
49466         * tests/test-vasprintf.c: Ditto.
49468 2007-03-27  Bruno Haible  <bruno@clisp.org>
49470         Make vasnprintf multithread-safe.
49471         * lib/vasnprintf.c (decimal_point_char): New function.
49472         (VASNPRINTF): Use it.
49473         Suggested by Simon Josefsson.
49475 2007-03-27  Eric Blake  <ebb9@byu.net>
49477         Support sub-second birthtime on cygwin.
49478         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
49479         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
49480         (get_stat_birthtime): Also work with st_birthtim.
49482 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
49484         * lib/stat-time.h (USE_BIRTHTIME): Remove.
49485         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
49486         (get_stat_birthtime_ns): Do not try to use "spare" fields.
49487         (get_stat_birthtime_ns): Simplify compile-time tests.
49488         (get_stat_birthtime): Change the API to look like
49489         get_stat_mtime etc., except return a negative tv_nsec on error.
49490         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
49491         Don't check for "spare" fields.
49492         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
49493         or for struct stat.st_birthtime, as these tests aren't used.
49494         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
49496 2007-03-27  Bruno Haible  <bruno@clisp.org>
49498         * lib/stat-time.h: Include <sys/stat.h>.
49500 2007-03-27  James Youngman  <jay@gnu.org>
49502         * lib/stat-time.h (get_stat_birthtime): New function for
49503           retrieving st_birthtime as provided by UFS2 (hence *BSD).
49504         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
49505           and its variants.
49506         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
49507         * modules/stat-time-test: New file.
49508         * tests/test-stat-time.c: New test, devised by Bruno Haible.
49510 2007-03-26  Bruno Haible  <bruno@clisp.org>
49512         Better support of signalling NaNs.
49513         * lib/atanl.c: Include isnanl.h.
49514         (atanl): Perform test for NaN at the beginning of the function and
49515         through a call to isnanl.
49516         * lib/cosl.c: Include isnanl.h.
49517         (cosl): Perform test for NaN at the beginning of the function and
49518         through a call to isnanl.
49519         * lib/ldexpl.c: Include isnanl.h.
49520         (ldexpl): Perform test for NaN through a call to isnanl.
49521         * lib/logl.c: Include isnanl.h.
49522         (logl): Perform test for NaN at the beginning of the function and
49523         through a call to isnanl.
49524         * lib/sinl.c: Include isnanl.h.
49525         (sinl): Perform test for NaN at the beginning of the function and
49526         through a call to isnanl.
49527         * lib/sqrtl.c: Include isnanl.h.
49528         (sqrtl): Perform test for NaN at the beginning of the function and
49529         through a call to isnanl.
49530         * lib/tanl.c: Include isnanl.h.
49531         (tanl): Perform test for NaN at the beginning of the function and
49532         through a call to isnanl.
49533         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
49534         * modules/mathl (Depends-on): Add isnanl.
49536 2007-03-26  Eric Blake  <ebb9@byu.net>
49538         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
49539         regression in logic sense of previous patch.
49541 2007-03-26  Bruno Haible  <bruno@clisp.org>
49543         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
49544         unportable shell command "if ! ...".
49545         Reported by Ralf Wildenhues.
49547 2007-03-25  Bruno Haible  <bruno@clisp.org>
49549         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
49550         <sysexits.h> file, and only add EX_CONFIG.
49551         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
49552         absolute file name and whether it is sufficient. Substitute also
49553         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
49554         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
49555         ABSOLUTE_SYSEXITS_H into sysexits.h.
49557 2007-03-25  Bruno Haible  <bruno@clisp.org>
49559         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
49560         hints is NULL.
49562 2007-03-25  Bruno Haible  <bruno@clisp.org>
49564         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
49565         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
49567 2007-03-25  Bruno Haible  <bruno@clisp.org>
49569         * lib/vasnprintf.c: Include langinfo.h.
49570         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
49571         multithread-safe.
49572         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
49573         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
49574         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
49575         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
49576         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
49577         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
49578         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
49579         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
49580         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
49581         Reported by Simon Josefsson.
49583 2007-03-25  Bruno Haible  <bruno@clisp.org>
49585         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
49586         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
49587         * modules/vasnprintf (Depends-on): Add stdint.
49589 2007-03-25  Bruno Haible  <bruno@clisp.org>
49591         * modules/fpieee: New file.
49592         * m4/fpieee.m4: New file.
49593         * modules/isnan-nolibm (Depends-on): Add fpieee.
49594         * modules/isnanl-nolibm (Depends-on): Add fpieee.
49595         * modules/isnanl (Depends-on): Add fpieee.
49597 2007-03-25  Bruno Haible  <bruno@clisp.org>
49599         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
49601 2007-03-25  Bruno Haible  <bruno@clisp.org>
49603         Avoid test failures on IRIX 6.5.
49604         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
49605         (main): Use it.
49606         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
49607         macros.
49608         (main): Use them.
49610 2007-03-25  Bruno Haible  <bruno@clisp.org>
49612         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
49613         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
49614         exists but doesn't work.
49615         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
49616         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
49617         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
49618         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
49620 2007-03-25  Bruno Haible  <bruno@clisp.org>
49622         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
49623         returns inf. Needed on IRIX 6.5.
49625 2007-03-25  Bruno Haible  <bruno@clisp.org>
49627         * tests/test-frexpl.c: Include isnanl-nolibm.h.
49628         (main): Use isnanl instead of x != x idiom.
49629         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
49631         * tests/test-frexp.c: Include isnan.h.
49632         (main): Use isnan instead of x != x idiom.
49633         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
49635 2007-03-25  Bruno Haible  <bruno@clisp.org>
49637         * tests/test-frexp.c (NaN): New function/macro.
49638         (main): Use it instead of 0.0 / 0.0.
49639         * tests/test-isnan.c (NaN): New function/macro.
49640         (main): Use it instead of 0.0 / 0.0.
49641         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
49642         (test_function): Use it instead of 0.0 / 0.0.
49643         * tests/test-vasprintf-posix.c (NaN): New function/macro.
49644         (test_function): Use it instead of 0.0 / 0.0.
49645         * tests/test-snprintf-posix.h (NaN): New function/macro.
49646         (test_function): Use it instead of 0.0 / 0.0.
49647         * tests/test-sprintf-posix.h (NaN): New function/macro.
49648         (test_function): Use it instead of 0.0 / 0.0.
49649         * tests/test-fprintf-posix.h (NaN): New function/macro.
49650         (test_function): Use it instead of 0.0 / 0.0.
49651         * tests/test-printf-posix.h (NaN): New function/macro.
49652         (test_function): Use it instead of 0.0 / 0.0.
49654         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
49656 2007-03-25  Bruno Haible  <bruno@clisp.org>
49658         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
49660 2007-03-25  Bruno Haible  <bruno@clisp.org>
49662         * lib/regexec.c (merge_state_with_log): Make static.
49664 2007-03-25  Bruno Haible  <bruno@clisp.org>
49666         * lib/trigl.c (kernel_rem_pio2): Make static.
49668 2007-03-25  Bruno Haible  <bruno@clisp.org>
49670         * lib/sincosl.c (sincosl_table): Make static.
49672 2007-03-25  Bruno Haible  <bruno@clisp.org>
49674         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
49675         if the compiler does not support C99.
49677 2007-03-25  Bruno Haible  <bruno@clisp.org>
49679         * modules/time (Makefile.am): Ensure all rule action lines start with a
49680         tab.
49682 2007-03-24  Bruno Haible  <bruno@clisp.org>
49684         * modules/tsearch-tests: New file.
49685         * tests/test-tsearch.sh: New file.
49686         * tests/test-tsearch.c: New file, mostly copied from glibc.
49688         * modules/search-tests: New file.
49689         * tests/test-search.c: New file.
49691         * modules/search: New file.
49692         * lib/search_.h: New file, incorporating lib/tsearch.h.
49693         * m4/search_h.m4: New file.
49694         * lib/tsearch.h: Remove file.
49695         * lib/tsearch.c: Include search.h instead of tsearch.h.
49696         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
49697         HAVE_TSEARCH.
49698         * modules/tsearch (Files): Remove lib/tsearch.h.
49699         (Depends-on): Add search.
49700         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
49701         (Include): Change tsearch.h into search.h.
49703 2007-03-24  Bruno Haible  <bruno@clisp.org>
49705         * modules/fpucw: New file.
49706         * lib/fpucw.h: New file.
49707         * lib/frexp.c: Include fpucw.h.
49708         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
49709         (FUNC): Use them.
49710         * lib/printf-frexp.c: Include fpucw.h.
49711         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
49712         (FUNC): Use them.
49713         * lib/vasnprintf.c: Include fpucw.h.
49714         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
49715         'long double' calculations.
49716         * tests/test-frexpl.c: Include fpucw.h.
49717         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
49718         * tests/test-printf-frexpl.c: Include fpucw.h.
49719         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
49720         * modules/frexpl (Depends-on): Add fpucw.
49721         * modules/printf-frexpl (Depends-on): Likewise.
49722         * modules/fprintf-posix (Depends-on): Likewise.
49723         * modules/snprintf-posix (Depends-on): Likewise.
49724         * modules/sprintf-posix (Depends-on): Likewise.
49725         * modules/vasnprintf-posix (Depends-on): Likewise.
49726         * modules/vasprintf-posix (Depends-on): Likewise.
49727         * modules/vfprintf-posix (Depends-on): Likewise.
49728         * modules/vsnprintf-posix (Depends-on): Likewise.
49729         * modules/vsprintf-posix (Depends-on): Likewise.
49730         * modules/frexpl-tests (Depends-on): Likewise.
49731         * modules/printf-frexpl-tests (Depends-on): Likewise.
49733 2007-03-24  Bruno Haible  <bruno@clisp.org>
49735         * lib/float+.h: New file.
49736         * lib/isnan.c: Include float+.h.
49737         (SIZE): New macro.
49738         (FUNC): Compare only SIZE bytes of the value.
49739         * lib/vasnprintf.c: Include float+.h.
49740         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
49741         SIZEOF_LDBL or SIZEOF_DBL bytes.
49742         * modules/isnan-nolibm (Files): Add lib/float+.h.
49743         * modules/isnanl-nolibm (Files): Add lib/float+.h.
49744         * modules/isnanl (Files): Add lib/float+.h.
49745         * modules/vasnprintf (Files): Add lib/float+.h.
49747 2007-03-24  Bruno Haible  <bruno@clisp.org>
49749         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
49750         include isnanl-nolibm.h.
49752 2007-03-24  Bruno Haible  <bruno@clisp.org>
49754         * tests/test-read-file.c (main): Don't produce spurious output for
49755         expected situations. Make the test fail if it encountered unexpected
49756         results.
49758 2007-03-24  Bruno Haible  <bruno@clisp.org>
49760         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
49761         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
49763 2007-03-24  Bruno Haible  <bruno@clisp.org>
49765         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
49767 2007-03-24  Bruno Haible  <bruno@clisp.org>
49769         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
49770         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
49772         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
49773         * modules/utf8-ucs4: Turn into a symbolic link to module
49774         unistr/u8-mbtouc.
49776         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
49777         utf8-ucs4-unsafe.
49778         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
49779         unistr/u8-mbtouc-unsafe.
49781         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
49782         * modules/utf16-ucs4: Turn into a symbolic link to module
49783         unistr/u16-mbtouc.
49785         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
49786         utf16-ucs4-unsafe.
49787         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
49788         unistr/u16-mbtouc-unsafe.
49790         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
49791         * modules/ucs4-utf8: Turn into a symbolic link to module
49792         unistr/u8-ubtomb.
49794         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
49795         * modules/ucs4-utf16: Turn into a symbolic link to module
49796         unistr/u16-ubtomb.
49798 2007-03-24  Bruno Haible  <bruno@clisp.org>
49800         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
49801         Enable the function only if HAVE_INLINE.
49802         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
49803         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
49804         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
49805         Enable the function only if HAVE_INLINE.
49806         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
49807         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
49808         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
49809         Enable the function only if HAVE_INLINE.
49810         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
49811         Enable the function only if HAVE_INLINE.
49812         * modules/utf8-ucs4: Update.
49813         * modules/utf8-ucs4-unsafe: Update.
49814         * modules/utf16-ucs4: Update.
49815         * modules/utf16-ucs4-unsafe: Update.
49816         * modules/ucs4-utf8: Update.
49817         * modules/ucs4-utf16: Update.
49819 2007-03-24  Bruno Haible  <bruno@clisp.org>
49821         * lib/utf8-ucs4.h: Remove file.
49822         * lib/utf8-ucs4-unsafe.h: Remove file.
49823         * lib/utf16-ucs4.h: Remove file.
49824         * lib/utf16-ucs4-unsafe.h: Remove file.
49825         * lib/ucs4-utf8.h: Remove file.
49826         * lib/ucs4-utf16.h: Remove file.
49827         * lib/unistr.h: Include their previous contents.
49828         * m4/utf-ucs4.m4: Remove file.
49829         * m4/ucs4-utf.m4: Remove file.
49830         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
49831         (Depends-on): Add unistr/base.
49832         (configure.ac): Remove gl_UTF_UCS4.
49833         (Makefile.am): Update.
49834         (Include): Change to unistr.h.
49835         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
49836         (Depends-on): Add unistr/base.
49837         (configure.ac): Remove gl_UTF_UCS4.
49838         (Makefile.am): Update.
49839         (Include): Change to unistr.h.
49840         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
49841         (Depends-on): Add unistr/base.
49842         (configure.ac): Remove gl_UTF_UCS4.
49843         (Makefile.am): Update.
49844         (Include): Change to unistr.h.
49845         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
49846         (Depends-on): Add unistr/base.
49847         (configure.ac): Remove gl_UTF_UCS4.
49848         (Makefile.am): Update.
49849         (Include): Change to unistr.h.
49850         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
49851         (Depends-on): Add unistr/base.
49852         (configure.ac): Remove gl_UCS4_UTF.
49853         (Makefile.am): Update.
49854         (Include): Change to unistr.h.
49855         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
49856         (Depends-on): Add unistr/base.
49857         (configure.ac): Remove gl_UCS4_UTF.
49858         (Makefile.am): Update.
49859         (Include): Change to unistr.h.
49860         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
49861         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
49862         utf8-ucs4-unsafe.h.
49863         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
49864         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
49865         utf16-ucs4-unsafe.h.
49866         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
49867         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
49868         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
49869         * lib/unistr/u8-strchr.c: Likewise.
49870         * lib/unistr/u8-strrchr.c: Likewise.
49871         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
49872         * lib/unistr/u16-strchr.c: Likewise.
49873         * lib/unistr/u16-strrchr.c: Likewise.
49874         * lib/striconveh.c: Update.
49875         * lib/linebreak.c: Update.
49877 2007-03-24  Bruno Haible  <bruno@clisp.org>
49879         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
49880         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
49882 2007-03-22  Bruno Haible  <bruno@clisp.org>
49884         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
49886 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
49888         * MODULES.html.sh (File system functions): New module write-any-file.
49889         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
49890         * m4/write-any-file.m4: New files.
49892 2007-03-23  Eric Blake  <ebb9@byu.net>
49894         * gnulib-tool: Rearrange space-tab sequences, since some editors
49895         like to eat them.
49897 2007-03-23  Eric Blake  <ebb9@byu.net>
49899         * lib/version-etc.c (version_etc_va): Update license wording to
49900         be more concise.  Recommended by Richard Stallman.
49902 2007-03-22  Bruno Haible  <bruno@clisp.org>
49904         * lib/poll.c (MSG_PEEK): New fallback definition.
49906 2007-03-22  Bruno Haible  <bruno@clisp.org>
49908         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
49909         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
49910         (main): Update.
49911         Fixes a compilation error on BeOS.
49913 2007-03-22  Bruno Haible  <bruno@clisp.org>
49915         * modules/frexpl-tests: New file.
49916         * tests/test-frexpl.c: New file.
49918         * modules/frexpl: New file.
49919         * m4/frexpl.m4: New file.
49920         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
49921         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
49922         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
49923         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
49924         (Depends-on): Add frexpl. Remove isnanl-nolibm.
49925         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
49927 2007-03-22  Bruno Haible  <bruno@clisp.org>
49929         * lib/frexpl.c: Share code with lib/frexp.c.
49930         * modules/mathl (Files): Add lib/frexp.c.
49931         (Depends-on): Add isnanl-nolibm.
49933 2007-03-22  Bruno Haible  <bruno@clisp.org>
49935         * modules/printf-frexp (Files): Add m4/frexp.m4.
49936         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
49937         only if the found frexp function actually works.
49939 2007-03-22  Bruno Haible  <bruno@clisp.org>
49941         * lib/frexp.c: Remove older implementation that uses divisions.
49943 2007-03-21  Bruno Haible  <bruno@clisp.org>
49945         * modules/frexp-tests: New file.
49946         * tests/test-frexp.c: New file.
49948         * modules/frexp: New file.
49949         * lib/frexp.c: New file.
49950         * m4/frexp.m4: New file.
49951         * lib/math_.h (frexp): New declaration.
49952         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
49953         REPLACE_FREXP.
49954         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
49956 2007-03-21  Bruno Haible  <bruno@clisp.org>
49958         * modules/isnanl-tests: New file.
49959         * tests/test-isnanl.c: New file.
49961         * modules/isnanl: New file.
49962         * lib/isnanl.h: New file.
49963         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
49964         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
49965         gl_FUNC_ISNANL_WORKS.
49966         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
49967         New macros.
49969 2007-03-21  Bruno Haible  <bruno@clisp.org>
49971         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
49972         lib/isnanl.h.
49973         (Include): Update.
49974         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
49975         * lib/vasnprintf.c: Update.
49976         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
49977         tests/test-isnanl.h, remove tests/test-isnanl.c.
49978         (Makefile.am): Update.
49979         * tests/test-isnanl-nolibm.c: New file.
49980         * tests/test-isnanl.h: New file.
49981         * tests/test-isnanl.c: Remove file.
49983 2007-03-21  Jim Meyering  <jim@meyering.net>
49985         When trying to open ".", treat ESTALE like EACCES.
49986         * lib/savewd.c (savewd_save): Resort to forking not just upon
49987         failure with EACCES, but also when errno is ESTALE.
49989 2007-03-20  Bruno Haible  <bruno@clisp.org>
49991         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
49992         Needed on AIX 5.1. Reported by Matthew Woehlke.
49994 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
49996         Suggestions by Bruno Haible:
49997         * lib/acl-internal.h: Include "gettext.h" rather than rolling
49998         our own.
49999         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
50000         * modules/acl (Depends-on): Add gettext.
50002 2007-03-19  Bruno Haible  <bruno@clisp.org>
50004         * modules/iconvme: Remove file.
50005         * lib/iconvme.h: Remove file.
50006         * lib/iconvme.c: Remove file.
50007         * m4/iconvme.m4: Remove file.
50009 2007-03-19  Bruno Haible  <bruno@clisp.org>
50011         * doc/relocatable-maint.texi: Break long shell script line.
50012         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
50014 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
50016         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
50017         handle file_has_acl.
50018         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
50019         * lib/acl.c: Move header inclusions and related macro defns into
50020         lib/acl-internal.h.
50021         (S_ISLNK): Remove defn, since that's now done for us.
50022         (file_has_acl): Move to lib/file-has-acl.c.
50023         Call acl_trivial if available.  This is the crucial part of the fix.
50024         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
50025         shared within the library.  Rewrite a bit, partly to make it compatible
50026         with the GNU coding style.
50027         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
50028         Remove unnecessary double-quotes.
50029         Don't test for acl_to_text; the build will catch that.
50030         Replace acl_entries if it doesn't exist and it is needed.
50031         Check for -lsec and acl_trivial (as used on Solaris 10).
50032         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
50033         lib/file-has-acl.c.
50034         (Depends-on): Add sys_stat, for S_ISLNK.
50036 2007-03-19  Ben Pfaff  <blp@gnu.org>
50038         * doc/gnulib.texi: Fix typos.
50039         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
50041 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
50043         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
50044         If size is zero here, buf must be zero.
50046 2007-03-19  Simon Josefsson  <simon@josefsson.org>
50048         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
50049         <bruno@clisp.org>.
50051 2007-03-18  Bruno Haible  <bruno@clisp.org>
50053         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
50054         Suggested by Eric Blake.
50056 2007-03-18  Ben Pfaff  <blp@gnu.org>
50058         * doc/relocatable.texi: Recommend using as prefix a directory
50059         that does not exist and will never be created.  Based on
50060         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
50061         and others.
50063 2007-03-17  Bruno Haible  <bruno@clisp.org>
50065         * lib/fchownat.c: Include lchown.h.
50067 2007-03-17  Bruno Haible  <bruno@clisp.org>
50069         Fix endless loop when the given allocated size was > INT_MAX.
50070         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
50071         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
50072         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
50073         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
50074         * lib/sprintf.c (sprintf): Likewise.
50076 2007-03-17  Bruno Haible  <bruno@clisp.org>
50078         * tests/test-argp-2.sh (func_compare): Output a context diff.
50080 2007-03-17  Bruno Haible  <bruno@clisp.org>
50082         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
50083         locale's decimal-point character.
50085 2007-03-17  Bruno Haible  <bruno@clisp.org>
50087         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
50088         before comparing it. Needed because on some platforms (e.g. x86) a
50089         'long double' occupies less bytes than sizeof (long double).
50091 2007-03-17  Bruno Haible  <bruno@clisp.org>
50093         * tests/test-crc.c (main): Make printf statements 64-bit clean.
50094         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
50095         * tests/test-getaddrinfo.c (simple): Likewise.
50096         * tests/test-read-file.c (main): Likewise.
50098 2007-03-17  Bruno Haible  <bruno@clisp.org>
50100         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
50102 2007-03-17  Bruno Haible  <bruno@clisp.org>
50104         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
50105         unused variable.
50107 2007-03-17  Bruno Haible  <bruno@clisp.org>
50109         * tests/test-c-strcasecmp.c: Include c-strcase.h.
50110         * tests/test-c-strncasecmp.c: Likewise.
50112 2007-03-17  Bruno Haible  <bruno@clisp.org>
50114         * modules/stdlib (Depends-on): Add unistd.
50115         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
50116         Needed for MacOS X 10.3.
50118 2007-03-17  Bruno Haible  <bruno@clisp.org>
50120         * lib/unistr/u-strdup.h: Include <stdlib.h>.
50122 2007-03-17  Bruno Haible  <bruno@clisp.org>
50124         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
50126 2007-03-17  Bruno Haible  <bruno@clisp.org>
50128         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
50129         to reflect files copied from gnulib (with or without modifications).
50130         Suggested by Jim Meyering.
50132 2007-03-17  Eric Blake  <ebb9@byu.net>
50134         * NEWS: Document stdlib change from 2007-02-18.
50136 2007-03-17  Jim Meyering  <jim@meyering.net>
50138         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
50139         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
50140         someone uses a name containing shell meta-characters.
50141         Reported by Alfred M. Szmidt.
50143         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
50145 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
50147         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
50148         and copy gettext configuration files only if configure.ac contains
50149         a use of AM_GNU_GETTEXT_VERSION.
50151 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
50153         * build-aux/bootstrap (gnulib_name): New variable.
50154         (gnulib_tool_options): Use it.
50156 2007-03-13  Simon Josefsson  <simon@josefsson.org>
50158         * tests/test-des.c: Use new namespace.
50160 2007-03-15  Bruno Haible  <bruno@clisp.org>
50162         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
50163         Reported by James Youngman <jay@gnu.org>.
50165 2007-03-15  Bruno Haible  <bruno@clisp.org>
50167         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
50168         declared prototype. Needed with cc on OSF/1 5.1.
50170 2007-03-15  Bruno Haible  <bruno@clisp.org>
50172         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
50173         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
50174         (struct gl_list_implementation): Add dispose_fn argument to the
50175         'create_empty', 'create' methods.
50176         (struct gl_list_impl_base): Add field 'dispose_fn'.
50177         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
50178         argument.
50179         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
50180         dispose_fn argument.
50181         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
50182         dispose_fn on the dropped values.
50183         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
50184         dispose_fn argument.
50185         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
50186         dropped values.
50187         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
50188         (gl_tree_remove_node): Call dispose_fn on the dropped value.
50189         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
50190         (gl_tree_remove_node): Call dispose_fn on the dropped value.
50191         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
50192         argument.
50193         (gl_tree_list_free): Call dispose_fn on the dropped values.
50194         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
50195         the dropped values.
50196         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
50197         Add dispose_fn argument.
50198         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
50199         Call dispose_fn on the dropped values.
50200         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
50201         Add dispose_fn argument.
50202         (gl_sublist_create): Initialize the 'dispose_fn' field.
50203         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
50204         * tests/test-array_list.c (main): Update.
50205         * tests/test-carray_list.c (main): Update.
50206         * tests/test-avltree_list.c (main): Update.
50207         * tests/test-rbtree_list.c (main): Update.
50208         * tests/test-avltreehash_list.c (main): Update.
50209         * tests/test-rbtreehash_list.c (main): Update.
50210         * tests/test-linked_list.c (main): Update.
50211         * tests/test-linkedhash_list.c (main): Update.
50212         * tests/test-array_oset.c (main): Update.
50214 2007-03-15  Bruno Haible  <bruno@clisp.org>
50216         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
50217         (gl_oset_create_empty): Add dispose_fn argument.
50218         (struct gl_oset_implementation): Add dispose_fn argument to
50219         'create_empty' method.
50220         (struct gl_oset_impl_base): Add dispose_fn field.
50221         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
50222         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
50223         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
50224         values.
50225         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
50226         (gl_tree_oset_free): Call dispose_fn on the dropped values.
50227         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
50228         dropped value.
50229         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
50230         dropped value.
50231         * tests/test-array_oset.c (main): Update.
50232         * tests/test-avltree_oset.c (main): Update.
50233         * tests/test-rbtree_oset.c (main): Update.
50234         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
50236 2007-03-13  Bruno Haible  <bruno@clisp.org>
50238         * tests/test-stdbool.c (i): Update after last patch.
50240 2007-03-12  Bruno Haible  <bruno@clisp.org>
50242         * lib/quotearg.c: Include <wctype.h> early, before the definition of
50243         the iswprint macro. Needed on Solaris 2.5.1.
50245 2007-03-12  Bruno Haible  <bruno@clisp.org>
50247         * tests/test-printf-frexp.c (main): Declare x as volatile.
50249 2007-03-12  Simon Josefsson  <simon@josefsson.org>
50251         * doc/gnulib.texi (Build robot for gnulib): New section.
50253 2007-03-12  Jim Meyering  <jim@meyering.net>
50255         * build-aux/bootstrap: New file.
50256         * build-aux/bootstrap.conf: New file, from coreutils.
50258 2007-03-11  Bruno Haible  <bruno@clisp.org>
50260         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
50262 2007-03-12  Simon Josefsson  <simon@josefsson.org>
50264         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
50265         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
50266         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
50268 2007-03-11  Bruno Haible  <bruno@clisp.org>
50270         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
50271         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
50273 2007-03-11  Bruno Haible  <bruno@clisp.org>
50275         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
50276         formula. Needed for SunPRO C 5.0.
50278 2007-03-11  Bruno Haible  <bruno@clisp.org>
50280         * modules/long-options (Depends-on): Add getopt.
50282 2007-03-11  Bruno Haible  <bruno@clisp.org>
50284         * modules/modechange (Depends-on): Add stdbool.
50286 2007-03-11  Bruno Haible  <bruno@clisp.org>
50288         * modules/i-ring (Depends-on): Add stdbool.
50290 2007-03-11  Bruno Haible  <bruno@clisp.org>
50292         * modules/gc-des (Depends-on): Add stdbool.
50294 2007-03-11  Bruno Haible  <bruno@clisp.org>
50296         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
50298 2007-03-11  Bruno Haible  <bruno@clisp.org>
50300         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
50302 2007-03-11  Bruno Haible  <bruno@clisp.org>
50304         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
50306 2007-03-11  Bruno Haible  <bruno@clisp.org>
50308         * lib/vasnprintf.c (sprintf): Undefine.
50310 2007-03-11  Bruno Haible  <bruno@clisp.org>
50312         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
50313         initializers in SunPRO C and Compaq C compilers.
50315 2007-03-11  Bruno Haible  <bruno@clisp.org>
50317         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
50318         decrementing code ANSI C compliant.
50320 2007-03-11  Bruno Haible  <bruno@clisp.org>
50322         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
50323         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
50325 2007-03-11  Bruno Haible  <bruno@clisp.org>
50327         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
50328         <stdbool.h> substitute doesn't pass.
50330 2007-03-11  Bruno Haible  <bruno@clisp.org>
50332         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
50334 2007-03-11  Bruno Haible  <bruno@clisp.org>
50336         * gnulib-tool (func_create_megatestdir): Create also an autobuild
50337         script, for submission to autobuild.josefsson.org.
50339 2007-03-10  Bruno Haible  <bruno@clisp.org>
50341         * modules/canonicalize-lgpl-tests: New file.
50342         * tests/test-canonicalize-lgpl.sh: New file.
50343         * tests/test-canonicalize-lgpl.c: New file.
50345         * modules/c-strcase-tests: New file.
50346         * tests/test-c-strcase.sh: New file.
50347         * tests/test-c-strcasecmp.c: New file.
50348         * tests/test-c-strncasecmp.c: New file.
50350         * modules/atexit-tests: New file.
50351         * tests/test-atexit.sh: New file.
50352         * tests/test-atexit.c: New file.
50354 2007-03-10  Bruno Haible  <bruno@clisp.org>
50356         * tests/test-binary-io.sh: Use temporary filenames that are not so
50357         likely to clash with those of other tests (in a parallel make).
50358         * tests/test-binary-io.c: Likewise.
50360 2007-03-10  Bruno Haible  <bruno@clisp.org>
50362         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
50363         fallback; use #error instead.
50364         Suggested by Simon Josefsson.
50366 2007-03-10  Bruno Haible  <bruno@clisp.org>
50368         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
50369         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
50370         first and the last.
50372 2007-03-10  Bruno Haible  <bruno@clisp.org>
50374         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
50376 2007-03-10  Bruno Haible  <bruno@clisp.org>
50378         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
50379         "make distcheck".
50380         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
50381         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
50382         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
50384 2007-03-10  Bruno Haible  <bruno@clisp.org>
50386         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
50387         variable.
50388         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
50389         variable.
50391 2007-03-09  Eric Blake  <ebb9@byu.net>
50392         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
50394         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
50395         types are not being provided by gnulib.
50396         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
50397         types are supported.
50399 2007-03-10  Bruno Haible  <bruno@clisp.org>
50401         * lib/stdio_.h (__attribute__): New macro.
50402         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
50403         vsprintf): Specify __attribute__ __format__ for GCC.
50404         Suggested by Eric Blake.
50406 2007-03-09  Bruno Haible  <bruno@clisp.org>
50408         * modules/printf-posix-tests: New file.
50409         * tests/test-printf-posix.sh: New file.
50410         * tests/test-printf-posix.c: New file.
50412         * modules/printf-posix: New file.
50413         * lib/printf.c: New file.
50414         * m4/printf-posix-rpl.m4: New file.
50415         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
50416         REPLACE_PRINTF.
50417         * lib/stdio_.h (printf): New declaration.
50418         (format, __format__, ____printf____, ____scanf____, ____strftime____,
50419         ____strfmon____): New macros.
50420         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
50421         REPLACE_PRINTF.
50423 2007-03-09  Bruno Haible  <bruno@clisp.org>
50425         * tests/test-vasnprintf-posix2.sh: New file.
50426         * tests/test-vasnprintf-posix2.c: New file.
50427         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
50428         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
50429         (Makefile.am): Activate test-vasnprintf-posix2.sh.
50431         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
50432         a locale dependent decimal point, rather than always '.'.
50434 2007-03-09  Eric Blake  <ebb9@byu.net>
50436         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
50437         spite of platforms like Tandem/NSK that define it to -1.
50439 2007-03-08  Bruno Haible  <bruno@clisp.org>
50441         * modules/vprintf-posix-tests: New file.
50442         * tests/test-vprintf-posix.sh: New file.
50443         * tests/test-vprintf-posix.c: New file.
50444         * tests/test-printf-posix.h: New file.
50446         * modules/vprintf-posix: New file.
50447         * lib/vprintf.c: New file.
50448         * m4/vprintf-posix.m4: New file.
50449         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
50450         REPLACE_VPRINTF.
50451         * lib/stdio_.h (vprintf): New declaration.
50452         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
50453         REPLACE_VPRINTF.
50455 2007-03-08  Bruno Haible  <bruno@clisp.org>
50457         * modules/fprintf-posix-tests: New file.
50458         * tests/test-fprintf-posix.sh: New file.
50459         * tests/test-fprintf-posix.c: New file.
50461         * modules/fprintf-posix: New file.
50462         * lib/fprintf.c: New file.
50463         * m4/fprintf-posix.m4: New file.
50464         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
50465         REPLACE_FPRINTF.
50466         * lib/stdio_.h (fprintf): New declaration.
50467         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
50468         REPLACE_FPRINTF.
50470 2007-03-08  Bruno Haible  <bruno@clisp.org>
50472         * modules/vfprintf-posix-tests: New file.
50473         * tests/test-vfprintf-posix.sh: New file.
50474         * tests/test-vfprintf-posix.c: New file.
50475         * tests/test-fprintf-posix.h: New file.
50476         * tests/test-fprintf-posix.out: New file.
50478         * modules/vfprintf-posix: New file.
50479         * lib/vfprintf.c: New file.
50480         * m4/vfprintf-posix.m4: New file.
50481         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
50482         REPLACE_VFPRINTF.
50483         * lib/stdio_.h (vfprintf): New declaration.
50484         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
50485         REPLACE_VFPRINTF.
50487 2007-03-08  Bruno Haible  <bruno@clisp.org>
50489         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
50491 2007-03-08  Bruno Haible  <bruno@clisp.org>
50493         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
50494         instead of 'expr' invocations.
50495         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50496         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50497         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50498         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50499         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50500         Suggested by Paul Eggert.
50502 2007-03-08  Bruno Haible  <bruno@clisp.org>
50504         * modules/fseterr-tests: New file.
50505         * tests/test-fseterr.c: New file.
50507         * modules/fseterr: New file.
50508         * lib/fseterr.h: New file.
50509         * lib/fseterr.c: New file.
50511 2007-03-08  Bruno Haible  <bruno@clisp.org>
50513         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
50514         * lib/getopt_.h: Likewise.
50515         * lib/mbswidth.h: Likewise.
50516         * lib/setenv.h: Likewise.
50517         * lib/vasnprintf.h: Likewise.
50518         * lib/vasprintf.h: Likewise.
50519         * lib/verror.h: Likewise.
50520         * lib/xsetenv.h: Likewise.
50521         * lib/xvasprintf.h: Likewise.
50523 2007-03-08  Jim Meyering  <jim@meyering.net>
50525         * users.txt: Add parted.
50527         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
50529 2007-03-07  Bruno Haible  <bruno@clisp.org>
50531         * m4/printf.m4: Make the shell script snippets copy&pastable.
50533 2007-03-02  Bruno Haible  <bruno@clisp.org>
50535         * lib/netinet_in_.h: New file.
50536         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
50537         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
50538         * modules/netinet_in (Files): Add lib/netinet_in_.h.
50539         (Depends-on): Add absolute-header.
50540         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
50541         into netinet/in.h.
50543 2007-03-03  Bruno Haible  <bruno@clisp.org>
50545         * lib/sys_select_.h: New file.
50546         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
50547         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
50548         * modules/sys_select (Files): Add lib/sys_select_.h.
50549         (Depends-on): Add absolute-header.
50550         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
50551         into sys/select.h.
50553 2007-03-02  Bruno Haible  <bruno@clisp.org>
50555         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
50556         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
50557         values.
50558         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
50559         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
50560         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
50561         * modules/sys_socket (Depends-on): Add absolute-header.
50562         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
50563         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
50564         (Include): Remove requirement of inclusion of <sys/types.h>.
50566 2007-03-02  Bruno Haible  <bruno@clisp.org>
50568         * lib/byteswap_.h (bswap_32): Fix formula.
50570 2007-03-06  Bruno Haible  <bruno@clisp.org>
50572         * modules/sprintf-posix-tests: New file.
50573         * tests/test-sprintf-posix.c: New file.
50575         * modules/sprintf-posix: New file.
50576         * lib/sprintf.c: New file.
50577         * m4/sprintf-posix.m4: New file.
50578         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
50579         REPLACE_SPRINTF.
50580         * lib/stdio_.h (sprintf): New declaration.
50581         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
50582         REPLACE_SPRINTF.
50584 2007-03-06  Bruno Haible  <bruno@clisp.org>
50586         * modules/vsprintf-posix-tests: New file.
50587         * tests/test-vsprintf-posix.c: New file.
50588         * tests/test-sprintf-posix.h: New file.
50590         * modules/vsprintf-posix: New file.
50591         * lib/vsprintf.c: New file.
50592         * m4/vsprintf-posix.m4: New file.
50593         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
50594         REPLACE_VSPRINTF.
50595         * lib/stdio_.h (vsprintf): New declaration.
50596         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
50597         REPLACE_VSPRINTF.
50599 2007-03-06  Bruno Haible  <bruno@clisp.org>
50601         * modules/vsnprintf (Depend-on): Remove minmax.
50603 2007-03-06  Bruno Haible  <bruno@clisp.org>
50605         * modules/snprintf-posix-tests: New file.
50606         * tests/test-snprintf-posix.c: New file.
50608         * modules/snprintf-posix: New file.
50609         * m4/snprintf-posix.m4: New file.
50610         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
50611         gl_FUNC_SNPRINTF.
50612         (gl_FUNC_SNPRINTF): Invoke it.
50613         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
50614         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
50615         is set.
50616         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
50618 2007-03-06  Bruno Haible  <bruno@clisp.org>
50620         * modules/vsnprintf-posix-tests: New file.
50621         * tests/test-vsnprintf-posix.c: New file.
50622         * tests/test-snprintf-posix.h: New file.
50624         * modules/vsnprintf-posix: New file.
50625         * m4/vsnprintf-posix.m4: New file.
50626         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
50627         gl_FUNC_VSNPRINTF.
50628         (gl_FUNC_VSNPRINTF): Invoke it.
50629         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
50630         * lib/stdio_.h (vsnprintf): Define as a replacement if
50631         REPLACE_VSNPRINTF is set.
50632         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
50634 2007-03-06  Bruno Haible  <bruno@clisp.org>
50636         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
50637         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
50639 2007-03-06  Bruno Haible  <bruno@clisp.org>
50641         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
50642         (asinl): Declare also if HAVE_DECL_ASINL is set.
50643         (atanl): Declare also if HAVE_DECL_ATANL is set.
50644         (ceill): Declare also if HAVE_DECL_CEILL is set.
50645         (cosl): Declare also if HAVE_DECL_COSL is set.
50646         (expl): Declare also if HAVE_DECL_EXPL is set.
50647         (floorl): Declare also if HAVE_DECL_FLOORL is set.
50648         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
50649         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
50650         (logl): Declare also if HAVE_DECL_LOGL is set.
50651         (sinl): Declare also if HAVE_DECL_SINL is set.
50652         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
50653         (tanl): Declare also if HAVE_DECL_TANL is set.
50654         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
50655         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
50656         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
50657         declaration of frexpl, ldexpl.
50658         * modules/printf-frexpl (Depends-on): Add math.
50659         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
50661 2007-03-05  Bruno Haible  <bruno@clisp.org>
50663         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
50664         frexpl and ldexpl are declared.
50665         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
50667 2007-03-05  Bruno Haible  <bruno@clisp.org>
50669         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
50670         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
50672 2007-03-05  Bruno Haible  <bruno@clisp.org>
50674         * lib/stdio_.h: Include <stddef.h>.
50676 2007-03-05  Bruno Haible  <bruno@clisp.org>
50678         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
50680 2007-03-05  Bruno Haible  <bruno@clisp.org>
50682         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
50683         NetBSD 4, from Ralf Wildenhues.
50685 2007-03-04  Bruno Haible  <bruno@clisp.org>
50687         * lib/vasprintf.h: Update #if logic for the case when the functions
50688         exist but are overridden.
50690 2007-03-04  Bruno Haible  <bruno@clisp.org>
50692         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
50693         implementations: glibc-2.4 and MacOS X 10.3.
50694         * tests/test-vasnprintf-posix.c (test_function): Test also the case
50695         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
50696         * tests/test-vasprintf-posix.c (test_function): Likewise.
50698 2007-03-04  Bruno Haible  <bruno@clisp.org>
50700         * modules/vasprintf-posix-tests: New file.
50701         * tests/test-vasprintf-posix.c: New file.
50703         * modules/vasprintf-posix: New file.
50704         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
50705         defined.
50706         * m4/vasprintf-posix.m4: New file.
50707         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
50708         gl_FUNC_VASPRINTF.
50709         (gl_FUNC_VASPRINTF): Invoke it.
50710         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
50711         here.
50712         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
50714 2007-03-04  Bruno Haible  <bruno@clisp.org>
50716         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
50717         REPLACE_GETTIMEOFDAY.
50718         * modules/sys_time (Makefile.am): Likewise.
50719         * m4/sys_time_h.m4: Likewise.
50720         * m4/gettimeofday.m4: Likewise.
50722 2007-03-04  Bruno Haible  <bruno@clisp.org>
50724         * modules/vasnprintf-posix-tests: New file.
50725         * tests/test-vasnprintf-posix.c: New file.
50727         * modules/vasnprintf-posix: New file.
50728         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
50729         printf-frexpl.h.
50730         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
50731         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
50732         REPLACE_VASNPRINTF is defined.
50733         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
50734         gl_FUNC_VASNPRINTF.
50735         (gl_FUNC_VASNPRINTF): Invoke it.
50736         * m4/vasnprintf-posix.m4: New file.
50737         * m4/printf.m4: New file.
50739 2007-03-04  Bruno Haible  <bruno@clisp.org>
50741         Compile progreloc.c only if --enable-relocatable is specified.
50742         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
50743         if --enable-relocatable was specified.
50744         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
50745         lib_SOURCES.
50747 2007-03-04  Jim Meyering  <jim@meyering.net>
50749         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
50750         Use it consistently, rather than enumerating errno constants.
50752 2007-03-04  Bruno Haible  <bruno@clisp.org>
50754         * modules/xvasprintf-tests: New file.
50755         * tests/test-xvasprintf.c: New file.
50757         * modules/vasprintf-tests: New file.
50758         * tests/test-vasprintf.c: New file.
50760         * modules/vasnprintf-tests: New file.
50761         * tests/test-vasnprintf.c: New file.
50763         * modules/vsnprintf-tests: New file.
50764         * tests/test-vsnprintf.c: New file.
50766         * modules/snprintf-tests: New file.
50767         * tests/test-snprintf.c: New file.
50769 2007-03-04  Bruno Haible  <bruno@clisp.org>
50771         Compile relocatable.c only if --enable-relocatable is specified.
50772         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
50773         gl_RELOCATABLE_LIBRARY.
50774         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
50775         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
50776         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
50777         gl_RELOCATABLE_LIBRARY.
50778         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
50779         (Makefile.am): Remove lib_SOURCES.
50780         * modules/relocatable-lib-lgpl (configure.ac): Invoke
50781         gl_RELOCATABLE_LIBRARY.
50782         (Makefile.am): Remove lib_SOURCES.
50783         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
50784         always.
50785         * modules/relocatable-prog-wrapper (configure.ac): Invoke
50786         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
50788 2007-03-04  Bruno Haible  <bruno@clisp.org>
50790         * modules/argmatch-tests: New file.
50791         * tests/test-argmatch.c: New file.
50793         * tests/test-allocsa.c (main): Halve the number of loop runs.
50795         * modules/alloca-opt-tests: New file.
50796         * tests/test-alloca-opt.c: New file.
50798 2007-03-04  Jim Meyering  <jim@meyering.net>
50800         Work around difference between Linux ACLs and Solaris 10 ZFS.
50801         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
50802         for EINVAL.
50804 2007-03-03  Bruno Haible  <bruno@clisp.org>
50806         * modules/relocatable-prog (Depends-on): Add back progreloc's
50807         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
50809 2007-03-03  Bruno Haible  <bruno@clisp.org>
50811         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
50812         * modules/relocatable-lib: New file.
50814 2007-03-03  Bruno Haible  <bruno@clisp.org>
50816         * modules/relocatable-prog: Renamed from modules/relocatable.
50817         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
50819 2007-03-03  Bruno Haible  <bruno@clisp.org>
50821         * modules/relocatable-script (Files): Add doc/relocatable.texi,
50822         m4/relocatable-lib.m4.
50823         (Depends-on): Remove 'relocatable'.
50824         (configure.ac): Add gl_RELOCATABLE_NOP.
50826 2007-03-03  Bruno Haible  <bruno@clisp.org>
50828         * modules/relocatable-prog-wrapper: New file.
50829         * modules/relocatable (Depends-on): Add it. Remove all other
50830         dependencies except progname.
50831         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
50833         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
50834         (gl_FUNC_STRERROR): Nop.
50835         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
50837         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
50838         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
50840         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
50841         (gl_FUNC_READLINK): Update.
50843         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
50845 2007-03-03  Bruno Haible  <bruno@clisp.org>
50847         * lib/xreadlink.c: Include <unistd.h> unconditionally.
50848         * modules/xreadlink (Depends-on): Add unistd.
50849         * modules/xreadlink-with-size (Depends-on): Likewise.
50851 2007-03-03  Bruno Haible  <bruno@clisp.org>
50853         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
50854         extracted from gt_FUNC_SETENV.
50855         (gt_FUNC_SETENV): Remove macro.
50856         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
50857         remove gt_FUNC_SETENV.
50859 2007-03-03  Bruno Haible  <bruno@clisp.org>
50861         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
50862         ENABLE_RELOCATABLE here.
50863         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
50865 2007-03-03  Bruno Haible  <bruno@clisp.org>
50867         * modules/rbtreehash-list-tests (Depends-on): Add progname.
50868         * tests/test-rbtreehash_list.c: Include progname.h.
50869         (main): Call set_program_name.
50871         * modules/rbtree-oset-tests (Depends-on): Add progname.
50872         * tests/test-rbtree_oset.c: Include progname.h.
50873         (main): Call set_program_name.
50875         * modules/rbtree-list-tests (Depends-on): Add progname.
50876         * tests/test-rbtree_list.c: Include progname.h.
50877         (main): Call set_program_name.
50879         * modules/linked-list-tests (Depends-on): Add progname.
50880         * tests/test-linked_list.c: Include progname.h.
50881         (main): Call set_program_name.
50883 2007-03-03  Bruno Haible  <bruno@clisp.org>
50885         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
50886         All uses of __restrict changed to _Restrict_.
50887         * lib/glob_.h (__restrict): Remove macro.
50889 2007-03-02  Bruno Haible  <bruno@clisp.org>
50891         * modules/gettext (configure.ac): Require gettext infrastructure
50892         from version 0.16.1.
50894 2007-03-02  Bruno Haible  <bruno@clisp.org>
50896         * modules/linkedhash-list-tests (Depends-on): Add progname.
50897         * tests/test-linkedhash_list.c: Include progname.h.
50898         (main): Call set_program_name.
50900         * modules/carray-list-tests (Depends-on): Add progname.
50901         * tests/test-carray_list.c: Include progname.h.
50902         (main): Call set_program_name.
50904         * modules/avltreehash-list-tests (Depends-on): Add progname.
50905         * tests/test-avltreehash_list.c: Include progname.h.
50906         (main): Call set_program_name.
50908         * modules/avltree-oset-tests (Depends-on): Add progname.
50909         * tests/test-avltree_oset.c: Include progname.h.
50910         (main): Call set_program_name.
50912         * modules/avltree-list-tests (Depends-on): Add progname.
50913         * tests/test-avltree_list.c: Include progname.h.
50914         (main): Call set_program_name.
50916         * modules/array-oset-tests (Depends-on): Add progname.
50917         * tests/test-array_oset.c: Include progname.h.
50918         (main): Call set_program_name.
50920         * modules/array-list-tests (Depends-on): Add progname.
50921         * tests/test-array_list.c: Include progname.h.
50922         (main): Call set_program_name.
50924         * modules/argp-tests (Depends-on): Add progname.
50925         * tests/test-argp.c: Include argp.h first. Include progname.h.
50926         (main): Call set_program_name.
50928 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
50930         * doc/gnulib-tool.texi (Initial import): Reword description of
50931         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
50932         limited effect even if defined after the first system include.
50934 2007-03-01  Bruno Haible  <bruno@clisp.org>
50936         * build-aux/config.libpath: Update to libtool-1.5.22.
50937         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
50939 2007-03-01  Bruno Haible  <bruno@clisp.org>
50941         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
50942         foo_CFLAGS.
50943         Reported by Ralf Wildenhues.
50945 2007-03-01  Bruno Haible  <bruno@clisp.org>
50947         * build-aux/install-reloc: Remove object files left over by some
50948         compilers.
50949         Reported by Ralf Wildenhues.
50951 2007-03-01  Bruno Haible  <bruno@clisp.org>
50953         * build-aux/install-reloc: Break long lines.
50955 2007-03-01  Bruno Haible  <bruno@clisp.org>
50957         * doc/relocatable.texi: Document that it may not work on OpenBSD.
50958         Reported by Ralf Wildenhues.
50960 2007-03-01  Bruno Haible  <bruno@clisp.org>
50962         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
50963         include ordering constraints.
50965 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
50967         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
50968         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
50969         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
50970         as another example.
50971         * lib/time_.h: Fix misspelling.
50972         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
50973         Require gl_HEADER_TIME_H_DEFAULTS.
50974         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
50975         * m4/time_r.m4 (gl_TIME_R): Likewise.
50976         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
50978 2007-03-01  Bruno Haible  <bruno@clisp.org>
50980         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
50981         * m4/utimens.m4 (gl_UTIMENS): Likewise.
50983 2007-03-01  Jim Meyering  <jim@meyering.net>
50985         * modules/xreadlink (Maintainer): Add my name.
50986         * modules/xreadlink-with-size (Depends-on): Alphabetize.
50988 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
50989             Bruno Haible  <bruno@clisp.org>
50991         * build-aux/install-reloc: Compile also c-ctype.c.
50992         * build-aux/relocatable.sh.in: New file.
50993         * doc/relocatable.texi: New file.
50994         * doc/relocatable-maint.texi: New file.
50995         * doc/gnulib.texi: Include relocatable-maint.texi.
50996         * lib/progreloc.c: Include unistd.h unconditionally.
50997         * lib/relocwrapper.c: Include unistd.h unconditionally.
50998         Include c-ctype.h.
50999         (add_dotbin): Use c_tolower.
51000         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
51001         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
51002         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
51003         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
51004         to m4/relocatable-lib.m4.
51005         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
51006         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
51007         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
51008         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
51009         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
51010         * modules/relocatable: New file.
51011         * modules/relocatable-lib: New file.
51012         * modules/relocatable-script: New file.
51014 2007-02-28  Bruno Haible  <bruno@clisp.org>
51016         Import --enable-relocatable infrastructure.
51017         * build-aux/config.libpath: New file, from GNU gettext.
51018         * build-aux/install-reloc: New file, from GNU gettext.
51019         * build-aux/reloc-ldflags: New file, from GNU gettext.
51020         * lib/relocatable.h: New file, from GNU gettext.
51021         * lib/relocatable.c: New file, from GNU gettext.
51022         * lib/relocwrapper.c: New file, from GNU gettext.
51023         * m4/relocatable.m4: New file, from GNU gettext.
51025 2007-02-28  Bruno Haible  <bruno@clisp.org>
51027         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
51029         * modules/xreadlink: New file, from GNU gettext with modifications.
51030         * lib/xreadlink.c: New file, from GNU gettext.
51031         * lib/xreadlink.h: Add comments.
51032         (xreadlink): New declaration.
51034         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
51035         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
51036         lib/xreadlink-with-size.c.
51037         (configure.ac): Remove gl_XREADLINK invocation.
51038         (Makefile.am): Augment lib_SOURCES.
51039         * m4/xreadlink.m4: Remove file.
51040         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
51041         (xreadlink_with_size): Renamed from xreadink.
51042         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
51043         * modules/canonicalize (Depends-on): Replace xreadlink with
51044         xreadlink-with-size.
51045         * lib/canonicalize.c (canonicalize_filename_mode): Update.
51047 2007-02-25  Jim Meyering  <jim@meyering.net>
51049         * build-aux/announce-gen: When complaining about excess arguments,
51050         list them.
51052 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
51054         * README: Document signed integer overflow situation more
51055         accurately.
51057 2007-02-25  Bruno Haible  <bruno@clisp.org>
51059         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
51060         'a' or 'A' conversion.
51062 2007-02-25  Bruno Haible  <bruno@clisp.org>
51064         * modules/filename: Renamed from modules/pathname.
51065         (Files): Replace lib/pathname.h with lib/filename.h. Replace
51066         lib/concatpath.c with lib/concat-filename.c.
51067         (Makefile.am): Update.
51068         (Include): Replace pathname.h with filename.h.
51069         * lib/filename.h: Renamed from lib/pathname.h.
51070         (concatenated_filename): Renamed from concatenated_pathname.
51071         * lib/concat-filename.c: Renamed from lib/concatpath.c.
51072         (concatenated_filename): Renamed from concatenated_pathname.
51073         * lib/findprog.c: Include filename.h instead of pathname.h.
51074         (find_in_path): Update.
51075         * lib/javacomp.c: Include filename.h instead of pathname.h.
51076         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
51077         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
51078         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
51079         is_oldgcj_14_13_usable, is_javac_usable): Update.
51080         * lib/javaexec.c: Include filename.h instead of pathname.h.
51081         (execute_java_class): Update.
51082         * modules/findprog: Update.
51083         * modules/javacomp: Update.
51084         * modules/javaexec: Update.
51085         * MODULES.html.sh (File system functions): Add 'filename', remove
51086         'pathname'.
51088 2007-02-25  Bruno Haible  <bruno@clisp.org>
51090         * modules/printf-frexpl-tests: New file.
51091         * tests/test-printf-frexpl.c: New file.
51093         * modules/printf-frexpl: New file.
51094         * lib/printf-frexpl.h: New file.
51095         * lib/printf-frexpl.c: New file.
51096         * m4/printf-frexpl.m4: New file.
51098 2007-02-25  Bruno Haible  <bruno@clisp.org>
51100         * modules/printf-frexp-tests: New file.
51101         * tests/test-printf-frexp.c: New file.
51103         * modules/printf-frexp: New file.
51104         * lib/printf-frexp.h: New file.
51105         * lib/printf-frexp.c: New file.
51106         * m4/printf-frexp.m4: New file.
51108 2007-02-25  Bruno Haible  <bruno@clisp.org>
51110         Assume automake >= 1.10 for the tests.
51111         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
51112         * modules/arctwo-tests: Likewise.
51113         * modules/argp-tests: Likewise.
51114         * modules/avltree-list-tests: Likewise.
51115         * modules/avltree-oset-tests: Likewise.
51116         * modules/avltreehash-list-tests: Likewise.
51117         * modules/carray-list-tests: Likewise.
51118         * modules/crc-tests: Likewise.
51119         * modules/des-tests: Likewise.
51120         * modules/gc-arcfour-tests: Likewise.
51121         * modules/gc-arctwo-tests: Likewise.
51122         * modules/gc-des-tests: Likewise.
51123         * modules/gc-hmac-md5-tests: Likewise.
51124         * modules/gc-hmac-sha1-tests: Likewise.
51125         * modules/gc-md2-tests: Likewise.
51126         * modules/gc-md4-tests: Likewise.
51127         * modules/gc-md5-tests: Likewise.
51128         * modules/gc-pbkdf2-sha1-tests: Likewise.
51129         * modules/gc-rijndael-tests: Likewise.
51130         * modules/gc-sha1-tests: Likewise.
51131         * modules/gc-tests: Likewise.
51132         * modules/getaddrinfo-tests: Likewise.
51133         * modules/hmac-md5-tests: Likewise.
51134         * modules/hmac-sha1-tests: Likewise.
51135         * modules/linked-list-tests: Likewise.
51136         * modules/linkedhash-list-tests: Likewise.
51137         * modules/lock-tests: Likewise.
51138         * modules/md2-tests: Likewise.
51139         * modules/md4-tests: Likewise.
51140         * modules/md5-tests: Likewise.
51141         * modules/rbtree-list-tests: Likewise.
51142         * modules/rbtree-oset-tests: Likewise.
51143         * modules/rbtreehash-list-tests: Likewise.
51144         * modules/read-file-tests: Likewise.
51145         * modules/rijndael-tests: Likewise.
51146         * modules/stdint-tests: Likewise.
51147         * modules/tls-tests: Likewise.
51149 2007-02-24  Bruno Haible  <bruno@clisp.org>
51151         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
51152         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
51153         function; instead check whether isnan with a double argument links.
51154         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
51155         function; instead check whether isnan with a 'long double' argument
51156         links.
51157         Reported by Eric Blake <ebb9@byu.net>.
51159 2007-02-24  Bruno Haible  <bruno@clisp.org>
51161         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
51162         defined.
51163         * lib/isnanl.c: Remove all code. Just include isnan.c.
51164         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
51166 2007-02-25  Jim Meyering  <jim@meyering.net>
51168         Avoid conflicting types for 'unsetenv' on FreeBSD.
51169         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
51170         conflicting with FreeBSD's (5.0 and 6.1) function declaration
51171         in stdlib.h.
51173 2007-02-24  Bruno Haible  <bruno@clisp.org>
51175         * modules/isnanl-nolibm-tests: New file.
51176         * tests/test-isnanl.c: New file.
51178         * modules/isnanl-nolibm: New file.
51179         * lib/isnanl.h: New file.
51180         * lib/isnanl.c: New file.
51181         * m4/isnanl.m4: New file.
51183 2007-02-24  Bruno Haible  <bruno@clisp.org>
51185         * modules/isnan-nolibm-tests: New file.
51186         * tests/test-isnan.c: New file.
51188         * modules/isnan-nolibm: New file.
51189         * lib/isnan.h: New file.
51190         * lib/isnan.c: New file.
51191         * m4/isnan.m4: New file.
51193 2007-02-24  Bruno Haible  <bruno@clisp.org>
51195         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
51196         assume that an exponent fits in 20 bits.
51198 2007-02-24  Jim Meyering  <jim@meyering.net>
51200         * m4/regex.m4: Update the description of the configure-time option,
51201         --without-included-regex, to state accurately what the defaults are,
51202         and perhaps to give people an idea why using this option is risky.
51204 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
51206         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
51207         loops on small arguments.  This attempts to avoid the problem
51208         Bruno Haible reported for AIX 4.3.2 in
51209         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
51211 2007-02-23  Bruno Haible  <bruno@clisp.org>
51213         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
51214         Needed for help2man.
51216 2007-02-23  Karl Berry  <karl@gnu.org>
51218         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
51219         exists, foo.h should be cvs-ignored, not committed.
51221 2007-02-23  Eric Blake  <ebb9@byu.net>
51223         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
51224         * lib/stat-time.h (includes): Likewise.
51225         * lib/utimecmp.c (includes): Likewise.
51226         * lib/utimens.h (includes): Likewise.
51227         * lib/getdate.y (includes): Also include "timespec.h" for use
51228         internal to the module.
51229         * modules/utimens (Depends-on): Revert yesterday's patch.
51230         * modules/nanosleep (Depends-on): Add missing dependency.
51232 2007-02-22  Bruno Haible  <bruno@clisp.org>
51234         * lib/glob.c: Don't include getlogin_r.h.
51236 2007-02-22  Jim Meyering  <jim@meyering.net>
51238         * modules/utimens (Depends-on): Add timespec, required for
51239         utimens.h's inclusion of timespec.h.
51241 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
51243         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
51244         long unreadable paths in GNU/Linux.  Problem reported by Andreas
51245         Schwab in
51246         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
51247         I'll try to think of a better way to fix the Solaris problem.
51249         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
51250         like glibc; on Solaris 10, it fails with errno == EINVAL.
51251         POSIX says the behavior is unspecified if the first argument is NULL,
51252         so play it safe and never pass NULL to the system getcwd.
51254 2007-02-21  Jim Meyering  <jim@meyering.net>
51256         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
51257         of gettimeofday.  It would conflict with the one now always
51258         provided via sys_time_.h.  Reported by Matthew Woehlke, as
51259         an IRIX 6.5 build failure.
51261 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
51263         Minor fixups to port to Solaris 10 with Sun C 5.8.
51264         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
51265         * modules/getcwd (Depends-on): Add dirfd.
51266         * lib/putenv.c (putenv): #undef it.
51267         (rpl_putenv): New decl.
51268         (malloc, free): Include <stdlib.h> rather than prototyping separately.
51270 2007-02-20  Bruno Haible  <bruno@clisp.org>
51272         * modules/stdio-tests: New file.
51273         * tests/test-stdio.c: New file.
51275         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
51276         (Depends-on): Add stdio.
51277         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
51278         (Include): Use <stdio.h> instead of vsnprintf.h.
51279         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
51280         HAVE_DECL_VSNPRINTF.
51281         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
51283         * modules/snprintf (Files): Remove lib/snprintf.h.
51284         (Depends-on): Add stdio.
51285         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
51286         (Include): Use <stdio.h> instead of snprintf.h.
51287         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
51288         HAVE_DECL_SNPRINTF.
51289         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
51290         * lib/getaddrinfo.c: Likewise.
51292         * modules/stdio: New file.
51293         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
51294         * lib/snprintf.h: Remove file.
51295         * lib/vsnprintf.h: Remove file.
51296         * lib/.cppi-disable: Remove snprintf.h.
51297         * m4/stdio_h.m4: New file.
51298         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
51300 2007-02-20  Jim Meyering  <jim@meyering.net>
51302         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
51303         used by e.g., mingw.  From Bruno Haible.
51305 2007-02-19  Bruno Haible  <bruno@clisp.org>
51307         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
51308         warnings.
51309         Reported by Ben Pfaff <blp@cs.stanford.edu>.
51311 2007-02-19  Bruno Haible  <bruno@clisp.org>
51313         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
51314         from mingw users.
51316 2007-02-19  Bruno Haible  <bruno@clisp.org>
51318         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
51319         warnings.
51320         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
51322 2007-02-19  Jim Meyering  <jim@meyering.net>
51324         Don't use FD after a successful "fdopendir (fd)".
51325         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
51326         Reset it by calling dirfd on the just-obtained DIR*.
51328         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
51329         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
51331 2007-02-18  Bruno Haible  <bruno@clisp.org>
51333         * lib/readlink.c: Include <unistd.h>.
51334         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
51335         HAVE_READLINK.
51336         * modules/readlink (Depends-on): Add unistd.
51337         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51338         (Include): Add <unistd.h>.
51340         * lib/getlogin_r.h: Remove file.
51341         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
51342         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
51343         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
51344         HAVE_DECL_GETLOGIN_R.
51345         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
51346         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51347         (Include): Use <unistd.h> instead of getlogin_r.h.
51349         * lib/getcwd.h: Remove file.
51350         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
51351         * lib/xgetcwd.c: Likewise.
51352         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
51353         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
51354         * modules/getcwd (Files): Remove lib/getcwd.h.
51355         (Depends-on): Add unistd.
51356         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51357         (Include): Use <unistd.h> instad of getcwd.h.
51359         * lib/ftruncate.c: Include <unistd.h> first.
51360         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
51361         Set HAVE_FTRUNCATE.
51362         * modules/ftruncate (Depends-on): Add unistd.
51363         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51365         * lib/fchdir.c: Include <unistd.h> first.
51366         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
51367         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
51368         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
51369         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51370         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
51372         * lib/dup2.c: Include <unistd.h> first.
51373         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
51374         HAVE_DUP2.
51375         * modules/dup2 (Depends-on): Add unistd.
51376         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51378         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
51379         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
51380         REPLACE_CHOWN. Don't define chown as a macro here.
51381         * modules/chown (Depends-on): Add unistd.
51382         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51384         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
51385         Add definition for GL_LINK_WARNING.
51386         (chown, dup2): New declarations.
51387         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
51388         link warning.
51389         (ftruncate): New declaration.
51390         (getcwd): New declaration, taken from old getcwd.h.
51391         (getlogin_r): New declaration, taken from old getlogin_r.h.
51392         (readlink): New declaration.
51393         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
51394         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
51395         (gl_PREREQ_UNISTD): Remove macro.
51396         (gl_UNISTD_MODULE_INDICATOR): New macro.
51397         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
51398         many new variables. Don't set UNISTD_H.
51399         * modules/unistd (Description): Change.
51400         (Depends-on): Add link-warning.
51401         (configure.ac): Update.
51402         (Makefile.am): Create unistd.h always. Substitute many new variables
51403         into it.
51405 2007-02-18  Bruno Haible  <bruno@clisp.org>
51407         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
51408         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
51409         HAVE_GETSUBOPT.
51410         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
51411         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
51412         * lib/getsubopt.h: Remove file.
51413         * modules/getsubopt (Files): Remove lib/getsubopt.h.
51414         (Depends-on): Add stdlib.
51415         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
51416         (Includes): Use <stdlib.h> instead of getsubopt.h.
51417         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
51418         Set HAVE_GETSUBOPT.
51419         * lib/getsubopt.c: Don't include getsubopt.h.
51421 2007-02-18  Bruno Haible  <bruno@clisp.org>
51423         * modules/fchdir (Depends-on): Add dup2.
51425 2007-02-18  Bruno Haible  <bruno@clisp.org>
51427         * lib/stdlib_.h: Handle glibc's special invocation convention
51428         specially.
51430 2007-02-18  Bruno Haible  <bruno@clisp.org>
51432         * modules/stdlib-tests: New file.
51433         * tests/test-stdlib.c: New file.
51435         * modules/mkstemp (Files): Remove lib/mkstemp.h.
51436         (Depends-on): Add stdlib.
51437         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
51438         (Includes): Use <stdlib.h> instead of mkstemp.h.
51439         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
51440         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
51441         * lib/mkstemp.c: Don't include mkstemp.h.
51442         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
51443         * lib/stdlib--.h: Don't include mkstemp.h.
51445         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
51446         (Depends-on): Add stdlib.
51447         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
51448         (Includes): Use <stdlib.h> instead of mkdtemp.h.
51449         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
51450         HAVE_MKDTEMP.
51451         * lib/mkdtemp.c: Don't include mkdtemp.h.
51452         * lib/clean-temp.c: Don't include mkdtemp.h.
51454         * modules/exit (Files): Remove lib/exit.h.
51455         (Depends-on): Add stdlib.
51456         (Makefile.am): Remove lib_SOURCES.
51457         (Include): Use <stdlib.h> instead of exit.h.
51458         * lib/argmatch.c: Don't include exit.h.
51459         * lib/execute.c: Likewise.
51460         * lib/pagealign_alloc.c: Likewise.
51461         * lib/pipe.c: Likewise.
51462         * lib/wait-process.c: Likewise.
51463         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
51464         * lib/exitfail.c: Likewise.
51465         * lib/savewd.c: Likewise.
51466         * lib/xsetenv.c: Likewise.
51468         * modules/stdlib: New file.
51469         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
51470         and extra comments about mkstemp().
51471         * lib/exit.h: Remove file.
51472         * lib/mkdtemp.h: Remove file.
51473         * lib/mkstemp.h: Remove file.
51474         * m4/stdlib_h.m4: New file.
51475         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
51477 2007-02-18  Bruno Haible  <bruno@clisp.org>
51479         * modules/math-tests: New file.
51480         * tests/test-math.c: New file.
51482         * modules/math: New file.
51483         * modules/mathl (Files): Remove lib/mathl.h.
51484         (Depends-on): Add math.
51485         (Makefile.am): Don't mention mathl.h.
51486         (Include): Use <math.h> instead of mathl.h.
51487         * lib/math_.h: New file.
51488         * lib/mathl.h: Remove file.
51489         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
51490         mathl.h.
51491         * lib/asinl.c: Likewise.
51492         * lib/atanl.c: Likewise.
51493         * lib/ceill.c: Likewise.
51494         * lib/cosl.c: Likewise.
51495         * lib/expl.c: Likewise.
51496         * lib/floorl.c: Likewise.
51497         * lib/frexpl.c: Likewise.
51498         * lib/ldexpl.c: Likewise.
51499         * lib/logl.c: Likewise.
51500         * lib/sincosl.c: Likewise.
51501         * lib/sinl.c: Likewise.
51502         * lib/sqrtl.c: Likewise.
51503         * lib/tanl.c: Likewise.
51504         * lib/trigl.c: Likewise.
51505         * m4/math_h.m4: New file.
51506         * MODULES.html.sh (Mathematics): Add math.
51508 2007-02-17  Bruno Haible  <bruno@clisp.org>
51510         * modules/wctype-tests: New file.
51511         * tests/test-wctype.c: New file.
51513         * modules/wchar-tests: New file.
51514         * tests/test-wchar.c: New file.
51516         * modules/unistd-tests: New file.
51517         * tests/test-unistd.c: New file.
51519         * modules/time-tests: New file.
51520         * tests/test-time.c: New file.
51522         * modules/sysexits-tests: New file.
51523         * tests/test-sysexits.c: New file.
51525         * modules/sys_time-tests: New file.
51526         * tests/test-sys_time.c: New file.
51528         * modules/sys_stat-tests: New file.
51529         * tests/test-sys_stat.c: New file.
51531         * modules/sys_socket-tests: New file.
51532         * tests/test-sys_socket.c: New file.
51534         * modules/sys_select-tests: New file.
51535         * tests/test-sys_select.c: New file.
51537         * modules/string-tests: New file.
51538         * tests/test-string.c: New file.
51540         * modules/stdbool-tests: New file.
51541         * tests/test-stdbool.c: New file.
51543         * modules/netinet_in-tests: New file.
51544         * tests/test-netinet_in.c: New file.
51546         * modules/inttypes-tests: New file.
51547         * tests/test-inttypes.c: New file.
51549         * modules/fcntl-tests: New file.
51550         * tests/test-fcntl.c: New file.
51552         * modules/byteswap-tests: New file.
51553         * tests/test-byteswap.c: New file.
51555         * modules/arpa_inet-tests: New file.
51556         * tests/test-arpa_inet.c: New file.
51558 2007-02-17  Bruno Haible  <bruno@clisp.org>
51560         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
51561         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
51562         if the corresponding module is not enabled. Emit link warnings if
51563         the function is used nevertheless.
51564         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
51565         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
51566         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
51567         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
51568         * modules/inttypes (Depends-on): Add link-warning.
51569         (Makefile.am): Copy the contents of build-aux/link-warning.h into
51570         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
51571         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
51572         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
51573         * modules/imaxdiv (configure.ac): Likewise.
51574         * modules/strtoimax (configure.ac): Likewise.
51575         * modules/strtoumax (configure.ac): Likewise.
51577 2007-02-17  Bruno Haible  <bruno@clisp.org>
51579         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
51580         gl_STRING_MODULE_INDICATOR_DEFAULTS.
51581         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
51582         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
51584 2007-02-17  Bruno Haible  <bruno@clisp.org>
51586         * modules/link-warning: New file.
51587         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
51588         * lib/string_.h (GL_LINK_WARNING): Remove definition.
51589         * modules/string (Depends-on): Add link-warning.
51590         (Makefile.am): Copy the contents of build-aux/link-warning.h into
51591         string.h.
51592         * MODULES.html.sh (Support for building libraries and executables): Add
51593         link-warning.
51595 2007-02-17  Bruno Haible  <bruno@clisp.org>
51597         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
51598         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
51599         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
51600         long lines.
51602 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
51603             Bruno Haible  <bruno@clisp.org>
51605         * modules/tmpfile: New file.
51606         * lib/tmpfile.c: New file.
51607         * m4/tmpfile.m4: New file.
51608         * MODULES.html.sh (func_all_modules): New section "Input/output".
51610 2007-02-15  Bruno Haible  <bruno@clisp.org>
51612         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
51613         (supports_delete_on_close): New function.
51614         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
51616 2007-02-14  Bruno Haible  <bruno@clisp.org>
51618         * modules/mbspcasecmp-tests: New file.
51619         * tests/test-mbspcasecmp.sh: New file.
51620         * tests/test-mbspcasecmp.c: New file.
51622         New module mbspcasecmp.
51623         * modules/mbspcasecmp: New file.
51624         * lib/mbspcasecmp.c: New file.
51625         * lib/string_.h (strncasecmp): Change warning message.
51626         (mbspcasecmp): New declaration.
51627         * m4/mbspcasecmp.m4: New file.
51628         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
51629         GNULIB_MBSPCASECMP.
51630         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
51631         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
51633 2007-02-14  Bruno Haible  <bruno@clisp.org>
51635         * modules/mbsncasecmp-tests: New file.
51636         * tests/test-mbsncasecmp.sh: New file.
51637         * tests/test-mbsncasecmp.c: New file.
51639         New module mbsncasecmp.
51640         * modules/mbsncasecmp: New file.
51641         * lib/mbsncasecmp.c: New file.
51642         * lib/string_.h (mbsncasecmp): New declaration.
51643         * m4/mbsncasecmp.m4: New file.
51644         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
51645         GNULIB_MBSNCASECMP.
51646         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
51647         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
51649 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
51651         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
51652         Verify that it doesn't overlap with our flags.
51653         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
51654         do not have the desired effect in multibyte locales; instead, use
51655         mbscasecmp.
51656         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
51657         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
51658         we don't require GNU fnmatch ourselves (if our users require it, they
51659         should do so explicitly).
51661         Fix regex code so it doesn't rely on strcasecmp.
51662         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
51663         Otherwise, include gnulib's langinfo.h.
51664         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
51665         undesirable behavior in non-C locales.  Instead, rely on localecharset.
51666         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
51667         * modules/regex (FILES): Remove m4/codeset.m4.
51668         (Depends-on): Add localcharset.  Remove strcase.
51670 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51672         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
51673         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
51675 2007-02-13  Bruno Haible  <bruno@clisp.org>
51677         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
51678         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51680 2007-02-12  Bruno Haible  <bruno@clisp.org>
51682         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
51683         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
51684         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
51685         time warning rather than a link error.
51687 2007-02-12  Bruno Haible  <bruno@clisp.org>
51689         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
51690         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
51691         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51693 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
51695         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
51696         args, not 2.
51698 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
51700         New module 'time', so that apps can include <time.h> as per
51701         POSIX and GNU instead of separate include files like time_r.h
51702         and timegm.h.  This implementation tries out a simpler approach
51703         for replacing decls in standard include files (as compared to
51704         the string module), somewhat as an experiment.
51706         * config/srclist.txt: Comment out mktime.c for now.
51707         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
51708         since it doesn't apply any more.  Use generic wording instead.
51709         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
51710         'time'.
51711         * lib/time_.h, m4/time_h.m4, modules/time: New files.
51712         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
51713         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
51714         Don't include <sys/types.h>; no longer needed since we assume C89.
51715         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
51716         * lib/strftime.c: Likewise.
51717         * lib/time_r.c: Likewise.
51718         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
51719         * lib/nanosleep.c: Include <time.h> first, to check interface.
51720         * lib/strptime.c: Likewise.
51721         * lib/time_r.c: Likewise.
51722         * lib/timegm.c: Likewise.
51723         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
51724         needed.
51725         * lib/timegm.c: Don't include timegm.h; no longer needed.
51726         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
51727         time.h now handles any problems in that area.
51728         (struct timespec, nanosleep): Remove; time.h now arranges for these.
51729         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
51730         that time.h defines struct timespec.
51731         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
51732         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
51733         handles that.
51734         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
51735         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
51736         needed.  Set REPLACE_LOCALTIME.
51737         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
51738         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
51739         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
51740         nanosleep; time_h.m4 now does that.  Don't require
51741         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
51742         module handles this now.
51743         * modules/getdate (Depends-on): Remove timespec.  Add time.
51744         * modules/nanosleep (Depends-on): Likewise.
51745         * modules/stat-time (Depends-on): Likewise.
51746         * modules/nanosleep (Include): Include time.h, not timespec.h.
51747         * modules/strptime (Files): Remove lib/strptime.h.
51748         (Depends-on): Add extensions, time.
51749         (Include): Include time.h, not strptime.h.
51750         * modules/time_r (Files): Remove lib/time_r.h.
51751         (Depends-on): Add time.
51752         (Include): Include time.h, not time_r.h.
51753         * modules/timegm: Likewise.
51754         * modules/timespec (Description): Now does timespec-related decls
51755         of our own, instead of struct timespec itself.
51756         (Depends-on): Add time; remove extensions.
51757         (Maintainer): Add self.
51758         * modules/utimecmp (Depends-on): Add time; remove timespec.
51759         * modules/utimens (Depends-on): Likewise.
51760         * modules/xnanosleep (Depends-on): Likewise.
51762 2007-02-11  Bruno Haible  <bruno@clisp.org>
51764         * lib/c-strstr.c: Include allocsa.h.
51765         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
51766         * lib/c-strcasestr.c: Include allocsa.h.
51767         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
51768         * lib/strcasestr.c: Include allocsa.h.
51769         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
51770         * lib/mbsstr.c: Include allocsa.h.
51771         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
51772         allocsa/freesa instead of malloc/free.
51773         * lib/mbscasestr.c: Include allocsa.h.
51774         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
51775         allocsa/freesa instead of malloc/free.
51776         * modules/c-strstr (Depends-on): Add allocsa.
51777         * modules/c-strcasestr (Depends-on): Likewise.
51778         * modules/strcasestr (Depends-on): Likewise.
51779         * modules/mbsstr (Depends-on): Likewise.
51780         * modules/mbscasestr (Depends-on): Likewise.
51782 2007-02-11  Bruno Haible  <bruno@clisp.org>
51784         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
51786         * modules/mbsspn-tests: New file.
51787         * tests/test-mbsspn.sh: New file.
51788         * tests/test-mbsspn.c: New file.
51790 2007-02-11  Bruno Haible  <bruno@clisp.org>
51792         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
51794         * modules/mbspbrk-tests: New file.
51795         * tests/test-mbspbrk.sh: New file.
51796         * tests/test-mbspbrk.c: New file.
51798 2007-02-11  Bruno Haible  <bruno@clisp.org>
51800         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
51801         unneeded cast.
51803         * modules/mbscspn-tests: New file.
51804         * tests/test-mbscspn.sh: New file.
51805         * tests/test-mbscspn.c: New file.
51807 2007-02-11  Bruno Haible  <bruno@clisp.org>
51809         * modules/mbscasecmp-tests: New file.
51810         * tests/test-mbscasecmp.sh: New file.
51811         * tests/test-mbscasecmp.c: New file.
51813 2007-02-11  Bruno Haible  <bruno@clisp.org>
51815         Ensure O(n) worst-case complexity of mbscasestr.
51816         * lib/mbscasestr.c: Include stdbool.h.
51817         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
51818         functions.
51819         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
51820         the bookkeeping indicates that it's worth it.
51821         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
51823         * modules/mbscasestr-tests: New file.
51824         * tests/test-mbscasestr1.c: New file.
51825         * tests/test-mbscasestr2.sh: New file.
51826         * tests/test-mbscasestr2.c: New file.
51827         * tests/test-mbscasestr3.sh: New file.
51828         * tests/test-mbscasestr3.c: New file.
51829         * tests/test-mbscasestr4.sh: New file.
51830         * tests/test-mbscasestr4.c: New file.
51831         * m4/locale-tr.m4: New file.
51833 2007-02-11  Bruno Haible  <bruno@clisp.org>
51835         Ensure O(n) worst-case complexity of mbsstr.
51836         * lib/mbsstr.c: Include stdbool.h.
51837         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
51838         functions.
51839         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
51840         bookkeeping indicates that it's worth it.
51841         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
51843         * modules/mbsstr-tests: New file.
51844         * tests/test-mbsstr1.c: New file.
51845         * tests/test-mbsstr2.sh: New file.
51846         * tests/test-mbsstr2.c: New file.
51847         * tests/test-mbsstr3.sh: New file.
51848         * tests/test-mbsstr3.c: New file.
51849         * m4/locale-fr.m4: New file.
51851 2007-02-11  Bruno Haible  <bruno@clisp.org>
51853         * lib/mbsrchr.c (mbsrchr): Fix bug.
51855         * modules/mbsrchr-tests: New file.
51856         * tests/test-mbsrchr.sh: New file.
51857         * tests/test-mbsrchr.c: New file.
51859 2007-02-11  Bruno Haible  <bruno@clisp.org>
51861         * lib/mbschr.c (mbschr): Fix bug.
51863         * modules/mbschr-tests: New file.
51864         * tests/test-mbschr.sh: New file.
51865         * tests/test-mbschr.c: New file.
51866         * m4/locale-zh.m4: New file.
51868 2007-02-11  Bruno Haible  <bruno@clisp.org>
51870         Support for copying multibyte string iterators.
51871         * lib/mbiter.h: Include <string.h>.
51872         (mbiter_multi_copy): New function.
51873         (mbi_copy): New macro.
51874         * lib/mbuiter.h: Include <string.h>.
51875         (mbuiter_multi_copy): New function.
51876         (mbui_copy): New macro.
51878 2007-02-11  Bruno Haible  <bruno@clisp.org>
51880         New module mbslen.
51881         * modules/mbslen: New file.
51882         * lib/mbslen.c: New file.
51883         * lib/string_.h (mbslen): New declaration.
51884         * m4/mbslen.m4: New file.
51885         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
51886         GNULIB_MBSLEN.
51887         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
51888         * MODULES.html.sh (Internationalization functions): Add mbslen.
51890 2007-02-11  Bruno Haible  <bruno@clisp.org>
51892         Ensure O(n) worst-case complexity of strcasestr substitute.
51893         * lib/strcasestr.c: Include stdbool.h.
51894         (knuth_morris_pratt): New function.
51895         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
51896         bookkeeping indicates that it's worth it.
51897         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
51899         * modules/strcasestr-tests: New file.
51900         * tests/test-strcasestr.c: New file.
51902 2007-02-11  Bruno Haible  <bruno@clisp.org>
51904         Ensure O(n) worst-case complexity of c_strcasestr.
51905         * lib/c-strcasestr.c: Include stdbool.h, string.h.
51906         (knuth_morris_pratt): New function.
51907         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
51908         the bookkeeping indicates that it's worth it.
51909         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
51911         * modules/c-strcasestr-tests: New file.
51912         * tests/test-c-strcasestr.c: New file.
51914 2007-02-11  Bruno Haible  <bruno@clisp.org>
51916         Ensure O(n) worst-case complexity of c_strstr.
51917         * lib/c-strstr.c: Include stdbool.h, string.h.
51918         (knuth_morris_pratt): New function.
51919         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
51920         bookkeeping indicates that it's worth it.
51921         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
51923         * lib/c-strstr.c: Complete rewrite for maintainability.
51925         * modules/c-strstr-tests: New file.
51926         * tests/test-c-strstr.c: New file.
51928 2007-02-11  Bruno Haible  <bruno@clisp.org>
51930         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
51931         5.2.1 and earlier, whereby \055 was treated just like the range
51932         delimiter '-'.
51933         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
51935 2007-02-08  Bruno Haible  <bruno@clisp.org>
51937         * modules/regex (Depends-on): Add stdbool.
51938         Reported by Dalibor Topic <robilad@kaffe.org>.
51940 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
51942         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
51943         Prefer returning from main to exiting from it.
51944         Remove unnecessary parens after sizeof.
51946 2007-02-05  Bruno Haible  <bruno@clisp.org>
51948         New module mbssep.
51949         * modules/mbssep: New file.
51950         * lib/mbssep.c: New file.
51951         * lib/string_.h (strsep): Add a conditional link warning.
51952         (mbssep): New declaration.
51953         * m4/mbssep.m4: New file.
51954         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
51955         GNULIB_MBSSEP.
51956         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
51957         * MODULES.html.sh (Internationalization functions): Add mbssep.
51959 2007-02-05  Bruno Haible  <bruno@clisp.org>
51961         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
51962         Optimize search in case of 1 delimiter.
51964 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
51966         * lib/acl.h: Include sys/types.h before sys/acl.h.
51968 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
51970         Merge upstream fix for glibc bugzilla #3957:
51972         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
51974         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
51975         bit for RE_HAT_LISTS_NOT_NEWLINE.
51976         (build_charclass_op): Remove bogus comment.
51978 2007-02-05  Simon Josefsson  <simon@josefsson.org>
51980         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
51982 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
51984         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
51985         * lib/memmem.c [!defined _LIBC]: Include config.h.
51987 2007-02-04  Bruno Haible  <bruno@clisp.org>
51989         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
51990         warning message.
51992 2007-02-04  Bruno Haible  <bruno@clisp.org>
51994         New module mbstok_r.
51995         * modules/mbstok_r: New file.
51996         * lib/mbstok_r.c: New file.
51997         * lib/string_.h (strtok_r): Change argument names to match the
51998         comments. Add a conditional link warning.
51999         (mbstok_r): New declaration.
52000         * m4/mbstok_r.m4: New file.
52001         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
52002         GNULIB_MBSTOK_R.
52003         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
52004         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
52006 2007-02-04  Bruno Haible  <bruno@clisp.org>
52008         New module mbsspn.
52009         * modules/mbsspn: New file.
52010         * lib/mbsspn.c: New file.
52011         * lib/string_.h (strspn): Add a conditional link warning.
52012         (mbsspn): New declaration.
52013         * m4/mbsspn.m4: New file.
52014         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
52015         GNULIB_MBSSPN.
52016         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
52017         * MODULES.html.sh (Internationalization functions): Add mbsspn.
52019 2007-02-04  Bruno Haible  <bruno@clisp.org>
52021         New module mbspbrk.
52022         * modules/mbspbrk: New file.
52023         * lib/mbspbrk.c: New file.
52024         * lib/string_.h (strpbrk): Add a conditional link warning.
52025         (mbspbrk): New declaration.
52026         * m4/mbspbrk.m4: New file.
52027         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
52028         GNULIB_MBSPBRK.
52029         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
52030         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
52032 2007-02-04  Bruno Haible  <bruno@clisp.org>
52034         New module mbscspn.
52035         * modules/mbscspn: New file.
52036         * lib/mbscspn.c: New file.
52037         * lib/string_.h (strcspn): Add a conditional link warning.
52038         (mbscspn): New declaration.
52039         * m4/mbscspn.m4: New file.
52040         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
52041         GNULIB_MBSCSPN.
52042         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
52043         * MODULES.html.sh (Internationalization functions): Add mbscspn.
52045 2007-02-04  Bruno Haible  <bruno@clisp.org>
52047         New module mbscasestr, reduced goal of strcasestr.
52048         * modules/mbscasestr: New file.
52049         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
52050         (mbscasestr): Renamed from strcasestr.
52051         * lib/strcasestr.c: Don't include mbuiter.h.
52052         (strcasestr): Remove support for multibyte locales.
52053         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
52054         Change the conditional link warning.
52055         (mbscasestr): New declaration.
52056         * m4/mbscasestr.m4: New file.
52057         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
52058         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
52059         REPLACE_STRCASESTR.
52060         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
52061         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
52062         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
52063         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
52064         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
52065         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
52066         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
52067         (Depends-on): Remove mbuiter.
52068         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
52070 2007-02-04  Bruno Haible  <bruno@clisp.org>
52072         Simplify handling of strncasecmp.
52073         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
52074         the conditional link warning.
52075         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
52076         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
52077         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
52078         * modules/strcase (configure.ac): Don't invoke
52079         gl_STRING_MODULE_INDICATOR.
52080         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
52082 2007-02-04  Bruno Haible  <bruno@clisp.org>
52084         New module mbscasecmp, reduced goal of strcasecmp.
52085         * modules/mbscasecmp: New file.
52086         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
52087         (mbscasecmp): Renamed from strcasecmp.
52088         * lib/strcasecmp.c: Don't include mbuiter.h.
52089         (strcasecmp): Remove support for multibyte locales.
52090         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
52091         Change the conditional link warning.
52092         (mbscasecmp): New declaration.
52093         * m4/mbscasecmp.m4: New file.
52094         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
52095         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
52096         REPLACE_STRCASECMP.
52097         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
52098         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
52099         GNULIB_MBSCASECMP.
52100         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
52101         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
52102         * modules/strcase (Files): Remove m4/mbrtowc.m4.
52103         (Depends-on): Remove mbuiter.
52104         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
52106 2007-02-04  Bruno Haible  <bruno@clisp.org>
52108         New module mbsstr. Remove module strstr.
52109         * modules/mbsstr: New file.
52110         * modules/strstr: Remove file.
52111         * lib/mbsstr.c: Renamed from lib/strstr.c.
52112         (mbsstr): Renamed from strstr.
52113         * lib/string_.h (strstr): Remove declaration. Change the conditional
52114         link warning.
52115         (mbsstr): New declaration.
52116         * m4/mbsstr.m4: New file.
52117         * m4/strstr.m4: Remove file.
52118         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
52119         REPLACE_STRSTR.
52120         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
52121         Don't initialize GNULIB_STRSTR.
52122         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
52123         substitute GNULIB_STRSTR and REPLACE_STRSTR.
52124         * MODULES.html.sh (Internationalization functions): Add mbsstr.
52125         (Support for systems lacking ANSI C 89): Remove strstr.
52127 2007-02-04  Bruno Haible  <bruno@clisp.org>
52129         New module mbsrchr.
52130         * modules/mbsrchr: New file.
52131         * lib/mbsrchr.c: New file.
52132         * lib/string_.h (strrchr): Add a conditional link warning.
52133         (mbsrchr): New declaration.
52134         * m4/mbsrchr.m4: New file.
52135         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
52136         GNULIB_MBSRCHR.
52137         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
52138         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
52140 2007-02-04  Bruno Haible  <bruno@clisp.org>
52142         New module mbschr.
52143         * modules/mbschr: New file.
52144         * lib/mbschr.c: New file.
52145         * lib/string_.h (strchr): Add a conditional link warning.
52146         (mbschr): New declaration.
52147         * m4/mbschr.m4: New file.
52148         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
52149         GNULIB_MBSCHR.
52150         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
52151         * MODULES.html.sh (Internationalization functions): Add mbschr.
52153 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
52155         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
52157         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
52159 2007-02-04  Bruno Haible  <bruno@clisp.org>
52161         New module description section 'configure.ac-early'.
52162         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
52163         (func_get_autoconf_early_snippet): New function.
52164         (func_import, func_create_testdir): Use it. Remove special cases for
52165         modules 'extensions' and 'lock'.
52166         * modules/extensions (configure.ac-early): Require
52167         gl_USE_SYSTEM_EXTENSIONS.
52168         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
52170 2007-02-04  Bruno Haible  <bruno@clisp.org>
52172         Make use of gcj-4.3's -fsource and -ftarget option.
52173         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
52174         and if so try the options -fsource and -ftarget.
52175         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
52176         source_version, ftarget_option, target_version arguments.
52177         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
52178         (is_envjavac_oldgcj_14_14_usable): Renamed from
52179         is_envjavac_gcj_14_14_usable.
52180         (is_envjavac_oldgcj_14_13_usable): Renamed from
52181         is_envjavac_gcj_14_13_usable.
52182         (is_gcj_present): Update.
52183         (is_gcj_43, is_gcj43_usable): New functions.
52184         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
52185         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
52186         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
52187         try the options -fsource and -ftarget.
52189 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
52191         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
52192         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
52193         larger value.
52195 2007-02-03  Jim Meyering  <jim@meyering.net>
52197         Give tools a better chance to allocate space for very large buffers.
52198         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
52200         Make pwd and readlink work also when run with an unreadable parent dir
52201         on systems with openat support.
52202         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
52203         provided getcwd function, even when we have openat support.
52204         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
52206 2007-02-02  Bruno Haible  <bruno@clisp.org>
52208         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
52209         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
52210         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
52211         portability problems if one of these functions is only used on specific
52212         platforms.
52213         Reported by Paul Eggert.
52215 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
52217         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
52218         is causing more trouble than it's curing.
52219         * lib/regex_internal.h (__mempcpy): Remove.
52220         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
52221         (and make the code a tad smaller to boot).
52222         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
52224 2007-02-02  Jim Meyering  <jim@meyering.net>
52226         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
52227         section, not in the Makefile.am: one.
52229 2007-02-02  Eric Blake  <ebb9@byu.net>
52231         * lib/strchrnul.c: Always include config.h first.
52233         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
52234         gnulib strstr is not necessary here.
52236 2007-02-02  Simon Josefsson  <simon@josefsson.org>
52238         * m4/socklen.m4: Fix typo.
52240 2007-02-02  Eric Blake  <ebb9@byu.net>
52242         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
52243         * modules/netinet_in (Makefile.am): Likewise.
52245 2007-02-01  Bruno Haible  <bruno@clisp.org>
52247         * lib/string_.h (GL_LINK_WARNING): New macro.
52248         (strcasecmp, strstr, strcasestr): If provided by the system,
52249         conditionally define as a macro that leads to a warning instead of to
52250         an error.
52251         (strncasecmp): Conditionally define as a macro that leads to a warning.
52253 2007-02-01  Karl Berry  <karl@gnu.org>
52255         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
52257 2007-02-01  Bruno Haible  <bruno@clisp.org>
52259         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
52260         renamings.
52262 2007-02-01  Eric Blake  <ebb9@byu.net>
52264         * modules/regex (Depends-on): Revert dependence on mempcpy.
52265         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
52266         module's definition of mempcpy.
52267         Reported by Paul Eggert.
52269 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
52271         * lib/string_.h: If the gnulib module XYZ is not present, undefine
52272         the symbol XYZ before redefining it.  This fixes a problem with
52273         programs that don't use XYZ, when compiled on systems that define
52274         XYZ to something else.
52276 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
52278         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
52279         occurs when "mkdir -m foo" creates a setgid directory that is (1)
52280         writeable to group or other and (2) is intended to have a special
52281         mode bit that is set or cleared.  In such a case, the directory
52282         should be neither group- nor other-writeable until the special
52283         mode bits are right.
52285 2007-01-31  Eric Blake  <ebb9@byu.net>
52287         * modules/mountlist (Depends-on): Add strstr.
52289         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
52290         bug.
52291         * modules/string (Makefile.am): Remove redundant replacement.
52292         * modules/regex (Depends-on): Add mempcpy.
52294 2007-01-31  Bruno Haible  <bruno@clisp.org>
52296         New module description field 'Link'.
52297         * gnulib-tool (func_usage): Document --extract-link-directive.
52298         (sed_extract_prog): Recognize 'Link' directive.
52299         (func_get_link_directive): New function.
52300         (func_import): Show summary of link directives.
52301         Handle --extract-link-directive option.
52302         * modules/acl (Link): New section.
52303         * modules/clock-time (Link): New section.
52304         * modules/euidaccess (Link): New section.
52305         * modules/gettext (Link): New section.
52306         * modules/iconv (Link): New section.
52307         * modules/lock (Link): New section.
52308         * modules/nanosleep (Link): New section.
52309         * modules/readline (Link): New section.
52311 2007-01-27  Bruno Haible  <bruno@clisp.org>
52313         Enforce the use of gnulib modules for unportable <string.h> functions.
52314         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
52315         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
52316         (gl_HEADER_STRING_H_BODY): Require it.
52317         * lib/string_.h: If the gnulib module XYZ is not present, redefine
52318         the symbol XYZ to one that gives a link error.
52319         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
52320         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
52321         * modules/mempcpy (configure.ac): Likewise.
52322         * modules/memrchr (configure.ac): Likewise.
52323         * modules/stpcpy (configure.ac): Likewise.
52324         * modules/stpncpy (configure.ac): Likewise.
52325         * modules/strcase (configure.ac): Likewise.
52326         * modules/strcasestr (configure.ac): Likewise.
52327         * modules/strchrnul (configure.ac): Likewise.
52328         * modules/strdup (configure.ac): Likewise.
52329         * modules/strndup (configure.ac): Likewise.
52330         * modules/strnlen (configure.ac): Likewise.
52331         * modules/strpbrk (configure.ac): Likewise.
52332         * modules/strsep (configure.ac): Likewise.
52333         * modules/strstr (configure.ac): Likewise.
52334         * modules/strtok_r (configure.ac): Likewise.
52336 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
52338         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
52340 2007-01-30  Jim Meyering  <jim@meyering.net>
52342         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
52344 2007-01-29  Bruno Haible  <bruno@clisp.org>
52346         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
52347         * lib/execute.c: Likewise.
52348         * lib/pipe.c: Likewise.
52349         * lib/printf-args.h: Likewise.
52350         * lib/printf-args.c: Likewise.
52351         * lib/printf-parse.c: Likewise.
52352         * lib/vasnprintf.c: Likewise.
52354 2007-01-29  Eric Blake  <ebb9@byu.net>
52356         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
52357         declaration.
52359 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
52361         * lib/strptime.h (strptime): Use 'restrict' for args where
52362         POSIX requires this.
52363         * lib/strptime.c (strptime): Likewise.
52364         Change license notice from LGPL to GPL, since gnulib-tool will
52365         change this as needed.
52366         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
52367         defined.
52368         Include "strptime.h" first, to check interface.
52369         Do not #undef _LIBC and _NL_CURRENT.
52370         Do not include <stdlib.h>; no longer needed.
52371         Include "time_r.h" and declare ptime_locale_status
52372         only if _LIBC is not defined.
52373         (__P): Remove unused macro.
52374         (match_string): Bring back glibc version, but use it only if _LIBC
52375         is defined.
52376         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
52377         Remove unnecessary assertion and abort() call.
52378         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
52379         * m4/strptime.m4: Fix serial number comment.
52380         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
52381         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
52382         (Depends-on): Add time_r.
52384 2007-01-29  Bruno Haible  <bruno@clisp.org>
52386         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
52387         strptime.
52388         * modules/strptime (Depends-on): Add stdbool.
52389         * lib/strptime.h: Include <time.h> always. Add comments.
52391 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
52393         * modules/strptime: New file.
52394         * lib/strptime.h: New file.
52395         * lib/strptime.c: New file.
52396         * m4/strptime.m4: New file.
52398 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
52400         * MODULES.html.sh: New module mpsort.
52401         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
52403         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
52404         a circularity problem with HP-UX ia64 reported by Bob Proulx in
52405         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
52406         All uses changed.
52407         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
52408         All uses changed.
52409         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
52410         to _Restrict_.
52411         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
52412         the parameter matches the prototype.
52414 2007-01-28  Jim Meyering  <jim@meyering.net>
52416         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
52417         sys/time.h here, reverting that part of the previous patch:
52418         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
52420 2007-01-28  Bruno Haible  <bruno@clisp.org>
52422         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
52423         value of $(SYS_TIME_H).
52424         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
52425         remove it conditionally, too. [added by Jim Meyering]
52426         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
52427         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
52428         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
52429         GETTIMEOFDAY_REPLACEMENT to 1.
52431 2007-01-28  Bruno Haible  <bruno@clisp.org>
52433         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
52434         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
52435         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
52436         Set UNISTD_H instead of UNISTD_H2.
52437         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
52439 2007-01-28  Bruno Haible  <bruno@clisp.org>
52441         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
52442         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
52444 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52446         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
52447         (func_create_testdir): Ensure C locale for `grep' and `tr'
52448         character ranges.
52449         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
52450         ACLOCAL_AMFLAGS parsing state machine.
52452 2007-01-27  Bruno Haible  <bruno@clisp.org>
52454         * modules/unistr/base: Update.
52456 2007-01-27  Bruno Haible  <bruno@clisp.org>
52458         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
52459         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
52460         * modules/unistr/u32-mbtouc-unsafe: Renamed from
52461         modules/unistr/u32-mbtouc.
52462         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
52463         * lib/unistr.h: Update.
52464         * lib/linebreak.c: Update.
52465         * modules/unistr/u32-mbtouc: Renamed from
52466         modules/unistr/u32-mbtouc-safe.
52467         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
52468         * lib/unistr.h: Update.
52469         * lib/unistr/u32-to-u8.c: Update.
52470         * lib/unistr/u32-to-u16.c: Update.
52472 2007-01-27  Bruno Haible  <bruno@clisp.org>
52474         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
52475         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
52476         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
52477         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
52478         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
52479         * modules/unistr/u16-mbtouc-unsafe: Renamed from
52480         modules/unistr/u16-mbtouc.
52481         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
52482         * lib/unistr.h: Update.
52483         * lib/linebreak.c: Update.
52484         * modules/linebreak: Update.
52485         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
52486         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
52487         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
52488         * modules/unistr/u16-mbtouc: Renamed from
52489         modules/unistr/u16-mbtouc-safe.
52490         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
52491         * lib/unistr.h: Update.
52492         * lib/unistr/u16-to-u8.c: Update.
52493         * modules/unistr/u16-to-u8: Update.
52494         * lib/unistr/u16-to-u32.c: Update.
52495         * modules/unistr/u16-to-u32: Update.
52497 2007-01-27  Bruno Haible  <bruno@clisp.org>
52499         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
52500         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
52501         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
52502         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
52503         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
52504         * modules/unistr/u8-mbtouc-unsafe: Renamed from
52505         modules/unistr/u8-mbtouc.
52506         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
52507         * lib/unistr.h: Update.
52508         * lib/striconveh.c: Update.
52509         * modules/striconveh: Update.
52510         * lib/linebreak.c: Update.
52511         * modules/linebreak: Update.
52512         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
52513         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
52514         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
52515         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
52516         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
52517         * lib/unistr.h: Update.
52518         * lib/striconveh.c: Update.
52519         * modules/striconveh: Update.
52520         * lib/unistr/u8-to-u16.c: Update.
52521         * modules/unistr/u8-to-u16: Update.
52522         * lib/unistr/u8-to-u32.c: Update.
52523         * modules/unistr/u8-to-u32: Update.
52525 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52527         Sync from Libtool.
52528         * lib/argz.c: Do not include strings.h nor memory.h, include
52529         string.h unconditionally.  Patch by Simon Josefsson.
52531 2007-01-27  Bruno Haible  <bruno@clisp.org>
52533         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
52534         from gl_HEADER_STRING_H_BODY.
52535         (gl_HEADER_STRING_H_BODY): Require it.
52536         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
52537         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
52538         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
52539         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
52540         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
52541         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
52542         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
52543         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
52544         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
52545         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
52546         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
52547         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
52548         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
52549         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
52550         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
52552 2007-01-27  Bruno Haible  <bruno@clisp.org>
52554         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
52555         check_PROGRAMS into noinst_PROGRAMS.
52556         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
52557         check_PROGRAMS in this case.
52558         (func_import): Set for_test to false.
52559         (func_create_testdir): Set for_test to true.
52561 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
52562             Bruno Haible  <bruno@clisp.org>
52564         * modules/strcasestr (Files): Remove lib/strcasestr.h.
52565         (Depends-on): Add string.
52566         (Includes): Use <string.h> instead of strcasestr.h.
52567         * modules/string (Makefile.am): Also substitute the value of
52568         REPLACE_STRCASESTR.
52569         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
52570         assume strcasestr is declared in <string.h> not <strings.h>. Also
52571         set REPLACE_STRCASESTR.
52572         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
52573         REPLACE_STRCASESTR.
52574         * lib/strcasestr.h: Remove file.
52575         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
52576         * lib/string_.h (strcasestr): New declaration.
52578 2007-01-27  Bruno Haible  <bruno@clisp.org>
52580         * lib/string_.h: Use 'extern'.
52582 2007-01-27  Jim Meyering  <jim@meyering.net>
52584         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
52585         of set-but-not-used local, "q".
52587         * lib/mempcpy.c: Include <config.h> before <string.h>.
52588         This fixes a compilation error on HP-UX, due to the system's
52589         "restrict"-using mempcpy prototype.
52591 2007-01-26  Bruno Haible  <bruno@clisp.org>
52593         Small optimization.
52594         * lib/javacomp.c: Include c-strstr.h.
52595          (is_envjavac_gcj): Use c_strstr instead of strstr.
52596         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
52598 2007-01-26  Bruno Haible  <bruno@clisp.org>
52600         * MODULES.html.sh (Unicode string functions): Add the new modules.
52602         * modules/uniconv/u32-strconv-to-locale: New file.
52603         * lib/uniconv/u32-strconv-to-locale.c: New file.
52605         * modules/uniconv/u16-strconv-to-locale: New file.
52606         * lib/uniconv/u16-strconv-to-locale.c: New file.
52608         * modules/uniconv/u8-strconv-to-locale: New file.
52609         * lib/uniconv/u8-strconv-to-locale.c: New file.
52611         * modules/uniconv/u32-strconv-from-locale: New file.
52612         * lib/uniconv/u32-strconv-from-locale.c: New file.
52614         * modules/uniconv/u16-strconv-from-locale: New file.
52615         * lib/uniconv/u16-strconv-from-locale.c: New file.
52617         * modules/uniconv/u8-strconv-from-locale: New file.
52618         * lib/uniconv/u8-strconv-from-locale.c: New file.
52620         * modules/uniconv/u32-strconv-to-enc: New file.
52621         * lib/uniconv/u32-strconv-to-enc.c: New file.
52622         * modules/uniconv/u32-strconv-to-enc-tests: New file.
52623         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
52625         * modules/uniconv/u16-strconv-to-enc: New file.
52626         * lib/uniconv/u16-strconv-to-enc.c: New file.
52627         * lib/uniconv/u-strconv-to-enc.h: New file.
52628         * modules/uniconv/u16-strconv-to-enc-tests: New file.
52629         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
52631         * modules/uniconv/u8-strconv-to-enc: New file.
52632         * lib/uniconv/u8-strconv-to-enc.c: New file.
52633         * modules/uniconv/u8-strconv-to-enc-tests: New file.
52634         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
52636         * modules/uniconv/u32-strconv-from-enc: New file.
52637         * lib/uniconv/u32-strconv-from-enc.c: New file.
52638         * modules/uniconv/u32-strconv-from-enc-tests: New file.
52639         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
52641         * modules/uniconv/u16-strconv-from-enc: New file.
52642         * lib/uniconv/u16-strconv-from-enc.c: New file.
52643         * modules/uniconv/u16-strconv-from-enc-tests: New file.
52644         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
52646         * modules/uniconv/u8-strconv-from-enc: New file.
52647         * lib/uniconv/u8-strconv-from-enc.c: New file.
52648         * lib/uniconv/u-strconv-from-enc.h: New file.
52649         * modules/uniconv/u8-strconv-from-enc-tests: New file.
52650         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
52652         * modules/uniconv/u32-conv-from-enc: New file.
52653         * lib/uniconv/u32-conv-from-enc.c: New file.
52654         * modules/uniconv/u32-conv-from-enc-tests: New file.
52655         * tests/uniconv/test-u32-conv-from-enc.c: New file.
52657         * modules/uniconv/u16-conv-from-enc: New file.
52658         * lib/uniconv/u16-conv-from-enc.c: New file.
52659         * lib/uniconv/u-conv-from-enc.h: New file.
52660         * modules/uniconv/u16-conv-from-enc-tests: New file.
52661         * tests/uniconv/test-u16-conv-from-enc.c: New file.
52663         * modules/uniconv/u8-conv-from-enc: New file.
52664         * lib/uniconv/u8-conv-from-enc.c: New file.
52665         * modules/uniconv/u8-conv-from-enc-tests: New file.
52666         * tests/uniconv/test-u8-conv-from-enc.c: New file.
52668         * modules/uniconv/base: New file.
52669         * lib/uniconv.h: New file.
52671 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
52673         * doc/gnulib-tool.texi (Initial import): Update to match current
52674         behavior with strdup module.
52675         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
52676         * lib/memmem.h: Remove; all uses removed.  This is now done
52677         by <string.h>.
52678         * lib/mempcpy.h: Likewise.
52679         * lib/memrchr.h: Likewise.
52680         * lib/stpcpy.h: Likewise.
52681         * lib/stpncpy.h: Likewise.
52682         * lib/strcase.h: Likewise.
52683         * lib/strchrnul.h: Likewise.
52684         * lib/strdup.h: Likewise.
52685         * lib/strndup.h: Likewise.
52686         * lib/strnlen.h: Likewise.
52687         * lib/strpbrk.h: Likewise.
52688         * lib/strsep.h: Likewise.
52689         * lib/strstr.h: Likewise.
52690         * lib/strtok_r.h: Likewise.
52691         * lib/string_.h: New file.
52692         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
52693         Rely on <string.h> instead.
52694         * lib/canon-host.c: Likewise.
52695         * lib/chdir-long.c: Likewise.
52696         * lib/concatpath.c: Likewise.
52697         * lib/exclude.c: Likewise.
52698         * lib/fchdir.c: Likewise.
52699         * lib/getaddrinfo.c: Likewise.
52700         * lib/getcwd.c: Likewise.
52701         * lib/getsubopt.c: Likewise.
52702         * lib/glob.c: Likewise.
52703         * lib/hard-locale.c: Likewise.
52704         * lib/iconvme.c: Likewise.
52705         * lib/javacomp.c: Likewise.
52706         * lib/mempcpy.c: Likewise.
52707         * lib/memrchr.c: Likewise.
52708         * lib/regex_internal.h: Likewise.
52709         * lib/stpncpy.c: Likewise.
52710         * lib/strcasecmp.c: Likewise.
52711         * lib/strchrnul.c: Likewise.
52712         * lib/strdup.c: Likewise.
52713         * lib/striconv.c: Likewise.
52714         * lib/striconveh.c: Likewise.
52715         * lib/striconveha.c: Likewise.
52716         * lib/strncasecmp.c: Likewise.
52717         * lib/strndup.c: Likewise.
52718         * lib/strnlen.c: Likewise.
52719         * lib/strsep.c: Likewise.
52720         * lib/strstr.c: Likewise.
52721         * lib/strtok_r.c: Likewise.
52722         * lib/userspec.c: Likewise.
52723         * lib/w32spawn.h: Likewise.
52724         * lib/xstrndup.c: Likewise.
52725         * lib/mountlist.c (strstr): Remove decl.
52726         * m4/string_h.m4: New file.
52727         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
52728         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
52729         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
52730         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
52731         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
52732         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
52733         Set REPLACE_STRCASECMP if necessary.
52734         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
52735         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
52736         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
52737         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
52738         HAVE_DECL_STRDUP if necessary.
52739         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
52740         since gl_FUNC_STRNDUP does that now.
52741         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
52742         Check for decl here...
52743         (gl_PREREQ_STRNLEN): ... not here.
52744         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
52745         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
52746         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
52747         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
52748         necessary.
52749         * modules/string: New file.
52750         * modules/memmem (Files): Remove special-purpose include file.
52751         (Depends-on): Add string.
52752         (Include): Include <string.h>, not the removed file.
52753         * modules/mempcpy: Likewise.
52754         * modules/memrchr: Likewise.
52755         * modules/stpcpy: Likewise.
52756         * modules/stpncpy: Likewise.
52757         * modules/strcase: Likewise.
52758         * modules/strchrnul: Likewise.
52759         * modules/strdup: Likewise.
52760         * modules/strndup: Likewise.
52761         * modules/strnlen: Likewise.
52762         * modules/strpbrk: Likewise.
52763         * modules/strsep: Likewise.
52764         * modules/strstr: Likewise.
52765         * modules/strtok_r: Likewise.
52766         * tests/test-dirname.c: Don't include "strdup.h", since
52767         <string.h> now suffices.
52768         * tests/test-memmem.c: Don't include "memmem.h", since
52769         <string.h> now suffices.
52771 2007-01-25  Bruno Haible  <bruno@clisp.org>
52773         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
52774         *resultp is 0.
52776         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
52777         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
52778         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
52779         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
52781         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
52782         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
52783         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
52784         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
52785         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
52786         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
52788 2007-01-24  Bruno Haible  <bruno@clisp.org>
52790         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
52791         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
52792         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
52793         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
52794         gl_FUNC_FTS_CORE.
52795         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
52796         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
52797         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
52798         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
52799         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
52800         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
52801         gl_FUNC_FCHOWNAT.
52802         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
52803         gl_FUNC_STRFTIME.
52804         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
52805         Reported by Ralf Wildenhues.
52807 2007-01-24  Bruno Haible  <bruno@clisp.org>
52809         Drop AC_REQUIRE calls that are redundant with the module dependencies.
52810         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
52811         gl_GETADDRINFO.
52812         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
52813         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
52814         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
52816 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
52818         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
52819         Don't use 'exit'; just return from 'main'.
52820         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
52822         * lib/fnmatch_.h: Readjust white space and comments to match
52823         glibc, to avoid spurious diffs.
52825 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
52827         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
52828         2004-12-01 change by Jakub Jelinek, since this code won't compile
52829         if !LIBC.  Problem reported by Bob Proulx.
52831 2007-01-23  Bruno Haible  <bruno@clisp.org>
52833         * lib/striconveh.c: Include c-strcaseeq.h.
52834         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
52835         * modules/striconveh (Depends-on): Add c-strcaseeq.
52837 2007-01-23  Bruno Haible  <bruno@clisp.org>
52839         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
52841         * modules/c-strcaseeq: New file.
52842         * lib/c-strcaseeq.h: New file.
52844         * modules/streq: New file.
52845         * lib/streq.h: New file.
52847 2007-01-23  Bruno Haible  <bruno@clisp.org>
52849         * modules/striconveha-tests: New file.
52850         * tests/test-striconveha.c: New file.
52852         * lib/striconveha.h: Include <stdbool.h>.
52853         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
52854         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
52855         (mem_iconveha_notranslit): Renamed from mem_iconveha.
52856         (mem_iconveha): New function.
52857         (str_iconveha_notranslit): Renamed from str_iconveha.
52858         (str_iconveha): New function.
52859         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
52860         c-strcase.
52862 2007-01-23  Bruno Haible  <bruno@clisp.org>
52864         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
52865         encodings without forgiving before trying any encoding with handler.
52866         (str_iconveha): Try all encodings without forgiving before trying any
52867         encoding with handler.
52869 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
52871         Import the following changes from libc.
52873         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
52875         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
52877         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
52879         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
52880         normal_bracket label.
52882         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
52884         [BZ #361]
52885         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
52886         to normal_bracket after fetching the next character.
52888 2007-01-22  Bruno Haible  <bruno@clisp.org>
52890         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
52891         argument.
52892         * lib/striconveh.c (iconv_carefully_1): New function.
52893         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
52894         argument.
52895         (str_cd_iconveh): Update.
52896         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
52897         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
52898         * tests/test-striconveh.c (MAGIC): New macro.
52899         (new_offsets): New function.
52900         (main): Test call with and without offsets.
52902 2007-01-22  Bruno Haible  <bruno@clisp.org>
52904         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
52905         * modules/sys_select (Makefile.am): Likewise.
52906         * modules/sys_socket (Makefile.am): Likewise.
52907         * modules/sys_time (Makefile.am): Likewise.
52909 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
52911         * modules/gettimeofday (License): Change from GPL to LGPL, since
52912         gettimeofday is a library function.
52914 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52916         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
52918 2007-01-21  Bruno Haible  <bruno@clisp.org>
52920         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
52922 2007-01-21  Bruno Haible  <bruno@clisp.org>
52924         * modules/striconveha: New file.
52925         * lib/striconveha.h: New file.
52926         * lib/striconveha.c: New file.
52927         * MODULES.html.sh (Internationalization functions): Add striconveha.
52928         * lib/striconv.c (str_iconv): Optimize the case of an empty input
52929         string.
52930         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
52932 2007-01-21  Bruno Haible  <bruno@clisp.org>
52934         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
52935         * lib/striconveh.c (str_iconveh): Likewise.
52937 2007-01-21  Bruno Haible  <bruno@clisp.org>
52939         * lib/striconveh.h (mem_iconveh): New declaration.
52940         * lib/striconveh.c (mem_iconveh): New function.
52941         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
52943 2007-01-21  Bruno Haible  <bruno@clisp.org>
52945         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
52947         * lib/striconveh.h (mem_cd_iconveh): Change specification.
52948         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
52949         original result buffer.
52950         (str_cd_iconveh): Update.
52951         * tests/test-striconveh.c (main): Update.
52953         * lib/striconv.h (mem_cd_iconv): Change specification.
52954         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
52955         result buffer.
52956         (str_cd_iconv): Update.
52957         * tests/test-striconv.c (main): Update.
52959 2007-01-21  Bruno Haible  <bruno@clisp.org>
52961         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
52963 2007-01-20  Jim Meyering  <jim@meyering.net>
52965         * lib/userspec.c (parse_with_separator): If a user or group string
52966         starts with "+", skip the corresponding name-to-ID look-up, since
52967         such a look-up must fail: user and group names may not include "+".
52969 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
52971         * lib/poll.c: Include sys/time.h and time.h unconditionally,
52972         since we now assume the sys_time module.
52973         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
52974         check for sys/time.h; no longer needed.
52975         * modules/poll (Depends-on): Depend on sys_time.
52977 2007-01-18  Bruno Haible  <bruno@clisp.org>
52979         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
52980         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
52982         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
52983         gettimeofday.
52985         * tests/test-gettimeofday.c: Include <time.h>.
52986         (dummy): Remove variable.
52988         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
52989         gl_HEADER_SYS_TIME_H.
52990         (gl_HEADER_SYS_TIME_H): New macro.
52992         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
52993         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
52994         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
52995         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
52996         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
52997         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
52998         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
52999         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
53000         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
53001         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
53002         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
53004         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
53005         last change; it caused a compilation error when cross-compiling to
53006         Cygwin.
53008 2007-01-18  Jim Meyering  <jim@meyering.net>
53010         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
53011         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
53012         than the race-prone "test -d sys || mkdir sys".
53013         (configure.ac): Use AC_PROG_MKDIR_P.
53014         * modules/sys_select: Likewise.
53015         * modules/sys_socket: Likewise.
53016         * modules/sys_time: Likewise.
53018 2007-01-18  Eric Blake  <ebb9@byu.net>
53020         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
53021         replace gettimeofday.
53022         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
53023         name, to avoid infinite recursion.
53025 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
53027         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
53028         module sys_time.
53029         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
53030         assume timespec.h defines struct timeval.
53031         * lib/settime.c: Likewise.
53032         * lib/utimens.c: Likewise.
53033         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
53034         since we now assume the gettimeofday module.
53035         * lib/tempname.c (__gen_tempname): Likewise.
53036         * lib/gettimeofday.h: Remove.
53037         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
53038         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
53039         Include <time.h>, for 'time()'.
53040         (localtime_buffer_addr): Also use this workaround if
53041         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
53042         to simplify the uses.  All uses changed.
53043         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
53044         that #undef is inside {}, and 'const' follows type name consistently.
53045         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
53046         (gettimeofday): Do not use the maximum possible value for
53047         tv->tv_usec, since that might break usages other than ls.c.
53048         Instead, we'll leave ls.c alone.  This undoes today's patch
53049         by Bruno.  Add a compile-time warning for 1s-clock resolution;
53050         we've never observed the problem but might as well keep the
53051         canary.
53052         * lib/nanosleep.c: Include timespec.h first, for interface check.
53053         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
53054         now assume the sys_time module.
53055         * lib/tempname.c: Likewise.
53056         * lib/timespec.h: Likewise.
53057         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
53058         needed.
53059         * lib/strftime.c: Likewise.
53060         * lib/timespec.h: Likewise.
53061         * lib/posixtm.c: Include posixtm.h first, for interface check.
53062         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
53063         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
53064         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
53065         * lib/sys_time_.h: New file.
53066         * lib/timespec.h (struct timespec): Use long int, not long.
53067         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
53068         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
53069         Remove obsolescent call to AC_HEADER_TIME.
53070         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
53071         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
53072         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
53073         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
53074         Likewise.
53075         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
53076         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
53077         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
53078         into the sys_time module.  Check for gettimeofday just once.
53079         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
53080         for gettimeofday signature to just check the signature.  Merely
53081         compile it, since linking doesn't test signature.  Improve test for
53082         whether gettimeofday.o is actually needed.
53083         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
53084         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
53085         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
53086         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
53087         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
53088         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
53089         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
53090         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
53091         than worrying about sys/time.h.
53092         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
53093         Don't bother worrying about TIME_WITH_SYS_TIME.
53094         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
53095         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
53096         * m4/sys_time_h.m4: New file.
53097         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
53098         Don't include sys/time.h.  Return from main rather than exiting.
53099         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
53100         all uses changed.
53101         * modules/gethrxtime (Depends-on): Add sys_time.
53102         * modules/gettime (Depends-on): Likewise.
53103         * modules/gettimeofday (Depends-on): Likewise.
53104         * modules/nanosleep (Depends-on): Likewise.
53105         * modules/settime (Depends-on): Likewise.
53106         * modules/tempname (Depends-on): Likewise.
53107         * modules/utimens (Depends-on): Likewise.
53108         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
53109         (Include:) Change back to <sys/time.h>.
53110         (Maintainer:) Add self.
53111         * modules/sys_time: New file.
53112         * modules/tempname (Depends-on): Add gettimeofday.
53113         * tests/test-gettimeofday.c: Include <sys/time.h>
53114         rather than gettimeofday.h.
53116 2007-01-17  Bruno Haible  <bruno@clisp.org>
53118         * gnulib-tool (func_get_license): Revert last patch. Instead, let
53119         the license default to GPL.
53120         (func_create_testdir): Don't complain if a module is LGPL and its
53121         tests module depends on GPLed modules.
53123 2007-01-17  Bruno Haible  <bruno@clisp.org>
53125         * lib/gettimeofday.c (gettimeofday): Add code for the case
53126         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
53127         maximum possible value for tv->tv_usec, rather than the minimum one.
53129 2005-10-08  Martin Lambers  <marlam@marlam.de>
53130 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
53131 2007-01-16  Bruno Haible  <bruno@clisp.org>
53133         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
53134         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
53135         gl_FUNC_GETTIMEOFDAY.
53136         (Include): Add gettimeofday.h.
53137         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
53138         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
53139         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
53140         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
53141         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
53142         * lib/gettimeofday.h: New file.
53143         * lib/gettimeofday.c: Include <sys/timeb.h>.
53144         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
53145         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
53146         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
53147         fall back on time().
53149         * tests/test-gettimeofday.c: New file.
53150         * modules/gettimeofday-tests: New file.
53152 2007-01-16  Eric Blake  <ebb9@byu.net>
53154         * modules/fnmatch (Depends-on): Depend on wchar.
53155         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
53156         * m4/fnmatch.m4: Likewise.
53157         * modules/mbchar (Makefile.am): Assume <wchar.h>.
53158         * m4/mbchar.m4: Likewise.
53159         * modules/mbswidth (Depends-on): Depend on wchar.
53160         * lib/mbswidth.c: Assume <wchar.h>.
53161         * m4/mbswidth.m4: Likewise.
53162         * modules/quotearg (Depends-on): Depend on wchar.
53163         * lib/quotearg.c: Assume <wchar.h>.
53164         * m4/quotearg.m4: Likewise.
53165         * modules/regex (Depends-on): Depend on wchar.
53166         * lib/regex_internal.h: Assume <wchar.h>.
53167         * m4/regex.m4: Likewise.
53168         * modules/stdint (Depends-on): Depend on wchar.
53169         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
53170         * m4/stdint.m4: Likewise.
53171         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
53172         * modules/strftime (Depends-on): Depend on wchar.
53173         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
53174         * modules/strtol (Depends-on): Depend on wchar.
53175         * lib/strtol.c: Assume <wchar.h>.
53176         * modules/wcwidth (Depends-on): Depend on wchar.
53177         * lib/wcwidth.h: Assume <wchar.h>.
53178         * m4/wcwidth.m4: Likewise.
53180 2007-01-16  Bruno Haible  <bruno@clisp.org>
53182         * modules/csharpexec-script: New, created from...
53183         * modules/csharpexec: ... this.
53185 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
53187         * modules/javaexec-script: New, created from...
53188         * modules/javaexec: ... this.
53190 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53192         * modules/poll (Dependencies): Add sys_select.
53194 2007-01-15  Jim Meyering  <jim@meyering.net>
53196         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
53197         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
53198         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
53199         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
53201 2007-01-15  Bruno Haible  <bruno@clisp.org>
53203         * modules/striconveh: New file.
53204         * lib/striconveh.h: New file.
53205         * lib/striconveh.c: New file.
53206         * MODULES.html.sh (Internationalization functions): Add striconveh.
53208         * modules/striconveh-tests: New file.
53209         * tests/test-striconveh.c: New file.
53211 2007-01-15  Bruno Haible  <bruno@clisp.org>
53213         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
53214         not from GNU libiconv or GNU libc.
53216 2007-01-15  Bruno Haible  <bruno@clisp.org>
53218         * doc/gnulib-intro.texi (Copyright): Explain the different license
53219         terms for module descriptions, autoconf macros, tests, documentation.
53221 2007-01-14  Bruno Haible  <bruno@clisp.org>
53223         * modules/striconv-tests: New file.
53224         * tests/test-striconv.c: New file.
53226 2007-01-14  Bruno Haible  <bruno@clisp.org>
53228         * modules/iconv-tests: New file.
53229         * tests/test-iconv.c: New file.
53231 2007-01-14  Bruno Haible  <bruno@clisp.org>
53233         * gnulib-tool (func_get_license): For test modules, use the license of
53234         the main module.
53236 2007-01-14  Bruno Haible  <bruno@clisp.org>
53238         * modules/iconv (Include): Clarify that <iconv.h> can only be included
53239         if iconv is found to exist.
53241 2007-01-14  Bruno Haible  <bruno@clisp.org>
53243         * modules/c-ctype-tests: New file.
53244         * tests/test-c-ctype.c: New file.
53246 2007-01-14  Bruno Haible  <bruno@clisp.org>
53248         * modules/binary-io-tests: New file.
53249         * tests/test-binary-io.sh: New file.
53250         * tests/test-binary-io.c: New file.
53252 2007-01-14  Bruno Haible  <bruno@clisp.org>
53254         * modules/array-oset-tests: New file.
53255         * tests/test-array_oset.c: New file.
53257 2007-01-14  Bruno Haible  <bruno@clisp.org>
53259         * modules/array-list-tests: New file.
53260         * tests/test-array_list.c: New file.
53262 2007-01-14  Bruno Haible  <bruno@clisp.org>
53264         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
53265         and make.
53266         Reported by Simon Josefsson in
53267         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
53269 2007-01-14  Bruno Haible  <bruno@clisp.org>
53271         * modules/allocsa-tests: New file.
53272         * tests/test-allocsa.c: New file.
53274 2007-01-14  Bruno Haible  <bruno@clisp.org>
53276         * modules/fchdir (Depends-on): Add absolute-header.
53277         * modules/unistd (Depends-on): Likewise.
53279 2006-12-30  Bruno Haible  <bruno@clisp.org>
53281         * modules/fchdir: New file.
53282         * modules/unistd (Files): Add lib/unistd_.h.
53283         (Makefile.am): Generate unistd.h from unistd_.h.
53284         * lib/fchdir.c: New file.
53285         * lib/dirent_.h: New file.
53286         * lib/unistd_.h: New file.
53287         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
53288         * m4/fchdir.m4: New file.
53289         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
53290         (gl_HEADER_UNISTD): Invoke it.
53291         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
53292         function.
53293         * lib/backupfile.c (opendir, closedir): Undefine.
53294         * lib/chown.c (open, close): Undefine.
53295         * lib/clean-temp.c (open, close): Undefine.
53296         * lib/copy-file.c (open, close): Undefine.
53297         * lib/execute.c (open, close): Undefine.
53298         * lib/fsusage.c (open, close): Undefine.
53299         * lib/gc-gnulib.c (open, close): Undefine.
53300         * lib/getcwd.c (opendir, closedir): Undefine.
53301         * lib/glob.c (opendir, closedir): Undefine.
53302         * lib/javacomp.c (open, close): Undefine.
53303         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
53304         * lib/openat-proc.c (open, close): Undefine.
53305         * lib/pagealign_alloc.c (open, close): Undefine.
53306         * lib/pipe.c (open, close): Undefine.
53307         * lib/progreloc.c (open, close): Undefine.
53308         * lib/savedir.c (opendir, closedir): Undefine.
53309         * lib/utime.c (open, close): Undefine.
53310         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
53312 2007-01-10  Bruno Haible  <bruno@clisp.org>
53314         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
53316 2007-01-12  Eric Blake  <ebb9@byu.net>
53318         Provide a robust <wchar.h>.  Further simplifications are now
53319         possible in other modules, but not included here.
53320         * modules/wchar: New module.
53321         * m4/wchar.m4: New file.
53322         * lib/wchar_.h: Likewise.
53323         * modules/mbchar (Depends-on): Depend on wchar, as the first use
53324         of the new module.
53325         * MODULES.html.sh (Extended multibyte and wide character utilities):
53326         New section.
53328 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
53330         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
53331         to a reasonable default for memory allocation.
53332         (xreadlink): Don't allocate a huge buffer, to work around a buggy
53333         file system that reports garbage st_size values for symlinks.
53334         Problem reported by Liyang Hu.
53336 2007-01-11  Simon Josefsson  <simon@josefsson.org>
53338         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
53339         Emacs .#* auto-save files).
53341 2007-01-11  Bruno Haible  <bruno@clisp.org>
53343         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
53344         directory.
53346 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
53348         Use @...@ consistently in lib/wctype_.h.
53349         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
53350         on it being set to 1 or 0.
53351         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
53352         go back to AC_SUBSTing it.
53353         * modules/wctype (Makefile.am): Undo previous change.
53355 2007-01-10  Eric Blake  <ebb9@byu.net>
53357         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
53358         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
53359         * modules/wctype (Makefile.am): Likewise.
53360         Reported by Chris McGuire.
53362 2007-01-10  Jim Meyering  <jim@meyering.net>
53364         fts.c: a small readability/maintainability improvement
53365         * lib/fts.c (fts_read): Make this code slightly more readable and
53366         maintainable by hoisting the "sp->fts_cur = p" assignments to
53367         immediately follow the statements that set P.  Derived from
53368         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
53370 2007-01-10  Eric Blake  <ebb9@byu.net>
53372         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
53373         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
53374         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
53375         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
53376         Reported by Chris McGuire.
53378 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53380         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
53381         in sed script.
53383 2007-01-09  Bruno Haible  <bruno@clisp.org>
53385         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
53386         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
53387         variables.
53388         (func_module): Use them.
53390 2007-01-09  Bruno Haible  <bruno@clisp.org>
53392         * modules/unistr/base: New file.
53393         * lib/unistr.h: New file.
53395         * modules/unistr/u8-to-u16: New file.
53396         * lib/unistr/u8-to-u16.c: New file.
53398         * modules/unistr/u8-to-u32: New file.
53399         * lib/unistr/u8-to-u32.c: New file.
53401         * modules/unistr/u16-to-u8: New file.
53402         * lib/unistr/u16-to-u8.c: New file.
53404         * modules/unistr/u16-to-u32: New file.
53405         * lib/unistr/u16-to-u32.c: New file.
53407         * modules/unistr/u32-to-u8: New file.
53408         * lib/unistr/u32-to-u8.c: New file.
53410         * modules/unistr/u32-to-u16: New file.
53411         * lib/unistr/u32-to-u16.c: New file.
53413         * modules/unistr/u8-check: New file.
53414         * modules/unistr/u16-check: New file.
53415         * modules/unistr/u32-check: New file.
53416         * lib/unistr/u8-check.c: New file.
53417         * lib/unistr/u16-check.c: New file.
53418         * lib/unistr/u32-check.c: New file.
53420         * modules/unistr/u8-chr: New file.
53421         * modules/unistr/u16-chr: New file.
53422         * modules/unistr/u32-chr: New file.
53423         * lib/unistr/u8-chr.c: New file.
53424         * lib/unistr/u16-chr.c: New file.
53425         * lib/unistr/u32-chr.c: New file.
53427         * modules/unistr/u8-cmp: New file.
53428         * modules/unistr/u16-cmp: New file.
53429         * modules/unistr/u32-cmp: New file.
53430         * lib/unistr/u8-cmp.c: New file.
53431         * lib/unistr/u16-cmp.c: New file.
53432         * lib/unistr/u32-cmp.c: New file.
53434         * modules/unistr/u8-cpy: New file.
53435         * modules/unistr/u16-cpy: New file.
53436         * modules/unistr/u32-cpy: New file.
53437         * lib/unistr/u8-cpy.c: New file.
53438         * lib/unistr/u16-cpy.c: New file.
53439         * lib/unistr/u32-cpy.c: New file.
53440         * lib/unistr/u-cpy.h: New file.
53442         * modules/unistr/u8-cpy-alloc: New file.
53443         * modules/unistr/u16-cpy-alloc: New file.
53444         * modules/unistr/u32-cpy-alloc: New file.
53445         * lib/unistr/u8-cpy-alloc.c: New file.
53446         * lib/unistr/u16-cpy-alloc.c: New file.
53447         * lib/unistr/u32-cpy-alloc.c: New file.
53448         * lib/unistr/u-cpy-alloc.h: New file.
53450         * modules/unistr/u8-endswith: New file.
53451         * modules/unistr/u16-endswith: New file.
53452         * modules/unistr/u32-endswith: New file.
53453         * lib/unistr/u8-endswith.c: New file.
53454         * lib/unistr/u16-endswith.c: New file.
53455         * lib/unistr/u32-endswith.c: New file.
53456         * lib/unistr/u-endswith.h: New file.
53458         * modules/unistr/u8-mblen: New file.
53459         * modules/unistr/u16-mblen: New file.
53460         * modules/unistr/u32-mblen: New file.
53461         * lib/unistr/u8-mblen.c: New file.
53462         * lib/unistr/u16-mblen.c: New file.
53463         * lib/unistr/u32-mblen.c: New file.
53465         * modules/unistr/u8-mbtouc: New file.
53466         * modules/unistr/u16-mbtouc: New file.
53467         * modules/unistr/u32-mbtouc: New file.
53468         * lib/unistr/u8-mbtouc.c: New file.
53469         * lib/unistr/u16-mbtouc.c: New file.
53470         * lib/unistr/u32-mbtouc.c: New file.
53472         * modules/unistr/u8-mbtouc-safe: New file.
53473         * modules/unistr/u16-mbtouc-safe: New file.
53474         * modules/unistr/u32-mbtouc-safe: New file.
53475         * lib/unistr/u8-mbtouc-safe.c: New file.
53476         * lib/unistr/u16-mbtouc-safe.c: New file.
53477         * lib/unistr/u32-mbtouc-safe.c: New file.
53479         * modules/unistr/u8-move: New file.
53480         * modules/unistr/u16-move: New file.
53481         * modules/unistr/u32-move: New file.
53482         * lib/unistr/u8-move.c: New file.
53483         * lib/unistr/u16-move.c: New file.
53484         * lib/unistr/u32-move.c: New file.
53485         * lib/unistr/u-move.h: New file.
53487         * modules/unistr/u8-next: New file.
53488         * modules/unistr/u16-next: New file.
53489         * modules/unistr/u32-next: New file.
53490         * lib/unistr/u8-next.c: New file.
53491         * lib/unistr/u16-next.c: New file.
53492         * lib/unistr/u32-next.c: New file.
53494         * modules/unistr/u8-prev: New file.
53495         * modules/unistr/u16-prev: New file.
53496         * modules/unistr/u32-prev: New file.
53497         * lib/unistr/u8-prev.c: New file.
53498         * lib/unistr/u16-prev.c: New file.
53499         * lib/unistr/u32-prev.c: New file.
53501         * modules/unistr/u8-set: New file.
53502         * modules/unistr/u16-set: New file.
53503         * modules/unistr/u32-set: New file.
53504         * lib/unistr/u8-set.c: New file.
53505         * lib/unistr/u16-set.c: New file.
53506         * lib/unistr/u32-set.c: New file.
53507         * lib/unistr/u-set.h: New file.
53509         * modules/unistr/u8-startswith: New file.
53510         * modules/unistr/u16-startswith: New file.
53511         * modules/unistr/u32-startswith: New file.
53512         * lib/unistr/u8-startswith.c: New file.
53513         * lib/unistr/u16-startswith.c: New file.
53514         * lib/unistr/u32-startswith.c: New file.
53515         * lib/unistr/u-startswith.h: New file.
53517         * modules/unistr/u8-stpcpy: New file.
53518         * modules/unistr/u16-stpcpy: New file.
53519         * modules/unistr/u32-stpcpy: New file.
53520         * lib/unistr/u8-stpcpy.c: New file.
53521         * lib/unistr/u16-stpcpy.c: New file.
53522         * lib/unistr/u32-stpcpy.c: New file.
53523         * lib/unistr/u-stpcpy.h: New file.
53525         * modules/unistr/u8-stpncpy: New file.
53526         * modules/unistr/u16-stpncpy: New file.
53527         * modules/unistr/u32-stpncpy: New file.
53528         * lib/unistr/u8-stpncpy.c: New file.
53529         * lib/unistr/u16-stpncpy.c: New file.
53530         * lib/unistr/u32-stpncpy.c: New file.
53531         * lib/unistr/u-stpncpy.h: New file.
53533         * modules/unistr/u8-strcat: New file.
53534         * modules/unistr/u16-strcat: New file.
53535         * modules/unistr/u32-strcat: New file.
53536         * lib/unistr/u8-strcat.c: New file.
53537         * lib/unistr/u16-strcat.c: New file.
53538         * lib/unistr/u32-strcat.c: New file.
53539         * lib/unistr/u-strcat.h: New file.
53541         * modules/unistr/u8-strchr: New file.
53542         * modules/unistr/u16-strchr: New file.
53543         * modules/unistr/u32-strchr: New file.
53544         * lib/unistr/u8-strchr.c: New file.
53545         * lib/unistr/u16-strchr.c: New file.
53546         * lib/unistr/u32-strchr.c: New file.
53548         * modules/unistr/u8-strcmp: New file.
53549         * modules/unistr/u16-strcmp: New file.
53550         * modules/unistr/u32-strcmp: New file.
53551         * lib/unistr/u8-strcmp.c: New file.
53552         * lib/unistr/u16-strcmp.c: New file.
53553         * lib/unistr/u32-strcmp.c: New file.
53555         * modules/unistr/u8-strcpy: New file.
53556         * modules/unistr/u16-strcpy: New file.
53557         * modules/unistr/u32-strcpy: New file.
53558         * lib/unistr/u8-strcpy.c: New file.
53559         * lib/unistr/u16-strcpy.c: New file.
53560         * lib/unistr/u32-strcpy.c: New file.
53561         * lib/unistr/u-strcpy.h: New file.
53563         * modules/unistr/u8-strcspn: New file.
53564         * modules/unistr/u16-strcspn: New file.
53565         * modules/unistr/u32-strcspn: New file.
53566         * lib/unistr/u8-strcspn.c: New file.
53567         * lib/unistr/u16-strcspn.c: New file.
53568         * lib/unistr/u32-strcspn.c: New file.
53569         * lib/unistr/u-strcspn.h: New file.
53571         * modules/unistr/u8-strdup: New file.
53572         * modules/unistr/u16-strdup: New file.
53573         * modules/unistr/u32-strdup: New file.
53574         * lib/unistr/u8-strdup.c: New file.
53575         * lib/unistr/u16-strdup.c: New file.
53576         * lib/unistr/u32-strdup.c: New file.
53577         * lib/unistr/u-strdup.h: New file.
53579         * modules/unistr/u8-strlen: New file.
53580         * modules/unistr/u16-strlen: New file.
53581         * modules/unistr/u32-strlen: New file.
53582         * lib/unistr/u8-strlen.c: New file.
53583         * lib/unistr/u16-strlen.c: New file.
53584         * lib/unistr/u32-strlen.c: New file.
53585         * lib/unistr/u-strlen.h: New file.
53587         * modules/unistr/u8-strmblen: New file.
53588         * modules/unistr/u16-strmblen: New file.
53589         * modules/unistr/u32-strmblen: New file.
53590         * lib/unistr/u8-strmblen.c: New file.
53591         * lib/unistr/u16-strmblen.c: New file.
53592         * lib/unistr/u32-strmblen.c: New file.
53594         * modules/unistr/u8-strmbtouc: New file.
53595         * modules/unistr/u16-strmbtouc: New file.
53596         * modules/unistr/u32-strmbtouc: New file.
53597         * lib/unistr/u8-strmbtouc.c: New file.
53598         * lib/unistr/u16-strmbtouc.c: New file.
53599         * lib/unistr/u32-strmbtouc.c: New file.
53601         * modules/unistr/u8-strncat: New file.
53602         * modules/unistr/u16-strncat: New file.
53603         * modules/unistr/u32-strncat: New file.
53604         * lib/unistr/u8-strncat.c: New file.
53605         * lib/unistr/u16-strncat.c: New file.
53606         * lib/unistr/u32-strncat.c: New file.
53607         * lib/unistr/u-strncat.h: New file.
53609         * modules/unistr/u8-strncmp: New file.
53610         * modules/unistr/u16-strncmp: New file.
53611         * modules/unistr/u32-strncmp: New file.
53612         * lib/unistr/u8-strncmp.c: New file.
53613         * lib/unistr/u16-strncmp.c: New file.
53614         * lib/unistr/u32-strncmp.c: New file.
53616         * modules/unistr/u8-strncpy: New file.
53617         * modules/unistr/u16-strncpy: New file.
53618         * modules/unistr/u32-strncpy: New file.
53619         * lib/unistr/u8-strncpy.c: New file.
53620         * lib/unistr/u16-strncpy.c: New file.
53621         * lib/unistr/u32-strncpy.c: New file.
53622         * lib/unistr/u-strncpy.h: New file.
53624         * modules/unistr/u8-strnlen: New file.
53625         * modules/unistr/u16-strnlen: New file.
53626         * modules/unistr/u32-strnlen: New file.
53627         * lib/unistr/u8-strnlen.c: New file.
53628         * lib/unistr/u16-strnlen.c: New file.
53629         * lib/unistr/u32-strnlen.c: New file.
53630         * lib/unistr/u-strnlen.h: New file.
53632         * modules/unistr/u8-strpbrk: New file.
53633         * modules/unistr/u16-strpbrk: New file.
53634         * modules/unistr/u32-strpbrk: New file.
53635         * lib/unistr/u8-strpbrk.c: New file.
53636         * lib/unistr/u16-strpbrk.c: New file.
53637         * lib/unistr/u32-strpbrk.c: New file.
53638         * lib/unistr/u-strpbrk.h: New file.
53640         * modules/unistr/u8-strrchr: New file.
53641         * modules/unistr/u16-strrchr: New file.
53642         * modules/unistr/u32-strrchr: New file.
53643         * lib/unistr/u8-strrchr.c: New file.
53644         * lib/unistr/u16-strrchr.c: New file.
53645         * lib/unistr/u32-strrchr.c: New file.
53647         * modules/unistr/u8-strspn: New file.
53648         * modules/unistr/u16-strspn: New file.
53649         * modules/unistr/u32-strspn: New file.
53650         * lib/unistr/u8-strspn.c: New file.
53651         * lib/unistr/u16-strspn.c: New file.
53652         * lib/unistr/u32-strspn.c: New file.
53653         * lib/unistr/u-strspn.h: New file.
53655         * modules/unistr/u8-strstr: New file.
53656         * modules/unistr/u16-strstr: New file.
53657         * modules/unistr/u32-strstr: New file.
53658         * lib/unistr/u8-strstr.c: New file.
53659         * lib/unistr/u16-strstr.c: New file.
53660         * lib/unistr/u32-strstr.c: New file.
53661         * lib/unistr/u-strstr.h: New file.
53663         * modules/unistr/u8-strtok: New file.
53664         * modules/unistr/u16-strtok: New file.
53665         * modules/unistr/u32-strtok: New file.
53666         * lib/unistr/u8-strtok.c: New file.
53667         * lib/unistr/u16-strtok.c: New file.
53668         * lib/unistr/u32-strtok.c: New file.
53669         * lib/unistr/u-strtok.h: New file.
53671         * modules/unistr/u8-uctomb: New file.
53672         * modules/unistr/u16-uctomb: New file.
53673         * modules/unistr/u32-uctomb: New file.
53674         * lib/unistr/u8-uctomb.c: New file.
53675         * lib/unistr/u16-uctomb.c: New file.
53676         * lib/unistr/u32-uctomb.c: New file.
53678         * MODULES.html.sh (Unicode string functions): Add the new modules.
53680 2007-01-08  Bruno Haible  <bruno@clisp.org>
53682         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
53683         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
53684         subdirectories.
53686 2007-01-08  Karl Berry  <karl@gnu.org>
53688         * doc/error.texi: mention that main() fns must set program_name
53689         when progname is used.
53691 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
53693         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
53694         WCTYPE_H is empty, for the benefit of builds from non-distclean
53695         directories.  Problem reported by Eric Blake in
53696         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
53698 2007-01-08  Bruno Haible  <bruno@clisp.org>
53700         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
53701         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
53702         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
53703         PROVIDE_CANONICALIZE_FILENAME_MODE.
53704         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
53706 2007-01-08  Bruno Haible  <bruno@clisp.org>
53708         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
53709         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
53710         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
53711         * lib/fts.c: Likewise.
53712         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
53714 2006-12-25  Bruno Haible  <bruno@clisp.org>
53716         * modules/utf8-ucs4-safe: New file.
53717         * lib/utf8-ucs4-safe.h: New file.
53718         * lib/unistr/utf8-ucs4-safe.c: New file.
53720         * modules/utf16-ucs4-safe: New file.
53721         * lib/utf16-ucs4-safe.h: New file.
53722         * lib/unistr/utf16-ucs4-safe.c: New file.
53724         * MODULES.html.sh (Unicode string functions): Add the new modules.
53726 2007-01-08  Bruno Haible  <bruno@clisp.org>
53728         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
53729         (Depends-on): Add unitypes.
53730         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
53731         (u8_mbtouc_aux): Move out to separate file.
53732         (u8_mbtouc): Use ucs4_t, uint8_t types.
53733         * lib/unistr/utf8-ucs4.c: New file.
53735         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
53736         (Depends-on): Add unitypes.
53737         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
53738         (u16_mbtouc_aux): Move out to separate file.
53739         (u16_mbtouc): Use ucs4_t, uint16_t types.
53740         * lib/unistr/utf16-ucs4.c: New file.
53742         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
53743         (Depends-on): Add unitypes.
53744         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
53745         (u8_uctomb_aux): Move out to separate file.
53746         (u8_uctomb): Use ucs4_t, uint8_t types.
53747         * lib/unistr/ucs4-utf8.c: New file.
53749         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
53750         (Depends-on): Add unitypes.
53751         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
53752         (u16_uctomb_aux): Move out to separate file.
53753         (u16_uctomb): Use ucs4_t, uint16_t types.
53754         * lib/unistr/ucs4-utf16.c: New file.
53756 2006-12-25  Bruno Haible  <bruno@clisp.org>
53758         * modules/unitypes: New file.
53759         * lib/unitypes.h: New file.
53760         * MODULES.html.sh (func_all_modules): New section "Unicode string
53761         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
53762         this section. Add unitypes.
53764 2007-01-08  Bruno Haible  <bruno@clisp.org>
53766         Avoid variable names that conflict with those from libtool.
53767         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
53768         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
53769         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
53770         library_names_spec to acl_library_names_spec, hardcode_* to
53771         acl_hardcode_*.
53772         Reported by Ralf Wildenhues.
53774 2007-01-08  Bruno Haible  <bruno@clisp.org>
53776         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
53777         definition.
53778         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
53779         definition.
53780         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
53781         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
53782         definition.
53783         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
53784         definition.
53785         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
53786         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
53787         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
53788         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
53789         definition.
53790         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
53791         definition.
53792         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
53793         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
53794         GC_USE_<algorithm>.
53795         * lib/gc-libgcrypt.c: Likewise.
53796         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
53797         * modules/gc-arctwo (configure.ac): Likewise.
53798         * modules/gc-des (configure.ac): Likewise.
53799         * modules/gc-hmac-md5 (configure.ac): Likewise.
53800         * modules/gc-hmac-sha1 (configure.ac): Likewise.
53801         * modules/gc-md2 (configure.ac): Likewise.
53802         * modules/gc-md4 (configure.ac): Likewise.
53803         * modules/gc-md5 (configure.ac): Likewise.
53804         * modules/gc-random (configure.ac): Likewise.
53805         * modules/gc-rijndael (configure.ac): Likewise.
53806         * modules/gc-sha1 (configure.ac): Likewise.
53808 2007-01-08  Bruno Haible  <bruno@clisp.org>
53810         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
53811         macro definition.
53812         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
53813         definition.
53814         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
53815         definition.
53816         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
53817         * modules/fcntl-safer (configure.ac): Likewise.
53818         * modules/fopen-safer (configure.ac): Likewise.
53819         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
53820         GNULIB_FWRITEERROR macro definition.
53822 2007-01-08  Bruno Haible  <bruno@clisp.org>
53824         * m4/gnulib-common.m4: New file.
53825         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
53826         (func_get_filelist): Add m4/gnulib-common.m4.
53828 2007-01-08  Bruno Haible  <bruno@clisp.org>
53830         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
53831         command.
53833 2007-01-08  Jim Meyering  <jim@meyering.net>
53835         Use a more robust test for a "can't happen" condition.
53836         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
53837         narrowed the st_size value.  Presuming the "can't happen" condition
53838         is true, that narrowing could conceivably convert an invalid st_size
53839         value into a valid one.  Instead, use a change based on Matthew
53840         Woehlke's original patch.
53842         Slight readability improvement: use an assert-like macro
53843         in place of literal "abort ()" uses.
53844         * lib/fts.c (fts_assert): Define.
53845         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
53846         Use this macro instead of a bare 'abort'.
53848 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
53850         Don't worry about using IRIX 5.3's wctype.h broken definitions;
53851         simply work around them.
53852         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
53853         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
53854         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
53855         declaring.
53856         Don't bother to define as macros, since the standard doesn't require it.
53857         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
53858         longer worry about IRIX 5.3.
53859         (HAVE_WCTYPE_CTMP_BUG): Remove.
53861 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
53863         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
53864         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
53865         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
53866         Problems reported by Georg Schwarz for IRIX 5.3.
53868         * gnulib-tool (autoconf_minversion): Take the maximum version number
53869         found, not the minimum.  Problem reported by James Youngman.
53871 2007-01-03  Karl Berry  <karl@gnu.org>
53873         * doc/error.texi: new file, explaining interaction with progname.
53874         * doc/gnulib.texi: include it.  Update copyright.
53876 2007-01-03  Simon Josefsson  <simon@josefsson.org>
53878         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
53879         AC_CANONICAL_HOST, to improve autobuild outputs.
53881 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
53882             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
53884         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
53885         sockets, server sockets, and other file descriptors.  Count errors
53886         to compute the return value.  Reorder the code a bit to be easier
53887         to follow.  Don't set event bits that were not requested (except
53888         POLLERR and POLLHUP).
53890 2007-01-01  Bruno Haible  <bruno@clisp.org>
53892         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
53894 2007-01-03  Jim Meyering  <jim@meyering.net>
53896         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
53898 2007-01-02  Bruno Haible  <bruno@clisp.org>
53900         * modules/settime (Include): Require timespec.h.
53901         * modules/nanosleep (Include): Likewise.
53903 2007-01-01  Bruno Haible  <bruno@clisp.org>
53905         * gnulib-tool (func_emit_copyright_notice): Bump year.
53906         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
53908 2007-01-01  Bruno Haible  <bruno@clisp.org>
53910         Improve support for OpenBSD.
53911         * build-aux/config.rpath (libname_spec): Export.
53912         (library_names_spec): New variable. Export.
53913         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
53914         library_names_spec from the config.rpath output. Locate shared library
53915         through the name pattern in library_names_spec.
53917 2007-01-01  Eric Blake  <ebb9@byu.net>
53919         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
53921 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
53923         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
53924         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
53925         assume the C locale, and avoid an "eval" that could cause trouble.
53926         Problem with SORT reported by Bob Proulx.
53928         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
53929         Define.  Trivial patch from Henning Nielsen Lund, originally
53930         sent to bug-grep@gnu.org today.
53932 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
53934         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
53935         struct stat.  Problem reported by Henning Nielsen Lund.
53936         * lib/acl.c: Include acl.h first, to check interface.  Don't
53937         bother to include sys/types.h and sys/stat.h again.
53939 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
53941         Import the following change from libc; problem reported by
53942         Sven Verdoolaege.
53944         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
53946         [BZ #1373]
53947         * lib/argp.h: Remove __NTH for __argp_usage inline function.
53949 2006-12-28  Jim Meyering  <jim@meyering.net>
53951         * build-aux/announce-gen: Do not assume that the package
53952         builds any of tar.gz, tar.bz2, and .xdelta files.
53953         Suggestion from Simon Josefsson.
53955 2006-12-28  Simon Josefsson  <simon@josefsson.org>
53957         * modules/announce-gen: New file.
53959 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
53961         * lib/mbchar.h: Just include <wctype.h>; the wctype module
53962         handles its gotchas now.
53963         * lib/mbswidth.c: Likewise.
53964         * lib/wcwidth.h: Likewise.
53965         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
53966         and iswcntrl; the wctype module does this stuff now.
53967         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
53968         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
53969         * modules/mbchar (Depends-on): Add wctype.
53970         * modules/mbswidth (Depends-on): Likewise.
53971         * modules/wcwidth (Depends-on): Likewise.
53973 2006-12-27  Eric Blake  <ebb9@byu.net>
53975         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
53976         module uses more than what <wctype.h> is required to provide.
53978 2006-12-26  Eric Blake  <ebb9@byu.net>
53980         * gnulib-tool (sed_extract_prog): Avoid space-tab.
53982 2006-12-26  Eric Blake  <ebb9@byu.net>
53984         * modules/absolute-header: New module.
53985         * modules/fcntl (Depends-on): Depend on it.
53986         * modules/inttypes (Depends-on): Likewise.
53987         * modules/stdint (Depends-on): Likewise.
53988         * modules/sys_stat (Depends-on): Likewise.
53989         * modules/wctype (Depends-on): Likewise.
53990         * MODULES.html.sh (Support for building libraries and
53991         executables): Document it.
53993 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
53995         * gnulib-tool (SED): Remove, undoing previous change.
53996         The problem was that it broke coreutils on Solaris, because
53997         "sed --posix" leaked into a makefile.
53998         (sed): New alias, if 'alias' and GNU sed.
54000 2006-12-24  Jim Meyering  <jim@meyering.net>
54002         Work around an fchownat bug in glibc-2.4:
54003         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
54004         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
54005         in spite of the -P option.
54006         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
54007         New macros.
54008         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
54009         * modules/openat (Files): Add lib/fchownat.c.
54010         * lib/openat.c (fchownat): Don't define here.  Move to...
54011         * lib/fchownat.c: ...this new file.
54013 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
54015         Fix bug reported by Bruno Haible in
54016         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
54017         where quotearg.c didn't compile on Mac OS X 10.2 because it
54018         lacks <wchar.h> and wint_t.
54019         * lib/wctype_.h (__wctype_wint_t): New type.
54020         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
54021         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
54022         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
54023         Arg is now of type __wctype_wint_t, not wint_t.
54024         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
54025         substitute HAVE_WINT_T.
54026         * modules/wctype (Files): Add m4/wint_t.m4.
54027         (wctype.h): Substitute HAVE_WINT_T.
54029 2006-12-23  Bruno Haible  <bruno@clisp.org>
54031         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
54033 2006-12-23  Bruno Haible  <bruno@clisp.org>
54035         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
54036         S_ISLNK.
54037         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
54038         mingw.
54040 2006-12-22  Bruno Haible  <bruno@clisp.org>
54042         * lib/copy-file.c: Include acl.h.
54043         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
54044         Close the file descriptors only after being done with copy_acl.
54045         * modules/copy-file (Depends-on): Add acl.
54047 2006-12-22  Bruno Haible  <bruno@clisp.org>
54049         * gnulib-tool (SED): New variable.
54050         Use $SED instead of sed everywhere.
54052 2006-12-22  Bruno Haible  <bruno@clisp.org>
54054         * modules/no-c++: New file.
54055         * m4/no-c++.m4: New file.
54056         * MODULES.html.sh (Support for building libraries and executables):
54057         Add no-c++.
54059 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
54061         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
54062         Include <limits.h>, and use its INT_MAX to rewrite the
54063         j loop so that it does not overflow 'int'.  Problem reported by
54064         Ralf Wildenhues in
54065         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
54066         Play it safe by shifting left by 1 rather than multiplying by 2,
54067         as GCC is less likely to optimize this away when the value
54068         is signed (when it assumes overflow leads to undefined behavior).
54069         Also, don't assume time_t uses two's complement.
54071 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
54073         * MODULES.html.sh: New module wctype.
54074         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
54075         * lib/fnmatch.c: Don't bother to include <wchar.h> before
54076         <wctype.h>, since the new wctype module should fix this.
54077         * lib/quotearg.c: Include <wctype.h> unconditionally, since
54078         the wctype module should arrange for it.
54079         * lib/regex_internal.h: Likewise.
54080         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
54081         since the wctype module should handle this now.
54082         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
54083         * modules/fnmatch (Depends-on): Add wctype.
54084         * modules/quotearg (Depends-on): Likewise.
54085         * modules/regex (Depends-on): Likewise.
54087 2006-12-19  Bruno Haible  <bruno@clisp.org>
54089         * lib/strdup.h [C++]: Wrap definitions in extern "C".
54090         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
54092 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54094         * modules/savewd (Depends-on): Fix dependency on fcntl.
54096 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
54098         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
54099         conforms to C99, rather than relying on the user's environment
54100         setting of STDINT_H.
54102 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
54103         and Eric Blake  <ebb9@byu.net>
54105         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
54106         This is more consistent with the other defines here.
54107         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
54108         Port to z/OS.  Problem reported by Paul Gilmartin.
54109         Change local vars to use gl_ prefix rather than ac_.
54110         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
54111         with other defines.
54112         * modules/double-slash-root: New module.
54113         * modules/dirname (Files): Remove m4/double-slash-root.m4.
54114         (Depends-on): Add double-slash-root.
54115         * MODULES.html.sh (File system functions): Mention new module.
54117 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
54119         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
54120         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
54121         This is for the benefit of gzip, which doesn't do i18n.
54123 2006-12-12  Jim Meyering  <jim@meyering.net>
54125         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
54126         Reported by Andreas Schwab <schwab@suse.de>.
54128 2006-12-12  Bruno Haible  <bruno@clisp.org>
54130         Merge these changes.
54131         2006-09-05  Bruno Haible  <bruno@clisp.org>
54132         * lib/iconvme.c (iconv_string): No need to save and restore errno when
54133         iconv_alloc succeeded.
54134         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
54135         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
54136         test for " && dest " at the end - dest is always != NULL there. Call
54137         iconv with 4xNULL arguments initially, to reset the state. Call iconv
54138         with 2xNULL arguments, also to flush the state storage. Handle the
54139         IRIX iconv behaviour. Realloc the final result, to throw away unused
54140         memory.
54142 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
54144         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
54145         and fchmodat unconditionally, since glibc 2.4 has them.
54146         Problem reported by Arkadiusz Miskiewicz.
54148 2006-12-10  Bruno Haible  <bruno@clisp.org>
54150         * gnulib-tool (func_import): Show the include files only for those
54151         modules that are copied and specified.
54152         Reported by Karl Berry.
54154 2006-12-08  Jim Meyering  <jim@meyering.net>
54156         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
54157         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
54159         * build-aux/announce-gen: Add two new options, both optional:
54160         --bootstrap-tools=TOOL_LIST
54161               a comma-separated list of tools, e.g.,
54162               autoconf,automake,bison,gnulib
54163         --gnulib-snapshot-date=DATE
54164               if gnulib is in the bootstrap tool list,
54165               then report this as the snapshot date.
54166               If not specified, use the current date/time.
54167               If you specify a date here, be sure it's UTC.
54169 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54171         * tests/test-argp-2.sh: Fix test to match actual output.
54172         (func_compare): Fix sed script to be portable.
54174 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
54176         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
54177         workaround for this case.  It is not autoconfigured now; offhand
54178         it's hard to see how to autoconfigure it.
54180 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
54182         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
54183         a directory that is about to be chowned.  Such a directory's
54184         initial file permissions should permit the owner only and this
54185         should not be changed until after the chown, since the group and
54186         other bits would be incorrect if they granted permission before
54187         the chown.
54189         Fix porting problem for iswctype reported by Georg Schwarz in:
54190         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
54191         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
54192         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
54193         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
54194         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
54196 2006-12-03  Jim Meyering  <jim@meyering.net>
54198         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
54199         p->fts_statp may not yet be defined.
54200         (fts_read): Instead, set it in the caller, once p->fts_statp is
54201         sure to be defined, and corresponds to a top-level directory.
54202         This bug made du -x fail.  Here's the coreutils test case:
54203         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
54204         Reported by Mike Frysinger.
54206 2006-12-01  Jim Meyering  <jim@meyering.net>
54208         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
54209         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
54210         Reported by Simon Josefsson.
54212 2006-11-30  Jim Meyering  <jim@meyering.net>
54214         * m4/warning.m4: Use the all-permissive copyright notice
54215         recommended by RMS (rather than LGPL).
54216         * m4/vararrays.m4: Likewise.
54217         * m4/flexmember.m4: Likewise.
54219 2006-11-29  Bruno Haible  <bruno@clisp.org>
54221         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
54222         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
54223         using +=.
54224         Reported by Simon Josefsson <simon@josefsson.org>.
54226 2006-11-28  James Youngman <jay@gnu.org>
54228         * README: Advise users that they might find the bug-gnulib@gnu.org
54229         and autotools-announce@gnu.org mailing lists useful.
54231 2006-11-28  Bruno Haible  <bruno@clisp.org>
54233         * m4/ptrdiff_max.m4: Remove file.
54235 2006-11-21  Bruno Haible  <bruno@clisp.org>
54237         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
54238         _AC_COMPUTE_INT.
54239         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
54240         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
54241         _AC_COMPUTE_INT.
54242         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
54243         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
54244         _AC_COMPUTE_INT.
54245         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
54247 2006-11-28  Jim Meyering  <jim@meyering.net>
54249         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
54250         warning from "gcc -Wshadow" about shadowing the builtin.
54252 2006-11-27  Bruno Haible  <bruno@clisp.org>
54254         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
54255         _AC_COMPUTE_INT.
54256         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
54258 2006-11-27  Bruno Haible  <bruno@clisp.org>
54259             Paul Eggert  <eggert@cs.ucla.edu>
54261         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
54263 2006-11-26  Bruno Haible  <bruno@clisp.org>
54265         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
54266         noinst_LTLIBRARIES.
54268 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
54269             Bruno Haible  <bruno@clisp.org>
54271         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
54272         if compiling with "gcc -ansi".
54274 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
54276         Fix some incompatibilities with gcc -ansi -pedantic.
54277         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
54278         if compiling pedantically with GCC, unless it's C99 or later.
54279         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
54280         it mishandles gcc -ansi -pedantic as well.
54281         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
54282         if gcc -pedantic.
54283         * lib/regexec.c (check_node_accept_bytes): Don't use auto
54284         initializers for struct if -pedantic, unless it's C99 or later.
54286 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
54288         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
54289         Don't close an fd more than once. Identical atimes indicate
54290         success, not failure.
54292 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
54294         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
54296 2006-11-23  Jim Meyering  <jim@meyering.net>
54298         * build-aux/announce-gen: New file.  From coreutils.
54300 2006-11-22  Jim Meyering  <jim@meyering.net>
54302         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
54303         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
54304         (fts_read): Use a temporary to narrow the overused st_size member
54305         before using it in a switch statement.  Reported by Matthew Woehlke.
54307         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
54308         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
54310 2006-11-20  Bruno Haible  <bruno@clisp.org>
54312         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
54313         changequote instead of pairs of brackets.
54314         Reported by Andreas Schwab <schwab@suse.de>.
54316 2006-11-21  Jim Meyering  <jim@meyering.net>
54318         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
54319         so as to remain compatible with older compilers.
54320         Patch from Michael Deutschmann.
54322 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
54324         * MODULES.html.sh (File system functions): Add openat.
54326         * lib/openat.h (rpl_fstatat): New macro, if
54327         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
54328         (fstatat): Define to rpl_fstatat under the same conditions,
54329         unless COMPILING_FSTATAT.
54330         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
54331         seems to have the bug.
54332         * lib/fstatat.c: New file.
54333         * modules/openat (Files): Add it.
54335 2006-11-20  Bruno Haible  <bruno@clisp.org>
54337         * Makefile: New file.
54339 2006-11-20  Jim Meyering  <jim@meyering.net>
54341         The beginnings of syntax-related checks for gnulib.
54342         * lib/Makefile: New file.
54343         * lib/t-idcache: New script.  Ensure that the two halves of
54344         idcache.c stay in sync.
54346         * lib/idcache.c: Adjust comments in user- and group- portions to
54347         be more accurate, and to be consistent with one another.
54349 2006-11-20  Jim Meyering  <jim@meyering.net>
54351         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
54352         continue using the flexible array member (thus, this module performs
54353         half as many malloc calls), with the addition that...
54354         (getgroup, getuser): Consistently record a non-match via an empty
54355         "name" string, and map an empty string match to a NULL return value.
54356         * modules/idcache (Depends-on): Re-add flexmember.
54358         * lib/idcache.c (getuser): Remove all uses of the register keyword.
54359         (getuidbyname, getgroup, getgidbyname): Likewise.
54361         Use cleaner syntax: NULL rather than 0.
54362         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
54364 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
54366         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
54367         It mishandled the case where the group was missing.
54368         Problem reported by Greg Schafer.
54369         * modules/idcache: Likewise.
54371 2006-11-18  Jim Meyering  <jim@meyering.net>
54373         * check-module (%exempt_header): Add exception for some
54374         conditionally-included headers.
54376         * modules/i-ring (Depends-on): Add verify.
54377         (License): Change to LGPL.
54379 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
54381         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
54382         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
54383         and inttostr.h.  Use snprintf rather than uinttostr, so that
54384         LGPLed code doesn't depend on GPLed.
54386 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
54388         * modules/inline (License): Change from GPL to LGPL.
54390 2006-11-17  Jim Meyering  <jim@meyering.net>
54392         * modules/d-type (License): Switch to LGPL.
54394 2006-11-15  Bruno Haible  <bruno@clisp.org>
54396         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
54398 2006-11-15  Eric Blake  <ebb9@byu.net>
54400         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
54401         the module dependency.
54403 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54404             Bruno Haible  <bruno@clisp.org>
54406         * gnulib-tool (func_create_testdir): Add license consistency check.
54408 2006-11-15  Eric Blake  <ebb9@byu.net>
54410         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
54411         random "(cached)" in configure output.
54413 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54415         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
54416         test for conforming inttypes.h is both announced and cached.
54418         * MODULES.html.sh (seen_modules, seen_files): New variables.
54419         (func_module): Rewrite to use a few less gnulib-tool and sed
54420         invocations.  Avoid a couple of quadratic algorithms for ...
54421         (missed_modules, missed_files): ... these, with ...
54422         (func_append, func_tmpdir): ... these new functions, from
54423         gnulib-tool.  Analogously, install traps for cleanup.
54425         * tests/test-gc.c (main): Remove unused variables.
54426         * tests/test-read-file.c: Include stdlib.h, for 'free'.
54428 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
54430         * modules/inttostr (License): Change to LGPL.
54432 2006-11-14  Eric Blake  <ebb9@byu.net>
54434         * modules/tempname (License): Change to LGPL.
54436 2006-11-14  Eric Blake  <ebb9@byu.net>
54438         * doc/functions.texi (Function Portability): *printf functions on
54439         Cygwin now understand all POSIX size specifiers.
54441 2006-11-14  Bruno Haible  <bruno@clisp.org>
54443         * modules/c-ctype (License): Change to LGPL.
54445 2006-11-12  Bruno Haible  <bruno@clisp.org>
54447         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
54448         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
54449         for GNOME libraries, for which the include files are installed in
54450         subdirectories of $prefix/include.
54452 2006-11-12  Bruno Haible  <bruno@clisp.org>
54454         * m4/lib-link.m4: Require at least autoconf-2.54.
54455         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
54456         name to underscores for the --with option.
54458 2006-11-13  Bruno Haible  <bruno@clisp.org>
54460         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
54461         the tests directory.
54462         Reported by Ralf Wildenhues.
54464 2006-11-13  Bruno Haible  <bruno@clisp.org>
54466         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
54467         (func_emit_initmacro_end): Undo the override here.
54468         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
54469         Works around the famous automake error in coreutils.
54471 2006-11-13  Eric Blake  <ebb9@byu.net>
54473         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
54474         element, not its node.
54476 2006-11-12  Bruno Haible  <bruno@clisp.org>
54478         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
54479         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
54481 2006-11-12  Bruno Haible  <bruno@clisp.org>
54483         * gnulib-tool: New option --local-symlink.
54484         (func_usage): Document it.
54485         (lsymbolic): New variable.
54486         (func_import, func_create_testdir): If --symlink was not specified,
54487         test whether --local-symlink was specified and the file comes from
54488         the local_gnulib_dir.
54490 2006-11-12  Bruno Haible  <bruno@clisp.org>
54492         * gnulib-tool (func_ln): New function.
54493         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
54495 2006-11-12  Bruno Haible  <bruno@clisp.org>
54497         Finish support for source files in subdirectories.
54498         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
54499         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
54500         AUTOMAKE_OPTIONS.
54501         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
54503 2006-11-12  Bruno Haible  <bruno@clisp.org>
54505         * gnulib-tool (func_get_automake_snippet): Synthesize also an
54506         EXTRA_lib_SOURCES augmentation.
54507         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
54509 2006-11-12  Jim Meyering  <jim@meyering.net>
54511         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
54512         file descriptors.  This also averts a failure on systems with
54513         native openat support when a traversed directory lacks "x" access.
54514         * lib/fts_.h: Include "i-ring.h"
54515         (struct FTS) [fts_fd_ring]: New member.
54516         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
54517         (FCHDIR): Add parentheses.
54518         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
54519         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
54520         When descending, rather than simply closing the previous
54521         fts_cwd_fd value, push that file descriptor onto the ring.
54522         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
54523         (fts_open): Initialize the new fd_ring member.
54524         (fts_close): Clear the ring.
54525         (fts_safe_changedir): When possible, use our new fd_ring to skip
54526         the diropen and fstat and dev/ino comparison that would normally
54527         accompany a virtual `chdir ("..")'.
54529         * modules/fts (Depends-on): Add i-ring.
54530         * modules/i-ring: New module.
54531         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
54532         * m4/i-ring.m4: New file.
54534 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54536         * gnulib-tool (func_create_testdir): Fix replacement of
54537         `build-aux' in configure.ac.  Run autotools in gltests
54538         subdirectory.
54539         (func_create_testdir, func_create_megatestdir, test): There is
54540         no need for '--force' in most autotool invocations in a new
54541         tree.  Actually fail the whole test if any of the tools, or the
54542         configure or make stages fail.
54544         Sync from Automake.
54545         * build-aux/gnupload: Revert last change.  Add pointer to upload
54546         instructions of the GNU Maintenance Instructions.
54547         Suggestion by Karl Berry.
54549 2006-11-10  Jim Meyering  <jim@meyering.net>
54551         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
54553 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
54555         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
54556         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
54557         (bind_textdomain_codeset) [! ENABLE_NLS]:
54558         Evaluate all the arguments.  That way, callers get compatible behavior
54559         if the arguments have side effects.  Also, it avoids some GCC
54560         diagnostics in some cases; Joel E. Denny reported problems when Bison
54561         was configured with --enable-gcc-warnigs.
54563 2006-11-10  Jim Meyering  <jim@meyering.net>
54565         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
54566         relevant options in CFLAGS (like -O, -fno-inline) are taken into
54567         account.
54569 2006-11-10  Jim Meyering  <jim@meyering.net>
54571         * modules/inline: New file/module.
54572         * modules/xalloc (Files): Remove m4/inline.m4.
54573         (Depends-on): Add inline, instead.
54574         * modules/oset: Likewise.
54575         * modules/list: Likewise.
54577 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
54579         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
54580         Problem reported by Matthew Woehlke.
54582 2006-11-09  Bruno Haible  <bruno@clisp.org>
54584         * lib/tempname.c (gen_tempname): Remove variant that invokes
54585         __gen_tempname.
54586         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
54587         __gen_tempname.
54589 2006-11-08  Bruno Haible  <bruno@clisp.org>
54591         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
54592         to 'yes' instead of 'cross-compiling'.
54594 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
54596         * lib/quotearg.h (quotearg_free): New decl.
54597         * lib/quotearg.c (quotearg_free): New function.
54598         (slot0, nslots, slotvec0, slotvec):
54599         Now file-scope so that quotearg_free can get at them.
54601 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54603         Sync from Automake.
54604         * build-aux/gnupload: Add missing 'gnu' to example URL.
54605         Report by Karl Berry.
54607 2006-11-08  Bruno Haible  <bruno@clisp.org>
54609         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
54610         Suggested by Paul Eggert.
54612 2006-11-08  Jim Meyering  <jim@meyering.net>
54614         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
54615         It's already included if !_LIBC.
54616         (fts_safe_changedir): Add a comment.
54618 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
54620         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
54621         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
54622         Matthew Woehlke.
54624         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
54625         definitions up, to avoid colliding with change below.
54626         (static_inline) [HAVE_INLINE]: New macro.
54627         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
54628         Provide extern decls when !HAVE_INLINE.  Do not define unless
54629         static_inline is defined, either by us or by xmalloc.c.  Use
54630         static_inline rather than static inline.
54631         (XCALLOC): Optimize sizeof(T) = 1 case.
54632         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
54634 2006-11-07  Bruno Haible  <bruno@clisp.org>
54636         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
54637         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
54638         AC_C_INLINE.
54639         * modules/xalloc (Files): Add m4/inline.m4.
54641 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54643         * README: Fix typo.
54644         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
54645         (Miscellanous Notes): ...from this.
54647 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
54649         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
54650         Mention that offsetof should be used instead of sizeof.
54651         From Bruno Haible.
54653 2006-11-07  Bruno Haible  <bruno@clisp.org>
54655         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
54657 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
54659         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
54660         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
54661         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
54662         (gl_tree_add_before, gl_tree_add_after):
54663         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
54664         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
54665         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
54666         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
54667         (gl_linked_add_after, gl_linked_add_at): Likewise.
54668         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
54669         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
54670         (gl_tree_add_before, gl_tree_add_after): Likewise.
54671         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
54672         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
54673         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
54675 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54677         * lib/gl_oset.h: Use C comment style, not C++ comment style.
54679 2006-11-06  Bruno Haible  <bruno@clisp.org>
54681         * m4/inline.m4: New file.
54682         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
54683         * modules/list (Files): Add m4/inline.m4.
54684         * modules/oset (Files): Likewise.
54686 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
54688         * lib/idcache.c: Include <stddef.h>, for offsetof.
54689         (struct userid.name): Change from char * to a flexible array member.
54690         All uses changed.
54691         * modules/idcache (Depends-on): Add flexmember.
54693         * MODULES.html.sh (Core language properties): New module flexmember.
54694         * modules/flexmember, m4/flexmember.m4: New files.
54696         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
54697         inline functions that are identical with the old xnmalloc_inline,
54698         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
54699         that we can avoid some unnecessary integer multiplications and
54700         divisions in the common case where the element size is known at
54701         compile time.
54702         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
54703         needed.
54704         (xnboundedmalloc): Remove.
54705         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
54706         arguments, for consistency with rest of this header.
54707         (xcharalloc): Rewrite using XNMALLOC.
54708         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
54709         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
54710         versions have been moved to lib/xalloc.h and renamed to be the
54711         non-*_inline versions.
54712         (xmalloc, xrealloc): Implement without reference to the xnmalloc
54713         and xnrealloc functions, since those functions are now inline and
54714         now call us.
54715         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
54716         renaming described above.
54717         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
54718         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
54719         captures the dependency in AC_C_INLINE.
54721         New module canonicalize-lgpl, proposed by Charles Wilson in
54722         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
54723         with a few small changes afterwards.
54724         * MODULES.html.sh (File system functions): New module
54725         canonicalize-lgpl.
54726         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
54727         and canonicalize_file_name.
54728         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
54729         * modules/canonicalize-lgpl: New files.
54731 2006-11-05  Bruno Haible  <bruno@clisp.org>
54733         * gnulib-tool (func_import, func_create_testdir): Create directories
54734         also for files in subdirectories of lib/.
54736 2006-11-05  Bruno Haible  <bruno@clisp.org>
54738         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
54739         ANSI C compliant.
54741 2006-11-03  Bruno Haible  <bruno@clisp.org>
54743         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
54744         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
54745         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
54746         (xnboundedmalloc): New inline function.
54747         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
54748         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
54749         xmalloc.
54750         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
54751         xmalloc.
54752         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
54753         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
54754         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
54755         xmalloc.
54756         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
54757         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
54758         xmalloc.
54759         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
54760         gl_tree_add_after): Use XMALLOC instead of xmalloc.
54761         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
54762         xmalloc.
54763         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
54764         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
54765         gl_tree_add_after): Use XMALLOC instead of xmalloc.
54766         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
54767         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
54768         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
54769         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
54771 2006-11-03  Bruno Haible  <bruno@clisp.org>
54773         * lib/c-ctype.h [C++]: Define functions without name mangling.
54774         * lib/fwriteerror.h [C++]: Likewise.
54775         * lib/gcd.h [C++]: Likewise.
54776         * lib/linebreak.h [C++]: Likewise.
54778 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
54780         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
54781         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
54782         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
54783         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
54784         Check for functions and headers just once.
54785         Check for declaration of canonicalize_file_name.
54786         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
54788 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
54790         * gnulib-tool (func_import): Fix typo in actioncmd.
54792 2006-11-02  Bruno Haible  <bruno@clisp.org>
54794         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
54795         newline sequence in the Makefile.am snippet as a space, like "make"
54796         does.
54797         Reported by Roger Persson <perrog@gmail.com>.
54799 2006-11-01  Bruno Haible  <bruno@clisp.org>
54801         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
54802         already declared in <string.h>.
54803         * lib/strcase.h (strncasecmp): Don't declare it if yes.
54805 2006-11-01  Bruno Haible  <bruno@clisp.org>
54807         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
54808         * lib/strcase.h: Include <string.h>.
54809         (strcasecmp): Define to rpl_strcasecmp here.
54811 2006-11-01  Bruno Haible  <bruno@clisp.org>
54813         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
54815 2006-11-01  Eric Blake  <ebb9@byu.net>
54817         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
54819         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
54821 2006-10-29  Bruno Haible  <bruno@clisp.org>
54823         Make it compile in C++ mode.
54824         * lib/full-write.c (full_rw): Add a cast.
54826 2006-11-01  Bruno Haible  <bruno@clisp.org>
54828         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
54829         be POSIX compliant.
54830         Reported by Roger Persson <perrog@gmail.com>.
54832 2006-11-01  Eric Blake  <ebb9@byu.net>
54834         * lib/getopt_.h: Fix comments.
54836 2006-10-31  Eric Blake  <ebb9@byu.net>
54838         * modules/tmpdir (Depends-on): Add sys_stat.
54839         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
54840         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
54841         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
54842         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
54843         tempname.
54845 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
54847         Avoid some C++ diagnostics reported by Bruno Haible.
54848         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
54849         xmalloc.
54850         (quotearg_alloc): Use xcharalloc rather than xmalloc.
54851         (struct slotvec): Move to top level.
54852         (quotearg_n_options): Rewrite to avoid xmalloc.
54853         * lib/xalloc.h (xcharalloc): New function.
54854         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
54855         [defined __cplusplus]: Add function template that provides result
54856         type propagation.  This part of the change is from Bruno Haible.
54858 2006-10-29  Bruno Haible  <bruno@clisp.org>
54860         Make it compile in C++ mode.
54861         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
54862         * lib/strnlen1.c (strnlen1): Cast memchr result.
54863         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
54864         * lib/clean-temp.c (string_equals, string_hash): Add casts.
54865         (create_temp_dir): Rename local variable 'template'.
54866         (compile_csharp_using_sscli): Add cast.
54867         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
54868         * lib/findprog.c (find_in_path): Likewise.
54869         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
54870         * lib/wait-process.c (register_slave_subprocess): Likewise.
54872 2006-10-22  Bruno Haible  <bruno@clisp.org>
54874         * modules/tsearch: New file.
54875         * lib/tsearch.h: New file.
54876         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
54877         * m4/tsearch.m4: New file.
54878         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
54880 2006-10-29  Eric Blake  <ebb9@byu.net>
54882         * lib/arcfour.c: Assume config.h.
54883         * lib/arctwo.c: Likewise.
54884         * lib/base64.c: Likewise.
54885         * lib/check-version.c: Likewise.
54886         * lib/crc.c: Likewise.
54887         * lib/des.c: Likewise.
54888         * lib/gc-gnulib.c: Likewise.
54889         * lib/gc-libgcrypt.c: Likewise.
54890         * lib/gc-pbkdf2-sha1.c: Likewise.
54891         * lib/getaddrinfo.c: Likewise.
54892         * lib/getdelim.c: Likewise.
54893         * lib/getline.c: Likewise.
54894         * lib/hmac-md5.c: Likewise.
54895         * lib/hmac-sha1.c: Likewise.
54896         * lib/iconvme.c: Likewise.
54897         * lib/md2.c: Likewise.
54898         * lib/md4.c: Likewise.
54899         * lib/memxor.c: Likewise.
54900         * lib/read-file.c: Likewise.
54901         * lib/readline.c: Likewise.
54902         * lib/rijndael-alg-fst.c: Likewise.
54903         * lib/rijndael-api-fst.c: Likewise.
54904         * lib/xgetdomainname.c: Likewise.
54906 2006-10-28  Eric Blake  <ebb9@byu.net>
54908         * lib/xstrndup.c: Assume config.h.
54910 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
54912         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
54913         stat-macros.h is now for our own macros, whereas stat_h is for
54914         macros in the <sys/stat.h> name space.
54915         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
54916         (STAT_MACROS_H): Remove.
54917         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
54918         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
54919         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
54920         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
54921         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
54922         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
54923         Move these macros to ...
54924         * lib/stat_.h: here.  Don't include stat-macros.h.
54925         * lib/canonicalize.c: Don't include stat-macros.h.
54926         * lib/chown.c: Likewise.
54927         * lib/euidaccess.c: Likewise.
54928         * lib/file-type.c: Likewise.
54929         * lib/filemode.c: Likewise.
54930         * lib/glob.c: Likewise.
54931         * lib/isapipe.c: Likewise.
54932         * lib/lchown.c: Likewise.
54933         * lib/lstat.c: Likewise.
54934         * lib/mkdir-p.c: Likewise.
54935         * lib/rmdir.c: Likewise.
54936         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
54937         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
54938         unless mkdir isn't declared, to speed up 'configure'.
54939         Always create sys/stat.h, since it's unlikely any real sys/stat.h
54940         would define all the S_* symbols.
54941         * modules/canonicalize (Depends-on):
54942         Depend on sys_stat, not stat-macros.
54943         * modules/chown: Likewise.
54944         * modules/euidaccess: Likewise.
54945         * modules/filemode: Likewise.
54946         * modules/file-type: Likewise.
54947         * modules/glob: Likewise.
54948         * modules/isapipe: Likewise.
54949         * modules/lchown: Likewise.
54950         * modules/lstat: Likewise.
54951         * modules/mkancesdirs: Likewise.
54952         * modules/rmdir: Likewise.
54953         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
54954         * modules/modechange: Likewise.
54955         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
54956         (configure.ac): Remove gl_STAT_MACROS.
54957         * modules/sys_stat (Depends-on): Remove stat-macros.
54959 2006-10-27  Bruno Haible  <bruno@clisp.org>
54961         * m4/signed.m4: Remove file.
54962         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
54963         invocation.
54964         * modules/vasnprintf (Files): Remove m4/signed.m4.
54966 2006-10-27  Bruno Haible  <bruno@clisp.org>
54968         Update to GNU gettext 0.16.
54969         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
54970         m4/inttypes-h.m4, m4/signed.m4.
54971         * m4/gettext.m4: Update to GNU gettext 0.16.
54972         * m4/intl.m4: New file, from GNU gettext.
54973         * m4/intldir.m4: New file, from GNU gettext.
54974         * config/srclist.txt: Update
54976 2006-10-27  Eric Blake  <ebb9@byu.net>
54978         * MODULES.html.sh: Document tempname.
54979         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
54980         dependencies.
54981         (Files): Move lib/tempname.c...
54982         * modules/tempname: ...to this new module.
54983         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
54984         (gl_PREREQ_TEMPNAME): Move...
54985         * m4/tempname.m4: ...to this new file.
54986         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
54987         * modules/sys_stat (Depends-on): Add stat-macros.
54988         * lib/stat_.h (includes): Pick up stat macros.
54989         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
54990         if stat macros are broken.
54991         * lib/tempname.c (includes): No need to include "stat-macros.h".
54992         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
54993         (direxists, __path_search) [!_LIBC]: Don't compile these in
54994         gnulib; the tmpdir module covers that.
54995         * lib/tempname.h: New file.
54997 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
54999         * COPYING: Explain how gnulib-tool converts licence headers.
55000         Almost all wording by Eric Blake.
55002 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
55004         * lib/mbchar.h (is_basic_table): Make read-only.
55005         * lib/mbchar.c (is_basic_table): Likewise.
55006         Reported by John Darrington.
55008 2006-10-25  Bruno Haible  <bruno@clisp.org>
55010         * lib/progname.h (set_program_name): Undefine before defining.
55012 2006-10-25  Bruno Haible  <bruno@clisp.org>
55014         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
55015         false for non-gcc C++ compilers.
55016         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
55018 2006-10-24  Bruno Haible  <bruno@clisp.org>
55020         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
55021         iconv implementations like Irix iconv.
55023 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
55025         * modules/vararrays: New file.
55026         * m4/vararrays.m4: New file, taken from diffutils.
55027         * MODULES.html.sh: New module vararrays.
55029 2006-10-24  Karl Berry  <karl@gnu.org>
55031         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
55032         Don't call GNU Unix.
55034 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55036         * users.txt: Add Libtool.
55038         Sync from Libtool:
55040         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
55042         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
55043         to gnulib's policy of including config.h unconditionally.
55045 2006-10-24  Bruno Haible  <bruno@clisp.org>
55047         * modules/wcwidth (Files): Add m4/wint_t.m4.
55048         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
55049         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
55051 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
55053         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
55054         to pacify GCC with some -W flags enabled.  Problem reported by
55055         Bruno Haible.
55057 2006-10-24  Jim Meyering  <jim@meyering.net>
55059         * MODULES.html.sh: Remove uinttostr.  It's not a module.
55060         Reported by Karl Berry.
55062 2006-10-23  Bruno Haible  <bruno@clisp.org>
55064         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
55066 2006-10-24  Bruno Haible  <bruno@clisp.org>
55068         * lib/gl_list.h: Use C comment style, not C++ comment style.
55070 2006-10-23  Eric Blake  <ebb9@byu.net>
55072         * lib/getaddrinfo.c (includes): Add missing include.
55074 2006-10-23  Bruno Haible  <bruno@clisp.org>
55075             Paul Eggert  <eggert@cs.ucla.edu>
55077         Ability to rename obstack_free.
55078         * lib/obstack.h (__obstack_free): New macro. Declare instead of
55079         obstack_free.
55080         (obstack_free): Invoke the __obstack_free macro.
55081         * lib/obstack.c (obstack_free): Use __obstack_free macro.
55083 2006-10-23  Bruno Haible  <bruno@clisp.org>
55084             Paul Eggert  <eggert@cs.ucla.edu>
55086         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
55087         __argc, __argv from the declaration. (They are defined as macros on
55088         mingw.)
55090 2006-10-22  Bruno Haible  <bruno@clisp.org>
55092         * doc/gnulib-intro.texi: New file.
55093         * doc/gnulib.texi: Include it.
55095 2006-10-21  Bruno Haible  <bruno@clisp.org>
55097         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
55098         "Introduction", "Miscellanous Notes", "Particular Modules".
55100 2006-10-21  Bruno Haible  <bruno@clisp.org>
55102         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
55103         Change mostlyclean-local rule to avoid sh syntax error from bash
55104         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
55106 2006-10-23  Jim Meyering  <jim@meyering.net>
55108         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
55109         in place of snprintf.
55111         * modules/inttostr (Files): Add lib/uinttostr.c.
55112         * lib/uinttostr.c (inttostr): New file/function.
55113         * lib/inttostr.h (uinttostr): Declare.
55114         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
55115         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
55116         Add uinttostr.
55117         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
55119 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
55121         * lib/canonicalize.c (ELOOP): Define if not already defined.
55122         Problem reported by Bruno Haible in
55123         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
55125 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
55127         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
55128         Problem reported by Perry Smith and Ville Laurikari.
55130         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
55131         uses.
55133 2006-10-19  Bruno Haible  <bruno@clisp.org>
55135         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
55136         for mingw.
55138 2006-10-19  Bruno Haible  <bruno@clisp.org>
55140         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
55141         Needed for mingw.
55143 2006-10-19  Bruno Haible  <bruno@clisp.org>
55145         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
55147 2006-10-19  Bruno Haible  <bruno@clisp.org>
55149         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
55150         it.
55152 2006-10-19  Bruno Haible  <bruno@clisp.org>
55154         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
55155         invocation.
55157 2006-10-19  Bruno Haible  <bruno@clisp.org>
55159         * gnulib-tool (func_create_testdir): Don't include ftruncate and
55160         mountlist by default.
55162 2006-10-16  Bruno Haible  <bruno@clisp.org>
55164         * lib/c-strstr.c: Include c-strstr.h.
55166 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
55168         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
55169         in a slash.
55171 2006-10-18  Bruno Haible  <bruno@clisp.org>
55173         * lib/lock.h [C++]: Wrap definitions in extern "C".
55175 2006-10-18  Bruno Haible  <bruno@clisp.org>
55177         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
55178         gl_LIBOBJS list.
55180 2006-10-18  Bruno Haible  <bruno@clisp.org>
55182         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
55184 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
55186         * lib/xstrtol.h: Include gettext.h.
55187         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
55188         Problem reported by Eric Blake.
55189         * modules/xstrtol (Depends-on): Add gettext-h.
55191 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
55193         * lib/strftime.c (advance): New macro.
55194         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
55195         incomplete type, so you can't add 0 to it.  Problem and patch
55196         reported by Eelco Dolstra for dietlibc.
55198 2006-10-18  Jim Meyering  <jim@meyering.net>
55200         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
55201         type for a local, and rename it: s/up/user_proc/.
55203 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
55205         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
55206         READ_UTMP_USER_PROCESS.
55207         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
55209 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
55211         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
55212         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
55214 2006-10-17  Eric Blake  <ebb9@byu.net>
55216         * lib/sigprocmask.c (sigprocmask): Fix typo.
55218         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
55220         * modules/clean-temp (Makefile.am): Don't add to make output...
55221         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
55222         config.h.
55224 2006-10-17  Bruno Haible  <bruno@clisp.org>
55226         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
55227         differently if DEFAULT_TEXT_DOMAIN is set.
55229 2006-10-16  Bruno Haible  <bruno@clisp.org>
55231         * lib/clean-temp.c: Include fwriteerror.h.
55233 2006-10-16  Bruno Haible  <bruno@clisp.org>
55235         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
55237 2006-10-16  Bruno Haible  <bruno@clisp.org>
55239         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
55240         * lib/sigprocmask.h: Include <sys/types.h>.
55241         (sigset_t): Use the system's definition if present.
55243 2006-10-17  Eric Blake  <ebb9@byu.net>
55245         * lib/xvasprintf.c (includes): Assume config.h.
55246         * lib/xasprintf.c (includes): Likewise.
55248 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
55250         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
55251         at least as wide as intmax_t.
55253 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
55255         (Imported from Automake.)
55256         * build-aux/gnupload: Update to version 1.1 of directive file.
55258 2006-10-16  Eric Blake  <ebb9@byu.net>
55260         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
55261         match Automake 1.10a.
55263 2006-10-14  Bruno Haible  <bruno@clisp.org>
55265         * modules/sigprocmask: New file.
55266         * lib/sigprocmask.h: New file.
55267         * lib/sigprocmask.c: New file.
55268         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
55269         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
55270         request sigprocmask.o.
55271         (gl_PREREQ_SIGPROCMASK): New macro.
55272         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
55273         (Depends-on): Add sigprocmask.
55274         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
55275         gt_SIGNALBLOCKING. Test for 'raise' only once.
55276         * lib/fatal-signal.c: Include sigprocmask.h.
55277         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
55278         unblock_fatal_signals): Define always.
55279         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
55280         sigprocmask.
55282 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
55284         Sync from Automake.
55285         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
55286         which incorrectly sets the mode of an existing destination
55287         directory.  In some cases the unpatched install-sh could do the
55288         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
55289         system.  We hope this is rare in practice, but it's clearly worth
55290         fixing.  Problem reported by Alex Unleashed in
55291         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
55292         Also, don't bother to check for -m bugs unless we're using -m;
55293         suggested by Stepan Kasal.
55295 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55297         Sync from Automake.
55298         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
55299         `-c' flag, so they appear at the same position as in %FASTDEP%
55300         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
55301         which ignores unknown options only after the first non-option.
55302         Bug report against M4 by Nelson H. F. Beebe.
55304 2006-10-13  Jim Meyering  <jim@meyering.net>
55306         Fix a bug in yesterday's change.
55307         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
55308         p->fts_statp->st_dev would be used uninitialized.
55309         Ensures that we always call fts_stat on the very first entry.
55310         Miklos Szeredi reported that find -xdev stopped working.
55312 2006-10-12  Bruno Haible  <bruno@clisp.org>
55314         * gnulib-tool (func_get_automake_snippet): Append an automatically
55315         computed EXTRA_DIST augmentation.
55316         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
55317         * modules/alloca-opt (Makefile.am): Likewise.
55318         * modules/allocsa (Makefile.am): Likewise.
55319         * modules/arcfour (Makefile.am): Likewise.
55320         * modules/arctwo (Makefile.am): Likewise.
55321         * modules/argmatch (Makefile.am): Likewise.
55322         * modules/argz (Makefile.am): Likewise.
55323         * modules/atexit (Makefile.am): Likewise.
55324         * modules/backupfile (Makefile.am): Likewise.
55325         * modules/byteswap (Makefile.am): Likewise.
55326         * modules/c-strtod (Makefile.am): Likewise.
55327         * modules/c-strtold (Makefile.am): Likewise.
55328         * modules/calloc (Makefile.am): Likewise.
55329         * modules/canon-host (Makefile.am): Likewise.
55330         * modules/canonicalize (Makefile.am): Likewise.
55331         * modules/chdir-long (Makefile.am): Likewise.
55332         * modules/chdir-safer (Makefile.am): Likewise.
55333         * modules/check-version (Makefile.am): Likewise.
55334         * modules/chown (Makefile.am): Likewise.
55335         * modules/cloexec (Makefile.am): Likewise.
55336         * modules/close-stream (Makefile.am): Likewise.
55337         * modules/closeout (Makefile.am): Likewise.
55338         * modules/crc (Makefile.am): Likewise.
55339         * modules/csharpexec (Makefile.am): Likewise.
55340         * modules/cycle-check (Makefile.am): Likewise.
55341         * modules/des (Makefile.am): Likewise.
55342         * modules/dev-ino (Makefile.am): Likewise.
55343         * modules/dirfd (Makefile.am): Likewise.
55344         * modules/dirname (Makefile.am): Likewise.
55345         * modules/dup2 (Makefile.am): Likewise.
55346         * modules/eealloc (Makefile.am): Likewise.
55347         * modules/error (Makefile.am): Likewise.
55348         * modules/euidaccess (Makefile.am): Likewise.
55349         * modules/exclude (Makefile.am): Likewise.
55350         * modules/exitfail (Makefile.am): Likewise.
55351         * modules/fcntl-safer (Makefile.am): Likewise.
55352         * modules/fcntl (Makefile.am): Likewise.
55353         * modules/file-type (Makefile.am): Likewise.
55354         * modules/fileblocks (Makefile.am): Likewise.
55355         * modules/filemode (Makefile.am): Likewise.
55356         * modules/filenamecat (Makefile.am): Likewise.
55357         * modules/fnmatch (Makefile.am): Likewise.
55358         * modules/fopen-safer (Makefile.am): Likewise.
55359         * modules/fpending (Makefile.am): Likewise.
55360         * modules/fprintftime (Makefile.am): Likewise.
55361         * modules/free (Makefile.am): Likewise.
55362         * modules/fsusage (Makefile.am): Likewise.
55363         * modules/ftruncate (Makefile.am): Likewise.
55364         * modules/fts (Makefile.am): Likewise.
55365         * modules/gc-arcfour (Makefile.am): Likewise.
55366         * modules/gc-des (Makefile.am): Likewise.
55367         * modules/gc-hmac-md5 (Makefile.am): Likewise.
55368         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
55369         * modules/gc-md4 (Makefile.am): Likewise.
55370         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
55371         * modules/gc-sha1 (Makefile.am): Likewise.
55372         * modules/gc (Makefile.am): Likewise.
55373         * modules/getaddrinfo (Makefile.am): Likewise.
55374         * modules/getcwd (Makefile.am): Likewise.
55375         * modules/getdelim (Makefile.am): Likewise.
55376         * modules/getdomainname (Makefile.am): Likewise.
55377         * modules/getgroups (Makefile.am): Likewise.
55378         * modules/gethostname (Makefile.am): Likewise.
55379         * modules/gethrxtime (Makefile.am): Likewise.
55380         * modules/getline (Makefile.am): Likewise.
55381         * modules/getloadavg (Makefile.am): Likewise.
55382         * modules/getlogin_r (Makefile.am): Likewise.
55383         * modules/getndelim2 (Makefile.am): Likewise.
55384         * modules/getopt (Makefile.am): Likewise.
55385         * modules/getpagesize (Makefile.am): Likewise.
55386         * modules/getpass-gnu (Makefile.am): Likewise.
55387         * modules/getpass (Makefile.am): Likewise.
55388         * modules/getsubopt (Makefile.am): Likewise.
55389         * modules/gettime (Makefile.am): Likewise.
55390         * modules/gettimeofday (Makefile.am): Likewise.
55391         * modules/getugroups (Makefile.am): Likewise.
55392         * modules/getusershell (Makefile.am): Likewise.
55393         * modules/glob (Makefile.am): Likewise.
55394         * modules/group-member (Makefile.am): Likewise.
55395         * modules/hard-locale (Makefile.am): Likewise.
55396         * modules/hash (Makefile.am): Likewise.
55397         * modules/hmac-md5 (Makefile.am): Likewise.
55398         * modules/hmac-sha1 (Makefile.am): Likewise.
55399         * modules/human (Makefile.am): Likewise.
55400         * modules/idcache (Makefile.am): Likewise.
55401         * modules/imaxabs (Makefile.am): Likewise.
55402         * modules/imaxdiv (Makefile.am): Likewise.
55403         * modules/inet_ntop (Makefile.am): Likewise.
55404         * modules/inet_pton (Makefile.am): Likewise.
55405         * modules/intprops (Makefile.am): Likewise.
55406         * modules/inttostr (Makefile.am): Likewise.
55407         * modules/inttypes (Makefile.am): Likewise.
55408         * modules/isapipe (Makefile.am): Likewise.
55409         * modules/javaversion (Makefile.am): Likewise.
55410         * modules/lchmod (Makefile.am): Likewise.
55411         * modules/lchown (Makefile.am): Likewise.
55412         * modules/localcharset (Makefile.am): Likewise.
55413         * modules/long-options (Makefile.am): Likewise.
55414         * modules/lstat (Makefile.am): Likewise.
55415         * modules/malloc (Makefile.am): Likewise.
55416         * modules/mathl (Makefile.am): Likewise.
55417         * modules/mbchar (Makefile.am): Likewise.
55418         * modules/md2 (Makefile.am): Likewise.
55419         * modules/md4 (Makefile.am): Likewise.
55420         * modules/md5 (Makefile.am): Likewise.
55421         * modules/memcasecmp (Makefile.am): Likewise.
55422         * modules/memchr (Makefile.am): Likewise.
55423         * modules/memcmp (Makefile.am): Likewise.
55424         * modules/memcoll (Makefile.am): Likewise.
55425         * modules/memcpy (Makefile.am): Likewise.
55426         * modules/memmem (Makefile.am): Likewise.
55427         * modules/memmove (Makefile.am): Likewise.
55428         * modules/mempcpy (Makefile.am): Likewise.
55429         * modules/memrchr (Makefile.am): Likewise.
55430         * modules/memset (Makefile.am): Likewise.
55431         * modules/memxor (Makefile.am): Likewise.
55432         * modules/mkancesdirs (Makefile.am): Likewise.
55433         * modules/mkdir-p (Makefile.am): Likewise.
55434         * modules/mkdir (Makefile.am): Likewise.
55435         * modules/mkdtemp (Makefile.am): Likewise.
55436         * modules/mkstemp (Makefile.am): Likewise.
55437         * modules/mktime (Makefile.am): Likewise.
55438         * modules/modechange (Makefile.am): Likewise.
55439         * modules/mountlist (Makefile.am): Likewise.
55440         * modules/nanosleep (Makefile.am): Likewise.
55441         * modules/obstack (Makefile.am): Likewise.
55442         * modules/openat (Makefile.am): Likewise.
55443         * modules/pagealign_alloc (Makefile.am): Likewise.
55444         * modules/pathmax (Makefile.am): Likewise.
55445         * modules/physmem (Makefile.am): Likewise.
55446         * modules/poll (Makefile.am): Likewise.
55447         * modules/posixtm (Makefile.am): Likewise.
55448         * modules/posixver (Makefile.am): Likewise.
55449         * modules/putenv (Makefile.am): Likewise.
55450         * modules/quote (Makefile.am): Likewise.
55451         * modules/quotearg (Makefile.am): Likewise.
55452         * modules/raise (Makefile.am): Likewise.
55453         * modules/read-file (Makefile.am): Likewise.
55454         * modules/readline (Makefile.am): Likewise.
55455         * modules/readlink (Makefile.am): Likewise.
55456         * modules/readtokens (Makefile.am): Likewise.
55457         * modules/readutmp (Makefile.am): Likewise.
55458         * modules/realloc (Makefile.am): Likewise.
55459         * modules/regex (Makefile.am): Likewise.
55460         * modules/rename-dest-slash (Makefile.am): Likewise.
55461         * modules/rename (Makefile.am): Likewise.
55462         * modules/rijndael (Makefile.am): Likewise.
55463         * modules/rmdir (Makefile.am): Likewise.
55464         * modules/rpmatch (Makefile.am): Likewise.
55465         * modules/safe-read (Makefile.am): Likewise.
55466         * modules/safe-write (Makefile.am): Likewise.
55467         * modules/same-inode (Makefile.am): Likewise.
55468         * modules/same (Makefile.am): Likewise.
55469         * modules/save-cwd (Makefile.am): Likewise.
55470         * modules/savedir (Makefile.am): Likewise.
55471         * modules/setenv (Makefile.am): Likewise.
55472         * modules/settime (Makefile.am): Likewise.
55473         * modules/sha1 (Makefile.am): Likewise.
55474         * modules/sig2str (Makefile.am): Likewise.
55475         * modules/snprintf (Makefile.am): Likewise.
55476         * modules/stat-macros (Makefile.am): Likewise.
55477         * modules/stat-time (Makefile.am): Likewise.
55478         * modules/stdbool (Makefile.am): Likewise.
55479         * modules/stdint (Makefile.am): Likewise.
55480         * modules/stdlib-safer (Makefile.am): Likewise.
55481         * modules/stpcpy (Makefile.am): Likewise.
55482         * modules/stpncpy (Makefile.am): Likewise.
55483         * modules/strcase (Makefile.am): Likewise.
55484         * modules/strcasestr (Makefile.am): Likewise.
55485         * modules/strchrnul (Makefile.am): Likewise.
55486         * modules/strcspn (Makefile.am): Likewise.
55487         * modules/strdup (Makefile.am): Likewise.
55488         * modules/strerror (Makefile.am): Likewise.
55489         * modules/strftime (Makefile.am): Likewise.
55490         * modules/strndup (Makefile.am): Likewise.
55491         * modules/strnlen (Makefile.am): Likewise.
55492         * modules/strpbrk (Makefile.am): Likewise.
55493         * modules/strsep (Makefile.am): Likewise.
55494         * modules/strstr (Makefile.am): Likewise.
55495         * modules/strtod (Makefile.am): Likewise.
55496         * modules/strtoimax (Makefile.am): Likewise.
55497         * modules/strtok_r (Makefile.am): Likewise.
55498         * modules/strtol (Makefile.am): Likewise.
55499         * modules/strtoll (Makefile.am): Likewise.
55500         * modules/strtoul (Makefile.am): Likewise.
55501         * modules/strtoull (Makefile.am): Likewise.
55502         * modules/strtoumax (Makefile.am): Likewise.
55503         * modules/strverscmp (Makefile.am): Likewise.
55504         * modules/sys_socket (Makefile.am): Likewise.
55505         * modules/sys_stat (Makefile.am): Likewise.
55506         * modules/sysexits (Makefile.am): Likewise.
55507         * modules/time_r (Makefile.am): Likewise.
55508         * modules/timegm (Makefile.am): Likewise.
55509         * modules/timespec (Makefile.am): Likewise.
55510         * modules/tmpfile-safer (Makefile.am): Likewise.
55511         * modules/trim (Makefile.am): Likewise.
55512         * modules/unistd-safer (Makefile.am): Likewise.
55513         * modules/unlinkdir (Makefile.am): Likewise.
55514         * modules/unlocked-io (Makefile.am): Likewise.
55515         * modules/userspec (Makefile.am): Likewise.
55516         * modules/utime (Makefile.am): Likewise.
55517         * modules/utimecmp (Makefile.am): Likewise.
55518         * modules/utimens (Makefile.am): Likewise.
55519         * modules/vasnprintf (Makefile.am): Likewise.
55520         * modules/vasprintf (Makefile.am): Likewise.
55521         * modules/vsnprintf (Makefile.am): Likewise.
55522         * modules/xalloc (Makefile.am): Likewise.
55523         * modules/xgetcwd (Makefile.am): Likewise.
55524         * modules/xnanosleep (Makefile.am): Likewise.
55525         * modules/xreadlink (Makefile.am): Likewise.
55526         * modules/xstrtod (Makefile.am): Likewise.
55527         * modules/xstrtol (Makefile.am): Likewise.
55528         * modules/xstrtold (Makefile.am): Likewise.
55529         * modules/yesno (Makefile.am): Likewise.
55530         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
55532 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
55534         * modules/error (Makefile.am): Distribute files through
55535         EXTRA_DIST, not lib_SOURCES.
55537 2006-10-12  Eric Blake  <ebb9@byu.net>
55539         * modules/error (Makefile.am): Distribute files in /lib.
55540         * modules/obstack (Makefile.am): Likewise.
55542 2006-10-12  Bruno Haible  <bruno@clisp.org>
55544         * modules/acl (Makefile.am): Distribute all files in lib/ through
55545         EXTRA_DIST.
55546         * modules/arcfour (Makefile.am): Likewise.
55547         * modules/arctwo (Makefile.am): Likewise.
55548         * modules/argmatch (Makefile.am): Likewise.
55549         * modules/argz (Makefile.am): Likewise.
55550         * modules/atexit (Makefile.am): Likewise.
55551         * modules/backupfile (Makefile.am): Likewise.
55552         * modules/c-strtod (Makefile.am): Likewise.
55553         * modules/c-strtold (Makefile.am): Likewise.
55554         * modules/calloc (Makefile.am): Likewise.
55555         * modules/canon-host (Makefile.am): Likewise.
55556         * modules/canonicalize (Makefile.am): Likewise.
55557         * modules/chdir-long (Makefile.am): Likewise.
55558         * modules/chdir-safer (Makefile.am): Likewise.
55559         * modules/check-version (Makefile.am): Likewise.
55560         * modules/chown (Makefile.am): Likewise.
55561         * modules/cloexec (Makefile.am): Likewise.
55562         * modules/close-stream (Makefile.am): Likewise.
55563         * modules/closeout (Makefile.am): Likewise.
55564         * modules/crc (Makefile.am): Likewise.
55565         * modules/cycle-check (Makefile.am): Likewise.
55566         * modules/des (Makefile.am): Likewise.
55567         * modules/dirfd (Makefile.am): Likewise.
55568         * modules/dirname (Makefile.am): Likewise.
55569         * modules/dup2 (Makefile.am): Likewise.
55570         * modules/euidaccess (Makefile.am): Likewise.
55571         * modules/exclude (Makefile.am): Likewise.
55572         * modules/exitfail (Makefile.am): Likewise.
55573         * modules/fcntl-safer (Makefile.am): Likewise.
55574         * modules/file-type (Makefile.am): Likewise.
55575         * modules/fileblocks (Makefile.am): Likewise.
55576         * modules/filemode (Makefile.am): Likewise.
55577         * modules/filenamecat (Makefile.am): Likewise.
55578         * modules/fnmatch (Makefile.am): Likewise.
55579         * modules/fopen-safer (Makefile.am): Likewise.
55580         * modules/fpending (Makefile.am): Likewise.
55581         * modules/fprintftime (Makefile.am): Likewise.
55582         * modules/free (Makefile.am): Likewise.
55583         * modules/fsusage (Makefile.am): Likewise.
55584         * modules/ftruncate (Makefile.am): Likewise.
55585         * modules/fts (Makefile.am): Likewise.
55586         * modules/gc (Makefile.am): Likewise.
55587         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
55588         * modules/getaddrinfo (Makefile.am): Likewise.
55589         * modules/getcwd (Makefile.am): Likewise.
55590         * modules/getdelim (Makefile.am): Likewise.
55591         * modules/getdomainname (Makefile.am): Likewise.
55592         * modules/getgroups (Makefile.am): Likewise.
55593         * modules/gethostname (Makefile.am): Likewise.
55594         * modules/gethrxtime (Makefile.am): Likewise.
55595         * modules/getline (Makefile.am): Likewise.
55596         * modules/getloadavg (Makefile.am): Likewise.
55597         * modules/getlogin_r (Makefile.am): Likewise.
55598         * modules/getopt (Makefile.am): Likewise.
55599         * modules/getpass (Makefile.am): Likewise.
55600         * modules/getpass-gnu (Makefile.am): Likewise.
55601         * modules/getsubopt (Makefile.am): Likewise.
55602         * modules/gettime (Makefile.am): Likewise.
55603         * modules/gettimeofday (Makefile.am): Likewise.
55604         * modules/getugroups (Makefile.am): Likewise.
55605         * modules/getusershell (Makefile.am): Likewise.
55606         * modules/glob (Makefile.am): Likewise.
55607         * modules/group-member (Makefile.am): Likewise.
55608         * modules/hard-locale (Makefile.am): Likewise.
55609         * modules/hash (Makefile.am): Likewise.
55610         * modules/hmac-md5 (Makefile.am): Likewise.
55611         * modules/hmac-sha1 (Makefile.am): Likewise.
55612         * modules/human (Makefile.am): Likewise.
55613         * modules/idcache (Makefile.am): Likewise.
55614         * modules/imaxabs (Makefile.am): Likewise.
55615         * modules/imaxdiv (Makefile.am): Likewise.
55616         * modules/inet_ntop (Makefile.am): Likewise.
55617         * modules/inet_pton (Makefile.am): Likewise.
55618         * modules/inttostr (Makefile.am): Likewise.
55619         * modules/isapipe (Makefile.am): Likewise.
55620         * modules/lchown (Makefile.am): Likewise.
55621         * modules/long-options (Makefile.am): Likewise.
55622         * modules/lstat (Makefile.am): Likewise.
55623         * modules/malloc (Makefile.am): Likewise.
55624         * modules/mathl (Makefile.am): Likewise.
55625         * modules/mbchar (Makefile.am): Likewise.
55626         * modules/md2 (Makefile.am): Likewise.
55627         * modules/md4 (Makefile.am): Likewise.
55628         * modules/md5 (Makefile.am): Likewise.
55629         * modules/memcasecmp (Makefile.am): Likewise.
55630         * modules/memchr (Makefile.am): Likewise.
55631         * modules/memcmp (Makefile.am): Likewise.
55632         * modules/memcoll (Makefile.am): Likewise.
55633         * modules/memcpy (Makefile.am): Likewise.
55634         * modules/memmem (Makefile.am): Likewise.
55635         * modules/memmove (Makefile.am): Likewise.
55636         * modules/mempcpy (Makefile.am): Likewise.
55637         * modules/memrchr (Makefile.am): Likewise.
55638         * modules/memset (Makefile.am): Likewise.
55639         * modules/memxor (Makefile.am): Likewise.
55640         * modules/mkancesdirs (Makefile.am): Likewise.
55641         * modules/mkdir (Makefile.am): Likewise.
55642         * modules/mkdir-p (Makefile.am): Likewise.
55643         * modules/mkdtemp (Makefile.am): Likewise.
55644         * modules/mkstemp (Makefile.am): Likewise.
55645         * modules/mktime (Makefile.am): Likewise.
55646         * modules/modechange (Makefile.am): Likewise.
55647         * modules/mountlist (Makefile.am): Likewise.
55648         * modules/nanosleep (Makefile.am): Likewise.
55649         * modules/openat (Makefile.am): Likewise.
55650         * modules/pagealign_alloc (Makefile.am): Likewise.
55651         * modules/physmem (Makefile.am): Likewise.
55652         * modules/poll (Makefile.am): Likewise.
55653         * modules/posixtm (Makefile.am): Likewise.
55654         * modules/posixver (Makefile.am): Likewise.
55655         * modules/putenv (Makefile.am): Likewise.
55656         * modules/quote (Makefile.am): Likewise.
55657         * modules/quotearg (Makefile.am): Likewise.
55658         * modules/raise (Makefile.am): Likewise.
55659         * modules/read-file (Makefile.am): Likewise.
55660         * modules/readline (Makefile.am): Likewise.
55661         * modules/readlink (Makefile.am): Likewise.
55662         * modules/readtokens (Makefile.am): Likewise.
55663         * modules/readutmp (Makefile.am): Likewise.
55664         * modules/realloc (Makefile.am): Likewise.
55665         * modules/regex (Makefile.am): Likewise.
55666         * modules/rename (Makefile.am): Likewise.
55667         * modules/rename-dest-slash (Makefile.am): Likewise.
55668         * modules/rijndael (Makefile.am): Likewise.
55669         * modules/rmdir (Makefile.am): Likewise.
55670         * modules/rpmatch (Makefile.am): Likewise.
55671         * modules/safe-read (Makefile.am): Likewise.
55672         * modules/safe-write (Makefile.am): Likewise.
55673         * modules/same (Makefile.am): Likewise.
55674         * modules/save-cwd (Makefile.am): Likewise.
55675         * modules/savedir (Makefile.am): Likewise.
55676         * modules/setenv (Makefile.am): Likewise.
55677         * modules/settime (Makefile.am): Likewise.
55678         * modules/sha1 (Makefile.am): Likewise.
55679         * modules/sig2str (Makefile.am): Likewise.
55680         * modules/snprintf (Makefile.am): Likewise.
55681         * modules/stdlib-safer (Makefile.am): Likewise.
55682         * modules/stpcpy (Makefile.am): Likewise.
55683         * modules/stpncpy (Makefile.am): Likewise.
55684         * modules/strcase (Makefile.am): Likewise.
55685         * modules/strcasestr (Makefile.am): Likewise.
55686         * modules/strchrnul (Makefile.am): Likewise.
55687         * modules/strcspn (Makefile.am): Likewise.
55688         * modules/strdup (Makefile.am): Likewise.
55689         * modules/strerror (Makefile.am): Likewise.
55690         * modules/strftime (Makefile.am): Likewise.
55691         * modules/strndup (Makefile.am): Likewise.
55692         * modules/strnlen (Makefile.am): Likewise.
55693         * modules/strpbrk (Makefile.am): Likewise.
55694         * modules/strsep (Makefile.am): Likewise.
55695         * modules/strstr (Makefile.am): Likewise.
55696         * modules/strtod (Makefile.am): Likewise.
55697         * modules/strtoimax (Makefile.am): Likewise.
55698         * modules/strtok_r (Makefile.am): Likewise.
55699         * modules/strtol (Makefile.am): Likewise.
55700         * modules/strtoll (Makefile.am): Likewise.
55701         * modules/strtoul (Makefile.am): Likewise.
55702         * modules/strtoull (Makefile.am): Likewise.
55703         * modules/strtoumax (Makefile.am): Likewise.
55704         * modules/strverscmp (Makefile.am): Likewise.
55705         * modules/time_r (Makefile.am): Likewise.
55706         * modules/timegm (Makefile.am): Likewise.
55707         * modules/tmpfile-safer (Makefile.am): Likewise.
55708         * modules/unistd-safer (Makefile.am): Likewise.
55709         * modules/unlinkdir (Makefile.am): Likewise.
55710         * modules/userspec (Makefile.am): Likewise.
55711         * modules/utime (Makefile.am): Likewise.
55712         * modules/utimecmp (Makefile.am): Likewise.
55713         * modules/utimens (Makefile.am): Likewise.
55714         * modules/vasnprintf (Makefile.am): Likewise.
55715         * modules/vasprintf (Makefile.am): Likewise.
55716         * modules/vsnprintf (Makefile.am): Likewise.
55717         * modules/xalloc (Makefile.am): Likewise.
55718         * modules/xgetcwd (Makefile.am): Likewise.
55719         * modules/xnanosleep (Makefile.am): Likewise.
55720         * modules/xreadlink (Makefile.am): Likewise.
55721         * modules/xstrtod (Makefile.am): Likewise.
55722         * modules/xstrtol (Makefile.am): Likewise.
55723         * modules/xstrtold (Makefile.am): Likewise.
55724         * modules/yesno (Makefile.am): Likewise.
55726 2006-10-12  Jim Meyering  <jim@meyering.net>
55728         * m4/getloadavg.m4: Revert the change below.
55730         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
55731         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
55732         fail with a symlink, which is what coreutils' ./bootstrap now
55733         creates by default.
55735 2006-10-12  Bruno Haible  <bruno@clisp.org>
55737         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
55738         mingw.
55739         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
55740         MSVC and mingw explicitly.
55742 2006-10-11  Simon Josefsson  <jas@extundo.com>
55743             Bruno Haible  <bruno@clisp.org>
55745         Add support for multiple gnulib-tool invocations in the scope of a
55746         single configure.ac file.
55747         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
55748         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
55749         with the same contents as the _LIBADD variable.
55750         (func_emit_initmacro_start, func_emit_initmacro_end,
55751         func_emit_initmacro_done): New functions.
55752         (func_import, func_create_testdir): Invoke them. Allow the identifiers
55753         gl_LIBOBJS and gl_LTLIBOBJS.
55755 2006-10-11  Bruno Haible  <bruno@clisp.org>
55757         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
55758         (func_create_testdir): Don't create po/Makefile.am, don't invoke
55759         autoreconf. Instead, invoke autopoint explicitly but move back the
55760         *.m4 files from gnulib.
55762 2006-10-11  Bruno Haible  <bruno@clisp.org>
55764         * gnulib-tool (func_usage): Make module names after --create-testdir
55765         optional.
55766         (func_create_testdir): If no module was specified, use nearly all
55767         modules.
55769 2006-10-12  Jim Meyering  <jim@meyering.net>
55771         Big performance improvement for fts-based tools that use FTS_NOSTAT.
55772         Avoid spurious inode-mismatch problems on non-POSIX file systems.
55773         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
55774         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
55775         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
55776         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
55777         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
55778         (fts_set_stat_required): New function.
55779         (fts_open): Defer the calls to fts_stat, if possible or requested.
55780         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
55781         into fts_stat itself.
55782         (fts_read): Perform any required (deferred) fts_stat call.
55783         (fts_build): Likewise, for the directory we're about to open and read.
55784         In the readdir loop, carefully decide whether each entry will require
55785         an eventual call to fts_stat, using dirent.d_type info if available.
55786         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
55787         a command line argument into this function.  Update all callers.
55788         Map a return value of FTS_DOT to FTS_D for a command line argument.
55789         * modules/fts (Depends-on): Add d-type.  Alphabetize.
55790         Thanks to Miklos Szeredi for his tenacity and for the initial
55791         bug report about "find" failing on a FUSE-based file system.
55793         * lib/fts.c (fts_open): Use consistent indentation.
55795 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
55797         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
55798         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
55799         reported by Jim Meyering.  All uses of cache variables renamed
55800         to match Autoconf's.
55801         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
55802         the other one.
55804         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
55805         Fix misspelling in diagnostic.
55807 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
55809         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
55810         defined.  Problem reported by Matthew Woehlke.
55812         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
55813         Add support for Tandem NonStop R series.
55814         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
55815         Use new macro.
55817         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
55818         (has_trailing_slash): Omit size arg; all callers changed.
55819         Omit 'inline', since it doesn't help performance and we'd
55820         need to configure it.
55821         Don't count //, ///, etc. as having a trailing slash.
55822         As a side effect, this removes a C99ism reported by Matthew Woehlke.
55823         (rpl_rename_dest_slash): On failure, use rename's errno rather
55824         than (in some cases) an incorrect or junk errno.
55825         Simplify code by removing need to compute length; this does
55826         cause it to make two passes instead of one over the file name,
55827         but it's worth it.
55829         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
55830         change, since Autoconf's version may no longer be appropriate now
55831         that we are using CVS Autoconf's version.  Add support for Tandem.
55833 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
55834             Bruno Haible  <bruno@clisp.org>
55836         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
55837         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
55838         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
55839         gl_AC_TYPE_LONG_LONG.
55841         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
55842         instead of HAVE_LONG_LONG.
55843         * lib/printf-args.c (printf_fetchargs): Likewise.
55844         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
55845         * lib/vasnprintf.c (VASNPRINTF): Likewise.
55846         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
55847         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
55848         gl_AC_TYPE_LONG_LONG.
55850 2006-10-11  Bruno Haible  <bruno@clisp.org>
55852         * m4/longlong.m4: Add comments.
55853         * m4/ulonglong.m4: Likewise.
55855 2006-10-10  Bruno Haible  <bruno@clisp.org>
55857         Make it possible to #define stpcpy, strdup to aliases.
55858         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
55859         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
55861 2006-10-10  Bruno Haible  <bruno@clisp.org>
55863         Make it possible to #define gcd to an alias.
55864         * lib/gcd.c: Include config.h.
55866 2006-10-10  Bruno Haible  <bruno@clisp.org>
55868         Make it possible to #define c_isascii to an alias.
55869         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
55870         defined. Undefine the macros before defining them, to avoid gcc
55871         warnings.
55872         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
55873         define NO_C_CTYPE_MACROS early.
55875 2006-10-10  Bruno Haible  <bruno@clisp.org>
55877         Make it possible to #define set_program_name to an alias.
55878         * lib/progname.c: Don't undefine set_program_name; instead, undefine
55879         ENABLE_RELOCATABLE early.
55881 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
55883         Port to Tandem NSK OSS, which has 64-bit signed int but at most
55884         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
55885         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
55886         More generally, don't assume that 64-bit signed int is available
55887         if unsigned int is, and vice versa.
55888         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
55889         unsigned symbols, not on their signed counterparts.
55890         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
55891         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
55892         (UINT64_C, UINTMAX_C):
55893         Likewise.
55894         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
55895         unsigned counterparts.
55896         (Have_long_long, Unsigned): New macros.
55897         (Int): Renamed from INT.
55898         (strtoimax): Use the new macros.
55899         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
55900         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
55901         * modules/inttypes (inttypes.h): Substitute
55902         HAVE_UNSIGNED_LONG_LONG_INT.
55903         * modules/stdint (stdint.h): Likewise.
55904         (Files): Add m4/ulonglong.m4.
55906 2006-10-10  Bruno Haible  <bruno@clisp.org>
55908         Fix a gcc -Wshadow warning.
55909         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
55910         to 'bucket'.
55911         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
55912         gl_linked_indexof_from_to): Likewise.
55913         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
55914         Likewise.
55915         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
55916         Likewise.
55917         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
55918         Reported by Eric Blake.
55920 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
55922         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
55923         for NetBSD.  Problem reported by Bruno Haible.
55925 2006-10-09  Jim Meyering  <jim@meyering.net>
55927         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
55928         Patch from Bruno Haible.
55930 2006-10-09  Jim Meyering  <jim@meyering.net>
55932         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
55933         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
55934         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
55936 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
55938         Don't include <config.h> twice; this doesn't work in some cases,
55939         e.g., when config.h has "#define intmax_t long long int" and
55940         we include <config.h>, <inttypes.h>, <config.h> in that order.
55941         Problem reported by Matthew Woehlke in:
55942         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
55943         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
55944         * lib/fts-cycle.c: Don't include config.h.
55945         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
55946         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
55947         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
55948         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
55949         inttypes.h.
55950         * lib/xstrtoumax.c: Likewise.
55951         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
55952         __strtol and the like, so that this module is more like its siblings.
55953         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
55954         Remove; no longer needed now that we assume gnulib inttypes.h.
55956 2006-10-08  Bruno Haible  <bruno@clisp.org>
55958         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
55959         option.
55961 2006-10-07  Jim Meyering  <jim@meyering.net>
55963         * modules/inttypes (inttypes.h): Revert what seems to have been
55964         an inadvertent part of today's change: use "|", not "/" in the
55965         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
55967 2006-10-07  Bruno Haible  <bruno@clisp.org>
55969         * modules/sublist: New file.
55971 2006-10-07  Bruno Haible  <bruno@clisp.org>
55973         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
55974         * modules/argz (argz.h): Likewise.
55975         * modules/arpa_inet (arpa/inet.h): Likewise.
55976         * modules/byteswap (byteswap.h): Likewise.
55977         * modules/configmake (configmake.h): Likewise.
55978         * modules/fcntl (fcntl.h): Likewise.
55979         * modules/fnmatch (fnmatch.h): Likewise.
55980         * modules/getopt (getopt.h): Likewise.
55981         * modules/glob (glob.h): Likewise.
55982         * modules/inttypes (inttypes.h): Likewise.
55983         * modules/netinet_in (netinet/in.h): Likewise.
55984         * modules/poll (poll.h): Likewise.
55985         * modules/stdbool (stdbool.h): Likewise.
55986         * modules/stdint (stdint.h): Likewise.
55987         * modules/sys_select (sys/select.h): Likewise.
55988         * modules/sys_socket (sys/socket.h): Likewise.
55989         * modules/sys_stat (sys/stat.h): Likewise.
55990         * modules/sysexits (sysexits.h): Likewise.
55991         * modules/unistd (unistd.h): Likewise.
55992         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
55993         Add a "DO NOT EDIT" comment to the generated file.
55994         (func_import): Likewise for gnulib-comp.m4.
55996 2006-10-07  Bruno Haible  <bruno@clisp.org>
55998         * lib/gl_sublist.h: New file.
55999         * lib/gl_sublist.c: New file.
56001 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
56003         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
56004         name (relative to the original working directory) and the file
56005         name component (relative to the temporary working directory).  All
56006         callers changed.
56007         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
56008         * lib/mkdir-p.c (make_dir_parents): Likewise.
56009         * lib/mkdir-p.h (make_dir_parents): Likewise.
56011 2006-10-06  Eric Blake  <ebb9@byu.net>
56013         Define several macros for use by the clean-temp module.
56014         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
56015         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
56016         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
56018         * lib/clean-temp.h (close_stream_temp): New declaration.
56019         * lib/clean-temp.c (includes): Pull in headers according to what
56020         other modules are in use.
56021         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
56023 2006-10-06  Bruno Haible  <bruno@clisp.org>
56025         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
56026         instead of fopen, fwriteerror.
56028 2006-10-06  Bruno Haible  <bruno@clisp.org>
56030         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
56031         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
56032         int.
56033         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
56034         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
56035         Return an error indicator.
56036         Suggested by Eric Blake.
56038 2006-10-06  Bruno Haible  <bruno@clisp.org>
56040         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
56041         Reported by Eric Blake.
56043 2006-10-06  Bruno Haible  <bruno@clisp.org>
56045         * modules/closeout (Description): Mention stderr too.
56047 2006-10-06  Bruno Haible  <bruno@clisp.org>
56048         and Paul Eggert  <eggert@cs.ucla.edu>
56050         * lib/closeout.c (close_stdout): Also close stderr.
56051         * lib/closeout.h: Update comment.
56053 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
56055         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
56056         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
56057         * lib/dirchownmod.c: Include lchown.h.
56058         * lib/lchown.c: Don't include files that lchown.h now includes.
56059         Don't declare chown, since lchown.h now does that.
56060         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
56061         (lchown): Define to rpl_chown if lchown is declared but
56062         does not exist.  Declare using a prototype if lchown is not
56063         declared.  Add a copyright notice.
56064         * lib/mkstemp.h: Include <unistd.h>.
56065         * lib/openat.c: Include lchown.h.
56067         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
56068         we now test for that separately.
56069         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
56070         rather than O_NOFOLLOW, when testing whether it's possible to
56071         avoid a race condition reliably.
56072         * lib/savewd.c (savewd_chdir): Likewise.
56074         Remove macros that are no longer needed now that stdint.h is
56075         reliable.
56076         * lib/fsusage.c (UINTMAX_MAX): Remove.
56077         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
56078         * lib/utimecmp.c (SIZE_MAX): Remove.
56080         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
56082         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
56083         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
56084         O_NOATIME works.
56086 2006-10-05  Bruno Haible  <bruno@clisp.org>
56088         * lib/gl_list.h (gl_sortedlist_search_from_to,
56089         gl_sortedlist_indexof_from_to): New declarations.
56090         (gl_list_implementation): New fields sortedlist_search_from_to,
56091         sortedlist_indexof_from_to.
56092         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
56093         inline functions.
56094         * lib/gl_list.c (gl_sortedlist_search_from_to,
56095         gl_sortedlist_indexof_from_to): New functions.
56096         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
56097         function.
56098         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
56099         (gl_array_sortedlist_search_from_to): New function.
56100         (gl_array_list_implementation): Update.
56101         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
56102         function.
56103         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
56104         (gl_carray_sortedlist_search_from_to): New function.
56105         (gl_carray_list_implementation): Update.
56106         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
56107         gl_linked_sortedlist_indexof_from_to): New functions.
56108         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
56109         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
56110         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
56111         gl_tree_sortedlist_indexof_from_to): New functions.
56112         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
56113         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
56114         Update.
56115         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
56116         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
56117         Update.
56119 2006-10-05  Bruno Haible  <bruno@clisp.org>
56121         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
56122         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
56123         (struct gl_list_implementation): Add fields search_from_to,
56124         indexof_from_to. Remove fields search, indexof.
56125         (gl_list_search): Use the search_from_to method.
56126         (gl_list_search_from, gl_list_search_from_to): New functions.
56127         (gl_list_indexof): Use the indexof_from_to method.
56128         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
56129         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
56130         (gl_list_search_from, gl_list_search_from_to): New functions.
56131         (gl_list_indexof): Use the indexof_from_to method.
56132         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
56133         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
56134         gl_array_indexof. Add start_index, end_index arguments.
56135         (gl_array_search_from_to): Renamed from gl_array_search. Add
56136         start_index, end_index arguments.
56137         (gl_array_remove, gl_array_list_implementation): Update.
56138         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
56139         gl_carray_indexof. Add start_index, end_index arguments.
56140         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
56141         start_index, end_index arguments.
56142         (gl_carray_remove, gl_carray_list_implementation): Update.
56143         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
56144         gl_linked_search. Add start_index, end_index arguments.
56145         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
56146         start_index, end_index arguments.
56147         (gl_linked_remove): Update.
56148         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
56149         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
56150         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
56151         field to 'size_t'.
56152         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
56153         gl_tree_search. Add start_index, end_index arguments.
56154         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
56155         start_index, end_index arguments.
56156         (gl_tree_remove): Update.
56157         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
56158         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
56159         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
56160         function.
56161         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
56162         gl_tree_search. Add start_index, end_index arguments.
56163         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
56164         start_index, end_index arguments.
56165         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
56166         Update.
56167         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
56169 2006-10-05  Bruno Haible  <bruno@clisp.org>
56171         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
56173         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
56174         fwriteerror_temp): New declarations.
56175         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
56176         (descriptors): New variable.
56177         (cleanup): First, close the descriptors.
56178         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
56179         fclose_temp, fwriteerror_temp): New functions.
56181 2006-10-04  Jim Meyering  <jim@meyering.net>
56183         * lib/fts.c (fts_open): Tiny comment change.
56185 2006-10-04  Bruno Haible  <bruno@clisp.org>
56187         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
56188         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
56189         gl_LOCK_BODY.
56190         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
56191         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
56192         gl_LOCK_EARLY_BODY.
56193         (gl_LOCK): Require gl_LOCK_BODY.
56195 2006-10-04  Bruno Haible  <bruno@clisp.org>
56197         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
56198         (gl_oset_search_atleast): New declaration.
56199         (struct gl_oset_implementation): Add field 'search_atleast'.
56200         (gl_oset_search_atleast): New inline function.
56201         * lib/gl_oset.c (gl_oset_search_atleast): New function.
56202         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
56203         (gl_array_oset_implementation): Update.
56204         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
56205         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
56206         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
56208 2006-10-04  Bruno Haible  <bruno@clisp.org>
56210         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
56212 2006-10-03  Bruno Haible  <bruno@clisp.org>
56214         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
56215         from gl_avltreehash_list_implementation.
56217 2006-10-03  Bruno Haible  <bruno@clisp.org>
56219         * lib/gl_oset.c (gl_oset_add): Fix return type.
56221 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
56223         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
56225 2006-10-02  Eric Blake  <ebb9@byu.net>
56227         * modules/strnlen (Depends-on): Add extensions.
56229 2006-10-02  Eric Blake  <ebb9@byu.net>
56231         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
56232         definition in 2.60+.
56234 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
56236         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
56237         checks.
56239 2006-10-02  Bruno Haible  <bruno@clisp.org>
56241         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
56242         to the AUTOMAKE_OPTIONS.
56243         Reported by Jim Meyering.
56245 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
56247         Work around bug in Solaris 10 /proc file system:
56248         /proc/self/fd/NNN/.. isn't the parent directory of
56249         the directory whose file descriptor is NNN.  This needs to
56250         be worked around at run time, not compile time, since a
56251         program might be built on Solaris 8, where things work, and
56252         run on Solaris 10.
56253         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
56254         to use the following interface instead:
56255         (OPENAT_BUFFER_SIZE): New macro.
56256         (openat_proc_name): New function.
56257         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
56258         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
56259         Likewise.
56260         * lib/openat-proc.c: New file.
56261         * modules/openat (Files): Add lib/openat-proc.c.
56262         (Depends-on): Add same-inode, stdbool.
56263         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
56265 2006-09-29  Bruno Haible  <bruno@clisp.org>
56267         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
56268         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
56269         argument. Set stdout_closed before testing for ferror, not after.
56270         (fwriteerror, fwriteerror_no_ebadf): New functions.
56272 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56274         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
56276 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
56278         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
56279         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
56281 2006-09-28  Jim Meyering  <jim@meyering.net>
56283         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
56284         Include <unistd.h>.
56286 2006-09-28  Bruno Haible  <bruno@clisp.org>
56288         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
56289         * modules/linkedhash-list (Depends-on): Likewise.
56290         * modules/rbtreehash-list (Depends-on): Likewise.
56292 2006-09-28  Bruno Haible  <bruno@clisp.org>
56294         * lib/strndup.h: Simplify the redefinition of strndup.
56295         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
56296         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
56298 2006-09-28  Bruno Haible  <bruno@clisp.org>
56300         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
56301         * lib/gl_linkedhash_list.c: Likewise.
56302         * lib/gl_rbtreehash_list.c: Likewise.
56304 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
56306         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
56307         getaddrinfo.
56309         * lib/__fpending.h: Don't include <stdio_ext.h> unless
56310         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
56311         it causes <stdio_ext.h> to cause a compile-time error.
56312         Problem reported by Nelson H. F. Beebe.
56313         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
56314         of HAVE_DECL___PENDING.
56316         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
56317         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
56318         declaration.
56320 2006-09-27  Jim Meyering  <jim@meyering.net>
56322         This file could end up with a definition for a function
56323         named __strndup, rather than rpl_strndup on a system with
56324         incomplete weak_alias support.
56325         * lib/strndup.c (strndup): Rename from __strndup.
56326         Remove #defines that used to map __strndup to strndup.
56327         Don't use K&R prototypes.
56328         Remove LIBC-related code, since this file is not sync'd with glibc.
56329         * lib/strndup.h: Revamp, accordingly.
56330         * m4/strndup.m4: Modernize.
56332 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
56334         * modules/savewd (Depends-on): Add 'raise'.
56335         * lib/savewd.c: Include <signal.h>, for 'raise'.
56337 2006-09-26  Jim Meyering  <jim@meyering.net>
56339         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
56340         when we detect Darwin 8.7.0's acl_get_file bug.
56341         Rearrange to perform the new (below) run-test while $LIBS
56342         contains any acl-related library.  Set USE_ACL at the end.
56343         (gl_ACL_GET_FILE): New function.
56345 2006-09-26  Eric Blake  <ebb9@byu.net>
56347         * lib/verror.c: Include <config.h> unconditionally.
56349 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
56351         * modules/clock-time (Maintainer): Add self.
56352         * modules/getlogin_r (Depends-on): Add extensions.
56354 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56356         * modules/clock-time: New module.
56357         * modules/nanosleep (Depends-on): Add clock-time.
56358         * modules/gethrxtime (Depends-on): Likewise.
56359         * modules/gettime (Depends-on): Likewise.
56360         * modules/settime (Depends-on): Likewise.
56362         * modules/fts-lgpl: Depend on openat.
56363         * modules/mkancesdirs: Depend on savewd.
56364         * modules/mkdir-p: Likewise.
56366 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56368         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
56370         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
56371         `gl_have_arbitrary_file_name_length_limit' to
56372         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
56373         actually works between configure runs.
56375 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56376             Bruno Haible  <bruno@clisp.org>
56378         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
56380 2006-09-25  Jim Meyering  <jim@meyering.net>
56382         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
56383         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
56385 2006-09-25  Eric Blake  <ebb9@byu.net>
56387         * gnulib-tool (func_import, func_create_testdir): Fix typos in
56388         exec's in 2006-09-18 patch when shuffling fds.
56390 2006-09-25  Bruno Haible  <bruno@clisp.org>
56392         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
56393         Reported by Jim Meyering.
56395 2006-09-24  Jim Meyering  <jim@meyering.net>
56397         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
56398         compare a pointer against a literal "0".  That caused failures with
56399         at least HP-UX's hpcc.
56401 2006-09-22  Simon Josefsson  <jas@extundo.com>
56403         * modules/gc-sha1:
56404         * modules/gc-md4:
56405         * modules/gc-hmac-sha1:
56406         * modules/gc-hmac-md5:
56407         * modules/gc-des:
56408         * modules/gc-arcfour: Distribute more files.
56410 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56412         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
56413         (gl_linked_iterator_from_to): Initialize struct completely.
56414         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
56415         (gl_tree_iterator_from_to): Likewise
56416         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
56417         * lib/gl_array_list.c [lint] (gl_array_iterator)
56418         (gl_array_iterator_from_to): Likewise.
56419         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
56420         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
56421         (gl_carray_iterator_from_to): Likewise.
56423         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
56424         * lib/md4.c (md4_process_block): Remove unused variable.
56425         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
56426         parentheses for clarity.
56428 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56430         * modules/bison-i18n (Depends-on): Add gettext.
56432 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56434         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
56435         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
56436         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
56437         also add missing comma that caused broken test.
56438         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
56439         stdlib.h, for `abort'.
56440         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
56441         variables.
56442         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
56443         include unistd.h if present, for `rmdir'.
56444         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
56445         variables.
56446         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
56447         in the process include standard headers for prototypes.
56448         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
56449         gets declared on GNU/Linux.
56450         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
56451         unistd.h, for `rmdir'.
56452         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
56454         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
56455         always true.
56456         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
56458         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
56460 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56462         * gnulib-tool (func_version): Create output all at once.  This
56463         may help avoid triggering unnecessary SIGPIPEs, and at any
56464         rate it doesn't hurt.
56466 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56467             Bruno Haible  <bruno@clisp.org>
56469         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
56470         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
56471         * m4/signed.m4 (bh_C_SIGNED): Likewise.
56473         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
56474         (gl_FUNC_VASPRINTF): Invoke it.
56476 2006-09-22  Bruno Haible  <bruno@clisp.org>
56478         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
56479         getloadavg.c as first argument.
56481 2006-09-22  Bruno Haible  <bruno@clisp.org>
56483         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
56484         at the beginning of the gl_INIT macro.
56485         * modules/getloadavg (configure.ac): Pass $gl_source_base to
56486         gl_GETLOADAVG.
56488 2006-09-22  Bruno Haible  <bruno@clisp.org>
56490         * gnulib-tool (func_create_megatestdir): Don't include the config-h
56491         module.
56492         Suggested by Ralf Wildenhues.
56494 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
56496         Import this patch from libc:
56498         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
56500         * lib/regex_internal.c (re_string_reconstruct): Handle
56501         offset < pstr->valid_raw_len && pstr->offsets_needed case.
56502         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
56503         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
56504         re_string_context_at.
56506         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
56507         now requires it.
56508         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
56509         gl_REGEX now does it for us.
56510         (gl_REGEX): Add test taken from
56511         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
56513         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
56514         Check that large offsets work.  Modernize Autoconf usages.
56515         Prefer "yes" to mean a good thing rather than a bad.
56516         Don't put "#define mkstemp" in config.h, as this might interfere
56517         with standard system headers that "#define mkstemp mkstemp64".
56519         * modules/mkstemp (Depends-on): Add extensions, so that
56520         mkstemp is visible on some platforms.
56521         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
56522         (Include): Change to "mkstemp.h" from <stdlib.h>.
56523         (Files): Add mkstemp.h.
56525         * lib/mkstemp.h: New file, since some standard headers
56526         #define mkstemp.
56527         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
56528         Include "mkstemp.h".
56529         Make the _LIBC code resemble glibc original more,
56530         e.g., use K&R style.
56531         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
56532         (mkstemp): Remove, since mkstemp.h does this for us.
56533         * lib/stdlib--.h: Include mkstemp.h.
56535         Import this patch from libc:
56537         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
56539         * lib/tempname.c (__gen_tempname): Change attempts_min
56540         into a macro.  Use preprocessor to decide how to initialize
56541         attempts [Coverity CID 67].
56543 2006-09-20  Bruno Haible  <bruno@clisp.org>
56545         * lib/mkdtemp.c: Import from libc.
56546         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
56547                 * sysdeps/posix/tempname.c (__gen_tempname): Change
56548                 attempts_min into a macro.  Use preprocessor to decide how to
56549                 initialize attempts [Coverity CID 67].
56550         2001-11-27  Paul Eggert  <eggert@twinsun.com>
56551                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
56552                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
56554 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56556         * gnulib-tool (func_exit): New function, to allow to pass the
56557         exit status portably through the trap.  Use everywhere.
56558         (--help, --version): Signal a write error.
56559         (trap): catch SIGPIPE, for write errors.
56560         Exit at the end of the trap, with the correct exit status.
56562 2006-09-19  Karl Berry  <karl@gnu.org>
56564         * doc/gnulib.texi: note about the license texinfo files.
56566 2006-09-19  Eric Blake  <ebb9@byu.net>
56568         * gnulib-tool: Avoid space-tab.
56570 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
56572         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
56573         that prevented coreutils 6.1 from building.  Problem reported
56574         by Petter Reinholdtsen.
56576 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
56578         * gnulib-tool (avoidlist): Fix typo that broke options like
56579         --avoid=lock that are used by coreutils bootstrap.
56581 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
56583         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
56584         more systematically.
56586 2006-09-18  Jim Meyering  <jim@meyering.net>
56588         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
56590 2006-09-18  Bruno Haible  <bruno@clisp.org>
56592         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
56594 2006-09-18  Bruno Haible  <bruno@clisp.org>
56596         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
56597         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
56598         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
56599         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
56600         * m4/gettext.m4: Require autoconf >= 2.52.
56601         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
56602         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
56603         of gl_cv_header_inttypes_h.
56605 2006-09-18  Bruno Haible  <bruno@clisp.org>
56607         * lib/javaversion.c: Include configmake.h.
56609 2006-09-18  Bruno Haible  <bruno@clisp.org>
56611         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
56612         avoid that the while loops be executed in a subshell.
56614 2006-09-18  Bruno Haible  <bruno@clisp.org>
56616         * MODULES.html.sh (func_module): Break long lines.
56617         Suggested by Bruce Korb <bkorb@gnu.org>.
56619 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56621         Speed up by a factor of 1.12.
56622         * gnulib-tool (nl): New variable.
56623         (func_import): Rewrite include directive extraction to only read each
56624         directive once.
56626 2006-09-17  Bruno Haible  <bruno@clisp.org>
56628         * modules/javaversion (Makefile.am): Remove DEFS setting.
56629         (Depends-on): Add configmake, for PKGDATADIR definition.
56631 2006-09-17  Bruno Haible  <bruno@clisp.org>
56633         * gnulib-tool (func_create_testdir): Rewrite all files at once.
56635 2006-09-17  Bruno Haible  <bruno@clisp.org>
56637         * gnulib-tool (func_append): New function, stolen from libtool.m4.
56638         (func_modules_transitive_closure, func_modules_add_dummy,
56639         func_modules_to_filelist, func_import, func_create_testdir,
56640         func_create_megatestdir, ...): Use it wherever possible.
56641         Suggested by Ralf Wildenhues.
56643 2006-09-16  Karl Berry  <karl@gnu.org>
56645         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
56646         to avoid sectioning errors.
56647         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
56648         [ifinfo]: blank line after @center-ed titles.
56649         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
56650         Spell FSF address consistently with others.
56651         (These changes approved by rms.)
56653 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56655         Speed up by a factor of 1.61.
56656         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
56657         already checked module names again.
56659 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56661         Speed up by a factor of 1.13.
56662         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
56663         for new_files, and the input to func_add_or_update.
56665 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56667         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
56668         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
56670 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
56672         * modules/mkancesdirs (Depends-on): Add fcntl.
56673         * modules/savewd: New file.
56674         * MODULES.html.sh (File system functions): Add savewd.
56676         * modules/configmake (Makefile.am): Add support for the
56677         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
56679 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
56681         * m4/savewd.m4: New file.
56683 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
56685         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
56686         (dirchownmod): New arg FD.  All callers changed.
56687         Use FD rather than opening the directory ourself, as opening is
56688         now the caller's responsibility.
56689         * lib/dirchownmod.h: Likewise.
56690         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
56691         hosts that require <sys/types.h> before <sys/stat.h>.  Include
56692         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
56693         (test_dir): Remove.
56694         (mkancesdirs): Return length of prefix of FILE that has already
56695         been made, or -2 if there is a child doing the work.  Redo
56696         algorithm so that it is O(N) rather than O(N**2).  Optimize away
56697         ".", and treat ".." specially since it might stray back into
56698         already-created areas.  Use a subprocess if necessary.  New arg
56699         WD; all users changed.  MAKE_DIR function should now return 1
56700         if it creates a directory that is not readable.  Return -2 if
56701         a child process is spun off.
56702         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
56703         Adjust signature to match code.
56704         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
56705         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
56706         all users changed.
56707         * lib/savewd.c, lib/savewd.h: New files.
56709 2006-09-15  Jim Meyering  <jim@meyering.net>
56711         * modules/rename-dest-slash: New module.
56712         * MODULES.html.sh (posix_compat): Add it here.
56714         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
56716 2006-09-15  Jim Meyering  <jim@meyering.net>
56718         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
56719         file.
56721         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
56723 2006-09-15  Jim Meyering  <jim@meyering.net>
56725         * lib/rename-dest-slash.c (has_trailing_slash): Use
56726         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
56727         (rpl_rename_dest_slash): Perform the cheaper trailing slash
56728         test before testing whether SRC is a directory.
56729         Suggestions from Bruno Haible.
56731         Avoid a warning about an unused variable.
56732         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
56733         into the #ifdef block where it's used.
56735         * lib/rename-dest-slash.c: New file.
56737 2006-09-14  Bruno Haible  <bruno@clisp.org>
56739         * lib/allocsa.c: Include <config.h> unconditionally.
56740         * lib/asnprintf.c: Likewise.
56741         * lib/asprintf.c: Likewise.
56742         * lib/c-strcasecmp.c: Likewise.
56743         * lib/c-strcasestr.c: Likewise.
56744         * lib/c-strncasecmp.c: Likewise.
56745         * lib/c-strstr.c: Likewise.
56746         * lib/classpath.c: Likewise.
56747         * lib/clean-temp.c: Likewise.
56748         * lib/concatpath.c: Likewise.
56749         * lib/copy-file.c: Likewise.
56750         * lib/csharpcomp.c: Likewise.
56751         * lib/csharpexec.c: Likewise.
56752         * lib/execute.c: Likewise.
56753         * lib/fatal-signal.c: Likewise.
56754         * lib/findprog.c: Likewise.
56755         * lib/fwriteerror.c: Likewise.
56756         * lib/gl_array_list.c: Likewise.
56757         * lib/gl_array_oset.c: Likewise.
56758         * lib/gl_avltree_list.c: Likewise.
56759         * lib/gl_avltree_oset.c: Likewise.
56760         * lib/gl_avltreehash_list.c: Likewise.
56761         * lib/gl_carray_list.c: Likewise.
56762         * lib/gl_linked_list.c: Likewise.
56763         * lib/gl_linkedhash_list.c: Likewise.
56764         * lib/gl_list.c: Likewise.
56765         * lib/gl_oset.c: Likewise.
56766         * lib/gl_rbtree_list.c: Likewise.
56767         * lib/gl_rbtree_oset.c: Likewise.
56768         * lib/gl_rbtreehash_list.c: Likewise.
56769         * lib/imaxabs.c: Likewise.
56770         * lib/imaxdiv.c: Likewise.
56771         * lib/javacomp.c: Likewise.
56772         * lib/javaexec.c: Likewise.
56773         * lib/javaversion.c: Likewise.
56774         * lib/linebreak.c: Likewise.
56775         * lib/localcharset.c: Likewise.
56776         * lib/lock.c: Likewise.
56777         * lib/mbchar.c: Likewise.
56778         * lib/mbswidth.c: Likewise.
56779         * lib/mkdtemp.c: Likewise.
56780         * lib/pipe.c: Likewise.
56781         * lib/printf-args.c: Likewise.
56782         * lib/printf-parse.c: Likewise.
56783         * lib/progname.c: Likewise.
56784         * lib/progreloc.c: Likewise.
56785         * lib/readlink.c: Likewise.
56786         * lib/sh-quote.c: Likewise.
56787         * lib/stpcpy.c: Likewise.
56788         * lib/stpncpy.c: Likewise.
56789         * lib/strcasecmp.c: Likewise.
56790         * lib/strcasestr.c: Likewise.
56791         * lib/strcspn.c: Likewise.
56792         * lib/striconv.c: Likewise.
56793         * lib/strncasecmp.c: Likewise.
56794         * lib/strnlen1.c: Likewise.
56795         * lib/strstr.c: Likewise.
56796         * lib/strtok_r.c: Likewise.
56797         * lib/tls.c: Likewise.
56798         * lib/tmpdir.c: Likewise.
56799         * lib/unicodeio.c: Likewise.
56800         * lib/unsetenv.c: Likewise.
56801         * lib/vasnprintf.c: Likewise.
56802         * lib/vasprintf.c: Likewise.
56803         * lib/wait-process.c: Likewise.
56804         * lib/xallocsa.c: Likewise.
56805         * lib/xsetenv.c: Likewise.
56806         * lib/xstriconv.c: Likewise.
56808 2006-09-13  Simon Josefsson  <jas@extundo.com>
56810         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
56811         that internally, suggested by Ralf Wildenhues
56812         <Ralf.Wildenhues@gmx.de>.
56814 2006-09-13  Simon Josefsson  <jas@extundo.com>
56816         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
56817         @LIBOBJS@.
56818         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56820 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
56822         * lib/_fpending.c: Include <config.h> unconditionally, since we no
56823         longer worry about uses that don't define HAVE_CONFIG_H.
56824         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
56825         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
56826         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
56827         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
56828         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
56829         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
56830         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
56831         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
56832         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
56833         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
56834         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
56835         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
56836         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
56837         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
56838         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
56839         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
56840         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
56841         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
56842         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
56843         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
56844         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
56845         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
56846         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
56847         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
56848         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
56849         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
56850         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
56851         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
56852         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
56853         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
56854         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
56855         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
56856         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
56857         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
56858         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
56859         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
56860         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
56861         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
56862         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
56863         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
56864         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
56865         Likewise.
56867 2006-09-13  Eric Blake  <ebb9@byu.net>
56869         * lib/getopt.c: Fix typo in last commit.
56871 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
56873         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
56874         dgettext.
56876 2006-09-12  Jim Meyering  <jim@meyering.net>
56878         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
56879         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
56880         Reported by Nelson H. F. Beebe.
56882 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
56884         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
56885         program_invocation_name and program_invocation_short_name are
56886         initialized.
56887         * lib/argp-namefrob.h: Move declarations of program_invocation_name
56888         and program_invocation_short_name to argp.h, so they are visible
56889         to user programs.
56890         * lib/argp.h: Likewise
56892 2006-09-10  Bruno Haible  <bruno@clisp.org>
56894         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
56895         m4/inttypes_h.m4, m4/uintmax_t.m4.
56897 2006-09-10  Bruno Haible  <bruno@clisp.org>
56899         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
56900         gl_AC_TYPE_UINTMAX_T.
56902 2006-09-10  Bruno Haible  <bruno@clisp.org>
56904         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
56906 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
56908         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
56909         convention.  Text proposed by Bruno Haible.
56910         (struct argp_option): Document the use of N_() wrappers.
56912         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
56913         '\v', and translate the two parts separately, instead of feeding
56914         the whole string to gettext.  This allows to exclude
56915         '\v' from the strings visible to the translator by writing doc
56916         strings as N_("..") "\v" N_("..").
56918 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
56920         * config/srclist.txt: Undo latest change; the bug was fixed.
56922 2006-09-09  Bruno Haible  <bruno@clisp.org>
56924         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
56925         assignments if building a library without libtool.
56926         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
56927         in func_emit_lib_Makefile_am.
56928         (func_import): When building a static library libfoo.a, arrange to
56929         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
56930         (func_create_testdir): Likewise.
56931         * modules/gc (configure.ac, Makefile.am): If building statically,
56932         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
56933         * modules/iconvme (configure.ac, Makefile.am): Likewise.
56934         * modules/striconv (configure.ac, Makefile.am): Likewise.
56935         Based on a suggestion by Ralf Wildenhues.
56937 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
56939         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
56940         Check for unistd.h too, since Autoconf doesn't assume POSIX.
56941         Also:
56943         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
56944         Add year_2050_test to catch glibc bug 2821
56945         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
56947         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
56948         Prefer #ifdef to #if.
56950         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
56951         Return from 'main' instead of calling 'exit'.
56953 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
56955         * lib/mktime.c (guess_time_tm): Fix bug where mktime
56956         returned the maximum time_t value rather than (time_t) -1.
56957         Problem originally reported by William Bardwell
56958         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
56960         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
56961         Moved to here ...
56962         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
56963         ... from here.
56965 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
56967         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
56968         2821 is fixed.
56970 2006-09-08  Jim Meyering  <jim@meyering.net>
56972         Don't make generated files read-only.  That would bother too many
56973         people.  However, do retain the ability to work when targets are
56974         read-only: remove the destination and temporary files before writing
56975         them (when generated via sed or echo), or by using the -f option for
56976         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
56977         * modules/alloca-opt, modules/argz, modules/arpa_inet:
56978         * modules/byteswap, modules/configmake, modules/fcntl:
56979         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
56980         * modules/localcharset, modules/netinet_in, modules/poll:
56981         * modules/stdbool, modules/stdint, modules/sys_select:
56982         * modules/sys_socket, modules/sys_stat, modules/sysexits:
56984 2006-09-08  Jim Meyering  <jim@meyering.net>
56986         Avoid new build failure on FreeBSD 6.0.
56987         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
56988         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
56989         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
56991 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56993         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
56995 2006-09-07  Jim Meyering  <jim@meyering.net>
56997         Fix global typo in last change: use chmod u-w, not chmod u-x.
56998         Spotted by Paul Eggert and Bruce Korb.
56999         * modules/alloca-opt, modules/argz, modules/arpa_inet:
57000         * modules/byteswap, modules/configmake, modules/fcntl:
57001         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
57002         * modules/localcharset, modules/netinet_in, modules/poll:
57003         * modules/stdbool, modules/stdint, modules/sys_select:
57004         * modules/sys_socket, modules/sys_stat, modules/sysexits:
57006 2006-09-06  Jim Meyering  <jim@meyering.net>
57008         Make generated files be read-only.
57009         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
57010         Ensure that each generated file is now read-only.
57011         * modules/argz: Likewise.
57012         * modules/arpa_inet: Likewise.
57013         * modules/byteswap: Likewise.
57014         * modules/configmake: Likewise.
57015         * modules/fcntl: Likewise.
57016         * modules/fnmatch: Likewise.
57017         * modules/getopt: Likewise.
57018         * modules/glob: Likewise.
57019         * modules/inttypes: Likewise.
57020         * modules/netinet_in: Likewise.
57021         * modules/poll: Likewise.
57022         * modules/stdbool: Likewise.
57023         * modules/stdint: Likewise.
57024         * modules/sys_select: Likewise.
57025         * modules/sys_socket: Likewise.
57026         * modules/sys_stat: Likewise.
57027         * modules/sysexits: Likewise.
57028         * modules/localcharset: Same as above, but continue using temporary
57029         file named "t-$@" (why different?) rather than the "$@-t" used
57030         everywhere else.
57032         * modules/sysexits (Makefile.am): Replace literal occurrences
57033         of "sysexit.h" more readable, and more consistent, "$@".
57035 2006-09-06  Bruno Haible  <bruno@clisp.org>
57037         * modules/striconv: New file.
57038         * modules/xstriconv: New file.
57039         * MODULES.html.sh (Internationalization functions): Add striconv,
57040         xstriconv.
57042 2006-09-06  Bruno Haible  <bruno@clisp.org>
57044         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
57045         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
57046         not using libtool correctly.
57048 2006-09-06  Bruno Haible  <bruno@clisp.org>
57050         * lib/striconv.h: New file.
57051         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
57052         iconvstring.c.
57053         * lib/xstriconv.h: New file.
57054         * lib/xstriconv.c: New file.
57056 2006-09-06  Bruno Haible  <bruno@clisp.org>
57058         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
57059         lib_..._LDFLAGS.
57061 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57063         * lib/argz_.h: Sync from Libtool.
57065         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
57066                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
57068         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
57070 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
57072         * modules/trim: New file.
57074 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
57076         * lib/trim.h: New file.
57077         * lib/trim.c: New file.
57079 2006-09-05  Bruno Haible  <bruno@clisp.org>
57081         * MODULES.html.sh (String handling): Add trim.
57083 2006-09-04  Karl Berry  <karl@gnu.org>
57085         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
57086         until next release.
57088 2006-09-03  Bruno Haible  <bruno@clisp.org>
57090         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
57091         correctly.
57093 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
57095         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
57096         not gl_GETLOADAVG.  Omit unneeded semicolons.
57097         Problems reported by Ralf Wildenhues in
57098         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
57099         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
57100         at the end, which is the usual gnulib style.
57102         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
57103         of doing all the work ourselves.
57104         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
57105         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
57107 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
57109         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
57110         Problem reported by Ralf Wildenhues in
57111         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
57113         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
57114         HAVE_STRUCT_STATFS_F_FSTYPENAME.
57116 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
57118         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
57119         yesterday's patch by changing test -n to test -z.
57121 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
57123         * modules/getloadavg (Files): Add m4/getloadavg.m4.
57124         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
57125         the former is now obsolescent.
57127         * modules/chdir-long (Depends-on): Add fcntl.
57129 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
57131         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
57132         obsolescent, and programs should use gnulib instead.
57133         * m4/getloadavg.m4: New file, with contents taken from Autoconf
57134         but with prefixes changed.
57136 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
57138         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
57139         or stdbool.h, because they might not exist while configuring.
57141         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
57142         Don't include unistd.h or limits.h; not needed, since chdir-long.h
57143         does that for us.
57144         (O_DIRECTORY): Remove.
57146 2006-08-31  Eric Blake  <ebb9@byu.net>
57148         * gnulib-tool: Don't let emacs change spaces to TAB.
57150 2006-08-31  Bruno Haible  <bruno@clisp.org>
57152         * gnulib-tool: When calling func_import more than once, do it in a
57153         subshell.
57154         Reported by Eric Blake <ebb9@byu.net>.
57156 2006-08-31  Bruno Haible  <bruno@clisp.org>
57158         * gnulib-tool (nl): Remove variable.
57159         (sed_transform_lib_file): Use more robust test for config-h module.
57160         (func_import): Fix typo in 2006-08-25 patch.
57162 2006-08-31  Bruno Haible  <bruno@clisp.org>
57164         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
57165         specified, augment Makefile.am variables instead of assigning them.
57167 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
57169         Work around a bug in both the Linux and SunOS 64-bit kernels:
57170         nanosleep mishandles sleeps for longer than 2**31 seconds.
57171         Problem reported by Frank v Waveren in
57172         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
57173         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
57174         Check for nanosleep bug.
57175         (LIB_NANOSLEEP): Append clock_gettime library if needed.
57177 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
57179         Work around a bug in both the Linux and SunOS 64-bit kernels:
57180         nanosleep mishandles sleeps for longer than 2**31 seconds.
57181         Problem reported by Frank v Waveren in
57182         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
57183         * lib/nanosleep.c (BILLION): New constant.
57184         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
57185         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
57186         implementation.
57188 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
57190         * modules/nanosleep (Depends-on): Add gettime.
57192 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
57193         and Simon Josefsson  <jas@extundo.com>
57194         and Oskar Liljeblad  <oskar@osk.mine.nu>
57196         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
57197         * gnulib-tool (func_import): New license type 'unmodifiable license
57198         text'.
57199         * modules/fdl: Use it.  Longer description.
57200         * module/gpl, module/lgpl: New files.
57202 2006-08-30  Jim Meyering  <jim@meyering.net>
57204         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
57205         shadowing the parameter.
57207 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57209         Sync from Libtool:
57211         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57213         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
57214         sharing with gnulib.  Report by Eric Blake.
57216 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
57218         * modules/isapipe: New file.
57219         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
57221 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
57223         * modules/configmake (Makefile.am): Add a comment, and omit
57224         the CONFIGMAKE_ prefix from generated macro names.  Suggested
57225         by Bruno Haible.
57227 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
57229         * m4/isapipe.m4: New file.
57231 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
57233         * lib/isapipe.c, lib/isapipe.h: New files.
57235 2006-08-29  Jim Meyering  <jim@meyering.net>
57237         * modules/configmake (Makefile.am): Make configmake.h depend on
57238         Makefile.  Otherwise, a stale configmake.h could hang around.
57240 2006-08-29  Eric Blake  <ebb9@byu.net>
57242         * lib/error.c (error_at_line, print_errno_message): Match libc, after
57243         resolution of upstream bug 3044.
57245 2006-08-29  Bruno Haible  <bruno@clisp.org>
57247         * modules/localcharset (Depends-on): Add configmake.
57248         (Makefile.am): Remove setting of LIBDIR through DEFS.
57250 2006-08-29  Bruno Haible  <bruno@clisp.org>
57252         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
57253         defined.
57255 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
57257         * modules/fcntl: New file.
57258         * modules/chdir-safer (Depends-on): Add fcntl.
57259         * modules/fts: Likewise.
57260         * modules/mkdir-p: Likewise.
57262         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
57263         This undoes the most recent change, since we're now addressing the
57264         problem in a different way.
57266         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
57267         into output, since the output might be called Makefile.am even
57268         if $makefile_name is something different.
57269         (func_import): Use $makefile_am rather than
57270         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
57271         empty.
57273         * modules/inttypes (Files): Add m4/inttypes-h.m4.
57275 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
57277         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
57278         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
57279         recent change to stdint.m4, since we're now addressing the problem in a
57280         different way.
57282 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
57284         * m4/fcntl_h.m4: New file.
57286 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
57288         * lib/fcntl_.h: New file.
57289         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
57290         the fcntl module.
57291         * lib/dirchownmod.c: Likewise.
57292         * lib/fts.c: Likewise.
57294         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
57295         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
57296         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
57297         just before including <inttypes.h>, to avoid circular inclusion.
57299 2006-08-28  Jim Meyering  <jim@meyering.net>
57301         * doc/visibility.texi: Actually read and correct the grammar of the
57302         sentence affected by yesterday's change.
57304 2006-08-28  Eric Blake  <ebb9@byu.net>
57306         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
57307         needs wrapper.
57309 2006-08-28  Eric Blake  <ebb9@byu.net>
57311         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
57313 2006-08-28  Eric Blake  <ebb9@byu.net>
57315         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
57317 2006-08-28  Bruno Haible  <bruno@clisp.org>
57319         * modules/c-strstr: New file, from GNU gettext.
57320         * MODULES.html.sh (String handling): Add c-strstr.
57322 2006-08-28  Bruno Haible  <bruno@clisp.org>
57324         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
57325         macros.
57326         Reported by Eric Blake.
57328 2006-08-28  Bruno Haible  <bruno@clisp.org>
57330         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
57331         (VASNPRINTF): Return a string of length > INT_MAX without failing.
57332         * lib/vasprintf.c: Include errno.h, limits.h.
57333         (EOVERFLOW): New fallback definition.
57334         (vasprintf): Test here whether the string length is > INT_MAX.
57335         * lib/vsnprintf.c: Include errno.h, limits.h.
57336         (EOVERFLOW): New fallback definition.
57337         (vsnprintf): Fix bug when generated string was too long for the buffer.
57338         Test here whether the string length is > INT_MAX.
57340 2006-08-28  Bruno Haible  <bruno@clisp.org>
57342         * lib/inttypes_.h (SCNX*): Remove definitions.
57343         Reported by Eric Blake.
57345 2006-08-28  Bruno Haible  <bruno@clisp.org>
57347         * lib/c-strstr.h: New file, from GNU gettext.
57348         * lib/c-strstr.c: New file, from GNU gettext.
57350 2006-08-28  Bruno Haible  <bruno@clisp.org>
57352         * gnulib-tool: Reorder some statements.
57354 2006-08-28  Bruno Haible  <bruno@clisp.org>
57356         * gnulib-tool: New option --makefile-name.
57357         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
57358         $makefile_name.
57359         (func_import): Write $makefile_name to the cache file, and read it from
57360         there unless explicitly specified. Use $makefile_name as file name
57361         instead of Makefile.am. Adjust the recommendations accordingly.
57363 2006-08-28  Bruno Haible  <bruno@clisp.org>
57365         * gnulib-tool (func_verify_module): Check against misapplying patch.
57367 2006-08-28  Bruno Haible  <bruno@clisp.org>
57369         * gnulib-tool (func_relativize, func_relconcat): New functions.
57370         Give an error if --local-dir is given with --update.
57371         Remove trailing slashes from $local_gnulib_dir.
57372         (func_import): Store the relativized $local_gnulib_dir in
57373         gnulib-cache.m4, and read it from there if not specified explicitly.
57375 2006-08-28  Bruno Haible  <bruno@clisp.org>
57377         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
57378         is the current directory. Respect also $local_gnulib_dir.
57380 2006-08-28  Bruno Haible  <bruno@clisp.org>
57381             Simon Josefsson  <jas@extundo.com>
57383         BeOS portability.
57384         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
57386 2006-08-27  Jim Meyering  <jim@meyering.net>
57388         * doc/visibility.texi: Remove duplicate word: "pointer".
57390 2006-08-26  Bruno Haible  <bruno@clisp.org>
57392         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
57393         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
57394         (Makefile.am): Create inttypes.h from inttypes_.h.
57395         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
57397         * modules/imaxabs: New file.
57399         * modules/imaxdiv: New file.
57401 2006-08-26  Bruno Haible  <bruno@clisp.org>
57403         * m4/inttypes.m4: New file.
57404         * m4/_inttypes_h.m4: Remove file.
57405         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
57406         PRI_MACROS_BROKEN.
57407         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
57409         * m4/imaxabs.m4: New file.
57411         * m4/imaxdiv.m4: New file.
57413 2006-08-26  Bruno Haible  <bruno@clisp.org>
57415         * lib/inttypes_.h: New file.
57416         * lib/inttypes.h: Remove file.
57417         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
57419         * lib/imaxabs.c: New file.
57421         * lib/imaxdiv.c: New file.
57423 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
57425         New config-h module, so that "make" output needn't be cluttered
57426         by -DHAVE_CONFIG_H.
57427         * MODULES.html.sh (Support for building libraries and executables):
57428         Add config-h.
57429         * modules/config-h: New file.
57430         * gnulib-tool (nl, sed_transform_lib_file): New vars.
57431         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
57432         the config-h module is used.
57434         New configmake module, so that "make" output needn't be cluttered
57435         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
57436         * MODULES.html.sh (Support for building libraries and executables):
57437         Add configmake.
57438         * modules/configmake: New file.
57440 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
57442         * m4/config-h.m4: New file.
57444 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
57446         * config/srclist.txt: Add elisp-comp.
57448 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
57450         * MODULES.html.sh (Support for building libraries and executables):
57451         Add elisp-comp.
57452         * build-aux/elisp-comp: New file.
57453         * modules/elisp-comp: New file.
57455 2006-08-24  Bruno Haible  <bruno@clisp.org>
57457         * gnulib-tool (func_create_testdir): Use non-default values of
57458         sourcebase and m4base.
57460 2006-08-24  Bruno Haible  <bruno@clisp.org>
57462         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
57463         HTML structure.
57465 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
57467         * modules/openat (Depends-on): Add lchown.
57469 2006-08-23  Bruno Haible  <bruno@clisp.org>
57471         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
57472         of gl_LOCK_EARLY instead of gl_LOCK.
57474 2006-08-23  Bruno Haible  <bruno@clisp.org>
57476         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
57477         on OSF/1 to no.
57478         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
57480 2006-08-23  Bruno Haible  <bruno@clisp.org>
57482         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
57483         as unusable.
57485         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
57486         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
57487         (gl_LOCK): New macro.
57489 2006-08-22  Simon Josefsson  <jas@extundo.com>
57491         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
57492         to md5 module.
57494 2006-08-22  Simon Josefsson  <jas@extundo.com>
57496         * MODULES.html.sh: Add "Support for maintaining and release
57497         projects".
57499         * build-aux/gnupload: New file, from coreutils.
57501 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
57503         Avoid the need for AC_LIBSOURCES in m4 macros.
57504         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
57505         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
57506         * modules/check-version (EXTRA_DIST): Add check-version.h.
57507         * modules/crc (EXTRA_DIST): Add crc.h.
57508         * modules/des (EXTRA_DIST): Add des.h.
57509         * modules/gc (EXTRA_DIST): Add gc.h.
57510         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
57511         * modules/getline (EXTRA_DIST): Add getline.h.
57512         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
57513         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
57514         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
57515         * modules/md2 (EXTRA_DIST): Add md2.h.
57516         * modules/md4 (EXTRA_DIST): Add md4.h.
57517         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
57518         * modules/read-file (EXTRA_DIST): Add read-file.h.
57519         * modules/readline (EXTRA_DIST): Add readline.h.
57520         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
57521         rijndael-api-fst.h.
57523 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
57525         * m4/rijndael.m4 (gl_ARCFOUR):
57526         * m4/arctwo.m4 (gl_ARCTWO):
57527         * m4/check-version.m4 (gl_CHECK_VERSION):
57528         * m4/crc.m4 (gl_CRC):
57529         * m4/des.m4 (gl_DES):
57530         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
57531         * m4/gc.m4 (gl_GC):
57532         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
57533         * m4/getline.m4 (gl_FUNC_GETLINE):
57534         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
57535         * m4/hmac-md5.m4 (gl_HMAC_MD5):
57536         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
57537         * m4/md2.m4 (gl_MD2):
57538         * m4/md4.m4 (gl_MD4):
57539         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
57540         * m4/read-file.m4 (gl_FUNC_READ_FILE):
57541         * m4/readline.m4 (gl_FUNC_READLINE):
57542         * m4/rijndael.m4 (gl_RIJNDAEL):
57543         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
57544         to get the necessary .h files and whatnot.
57546 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
57548         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
57549         gnulib rather than the other way around.
57550         * config/srclistvars.sh (COREUTILS): Remove.
57552 2006-08-22  Jim Meyering  <jim@meyering.net>
57554         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
57556         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
57558 2006-08-22  Eric Blake  <ebb9@byu.net>
57560         * modules/regexprops-generic: New file.
57561         * MODULES.html.sh (Support for building documentation): List it.
57563 2006-08-22  Eric Blake  <ebb9@byu.net>
57565         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
57566         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
57567         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
57568         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
57570 2006-08-22  Bruno Haible  <bruno@clisp.org>
57572         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
57573         and lib_LTLIBRARIES like the other lib_* variables.
57575 2006-08-22  Bruno Haible  <bruno@clisp.org>
57577         * build-aux/x-to-1.in: New file, from GNU gettext.
57579 2006-08-22  Bruno Haible  <bruno@clisp.org>
57581         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
57582         <utmpx.h> exists.
57584 2006-08-22  Bruno Haible  <bruno@clisp.org>
57586         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
57587         <utmpx.h> exists.
57589 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
57591         BeOS portability.
57592         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
57593         exist.
57594         Problem reported by Bruno Haible.
57596 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
57598         Avoid the need for AC_LIBSOURCES in m4 macros.
57599         * modules/acl (EXTRA_DIST): Add acl.h.
57600         * modules/argmatch (Files): Add m4/argmatch.m4.
57601         (configure.ac): Add gl_ARGMATCH.
57602         (EXTRA_DIST): Renamed from lib_SOURCES, for
57603         consistency with the other modules.  Remove argmatch.c.
57604         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
57605         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
57606         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
57607         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
57608         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
57609         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
57610         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
57611         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
57612         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
57613         * modules/closeout (EXTRA_DIST): Add closeout.h.
57614         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
57615         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
57616         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
57617         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
57618         dirname.h; remove basename.c and stripslash.c.
57619         * modules/exclude (EXTRA_DIST): Add exclude.h.
57620         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
57621         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
57622         * modules/file-type (EXTRA_DIST): Add file-type.h.
57623         * modules/filemode (EXTRA_DIST): Add filemode.h.
57624         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
57625         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
57626         * modules/fpending (EXTRA_DIST): Add __fpending.h.
57627         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
57628         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
57629         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
57630         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
57631         * modules/getdate (EXTRA_DIST): Add getdate.c.
57632         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
57633         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
57634         * modules/getpass (EXTRA_DIST): Add getpass.h.
57635         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
57636         * modules/group-member (EXTRA_DIST): Add group-member.h.
57637         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
57638         * modules/hash (EXTRA_DIST): Add hash.h.
57639         * modules/human (EXTRA_DIST): Add human.h.
57640         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
57641         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
57642         * modules/lchown (EXTRA_DIST): Add lchown.h.
57643         * modules/long-options (EXTRA_DIST): Add long-options.h.
57644         * modules/lstat (EXTRA_DIST): Add lstat.h.
57645         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
57646         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
57647         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
57648         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
57649         * modules/memxor (EXTRA_DIST): Add memxor.h.
57650         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
57651         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
57652         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
57653         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
57654         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
57655         * modules/physmem (EXTRA_DIST): Add physmem.h.
57656         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
57657         * modules/posixver (EXTRA_DIST): Add posixver.h.
57658         * modules/quote (EXTRA_DIST): Add quote.h.
57659         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
57660         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
57661         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
57662         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
57663         regex_internal.h regexec.c.
57664         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
57665         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
57666         * modules/same (EXTRA_DIST): Add same.h.
57667         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
57668         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
57669         * modules/savedir (EXTRA_DIST): Add savedir.h.
57670         * modules/sha1 (EXTRA_DIST): Add sha1.h.
57671         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
57672         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
57673         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
57674         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
57675         * modules/strdup (EXTRA_DIST): Add strdup.h.
57676         * modules/strftime (EXTRA_DIST): Add strftime.h.
57677         * modules/strndup (EXTRA_DIST): Add strndup.h.
57678         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
57679         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
57680         * modules/time_r (EXTRA_DIST): Add time_r.h.
57681         * modules/timespec (EXTRA_DIST): Add timespec.h.
57682         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
57683         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
57684         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
57685         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
57686         * modules/userspec (EXTRA_DIST): Add userspec.h.
57687         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
57688         * modules/utimens (EXTRA_DIST): Add utimens.h.
57689         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
57690         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
57691         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
57692         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
57693         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
57694         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
57695         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
57696         * modules/yesno (EXTRA_DIST): Add yesno.h.
57698 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
57700         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
57702         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
57703         * m4/dev-ino.m4, same-inode.m4: Remove.
57705         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
57706         * m4/acl.m4 (AC_FUNC_ACL):
57707         * m4/backupfile.m4 (gl_BACKUPFILE):
57708         * m4/c-strtod.m4 (gl_C99_STRTOLD):
57709         * m4/canon-host.m4 (gl_CANON_HOST):
57710         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
57711         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
57712         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
57713         * m4/cloexec.m4 (gl_CLOEXEC):
57714         * m4/close-stream.m4 (gl_CLOSE_STREAM):
57715         * m4/closeout.m4 (gl_CLOSEOUT):
57716         * m4/dirfd.m4 (gl_FUNC_DIRFD):
57717         * m4/dirname.m4 (gl_DIRNAME):
57718         * m4/exclude.m4 (gl_EXCLUDE):
57719         * m4/exitfail.m4 (gl_EXITFAIL):
57720         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
57721         * m4/file-type.m4 (gl_FILE_TYPE):
57722         * m4/filemode.m4 (gl_FILEMODE):
57723         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
57724         * m4/fpending.m4 (gl_FUNC_FPENDING):
57725         * m4/fprintftime.m4 (gl_FPRINTFTIME):
57726         * m4/fts.m4 (gl_FUNC_FTS):
57727         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
57728         * m4/getdate.m4 (gl_GETDATE):
57729         * m4/gethrxtime.m4 (gl_GETHRXTIME):
57730         * m4/getpagesize.m4 (gl_GETPAGESIZE):
57731         * m4/getpass.m4 (gl_FUNC_GETPASS):
57732         * m4/gettime.m4 (gl_GETTIME):
57733         * m4/getugroups.m4 (gl_GETUGROUPS):
57734         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
57735         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
57736         * m4/hard-locale.m4 (gl_HARD_LOCALE):
57737         * m4/hash.m4 (gl_HASH):
57738         * m4/idcache.m4 (gl_IDCACHE):
57739         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
57740         * m4/lchown.m4 (gl_FUNC_LCHOWN):
57741         * m4/long-options.m4 (gl_LONG_OPTIONS):
57742         * m4/lstat.m4 (gl_FUNC_LSTAT):
57743         * m4/md5.m4 (gl_MD5):
57744         * m4/memcasecmp.m4 (gl_MEMCASECMP):
57745         * m4/memcoll.m4 (gl_MEMCOLL):
57746         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
57747         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
57748         * m4/memxor.m4 (gl_MEMXOR):
57749         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
57750         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
57751         * m4/modechange.m4 (gl_MODECHANGE):
57752         * m4/mountlist.m4 (gl_MOUNTLIST):
57753         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
57754         * m4/openat.m4 (gl_FUNC_OPENAT):
57755         * m4/pathmax.m4 (gl_PATHMAX):
57756         * m4/physmem.m4 (gl_PHYSMEM):
57757         * m4/posixtm.m4 (gl_POSIXTM):
57758         * m4/posixver.m4 (gl_POSIXVER):
57759         * m4/quote.m4 (gl_QUOTE):
57760         * m4/quotearg.m4 (gl_QUOTEARG):
57761         * m4/readtokens.m4 (gl_READTOKENS):
57762         * m4/readutmp.m4 (gl_READUTMP):
57763         * m4/regex.m4 (gl_REGEX):
57764         * m4/safe-read.m4 (gl_SAFE_READ):
57765         * m4/safe-write.m4 (gl_SAFE_WRITE):
57766         * m4/same.m4 (gl_SAME):
57767         * m4/save-cwd.m4 (gl_SAVE_CWD):
57768         * m4/savedir.m4 (gl_SAVEDIR):
57769         * m4/settime.m4 (gl_SETTIME):
57770         * m4/sha1.m4 (gl_SHA1):
57771         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
57772         * m4/stat-macros.m4 (gl_STAT_MACROS):
57773         * m4/stat-time.m4 (gl_STAT_TIME):
57774         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
57775         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
57776         * m4/strdup.m4 (gl_FUNC_STRDUP):
57777         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
57778         * m4/strndup.m4 (gl_FUNC_STRNDUP):
57779         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
57780         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
57781         * m4/time_r.m4 (gl_TIME_R):
57782         * m4/timespec.m4 (gl_TIMESPEC):
57783         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
57784         * m4/unlinkdir.m4 (gl_UNLINKDIR):
57785         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
57786         * m4/userspec.m4 (gl_USERSPEC):
57787         * m4/utimecmp.m4 (gl_UTIMECMP):
57788         * m4/utimens.m4 (gl_UTIMENS):
57789         * m4/xalloc.m4 (gl_XALLOC):
57790         * m4/xgetcwd.m4 (gl_XGETCWD):
57791         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
57792         * m4/xreadlink.m4 (gl_XREADLINK):
57793         * m4/xstrtod.m4 (gl_XSTRTOD):
57794         * m4/yesno.m4 (gl_YESNO):
57795         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
57796         to get the necessary .h files and whatnot.
57798 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
57799             Bruno Haible  <bruno@clisp.org>
57801         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
57802         /bin/sh understanding of '!' conditional negation.
57804 2006-08-21  Jim Meyering  <jim@meyering.net>
57806         * modules/openat (Depends-on): Really alphabetize.
57808         * modules/acl (Depends-on): Add error and quote.
57810         * check-module (find_included_lib_files): Add at-func.c to the
57811         ok-to-include-more-than-once white list.
57813         * modules/openat (Depends-on): Add lstat.  Alphabetize.
57815 2006-08-21  Bruno Haible  <bruno@clisp.org>
57817         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
57818         Emit a pkgdata_DATA variable only if some snippets add contents to it.
57819         Reported by Martin Lambers <marlam@marlam.de>.
57821 2006-08-21  Bruno Haible  <bruno@clisp.org>
57823         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
57824         specify an installation location, don't emit a noinst_LIBRARIES or
57825         noinst_LTLIBRARIES assignment.
57827 2006-08-21  Bruno Haible  <bruno@clisp.org>
57829         BeOS portability.
57830         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
57831         BeOS has mbrtowc() but no <wctype.h>.
57833 2006-08-21  Bruno Haible  <bruno@clisp.org>
57835         BeOS portability.
57836         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
57837         exist.
57839 2006-08-21  Bruno Haible  <bruno@clisp.org>
57841         BeOS portability.
57842         * lib/mbchar.h: Include <wctype.h> only if it exists.
57844 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
57846         Remove files that are no longer needed by their respective modules.
57847         * m4/obstack.m4: Remove.
57848         * m4/strerror_r.m4: Remove.
57849         * m4/uint32_t.m4: Remove.
57850         * m4/uintptr_t.m4: Remove.
57851         * m4/ullong_max.m4: Remove.
57852         * m4/xstrtoimax.m4: Remove.
57853         * m4/xstrtoumax.m4: Remove.
57855         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
57856         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
57857         dependencies now capture this.
57859         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
57860         Do not use AC_LIBSOURCES, since gnulib modules now do this.
57861         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
57862         * m4/human.m4 (gl_HUMAN): Likewise.
57863         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
57864         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
57866         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
57868         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
57869         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
57870         stdint.
57871         * m4/human.m4 (gl_HUMAN): Likewise.
57872         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
57873         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
57874         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
57875         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
57876         * m4/xstrtol (gl_XSTRTOL): Likewise.
57878         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
57879         AC_TYPE_LONG_LONG_INT.
57880         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
57881         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
57882         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
57883         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
57885         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
57886         on stdbool.
57888         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
57889         (gl_PREREQ_XSTRTOUL): Remove.
57891         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
57893         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
57894         mode.
57896 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
57898         Add and change modules to make it easier for coreutils to use
57899         gnulib-tool.
57900         * modules/backupfile (Files): Remove m4/d-ino.m4.
57901         (Depends-on): Add d-ino.
57902         * modules/cycle-check (Depends-on): Add stdint.
57903         (lib_SOURCES): Add cycle-check.h.
57904         * modules/d-ino: New module.
57905         * modules/d-type: New module.
57906         * modules/error (Files): Remove m4/strerror_r.m4.
57907         * modules/filemode (Files): Add m4/st_dm_mode.m4.
57908         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
57909         m4/inttypes_h.m4, m4/uintmax_t.m4.
57910         (Depends-on): Add stdint.
57911         (lib_SOURCES): Add fsusage.h.
57912         * modules/getcwd (Files): Remove d-ino.m4.
57913         (Depends-on): Add d-ino.
57914         * modules/getndelim2 (Depends-on): Add stdint.
57915         * modules/glob (Files): Remove m4/d-type.m4.
57916         (Depends-on): Add d-type.
57917         * modules/host-os: New module.
57918         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
57919         m4/inttypes_h.m4, m4/uintmax_t.m4.
57920         * Depends-on: Add stdint.
57921         (lib_SOURCES): Add human.h.
57922         * modules/inttostr (Files): Remove m4/intmax_t.m4,
57923         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
57924         m4/uintmax_t.m4, m4/ulonglong.m4.
57925         (Depends-on): Add stdint.
57926         (EXTRA_DIST): Add inttostr.h.
57927         * modules/lchmod: New module.
57928         * modules/link-follow: New module.
57929         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
57930         (Depends-on): Add lchmod.
57931         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
57932         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
57933         (Depends-on): Add stdint.
57934         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
57935         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
57936         (Depends-on): Add stdint.
57937         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
57938         * modules/perl: New module.
57939         * modules/regex (Depends-on): Add stdint.
57940         * modules/rmdir-errno: New module.
57941         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
57942         m4/intmax_t.m4.
57943         (Depends-on): Add stdint.
57944         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
57945         m4/uintmax_t.m4.
57946         (Depends-on): Add stdint.
57947         * modules/unlink-busy: New module.
57948         * modules/utimecmp (Depends-on): Add stdint.
57949         * modules/uptime: New module.
57950         * modules/winsz-ioctl: New module.
57951         * modules/winsz-termios: New module.
57952         * modules/xnanosleep (Depends-on): Add nanosleep.
57953         * modules/ullong_max: Remove.
57954         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
57955         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
57956         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
57957         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
57958         (Depends-on): Add inttypes.
57959         (lib_SOURCES): Add xstrtol.h.
57960         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
57961         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
57962         * MODULES.html.sh: Move 'assert' into the assert section.
57963         Move 'dummy' into the linking section.
57964         Remove ullong_max.
57965         Add section for compatibility checks for POSIX:2001 functions,
57966         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
57967         winsz-ioctl, and winsz-termios into it.
57968         Add lchmod.
57969         Add top-level Misc section and put host-os, perl, and uptime
57970         into it.
57972 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
57974         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
57975         now assume the stdint module.  Do not include inttypes.h.
57976         * lib/fsusage.h: Likewise.
57977         * lib/getndelim2.c: Likewise.
57978         * lib/human.h: Likewise.
57979         * lib/inttostr.h: Likewise.
57980         * lib/obstack.c: Likewise.
57981         * lib/regex_internal.h: Likewise.
57982         * lib/tempname.c: Likewise.
57983         * lib/utimecmp.c: Likewise.
57984         * lib/xstrtol.h: Likewise.
57986         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
57988         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
57989         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
57990         * lib/xtime.h: Likewise.
57992 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
57994         * modules/openat (Files): Add lib/fchmodat.c.
57995         Fixes problem reported by Jay Youngman.
57997 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
57999         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
58000         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
58002 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
58003             Bruno Haible  <bruno@clisp.org>
58005         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
58006         and is a script that invokes bison. Tighten the code. Add comments.
58008 2006-08-18  Jim Meyering  <jim@meyering.net>
58010         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
58011         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
58012         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
58013         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
58015 2006-08-18  Bruno Haible  <bruno@clisp.org>
58017         * modules/bison-i18n: New file.
58018         * MODULES.html.sh (Internationalization functions): Add it.
58020 2006-08-18  Bruno Haible  <bruno@clisp.org>
58022         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
58023         sys/statvfs.h. When getmntinfo was found, check its declaration and
58024         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
58026 2006-08-18  Bruno Haible  <bruno@clisp.org>
58028         * m4/bison-i18n.m4: New file, from bison.
58030 2006-08-18  Bruno Haible  <bruno@clisp.org>
58032         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
58033         (ME_DUMMY): Treat "kernfs" as a dummy.
58034         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
58036 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
58038         Update from coreutils.
58040         2006-08-15  Jim Meyering  <jim@meyering.net>
58042         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
58044         2006-01-17  Jim Meyering  <jim@meyering.net>
58046         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
58048         2006-01-11  Jim Meyering  <jim@meyering.net>
58050         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
58051         Check for the lchmod function.
58053 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
58055         Update from coreutils.
58057         * lib/__fpending.h: Add copyright notice.
58058         * lib/fprintftime.h: Likewise.
58059         * lib/savedir.c: Use (C) in copyright notice.
58060         * lib/savedir.h: Likewise.
58062         2006-08-15  Jim Meyering  <jim@meyering.net>
58064         * lib/at-func.c: New file, with the logic of all emulated at-functions.
58065         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
58066         in support of the EXPECTED_ERRNO macro.
58067         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
58068         definitions.  Instead, define the appropriate symbols and include
58069         "at-func.c".
58070         * lib/mkdirat.c (mkdirat): Likewise.
58071         * lib/fchmodat.c (fchmodat): Likewise.
58072         (ENOSYS): Remove definition.
58073         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
58074         it.  Don't include "unistd--.h" -- it wasn't ever used.
58076         2006-01-17  Jim Meyering  <jim@meyering.net>
58078         Rewrite fts.c not to change the current working directory,
58079         by using openat, fstatat, fdopendir, etc..
58081         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
58082         (HAVE_OPENAT_SUPPORT): Define.
58083         [_LIBC] (fchdir): Don't undef or define; no longer used.
58084         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
58085         Now, this `function' always succeeds, and consumes its file descriptor
58086         parameter -- so callers must not close such FDs.  Update callers.
58087         (diropen_fd, opendirat, cwd_advance_fd): New functions.
58088         (diropen): Add parameter, SP.  Adjust all callers.
58089         Implement using diropen_fd, rather than open.
58090         (fts_open): Initialize new member, fts_cwd_fd.
58091         Remove fts_rft-setting code.
58092         (fts_close): Close fts_cwd_fd, if necessary.
58093         (__opendir2): Define in terms of opendir or opendirat,
58094         depending on whether the FST_NOCHDIR flag is set.
58095         (fts_build): Since fts_safe_changedir consumes its FD, and since
58096         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
58097         and close the dup'd file descriptor upon failure.
58098         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
58099         (fts_safe_changedir): Tweak semantics to reflect that this function
58100         now calls cwd_advance_fd and hence consumes its FD argument.
58101         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
58102         [struct FTS] (fts_rft): Remove now-unused member.
58103         [struct FTS] (fts_cycle.state): Improve comment.
58105         * lib/openat.c (openat_needs_fchdir): New function.
58106         * lib/openat.h (openat_needs_fchdir): Declare it.
58108 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
58110         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
58111         Problem and fix reported by Pádraig Brady in
58112         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
58114 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
58116         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
58118 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
58120         * lib/memcoll.c (memcoll): Optimize for the common case where the
58121         arguments are bytewise equal.
58123 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
58125         * doc/regexprops-generic.texi: Add a copyright notice.
58127 2006-08-15  Bruno Haible  <bruno@clisp.org>
58129         * modules/tmpdir (License): Change to LGPL.
58131 2006-08-15  Bruno Haible  <bruno@clisp.org>
58133         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
58134         module.
58136 2006-08-14  Simon Josefsson  <jas@extundo.com>
58138         * config/srclist.txt: Add gnupload.
58140 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
58142         Change copyright notice from LGPL 2 to GPL 2, since that's the
58143         standard form used in the gnulib repository.
58144         * tests/test-lock.c: Likewise.
58145         * tests/test-stdint.c: Likewise.
58146         * tests/test-tls.c: Likewise.
58148         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
58149         prelude-manager.  User shorter URLs for GNU projects, without '?'.
58150         Add copyright notice.
58152         * check-module: Add copyright notice.  Output a copyright
58153         notice if "--version" is specified.
58154         * modules/COPYING: New file.
58155         * tests/test-getaddrinfo.c: Add copyright notice.
58156         * tests/test-verify.c: Likewise.
58158 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
58160         Change copyright notice from LGPL 2 to GPL 2, since that's the
58161         standard form used in the gnulib repository.
58162         * lib/lock.c: LGPL -> GPL.
58163         * lib/lock.h: Likewise.
58164         * lib/strnlen1.c: Likewise.
58165         * lib/strnlen1.h: Likewise.
58166         * lib/tls.c: Likewise.
58167         * lib/tls.h: Likewise.
58168         * lib/tmpdir.c: Likewise.
58170         * lib/TODO: Remove; this belongs only in coreutils.
58172 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
58174         Add copyright notices to long-enough files that lack them, since
58175         otherwise the files aren't clearly free.  Use the same notice that
58176         getdate.texi already uses.
58177         * doc/alloca-opt.texi: Add copyright notice.
58178         * doc/alloca.texi: Likewise.
58179         * doc/ctime.texi: Likewise.
58180         * doc/functions.texi: Likewise.
58181         * doc/gcd.texi: Likewise.
58182         * doc/gnulib-tool.texi: Likewise.
58183         * doc/inet_ntoa.texi: Likewise.
58184         * doc/visibility.texi: Likewise.
58186         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
58187         * doc/quote.texi: Add copyright notice.
58189         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
58190         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
58191         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
58192         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
58193         is now obsolete, and give a pointer to the Sun list.
58194         Add copyright notice.
58196 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
58198         * config/srclistvars.sh: Add copyright notice.
58200 2006-08-14  Eric Blake  <ebb9@byu.net>
58202         Import the following change from libc:
58204         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
58206         Upstream bug 2997.
58207         * lib/misc/error.c: Add space between program name and message if file
58208         name is missing.
58210 2006-08-12  Karl Berry  <karl@gnu.org>
58212         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
58213         remove, these originate in gnulib now.
58215 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58217         * doc/Makefile (standards.info standards.html standards.dvi):
58218         Also depend on make-stds.texi.
58220 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
58222         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
58223         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
58225         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
58226         in wchar_t.  Problem reported by Eric Blake.
58228         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
58229         LEN is smaller than SIZE.  Suggested by Bruno Haible.
58230         Also, help the compiler to keep LEN in a register.
58232 2006-08-11  Eric Blake  <ebb9@byu.net>
58234         * users.txt: Sort.  Add tar.
58236 2006-08-11  Bruno Haible  <bruno@clisp.org>
58238         * users.txt: New file.
58240 2006-08-11  Bruno Haible  <bruno@clisp.org>
58242         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
58243         before <wchar.h>. Needed for OSF/1 and BSD/OS.
58245 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
58247         * modules/snprintf (Depends-on): Remove minmax.
58248         (Maintainer): Add self and Bruno.
58250 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
58252         * lib/.cppi-disable: Add snprintf.h, socket_.h.
58253         * lib/snprintf.c: Include <errno.h> and <limits.h>.
58254         (EOVERFLOW): Define if the system does not.
58255         Do not include "minmax.h"; it wasn't used.
58256         (snprintf): Don't assume size_t promotes to an unsigned type.
58257         Fix bug when generated string was too long for the buffer: the
58258         buffer's contents are supposed to be the initial prefix of the
58259         output.  Don't assume vasnprintf returns EOVERFLOW if the size
58260         exceeds INT_MAX; do the check ourselves.
58262         Import the following changes from libc:
58264         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
58266         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
58267         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
58268         set wc to the byte which couldn't be converted.
58269         (re_string_reconstruct): Don't clear valid_raw_len before calling
58270         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
58271         tip_context using re_string_context_at.
58273         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
58275         * lib/posix/regex.h: g++ still cannot handled [restrict].
58277         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
58279         * lib/posix/regex.h: Remove special handling for VMS.
58281 2006-08-10  Jim Meyering  <jim@meyering.net>
58283         * modules/same-inode: New module.
58284         * modules/dev-ino: New module.
58285         * modules/cycle-check: Depend on these modules, rather than simply
58286         including their .h files.
58287         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
58288         required via m4/cycle-check.m4.
58289         * modules/same: Depend on new same-inode module, rather than
58290         including same-inode.h.
58291         * modules/chdir-safer: New file.
58293         * modules/chown (Depends-on): Add stat-macros.
58295 2006-08-10  Jim Meyering  <jim@meyering.net>
58297         * m4/cycle-check.m4: New file.
58298         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
58299         * m4/dev-ino.m4, m4/same-inode.m4: New files.
58301 2006-08-10  Eric Blake  <ebb9@byu.net>
58303         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
58304         in from original proposal.
58306 2006-08-10  Eric Blake  <ebb9@byu.net>
58307         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
58309         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
58310         namespace.
58312 2006-08-10  Bruno Haible  <bruno@clisp.org>
58314         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
58315         as well.
58317 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
58319         Sync from coreutils.
58321         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
58323         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
58324         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
58326 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
58328         * modules/restrict: Remove; no longer needed now that we assume
58329         Autoconf 2.59 or later.
58330         * MODULES.html.sh: Remove 'restrict'.
58331         * modules/argp (Depends-on): Remove 'restrict'.
58332         * modules/base64 (Depends-on): Likewise.
58333         * modules/gc (Depends-on): Likewise.
58334         * modules/getaddrinfo (Depends-on): Likewise.
58335         * modules/glob (Depends-on): Likewise.
58336         * modules/inet_ntop (Depends-on): Likewise.
58337         * modules/inet_pton (Depends-on): Likewise.
58338         * modules/memxor (Depends-on): Likewise.
58339         * modules/regex (Depends-on): Likewise.
58340         * modules/strtok_r (Depends-on): Likewise.
58341         * modules/time_r (Depends-on): Likewise.
58343 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
58345         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
58346         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
58347         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
58348         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
58349         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
58350         * m4/memxor.m4 (gl_MEMXOR): Likewise.
58351         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
58352         gl_C_RESTRICT replaced by AC_C_RESTRICT.
58354         Merge from coreutils.
58355         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
58356         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
58357         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
58358         * m4/time_r.m4 (gl_TIME_R): Likewise.
58360 2006-08-09  Karl Berry  <karl@gnu.org>
58362         * config/srclist.txt: no more gettext-tools, per Bruno.
58364 2006-08-08  Eric Blake  <ebb9@byu.net>
58366         * modules/verror: New module.
58367         * MODULES.html.sh: Document it.
58369 2006-08-08  Eric Blake  <ebb9@byu.net>
58371         * lib/verror.h, lib/verror.c: New files.
58373 2006-08-08  Eric Blake  <ebb9@byu.net>
58375         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
58376         verror_at_line output complies with GNU Coding Standards even when
58377         file is NULL.
58379 2006-08-07  Bruno Haible  <bruno@clisp.org>
58381         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
58382         versions of AIX.
58383         Reported by Ralf Wildenhues.
58385 2006-08-07  Bruno Haible  <bruno@clisp.org>
58387         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
58388         in an AC_DEFUN. Needed so that the autoconf snippets can use
58389         AC_REQUIRE.
58391 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58393         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
58394         Initialize pkgdata_DATA.
58395         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
58396         overriding it.
58398 2006-08-06  Eric Blake  <ebb9@byu.net>
58400         * lib/error.h: Fold in some upstream changes from glibc.
58401         * lib/error.c: Likewise.
58403 2006-08-04  Bruno Haible  <bruno@clisp.org>
58405         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
58406         Make the mostlyclean-local rule depend on mostlyclean-generic.
58407         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
58409 2006-07-31  Bruno Haible  <bruno@clisp.org>
58411         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
58412         <stdlib.h>, <string.h>.
58414 2006-07-30  Bruno Haible  <bruno@clisp.org>
58416         * modules/readlink (License): Change to LGPL.
58418 2006-07-30  Bruno Haible  <bruno@clisp.org>
58420         * modules/javaversion (Makefile.am): Distribute javaversion.java and
58421         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
58422         set PKGDATADIR to point to it.
58424 2006-07-30  Bruno Haible  <bruno@clisp.org>
58426         * modules/csharpexec (configure.ac): Comment out macro invocation.
58427         * modules/javaexec (configure.ac): Likewise.
58428         * modules/javacomp-script (configure.ac): Likewise.
58430         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
58432 2006-07-30  Bruno Haible  <bruno@clisp.org>
58434         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
58435         linked-list.
58437 2006-07-30  Bruno Haible  <bruno@clisp.org>
58439         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
58441 2006-07-30  Bruno Haible  <bruno@clisp.org>
58443         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
58444         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
58445         get removed.
58447 2006-07-29  Bruno Haible  <bruno@clisp.org>
58449         Make it possible for gnulib-tool to work with locally modified or
58450         augmented gnulib repositories.
58451         * gnulib-tool (func_usage): Document --local-dir option.
58452         (local_gnulib_dir): New variable.
58453         Handle --local-dir option.
58454         (func_lookup_file): New function.
58455         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
58456         (func_get_description, func_get_filelist, func_get_description,
58457         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
58458         func_get_automake_snippet, func_get_include_directive,
58459         func_get_license, func_get_maintainer): Use func_lookup_file.
58460         (func_import, func_create_testdir): Use func_lookup_file.
58462 2006-07-29  Bruno Haible  <bruno@clisp.org>
58464         * modules/setenv (Depends-on): Add unistd.
58466 2006-07-29  Bruno Haible  <bruno@clisp.org>
58468         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
58470 2006-07-29  Bruno Haible  <bruno@clisp.org>
58472         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
58474 2006-07-29  Bruno Haible  <bruno@clisp.org>
58476         * gnulib-tool (import, update): If there is no Makefile.am, look at
58477         aclocal.m4, instead of bailing out.
58479 2006-07-29  Bruno Haible  <bruno@clisp.org>
58481         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
58482         Categorize the options by when they are useful.
58484 2006-07-29  Bruno Haible  <bruno@clisp.org>
58486         * gnulib-tool (func_usage): Document option --no-libtool.
58487         Handle option --no-libtool.
58488         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
58489         for changed semantics of $libtool variable.
58490         (func_import): Likewise. If libtool is not used, show this through
58491         an option --no-libtool.
58492         (func_create_testdir): Update.
58494 2006-07-29  Bruno Haible  <bruno@clisp.org>
58496         * gnulib-tool (func_import): Extend error message about missing
58497         --doc-base.
58499 2006-07-29  Bruno Haible  <bruno@clisp.org>
58501         * gnulib-tool (func_import): Don't create the $docbase directory if
58502         there is no file to store there.
58504 2006-07-29  Bruno Haible  <bruno@clisp.org>
58506         * gnulib-tool (autoconf_minversion): If a --dir option is given and
58507         relevant, look for configure.ac there, not in the current directory.
58508         Also use a simple search for AC_PREREQ, not "autoconf --trace".
58510 2006-07-29  Bruno Haible  <bruno@clisp.org>
58512         * gnulib-tool (SORT): New variable.
58513         (func_usage): Undocument --assume-autoconf option.
58514         Remove --assume-autoconf option handling.
58515         (autoconf_minversion): Determine from the contents of configure.ac.
58516         (func_import): Remove autoconf_minversion handling.
58517         Suggested by Eric Blake.
58519 2006-07-29  Bruno Haible  <bruno@clisp.org>
58521         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
58523 2006-07-29  Bruno Haible  <bruno@clisp.org>
58525         * config/srclist.txt (*setenv.[ch]): Remove rules.
58527 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58529         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
58531 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58533         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
58534         arpa/inet.h.
58536 2006-07-28  Simon Josefsson  <jas@extundo.com>
58538         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
58539         * modules/inet_pton (Depends-on): Likewise.
58541 2006-07-28  Simon Josefsson  <jas@extundo.com>
58543         * m4/netinet_in_h.m4: New file.
58545 2006-07-28  Simon Josefsson  <jas@extundo.com>
58547         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
58548         #include's.
58550 2006-07-28  Simon Josefsson  <jas@extundo.com>
58552         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
58553         #include's.
58555 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
58557         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
58558         setgid on directories only if they set these bits.
58559         * lib/modechange.h: Remove obsolete comment about masks.
58561 2006-07-28  Eric Blake  <ebb9@byu.net>
58563         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
58564         macro expansion.
58566 2006-07-28  Bruno Haible  <bruno@clisp.org>
58568         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
58570 2006-07-28  Bruno Haible  <bruno@clisp.org>
58572         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
58574 2006-07-28  Bruno Haible  <bruno@clisp.org>
58576         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
58577         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
58578         Define fallbacks.
58579         Avoids link error on FreeBSD 4.x.
58580         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
58582         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
58583         encoding.
58584         * lib/mbswidth.c (iswcntrl): Likewise.
58586 2006-07-27  Bruno Haible  <bruno@clisp.org>
58588         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
58589         test.
58591 2006-07-27  Bruno Haible  <bruno@clisp.org>
58593         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
58594         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
58595         defined.
58597 2006-07-26  Eric Blake  <ebb9@byu.net>
58599         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
58601 2006-07-26  Eric Blake  <ebb9@byu.net>
58603         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
58604         like mingw that lack mkstemp.
58605         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
58606         avoid compilation warning on mingw.
58608 2006-07-26  Bruno Haible  <bruno@clisp.org>
58610         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
58611         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
58612         INT_FAST*_MIN, INTPTR_MIN.
58614 2006-07-25  Bruno Haible  <bruno@clisp.org>
58616         * modules/version-etc (Depends-on): Add stdarg.
58618 2006-07-25  Bruno Haible  <bruno@clisp.org>
58620         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
58621         complex commands.
58623 2006-07-25  Bruno Haible  <bruno@clisp.org>
58625         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
58626         defined in <stdarg.h> or config.h.
58628 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
58630         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
58631         (gl_STDIO_SAFER): Remove.
58633 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
58635         * MODULES.html.sh (File stream based Input/Output):
58636         Add fopen-safer, tmpfile-safer; remove stdio-safer.
58637         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
58638         * modules/fopen-safer, modules/tmpfile-safer: New files.
58639         * modules/stdio-safer: Remove.
58641 2006-07-24  Bruno Haible  <bruno@clisp.org>
58643         * modules/tmpdir: New file.
58644         * MODULES.html.sh (File system functions): Add it.
58646 2006-07-24  Bruno Haible  <bruno@clisp.org>
58648         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
58649         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
58651 2006-07-24  Bruno Haible  <bruno@clisp.org>
58653         * modules/clean-temp: New file.
58655 2006-07-24  Bruno Haible  <bruno@clisp.org>
58657         * m4/tmpdir.m4: New file, from GNU gettext.
58659 2006-07-24  Bruno Haible  <bruno@clisp.org>
58661         * lib/tmpdir.h: New file, from GNU gettext.
58662         * lib/tmpdir.c: New file, from GNU gettext.
58664 2006-07-24  Bruno Haible  <bruno@clisp.org>
58666         * lib/clean-temp.h: New file, from GNU gettext.
58667         * lib/clean-temp.c: New file, from GNU gettext.
58669 2006-07-23  Eric Blake  <ebb9@byu.net>
58671         * modules/stdio-safer (Files): Add tmpfile-safer.c.
58672         (Depends-on): Add binary-io.
58674 2006-07-23  Eric Blake  <ebb9@byu.net>
58676         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
58678 2006-07-23  Eric Blake  <ebb9@byu.net>
58680         * lib/tmpfile-safer.c: New file.
58681         * lib/stdio-safer.h (fopen_safer): Add prototype.
58682         * lib/stdio--.h (tmpfile): Make safer.
58684 2006-07-23  Bruno Haible  <bruno@clisp.org>
58686         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
58687         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
58688         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
58689         gl_linked_remove_at): Use it.
58691 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58692         and Simon Josefsson <jas@extundo.com>
58694         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
58696         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
58698 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
58700         * modules/close-stream: New file.
58701         * modules/closeout (Description): Make it clear that it exits
58702         with a diagnostic on error.
58703         (Depends-on): Add close-stream.  Remove fpending, stdbool.
58704         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
58706 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
58708         * m4/close-stream.m4: New file.
58710 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
58712         * lib/close-stream.c, lib/close-stream.h: New files.
58714 2006-07-22  Bruno Haible  <bruno@clisp.org>
58716         Merge from GNU gettext 0.15.
58718         2006-05-01  Bruno Haible  <bruno@clisp.org>
58720                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
58722         2006-07-22  Bruno Haible  <bruno@clisp.org>
58724                 * modules/javaversion: New file.
58725                 * MODULES.html.sh (Java): Add javaversion.
58727         2006-03-12  Bruno Haible  <bruno@clisp.org>
58729                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
58731         2005-12-04  Bruno Haible  <bruno@clisp.org>
58733                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
58734                 (untested).
58736         2006-06-21  Bruno Haible  <bruno@clisp.org>
58738                 Avoid warnings from recent versions of mcs.
58739                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
58740                 -o, -L, -r any more. Use options documented since mcs-1.0
58741                 instead. Similarly for -g.
58743         2005-12-04  Bruno Haible  <bruno@clisp.org>
58745                 * build-aux/csharpcomp.sh.in: Suffix for resources is
58746                 .resources, not .resource.
58748         2005-07-09  Bruno Haible  <bruno@clisp.org>
58750                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
58751                 add a .dll suffix.
58752                 Reported by Mark Junker <mjscod@gmx.de>.
58754         2006-07-22  Bruno Haible  <bruno@clisp.org>
58756                 * modules/gettext: Upgrade to gettext-0.15.
58757                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
58758                 m4/visibility.m4.
58759                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
58761 2006-07-22  Bruno Haible  <bruno@clisp.org>
58763         Merge from GNU gettext 0.15.
58765         2006-03-25  Bruno Haible  <bruno@clisp.org>
58767                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
58769         2006-07-21  Bruno Haible  <bruno@clisp.org>
58771                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
58772                 "1.1".
58774         2006-05-09  Bruno Haible  <bruno@clisp.org>
58776                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
58777                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
58778                 for the conftestver execution.
58780         2006-05-01  Bruno Haible  <bruno@clisp.org>
58782                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
58783                 optional target-version argument. Verify that the compiler
58784                 groks source of the specified source-version, or add -source
58785                 option as necessary. Verify that the compiler produces
58786                 bytecode in the specified target-version, or add -target and
58787                 -source options as necessary. Make the result of the test
58788                 available as variable CONF_JAVAC. Also log error output in
58789                 config.log.
58791         2006-03-11  Bruno Haible  <bruno@clisp.org>
58793                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
58795         2006-05-09  Bruno Haible  <bruno@clisp.org>
58797                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
58798                 CLASSPATH_SEPARATOR to a semicolon.
58800         2006-03-12  Bruno Haible  <bruno@clisp.org>
58802                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
58803                 available as variable CONF_JAVA, for subsequent autoconf
58804                 tests. Also log error output in config.log.
58806         2006-07-19  Bruno Haible  <bruno@clisp.org>
58808                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
58809                 that getline works on glibc2 systems. Needed to avoid trouble
58810                 in relocatable.c.
58811                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
58813         2005-12-04  Bruno Haible  <bruno@clisp.org>
58815                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
58816                 launcher (untested).
58818         2005-12-04  Bruno Haible  <bruno@clisp.org>
58820                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
58822         2006-07-22  Bruno Haible  <bruno@clisp.org>
58824                 * gettext.m4: Update from GNU gettext-0.15.
58825                 * nls.m4: Likewise.
58826                 * po.m4: Likewise.
58827                 * inttypes-pri.m4: Likewise.
58828                 * inttypes-h.m4: Renamed from inttypes.m4.
58829                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
58831 2006-07-22  Bruno Haible  <bruno@clisp.org>
58833         Merge from GNU gettext 0.15.
58835         2005-07-05  Bruno Haible  <bruno@clisp.org>
58837                 * printf-args.c (printf_fetchargs): Work around broken
58838                 definition of wint_t on mingw.
58840         2005-02-12  Bruno Haible  <bruno@clisp.org>
58842                 * xallocsa.h: Add extern "C" for C++.
58844         2006-05-17  Bruno Haible  <bruno@clisp.org>
58846                 Cygwin portability.
58847                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
58849         2006-04-30  Bruno Haible  <bruno@clisp.org>
58851                 * progreloc.c: Include <mach-o/dyld.h> if available.
58852                 (find_executable): Use _NSGetExecutablePath when possible.
58854         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
58856                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
58857                 function.
58859         2005-12-29  Bruno Haible  <bruno@clisp.org>
58861                 * progreloc.c (set_program_name_and_installdir): Fix
58862                 compilation error.
58864         2005-12-04  Bruno Haible  <bruno@clisp.org>
58866                 Cygwin portability.
58867                 * progreloc.c: Include <windows.h> also on Cygwin.
58868                 (find_executable): Add support for Cygwin.
58869                 (set_program_name_and_installdir): Handle also platforms with
58870                 nonempty EXEEXT.
58872         2006-07-11  Bruno Haible  <bruno@clisp.org>
58874                 * javacomp.c: Fix a comment.
58875                 Reported by Jim Meyering.
58877         2006-04-30  Bruno Haible  <bruno@clisp.org>
58879                 * javacomp.h (compile_java_class): Add source_version,
58880                 target_version arguments.
58881                 * javacomp.c: Rewritten to choose only a compiler that
58882                 respects the specified source_version and target_version.
58884         2006-06-27  Bruno Haible  <bruno@clisp.org>
58886                 Assume correct S_ISDIR macro.
58887                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
58889         2006-07-22  Bruno Haible  <bruno@clisp.org>
58891                 * javaversion.h: New file, from GNU gettext.
58892                 * javaversion.c: New file, from GNU gettext.
58893                 * javaversion.java: New file, from GNU gettext.
58894                 * javaversion.class: New file, from GNU gettext.
58896         2006-05-17  Bruno Haible  <bruno@clisp.org>
58898                 Cygwin portability.
58899                 * javaexec.c (execute_java_class): Test for jview program
58900                 also on Cygwin.
58902         2006-04-09  Bruno Haible  <bruno@clisp.org>
58904                 * fatal-signal.c: Don't include string.h.
58905                 (at_fatal_signal): Use a copying loop instead of memcpy.
58907         2005-12-04  Bruno Haible  <bruno@clisp.org>
58909                 * csharpexec.c: Add support for 'clix' launcher (untested).
58910                 (execute_csharp_using_sscli): New function.
58911                 (execute_csharp_program): Call it.
58913         2006-06-21  Bruno Haible  <bruno@clisp.org>
58915                 Avoid warnings from recent versions of mcs.
58916                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
58917                 -o, -L, -r any more. Use options documented since mcs-1.0
58918                 instead. Similarly for -g.
58920         2005-07-09  Bruno Haible  <bruno@clisp.org>
58922                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
58923                 add a .dll suffix.
58924                 Reported by Mark Junker <mjscod@gmx.de>.
58926         2006-06-17  Bruno Haible  <bruno@clisp.org>
58928                 * config.charset: Update for NetBSD 3.0.
58930         2006-05-17  Bruno Haible  <bruno@clisp.org>
58932                 Cygwin portability.
58933                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
58935         2006-05-16  Bruno Haible  <bruno@clisp.org>
58937                 * localcharset.c [CYGWIN]: Include <windows.h>.
58938                 (get_charset_aliases): For Cygwin, return the same CPxxx
58939                 aliases list as under WIN32.
58940                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
58941                 the environment variables. Fall back to GetACP().
58943         2006-04-05  Bruno Haible  <bruno@clisp.org>
58945                 * config.charset: Update Juan Manuel Guerrero's address.
58947         2005-02-12  Bruno Haible  <bruno@clisp.org>
58949                 * allocsa.h: Add extern "C" for C++.
58951         2005-02-10  Bruno Haible  <bruno@clisp.org>
58953                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
58954                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
58956         2006-07-22  Bruno Haible  <bruno@clisp.org>
58958                 * gettext.h: Update to GNU gettext-0.15.
58960 2006-07-22  Bruno Haible  <bruno@clisp.org>
58962         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
58963         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
58964         lib-prefix.m4, longdouble.m4, ssize_t.m4.
58966 2006-07-21  Eric Blake  <ebb9@byu.net>
58968         * modules/stdlib-safer: New file.
58969         * MODULES.html.sh (File stream based Input/Output): Add
58970         stdlib-safer.
58972 2006-07-21  Eric Blake  <ebb9@byu.net>
58974         * lib/stdlib-safer.h: New file from coreutils, required by
58975         stdlib--.h.
58977 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
58979         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
58981 2006-07-20  Bruno Haible  <bruno@clisp.org>
58983         * gnulib-tool: Recognize new option --assume-autoconf.
58984         (autoconf_minversion): New variable.
58985         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
58987 2006-07-20  Bruno Haible  <bruno@clisp.org>
58989         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
58991 2006-07-19  Derek R. Price  <derek@ximbiot.com>
58993         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
58994         Reindent and repaginate.
58996 2006-07-19  Derek Price  <derek@ximbiot.com>
58998         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
58999         Correct grammar.
59001 2006-07-17  Bruno Haible  <bruno@clisp.org>
59003         * modules/list: New file.
59004         * modules/array-list: New file.
59005         * modules/carray-list, modules/carray-list-tests: New files.
59006         * modules/linked-list, modules/linked-list-tests: New files.
59007         * modules/avltree-list, modules/avltree-list-tests: New files.
59008         * modules/rbtree-list, modules/rbtree-list-tests: New files.
59009         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
59010         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
59011         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
59012         * modules/oset: New file.
59013         * modules/array-oset: New file.
59014         * modules/avltree-oset, modules/avltree-oset-tests: New files.
59015         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
59016         * tests/test-carray_list.c: New file.
59017         * tests/test-linked_list.c: New file.
59018         * tests/test-avltree_list.c: New file.
59019         * tests/test-rbtree_list.c: New file.
59020         * tests/test-linkedhash_list.c: New file.
59021         * tests/test-avltreehash_list.c: New file.
59022         * tests/test-rbtreehash_list.c: New file.
59023         * tests/test-avltree_oset.c: New file.
59024         * tests/test-rbtree_oset.c: New file.
59025         * MODULES.html.sh (Container data structures): New section.
59027 2006-07-17  Bruno Haible  <bruno@clisp.org>
59029         * m4/gl_list.m4: New file.
59031 2006-07-17  Bruno Haible  <bruno@clisp.org>
59033         * lib/gl_list.h: New file.
59034         * lib/gl_list.c: New file.
59035         * lib/gl_array_list.h: New file.
59036         * lib/gl_array_list.c: New file.
59037         * lib/gl_carray_list.h: New file.
59038         * lib/gl_carray_list.c: New file.
59039         * lib/gl_linked_list.h: New file.
59040         * lib/gl_linked_list.c: New file.
59041         * lib/gl_anylinked_list1.h: New file.
59042         * lib/gl_anylinked_list2.h: New file.
59043         * lib/gl_avltree_list.h: New file.
59044         * lib/gl_avltree_list.c: New file.
59045         * lib/gl_anyavltree_list1.h: New file.
59046         * lib/gl_anyavltree_list2.h: New file.
59047         * lib/gl_rbtree_list.h: New file.
59048         * lib/gl_rbtree_list.c: New file.
59049         * lib/gl_anyrbtree_list1.h: New file.
59050         * lib/gl_anyrbtree_list2.h: New file.
59051         * lib/gl_anytree_list1.h: New file.
59052         * lib/gl_anytree_list2.h: New file.
59053         * lib/gl_linkedhash_list.h: New file.
59054         * lib/gl_linkedhash_list.c: New file.
59055         * lib/gl_anyhash_list1.h: New file.
59056         * lib/gl_anyhash_list2.h: New file.
59057         * lib/gl_avltreehash_list.h: New file.
59058         * lib/gl_avltreehash_list.c: New file.
59059         * lib/gl_rbtreehash_list.h: New file.
59060         * lib/gl_rbtreehash_list.c: New file.
59061         * lib/gl_anytreehash_list1.h: New file.
59062         * lib/gl_anytreehash_list2.h: New file.
59064         * lib/gl_oset.h: New file.
59065         * lib/gl_oset.c: New file.
59066         * lib/gl_array_oset.h: New file.
59067         * lib/gl_array_oset.c: New file.
59068         * lib/gl_avltree_oset.h: New file.
59069         * lib/gl_avltree_oset.c: New file.
59070         * lib/gl_rbtree_oset.h: New file.
59071         * lib/gl_rbtree_oset.c: New file.
59072         * lib/gl_anytree_oset.h: New file.
59074 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
59076         * m4/mkancesdirs.m4: New file.
59077         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
59078         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
59079         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
59080         it.
59082 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
59084         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
59085         * lib/mkancesdirs.h: New files.
59086         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
59087         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
59088         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
59089         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
59090         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
59091         callers changed.  Revamp internals significantly, by not
59092         attempting to create directories that are temporarily more
59093         permissive than the final results.  Do not attempt to use
59094         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
59095         This removes some race conditions, fixes some bugs, and simplifies
59096         things.  Use new dirchownmod function to do owner and mode changes.
59097         * lib/mkdir-p.h: Likewise.
59098         * lib/modechange.c (octal_to_mode): New function.
59099         (struct mode_change): New member mentioned.
59100         (make_node_op_equals): New arg mentioned.  All callers changed.
59101         (mode_compile): Keep track of which mode bits the user has explicitly
59102         mentioned.
59103         (mode_adjust): New arg DIR, so that we implement the X op correctly.
59104         New arg PMODE_BITS, to keep track of which mode bits the user
59105         mentioned; it treats S_ISUID and S_ISGID speciall.
59106         All callers changed.
59107         * lib/modechange.h: Likewise.
59109 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
59111         * MODULES.html.sh: Add mkancestors.
59112         * modules/mkancesdirs: New module.
59113         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
59114         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
59115         The chdir-safer and afs files are now orphans; I'll remove them
59116         unless someone speaks up.
59117         Add lib/dirchownmod.c, lib/dirchownmod.h.
59118         (Depends-on): Remove alloca, chown, save-cwd, dirname.
59119         Add lchown, mkancesdirs.
59120         (Maintainer): Add self.
59122 2006-07-15  Karl Berry  <karl@gnu.org>
59124         * gnulib-tool: help message wording/arrangement.
59126 2006-07-14  Simon Josefsson  <jas@extundo.com>
59128         * doc/gnulib.texi (Libtool and Windows): New section.
59130 2006-07-12  Simon Josefsson  <jas@extundo.com>
59132         * modules/gendocs (License): Fix license, approved by Karl.
59134 2006-07-12  Eric Blake  <ebb9@byu.net>
59136         * MODULES.html.sh: Add gendocs.
59138 2006-07-11  Eric Blake  <ebb9@byu.net>
59140         * modules/fdl: New module, to install doc/fdl.texi.
59141         * MODULES.html.sh: Add new section for documentation modules.
59142         * gnulib-tool: Avoid space-tab.
59143         (--doc-base): New option, to manage files from doc.
59145 2006-07-11  Eric Blake  <ebb9@byu.net>
59147         * m4/absolute-header.m4: Fix comments to match recent change.
59149 2006-07-11  Eric Blake  <ebb9@byu.net>
59151         * gnulib-tool: List --doc-base before --tests-base.
59153 2006-07-11  Derek R. Price  <derek@ximbiot.com>
59155         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
59157 2006-07-11  Bruno Haible  <bruno@clisp.org>
59159         * README: Mention where to put documentation.
59161 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59163         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
59165 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
59167         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
59168         to stdint.m4.
59170 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
59172         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
59173         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
59174         "no/such/file/stdint.h" when there is no such file, so that
59175         the resulting C code can be parsed by dodgy compilers.
59176         Problems reported by Bob Proulx.
59178 2006-07-10  Derek R. Price  <derek@ximbiot.com>
59180         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
59181         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
59182         macros into the GNU _D_EXACT_NAMLEN.
59183         * lib/savedir.c:  Likewise.
59184         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
59186 2006-07-10  Derek R. Price  <derek@ximbiot.com>
59187         and Paul Eggert  <eggert@cs.ucla.edu>
59189         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
59190         * m4/savedir.m4:
59191         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
59192         macros into the GNU _D_EXACT_NAMLEN.
59194 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
59196         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
59197         around the absolute name, to work around a problem with the HP-UX
59198         11.23 native C compiler, reported by Bob Proulx.
59200 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
59202         * doc/maintain.texi, make-stds.texi: Sync from
59203         <http://savannah.gnu.org/projects/gnustandards>.
59205 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
59207         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
59209 2006-07-09  Jim Meyering  <jim@meyering.net>
59211         * m4/glob.m4: Remove a doubled word in a comment.
59213 2006-07-09  Jim Meyering  <jim@meyering.net>
59215         * lib/argp-pv.c: Remove a doubled word in a comment.
59216         * lib/check-version.c (check_version): Likewise.
59217         * lib/javacomp.c (compile_java_class): Likewise.
59219 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
59221         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
59222         for the benefit of people using Autoconf 2.60.  If you want to
59223         support older Autoconf versions you can copy m4/onceonly_2_57.m4
59224         (or m4/onceonly.m4, if pre-2.57) manually.
59226 2006-07-08  Jim Meyering  <jim@meyering.net>
59228         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
59229         comment.
59230         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
59231         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
59232         comment.
59234 2006-07-08  Jim Meyering  <jim@meyering.net>
59236         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
59238 2006-07-07  Simon Josefsson  <jas@extundo.com>
59240         * tests/test-crc.c: Change expected crc value, the test vector
59241         were probably computed using the old broken crc.c?
59243 2006-07-06  Simon Josefsson  <jas@extundo.com>
59245         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
59246         now the canonical place for the M4 file).
59248         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
59249         from the sys_socket dependency now.
59251         * modules/inet_pton (Files): Ditto.
59253         * modules/inet_ntop (Files): Ditto.
59255 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
59257         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
59258         not gl_PREREQ_GETUSERSHELL.
59260 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59262         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
59263         with only one argument, for Autoconf 2.60.
59264         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
59265         expand to nothing, so add a shell command to avoid syntax error.
59266         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
59268 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59270         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
59272 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
59274         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
59275         no longer needed.  Check for isblank decl.
59276         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
59277         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
59278         of existence.
59280 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
59282         * lib/getloadavg.c: Use __VMS, not VMS.
59283         * lib/getopt.c: Likewise.
59284         * lib/getpagesize.h: Likewise.
59285         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
59286         and probably does not work.
59288 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
59290         * lib/.cppi-disable: Add wcwidth.
59291         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
59292         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
59293         (ISGRAPH): Remove.  All uses changed to isgraph.
59294         (FOLD) [!defined _LIBC]: Remove special case.
59295         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
59296         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
59297         HAVE_ISBLANK.
59298         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
59299         case.
59301 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
59303         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
59304         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
59305         brackets.  Other minor changes to suppress some compiler
59306         warnings.
59308 2006-07-06  Derek R. Price  <derek@ximbiot.com>
59309         and Paul Eggert  <eggert@cs.ucla.edu>
59311         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
59312         of invoking obsolescent AC_HEADER_DIRENT macro.
59313         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
59314         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
59315         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
59316         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
59317         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
59318         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
59319         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
59320         * m4/readdir.m4: Remove; no longer needed.
59322 2006-07-06  Derek R. Price  <derek@ximbiot.com>
59323         and Paul Eggert  <eggert@cs.ucla.edu>
59325         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
59326         Don't worry about this obsolete case any more.
59327         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
59328         directories.
59329         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
59330         worry about this obsolete case any more.
59331         * lib/fts.c: Likewise.
59332         * lib/getcwd.c: Likewise.
59333         * lib/glob.h: Likewise.
59334         * lib/savedir.c: Likewise.
59336 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
59338         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
59339         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
59340         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
59341         needed.
59342         All uses removed.
59343         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
59344         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
59345         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
59346         needed.
59347         * m4/getdate.m4 (gl_GETDATE): Likewise.
59348         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
59349         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
59350         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
59351         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
59352         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
59353         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
59354         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
59355         needed.
59357 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
59359         * lib/memcasecmp.c: Include <limits.h>.
59360         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
59361         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
59362         Don't assume isdigit succeeds only on '0' through '9'.
59364 2006-07-05  Eric Blake  <ebb9@byu.net>
59366         * modules/getaddrinfo (Depends-on): Add snprintf.
59368 2006-07-05  Eric Blake  <ebb9@byu.net>
59370         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
59371         to avoid 'header present but could not be compiled' on cygwin.
59373 2006-07-05  Eric Blake  <ebb9@byu.net>
59375         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
59376         missing from netdb.h.
59377         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
59379 2006-07-05  Derek R. Price  <derek@ximbiot.com>
59381         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
59382         no longer needed.
59383         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
59384         * m4/getdate.m4 (gl_GETDATE): Likewise.
59385         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
59386         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
59387         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
59388         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
59389         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
59391 2006-07-05  Derek R. Price  <derek@ximbiot.com>
59393         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
59394         All uses of is_space replaced by isspace.
59395         * lib/exit.h: Don't talk about STDC_HEADERS.
59396         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
59397         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
59398         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
59399         replaced by isprint etc.
59400         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
59401         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
59402         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
59403         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
59404         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
59405         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
59407 2006-07-05  Bruno Haible  <bruno@clisp.org>
59409         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
59410         the function exists, before testing against AIX.
59411         Reported by Martin Lambers <marlam@marlam.de>.
59413 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
59415         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
59416         From Mark D. Baushke.
59418 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
59420         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
59421         to the absolute name, not just one, to bypass Sun C 5.8's
59422         "warning: #include of /usr/include/... may be non-portable".
59424 2006-07-04  Eric Blake  <ebb9@byu.net>
59426         * modules/dirname-tests: New test module.
59427         * tests/test-dirname.c: New file, replacing dirname.c
59428         TEST_DIRNAME section that was recently deleted.
59430 2006-07-04  Bruno Haible  <bruno@clisp.org>
59432         Assume ANSI C header files and <ctype.h> functions.
59433         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
59434         (mbsnwidth): Use isprint, iscntrl instead.
59436 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
59438         Merge from coreutils.
59439         * MODULES.html.sh: Add xstrtold.
59440         * modules/xstrtold: New file.
59441         * modules/cycle-check (Files): Add lib/same-inode.h.
59442         * modules/dirname (Files): Add m4/double-slash-root.m4.
59443         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
59444         * modules/mkdir-p (Files): Add lib/same-inode.h.
59445         * modules/same (Files): Add lib/same-inode.h.
59447 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
59449         * m4/absolute-header.m4: Renamed from full-header-path.m4.
59450         This is to keep the terminology clean; POSIX talks about
59451         "absolute pathnames", not "full pathnames", but the GNU
59452         Coding Standards say to use "path" for something else;
59453         so use "absolute" to keep both sides happy.
59454         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
59455         Set gl_absolute_header, not gl_full_header_path.
59456         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
59457         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
59458         All uses changed.
59460         Merge from coreutils.
59462         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
59464         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
59465         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
59466         want to require the building of c-strtod.o.
59467         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
59468         needs -lm directly.
59469         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
59471         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
59473         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
59474         --as-needed option if available.  Problem reported by Albert Chin in
59475         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
59476         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
59477         cc merely issues a bunch of annoying warnings for --as-needed
59478         (this problem was reported by Bob Proulx).  Also, try linking with
59479         -lm to detect a bug in binutils 2.16 (this problem was reported
59480         by Ralf Wildenhues).
59482         2006-06-18  Jim Meyering  <jim@meyering.net>
59484         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
59485         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
59486         macro.
59487         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
59488         also check for glibc-2.4's abort-inducing bug.
59490         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
59491         Low-probability clean-up should be to use rmdir to get rid of
59492         the just-created directory, not unlink.
59494         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
59495         configure fail, and request a bug report to inform us about it.
59496         Add a comment that, barring reports to the contrary, in 2007 we'll
59497         assume ftruncate is universally available.
59499         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
59501         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
59503         2006-03-12  Jim Meyering  <jim@meyering.net>
59505         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
59506         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
59507         * m4/same.m4 (gl_SAME): Likewise.
59508         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
59510         2006-03-11  Eric Blake  <ebb9@byu.net>
59512         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
59513         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
59514         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
59515         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
59517 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
59519         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
59520         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
59521         reported by Mark D. Baushke, one in
59522         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
59524         Merge from coreutils.
59526         * lib/.cppi-disable: Add stdint_.h.
59527         * lib/.cvsignore: Add stdint.h.
59529         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
59531         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
59532         both double and long double versions.
59533         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
59534         * lib/xstrtold.c: New file.
59535         * lib/xstrtod.h (xstrtold): New decl.
59537         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
59539         * lib/filemode.c (setst): Remove.
59540         (strmode): Rewrite to avoid setst.  This makes the code shorter,
59541         (arguably) clearer, and the generated code is a bit smaller on my
59542         Debian GNU/Linux stable x86 host.
59544         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
59546         * lib/filemode.c: Include "filemode.h" first, to test the interface.
59547         Assume that filemode.h includes sys/types.h and sys/stat.h.
59548         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
59549         (ftypelet): Reorder to put common cases first, for efficiency.
59550         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
59551         to do 'M'.
59552         (strmode): Renamed from mode_string, and now stores 12 bytes instead
59553         of 10, for compatibility with FreeBSD.  All callers changed.
59554         (filemodestring): Now stores 12 bytes instead of 10, and sets file
59555         types that can't be deduced solely from st_mode.  First arg is now a
59556         const pointer.
59557         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
59558         (strmode): Renamed from mode_string.
59559         (filemodestring): New decl.
59560         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
59561         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
59562         needed.
59563         (S_ISPORT, S_ISWHT): New macros, if not already defined.
59565         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
59567         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
59568         fsusage.h now does that.  Include fsusage.h first, to test interface.
59569         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
59570         at most one method (the old code could have generated decls that
59571         didn't conform to C89, not that this was ever exercised).
59572         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
59574         2006-03-19  Jim Meyering  <jim@meyering.net>
59576         Work even in a chroot where d_ino values for entries in "/"
59577         don't match the stat.st_ino values for the same names.
59578         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
59579         number, iterate through all entries again, using lstat instead.
59580         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
59581         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
59583         * lib/getcwd.c (__getcwd): Clarify a comment.
59584         Use memcpy in place of a call to strcpy.
59586         2006-03-12  Jim Meyering  <jim@meyering.net>
59588         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
59589         matches that of the current directory (which we're about to chdir ".."
59590         out of), then save the dev-ino of the parent, instead.
59592         * lib/same-inode.h (SAME_INODE): New file/macro.
59593         * lib/chdir-safer.c (SAME_INODE): Remove definition.
59594         Include "same-inode.h", instead.
59595         * lib/same.c: Likewise.
59596         * lib/cycle-check.h: Include "same-inode.h".
59597         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
59598         * lib/cycle-check.c (SAME_INODE): Remove definition.
59599         * lib/root-dev-ino.h: Include "same-inode.h".
59601         2006-03-11  Eric Blake  <ebb9@byu.net>
59603         * lib/same.c (same_name): s/base_name/last_component/
59604         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
59605         * lib/filenamecat.c (file_name_concat): Likewise.
59607         2006-03-11  Eric Blake  <ebb9@byu.net>,
59608                     Paul Eggert  <eggert@cs.ucla.edu>
59610         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
59611         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
59612         drive prefix.
59613         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
59614         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
59615         (last_component): New method.
59616         * lib/dirname.c (dir_len): Determine when drive letters need a
59617         subsequent slash.  Preserve // when it is special.
59618         (dir_name): Don't append dot when drive letter is absolute.
59619         [TEST_DIRNAME]: Move into a full-blown gnulib test.
59620         * lib/basename.c (base_name): New semantics - malloc the result.
59621         Preserve // when it is special.  Preserve relative files that look
59622         like drive letters.
59623         (base_len): Preserve // when it is special.
59624         (last_component): New method, similar to old base_name semantics.
59625         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
59626         base_name.  Strip redundant slashes from ///.
59628 2006-07-03  Jim Meyering  <jim@meyering.net>
59630         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
59631         macro is used before the first cycle_check call.
59633 2006-07-03  Eric Blake  <ebb9@byu.net>
59635         * modules/dirname (Depends-on): Add xstrndup.
59637 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
59639         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
59640         test cases, so that config.log is a bit easier to follow.
59642 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
59644         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
59645         both are 64 bits, since this seems to be the tradition, and this
59646         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
59647         we ever run into a host that prefers long long to long in this
59648         case, we'll need another configure-time test.  Problem reported by
59649         Jim Meyering.
59651 2006-07-02  Eric Blake  <ebb9@byu.net>
59653         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
59655 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
59657         * modules/inttypes (Depends-on): No longer depends on stdint.
59658         * modules/stdint (Description): Say more about assumptions.
59659         Say that the fast types might differ.  Say macros are used.
59660         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
59661         (Makefile.am): Revise list of substituted symbols to match
59662         new stdint.m4.
59663         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
59664         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
59665         * tests/test-stdint.c (verify_same_types)
59666         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
59667         the code conforms to C99/C89.
59668         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
59669         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
59671 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
59673         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
59674         but fix a bug, by requiring at least 64 bits.
59675         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
59676         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
59677         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
59678         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
59680         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
59681         changes.  Make 2.59 a prerequisite.  Check and substitute for
59682         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
59683         inttypes.h.  Do not use special include files; just use the
59684         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
59685         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
59686         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
59687         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
59688         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
59689         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
59690         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
59691         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
59692         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
59693         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
59694         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
59695         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
59696         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
59697         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
59698         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
59699         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
59700         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
59701         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
59702         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
59703         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
59704         WINT_MAX.  Check for C99 conformance more strictly, by detecting
59705         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
59706         not check for things that C99 does not require, e.g., int8_t.  If
59707         a test isn't needed unless <stdint.h> isn't working, and is
59708         unlikely to be needed for any other reason, then don't do it
59709         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
59710         size_t, since we assume C89 freestanding at least.  Do not check
59711         for sig_atomic_t, wchar_t, or wint_t, since the code now does
59712         the right thing even if the types are not defined.  Instead use:
59713         (gl_STDINT_TYPE_PROPERTIES): New macro.
59714         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
59715         testing whether <sys/types.h> clashes, as Autoconf does this for
59716         us now.  All uses removed.
59717         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
59718         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
59719         (gl_CHECK_TYPE_SAME):
59720         Remove; no longer needed.
59721         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
59722         exists, since we'll return 0 anyway in that case.
59723         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
59725 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
59727         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
59728         possible collision with system files.
59729         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
59730         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
59731         WCHAR_MIN and WCHAR_MAX in this case.
59732         (<stddef.h>): Do not include; no longer needed.
59733         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
59734         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
59735         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
59736         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
59737         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
59738         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
59739         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
59740         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
59741         !defined(__c99))]: Include in this case too, since it's harmless
59742         now.
59743         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
59744         dangerous to do so.
59745         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
59746         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
59747         (_STDINT_MIN, _STDINT_MAX): New macros.
59748         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
59749         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
59750         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
59751         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
59752         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
59753         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
59754         macros, not typedefs; this simplifies things quite a bit.
59755         Use long int for all types narrower than int64_t.
59756         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
59757         Define in terms of long long int or int64_t or long int,
59758         not int64_t or int32_t.  This saves some compile-time testing.
59759         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
59760         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
59761         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
59762         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
59763         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
59764         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
59765         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
59766         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
59767         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
59768         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
59769         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
59770         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
59771         undef any previous version and define our own version, for
59772         simplicity and consistency with the new macros for types.
59773         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
59774         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
59775         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
59776         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
59777         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
59778         @WINT_T_SUFFIX@ to keep things simple here.
59779         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
59780         Simplify by assuming typical 8/16/32/64 host, since we're
59781         already doing that elsewhere anyway.
59782         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
59783         and assume long long int is 64 bits if available.  This
59784         speeds up 'configure'.
59786 2006-07-01  Eric Blake  <ebb9@byu.net>
59788         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
59789         Reported by Andreas Buening.
59791 2006-07-01  Eric Blake  <ebb9@byu.net>
59793         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
59795 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
59797         * lib/getaddrinfo.c: fixed typo
59799 2006-06-29  Jim Meyering  <jim@meyering.net>
59801         * modules/strftime (Maintainer): Add my name, since with the
59802         FPRINTFTIME changes strftime.c has forked from glibc.
59804 2006-06-29  Eric Blake  <ebb9@byu.net>
59806         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
59808 2006-06-29  Eric Blake  <ebb9@byu.net>
59810         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
59812 2006-06-29  Eric Blake  <ebb9@byu.net>
59814         * lib/stat_.h: New file.
59816 2006-06-29  Eric Blake  <ebb9@byu.net>
59818         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
59819         unused static function.
59821 2006-06-29  Eric Blake  <ebb9@byu.net>
59823         * doc/functions.texi (Function Portability): Document missing lstat
59824         on mingw.
59826 2006-06-29  Eric Blake  <ebb9@byu.net>
59828         * MODULES.html.sh: Add sys_stat.
59829         * modules/sys_stat: New module.
59830         * modules/mkstemp (Depends-on): Add sys_stat.
59832 2006-06-29  Derek R. Price  <derek@ximbiot.com>
59834         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
59836 2006-06-29  Derek R. Price  <derek@ximbiot.com>
59838         * m4/c-bs-a.m4: Removed.
59840 2006-06-29  Derek R. Price  <derek@ximbiot.com>
59842         * lib/strftime.c: Assume strftime() exists.
59844 2006-06-29  Derek Price  <derek@ximbiot.com>
59846         * modules/c-bs-a: Removed - \a is C89.
59847         * MODULES.html.sh: Remove c-bs-a.
59849 2006-06-29  Bruno Haible  <bruno@clisp.org>
59851         * modules/wcwidth (License): Change to LGPL.
59853 2006-06-28  Simon Josefsson  <jas@extundo.com>
59855         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
59856         on _WIN32.
59858         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
59859         getnameinfo.
59861 2006-06-28  Simon Josefsson  <jas@extundo.com>
59863         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
59865 2006-06-28  Simon Josefsson  <jas@extundo.com>
59867         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
59868         functions there.  It will succeed on Windows XP, but on Windows
59869         2000 and (presumably) earlier, it will fail, and use the internal
59870         re-implementation.
59871         (use_win32_p): New function.
59872         (getaddrinfo): Use strtoul on servname, to support numeric ports.
59873         Support AI_NUMERICSERV to disable getservbyname.
59874         (getnameinfo): New function, only supports
59875         NI_NUMERICHOST|NI_NUMERICSERV for now.
59877         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
59878         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
59879         getnameinfo.
59881 2006-06-28  Eric Blake  <ebb9@byu.net>
59883         * modules/wcwidth: New file.
59884         * modules/mbchar (Depends-on): Add wcwidth.
59885         * modules/mbswidth (Depends-on): Add wcwidth.
59886         * MODULES.html.sh: Add wcwidth.
59888 2006-06-28  Eric Blake  <ebb9@byu.net>
59890         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
59891         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
59893 2006-06-28  Eric Blake  <ebb9@byu.net>
59895         * lib/xvasprintf.h: Fix comments.
59897 2006-06-28  Eric Blake  <ebb9@byu.net>
59899         * lib/mbchar.h (wcwidth): Include wcwidth.h.
59900         * lib/mbswidth.c (wcwidth): Move from here...
59901         * lib/wcwidth.h: ...to this new file.
59903 2006-06-28  Derek R. Price  <derek@ximbiot.com>
59905         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
59907         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
59908         it's obsolete.
59909         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
59911 2006-06-28  Derek R. Price  <derek@ximbiot.com>
59913         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
59914         Autoconf 2.60 says this stuff was obsolete.
59916 2006-06-28  Bruno Haible  <bruno@clisp.org>
59918         * modules/wcwidth (Files): Add m4/wchar_t.m4.
59920 2006-06-28  Bruno Haible  <bruno@clisp.org>
59922         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
59923         gt_TYPE_WCHAR_T.
59925 2006-06-28  Bruno Haible  <bruno@clisp.org>
59927         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
59928         declaration for wcwidth.
59929         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
59931 2006-06-28  Bruno Haible  <bruno@clisp.org>
59933         * lib/mkdtemp.c [MINGW]: Include <io.h>.
59934         (mkdir): Define using _mkdir.
59936 2006-06-28  Bruno Haible  <bruno@clisp.org>
59938         * lib/getaddrinfo.h: Fix POSIX URL.
59939         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
59940         _WIN32.
59941         (use_win32_p): Make static.
59942         (getaddrinfo): Reject service name if it is empty or does not consist
59943         solely of decimal digits, or if its value is > 65535.
59944         (getnameinfo): Remove useless casts.
59946 2006-06-27  Simon Josefsson  <jas@extundo.com>
59948         * modules/sys_select: New file, suggested by Bruno Haible, Paul
59949         Eggert and Martin Lambers.
59951 2006-06-27  Simon Josefsson  <jas@extundo.com>
59953         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
59954         Eggert and Martin Lambers.
59956 2006-06-27  Bruno Haible  <bruno@clisp.org>
59958         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
59959         result to 0, not to empty.
59960         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
59962 2006-06-27  Bruno Haible  <bruno@clisp.org>
59964         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
59966 2006-06-26  Simon Josefsson  <jas@extundo.com>
59968         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
59969         present.
59971 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
59973         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
59974         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
59975         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
59977 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
59979         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
59981 2006-06-26  Bruno Haible  <bruno@clisp.org>
59983         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
59985 2006-06-26  Bruno Haible  <bruno@clisp.org>
59987         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
59989 2006-06-26  Bruno Haible  <bruno@clisp.org>
59991         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
59992         SGI C compiler in pre-C99 mode.
59993         Suggested by Mark D. Baushke and Larry Jones.
59995 2006-06-26  Bruno Haible  <bruno@clisp.org>
59997         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
59998         WCHAR_MAX.
59999         Reported by Mark D. Baushke and Larry Jones.
60001 2006-06-26  Bruno Haible  <bruno@clisp.org>
60003         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
60004         in pre-C99 mode.
60005         Suggested by Mark D. Baushke and Larry Jones.
60007 2006-06-23  Simon Josefsson  <jas@extundo.com>
60008             Bruno Haible  <bruno@clisp.org>
60010         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
60011         Emit mostlyclean-local rule.
60012         (func_emit_tests_Makefile_am): Likewise.
60013         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
60015 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
60017         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
60019 2006-06-23  Bruno Haible  <bruno@clisp.org>
60021         * tests/test-stdint.c: Update to match ISO C 99 Technical
60022         Corrigendum 1.
60024 2006-06-23  Bruno Haible  <bruno@clisp.org>
60026         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
60028 2006-06-23  Bruno Haible  <bruno@clisp.org>
60030         * lib/stdint_.h: Treat IRIX like OpenBSD.
60032 2006-06-23  Bruno Haible  <bruno@clisp.org>
60034         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
60035         ISO C 99 Technical Corrigendum 1.
60037 2006-06-22  Simon Josefsson  <jas@extundo.com>
60039         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
60040         MinGW.
60042 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
60044         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
60045         needed.  Some compiler complained about some of them.  Problem reported
60046         by Larry Jones in
60047         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
60049 2006-06-21  Simon Josefsson  <jas@extundo.com>
60051         * tests/test-getaddrinfo.c: New file.
60053         * modules/getaddrinfo-tests: New file.
60055         * MODULES.html.sh: Add inet_pton.
60057         * modules/inet_pton: New file.
60059 2006-06-21  Simon Josefsson  <jas@extundo.com>
60061         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
60062         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
60063         of using the (limited) gnulib implementation on Windows XP.
60065         * m4/inet_pton.m4: New file.
60067 2006-06-21  Simon Josefsson  <jas@extundo.com>
60069         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
60070         variable.
60072         * lib/socket_.h: Don't define WINVER.
60074         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
60075         slightly modified to work in gnulib.
60077 2006-06-21  Simon Josefsson  <jas@extundo.com>
60079         * doc/gnulib.texi (Windows sockets): Add.
60081 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
60083         * lib/read-file.c (fread_file): Start with buffer allocation of
60084         0 bytes rather than 1 byte; this simplifies the code.
60085         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
60086         code to free buffer and save/restore errno.
60087         (internal_read_file): Remove unused local.
60089 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
60091         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
60092         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
60093         Problem reported by Denis Excoffier in
60094         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
60096 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60098         * modules/sys_socket, modules/socklen: Include sys/types since
60099         FreeBSD 4.x's sys/socket.h needs it.
60101 2006-06-19  Simon Josefsson  <jas@extundo.com>
60103         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
60105 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
60107         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
60109 2006-06-19  Bruno Haible  <bruno@clisp.org>
60111         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
60112         and FULL_PATH_INTTYPES_H in angle brackets.
60113         Reported by Mark D. Baushke <mdb@gnu.org>.
60115 2006-06-17  Eric Blake  <ebb9@byu.net>
60117         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
60118         errno.
60120 2006-06-17  Bruno Haible  <bruno@clisp.org>
60122         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
60123         <sys/inttypes.h>.
60125 2006-06-17  Bruno Haible  <bruno@clisp.org>
60127         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
60128         whether errno is declared. Assume <errno.h> declares errno.
60130 2006-06-17  Bruno Haible  <bruno@clisp.org>
60132         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
60134 2006-06-17  Bruno Haible  <bruno@clisp.org>
60136         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
60137         problem on Solaris 2.5.1.
60139 2006-06-16  Eric Blake  <ebb9@byu.net>
60141         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
60142         * lib/unicodeio.c [!defined errno]: Likewise.
60143         * lib/strtol.c [!defined errno]: Likewise.
60144         * lib/strtod.c [!defined errno]: Likewise.
60146 2006-06-15  Eric Blake  <ebb9@byu.net>
60148         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
60150 2006-06-15  Eric Blake  <ebb9@byu.net>
60152         * config/srclist.txt (ssize_t.m4): Lose sync.
60154 2006-06-15  Bruno Haible  <bruno@clisp.org>
60156         * modules/stdint (Files): Include m4/full-header-path.m4,
60157         m4/size_max.m4, m4/wchar_t.m4.
60158         (Makefile.am): Many more substitutions.
60159         * modules/stdint-tests: New file.
60160         * tests/test-stdint.c: New file.
60162 2006-06-15  Bruno Haible  <bruno@clisp.org>
60164         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
60165         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
60166         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
60167         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
60168         gl_CHECK_TYPE_SAME): New macros.
60170 2006-06-15  Bruno Haible  <bruno@clisp.org>
60172         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
60174 2006-06-15  Bruno Haible  <bruno@clisp.org>
60176         * lib/stdint_.h: Rewritten to be fully auto-configured.
60177         Fixes bug on HP-UX/IA64.
60179 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
60181         * lib/getdate.y (__attribute__): Don't define if already defined.
60182         Problem reported by Larry Jones.
60183         * lib/utimens.c (__attribute__): Likewise.
60185 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
60187         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
60188         reported by Andreas Schwab.
60190 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60191             Bruno Haible  <bruno@clisp.org>
60193         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
60194         check for the declaration of strnlen and a run test that exposes the
60195         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
60196         rpl_strndup.
60198 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60199             Bruno Haible  <bruno@clisp.org>
60201         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
60203 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60205         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
60206         compile test, for Tru64 4.0D.
60208 2006-05-28  Karl Berry  <karl@gnu.org>
60210         * config/srclist.txt (printf-args.c): lose sync.
60212 2006-05-26  Martin Lambers  <marlam@marlam.de>
60214         * lib/getpass.c: Updates the test for the native W32 API, and adds
60215         missing includes, thus fixing compilation warnings.
60217 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
60219         * lib/exclude.c (exclude_fnmatch): New function.
60220         (excluded_file_name): Call exclude_fnmatch.
60221         * lib/exclude.h (excluded_file_name): New prototype
60223 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
60225         * lib/tempname.c (small_open, large_open): New macros.
60226         (__open, __open64) [!_LIBC]: Remove.
60227         (__gen_tempname): Use small_open and large_open instead of __open
60228         and __open64.  This fixes a portability bug on HP-UX 11.11i
60229         reported by Simon Wing-Tang in
60230         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
60232 2006-05-24  Bruno Haible  <bruno@clisp.org>
60234         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
60235         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
60236         Reported by Thorsten Maerz <torte@netztorte.de> via
60237         Aaron Stone <aaron@serendipity.cx>.
60239 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
60241         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
60242         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
60243         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
60244         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
60245         not really conditional on the cache.
60246         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
60248 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
60250         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
60251         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
60252         (my_usleep): Don't mishandle maximum value.
60254 2006-05-19  Jim Meyering  <jim@meyering.net>
60256         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
60258 2006-05-17  Bruno Haible  <bruno@clisp.org>
60260         Cygwin portability.
60261         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
60263 2006-05-17  Bruno Haible  <bruno@clisp.org>
60265         * lib/stdint_.h: Fix recognition of Cygwin.
60267 2006-05-15  Bruno Haible  <bruno@clisp.org>
60269         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
60270         on libtool patch by Ralf Wildenhues.
60272 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
60274         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
60275         test for C99 conformance; (bool) 0.5 is an integer constant
60276         expression, but (bool) -0.5 is not.  Problem reported by Fedor
60277         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
60279 2006-05-11  Simon Josefsson  <jas@extundo.com>
60281         * m4/xvasprintf.m4: Fix obvious typo.
60283 2006-05-11  Jim Meyering  <jim@meyering.net>
60285         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
60286         James Lemley.
60288 2006-05-10  Simon Josefsson  <jas@extundo.com>
60290         * lib/md4.c: Typo fix, update copyright years.
60291         (K1, K2): Don't use L because it turn computations into 64-bit on
60292         64-bit platforms.
60294 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
60296         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
60297         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
60298         unwanted sign propagation, e.g., on hosts with 64-bit int.
60299         There still are some problems with reeelly weird theoretical hosts
60300         (e.g., 33-bit int) but it's not worth worrying about now.
60301         * lib/sha1.c (rol): Likewise.
60302         (K1, K2, K3, K4): Remove unnecessary L suffix.
60304 2006-05-10  Bruno Haible  <bruno@clisp.org>
60306         * lib/des.c: Cast to avoid warnings.
60308 2006-05-09  Bruno Haible  <bruno@clisp.org>
60310         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
60311         (Depends-on): Depend also on xsize, stdarg.
60312         (configure.ac): Add gl_XVASPRINTF.
60314 2006-05-09  Bruno Haible  <bruno@clisp.org>
60316         * m4/xvasprintf.m4: New file.
60318 2006-05-09  Bruno Haible  <bruno@clisp.org>
60320         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
60321         (EOVERFLOW): Define fallback value.
60322         (xstrcat): New function.
60323         (xvasprintf): Recognize the special case of a string concatenation.
60325 2006-05-08  Eric Blake  <ebb9@byu.net>
60327         * gnulib-tool (func_version): Base copyright year on CVS date.
60328         (func_emit_copyright_notice): New function.
60329         (func_emit_lib_Makefile_am): Use it.
60330         (func_emit_tests_Makefile_am): Likewise.
60331         (func_import): Likewise.
60333 2006-05-08  Bruno Haible  <bruno@clisp.org>
60335         * modules/stdarg: New file.
60336         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
60338 2006-05-08  Bruno Haible  <bruno@clisp.org>
60340         * m4/stdarg.m4: New file, from GNU gettext.
60342 2006-05-08  Bruno Haible  <bruno@clisp.org>
60344         * config/srclist.txt (build-aux/config.rpath): different from latest
60345         release.
60347 2006-05-08  Bruno Haible  <bruno@clisp.org>
60349         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
60351 2006-05-05  Jim Meyering  <jim@meyering.net>
60353         * m4/warning.m4: New file, derived from bison's file by the same name.
60355 2006-05-03  Bruno Haible  <bruno@clisp.org>
60357         * lib/stdint_.h: Shorter URL.
60358         * lib/inttypes.h: Likewise.
60360 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
60362         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
60364 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
60366         * lib/verify.h: Document the internals better.  Most of this change
60367         was written by Bruno Haible.
60369 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
60371         * doc/verify.texi: New file, partly based on a proposal by
60372         Bruno Haible.
60374 2006-05-02  Bruno Haible  <bruno@clisp.org>
60376         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
60377         test from here...
60378         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
60380 2006-04-29  Bruno Haible  <bruno@clisp.org>
60382         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
60383         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
60385 2006-04-29  Bruno Haible  <bruno@clisp.org>
60387         * gnulib-tool: Make --update option actually work.
60389 2006-04-29  Bruno Haible  <bruno@clisp.org>
60391         * doc/gcd.texi: New file.
60392         * doc/gnulib.texi: Include it.
60394 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
60396         * lib/getdate.y (get_date): When adding relative date, start with the
60397         initial time, not with the result of the first mktime call.
60399 2006-04-25  Bruno Haible  <bruno@clisp.org>
60401         * gnulib-tool (func_import): Output the include directives in three
60402         blocks, sorted separately.
60403         Reported by Ben Pfaff <blp@cs.stanford.edu>.
60405 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
60407         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
60408         to define main with arguments, for C++.  Reported by Eric Blake.
60409         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
60410         Prefer 'int main ()' to 'int main (void)', for C++.
60411         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
60412         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
60413         for 'main', for C99 and C++.
60415 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
60417         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
60418         Don't assume that exit status -1 is valid.
60419         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
60420         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
60421         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
60422         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
60423         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
60424         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
60425         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
60426         functions can be used without declaring them, or that you can
60427         exit with status -1.
60428         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
60430 2006-04-24  Karl Berry  <karl@gnu.org>
60432         * config/srclist.txt (longdouble.m4): sync lost.
60434 2006-04-24  Eric Blake  <ebb9@byu.net>
60436         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
60438 2006-04-24  Bruno Haible  <bruno@clisp.org>
60440         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
60441         poll() implementation in AIX.
60442         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60444 2006-04-24  Bruno Haible  <bruno@clisp.org>
60446         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
60447         assigned exactly once.
60449 2006-04-23  Claudio Fontana  <claudio@gnu.org>
60450             Bruno Haible  <bruno@clisp.org>
60452         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
60453         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
60454         for AM_CPPFLAGS.
60456 2006-04-23  Bruno Haible  <bruno@clisp.org>
60458         * modules/copy-file: Depend on unistd.
60459         * modules/execute: Likewise.
60460         * modules/fatal-signal: Likewise.
60461         * modules/findprog: Likewise.
60462         * modules/mkdtemp : Likewise.
60463         * modules/pipe: Likewise.
60464         * modules/wait-process: Likewise.
60466 2006-04-23  Bruno Haible  <bruno@clisp.org>
60468         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
60469         condition was already detected.
60470         Reported by Ben Pfaff <blp@cs.stanford.edu>.
60472 2006-04-23  Bruno Haible  <bruno@clisp.org>
60474         * lib/copy-file.c: Include <unistd.h> unconditionally.
60475         * lib/execute.c: Likewise.
60476         * lib/fatal-signal.c: Likewise.
60477         * lib/findprog.c: Likewise.
60478         * lib/mkdtemp.c: Likewise.
60479         * lib/pipe.h: Likewise.
60480         * lib/pipe.c: Likewise.
60481         * lib/wait-process.h: Likewise.
60483 2006-04-23  Bruno Haible  <bruno@clisp.org>
60485         * gnulib-tool (func_usage): Fix --import description. Document
60486         --update.
60487         (func_import): Create temporary file in a temporary directory, if
60488         --dry-run is specified. Silence errors from 'grep' when there are no
60489         m4 files in $m4dir.
60490         (func_create_testdir): Silence errors from 'grep' when there are no
60491         m4 files in $m4dir.
60492         Reported by Karl Berry <karl@freefriends.org>.
60494 2006-04-20  Bruno Haible  <bruno@clisp.org>
60496         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
60497         one argument, so that the code will be portable to Autoconf 2.60.
60498         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
60499         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
60500         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
60502 2006-04-19  Derek Price  <derek@ximbiot.com>
60503             Eric Blake  <ebb9@byu.net>
60505         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
60506         rather than "/full/path.h".  Update comment to match.  Shorten &
60507         generalize m4_translit call via AS_TR_CPP.
60509 2006-04-19  Derek Price  <derek@ximbiot.com>
60510             Eric Blake  <ebb9@byu.net>
60512         * lib/inttypes.h: Correct grammar in comment.
60514 2006-04-18  Derek Price  <derek@ximbiot.com>
60515             Paul Eggert  <eggert@cs.ucla.edu>
60517         * modules/inttypes: New file.
60518         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
60520 2006-04-18  Derek Price  <derek@ximbiot.com>
60521             Paul Eggert  <eggert@cs.ucla.edu>
60523         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
60524         New files.
60526 2006-04-18  Derek Price  <derek@ximbiot.com>
60527             Paul Eggert  <eggert@cs.ucla.edu>
60529         * lib/inttypes.h: New file.
60530         * lib/strtoimax.c: Assume <inttypes.h>.
60532 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
60534         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
60535         isn't mounted.  Problem reported by Kir Kolyshkin.
60537 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
60539         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
60540         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
60541         Derek R. Price.
60542         * lib/regex.h (RE_DUP_MAX): Update comment to match current
60543         implementation.
60545 2006-04-12  Eric Blake  <ebb9@byu.net>
60547         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
60548         is now done automatically by the corresponding Autoconf macro.
60550 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
60552         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
60553         time_r.h.
60555 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
60557         Merge regex changes from libc, removing some of our
60558         POSIX-conformance changes that were rejected and redoing them in a
60559         less-intrusive way.
60561         * lib/regcomp.c (re_compile_internal, init_dfa):
60562         Length arg is now size_t, not Idx.  All uses changed.
60563         (peek_token): Forward decl now says internal_function.
60564         (__re_error_msgid, __re_error_msgid_idx):
60565         Now static rather than extern with attribute_hidden.
60566         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
60567         For some reason libc prefers K&R style defns for external functions.
60568         (regerror) [!defined _LIBC]: Likewise.
60569         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
60570         (seek_collating_symbol_entry, lookup_collation_sequence_value):
60571         (build_range_exp, build_collating_symbol):
60572         Use K&R-style defn.
60573         (re_compile_fastmap): Use '\0' to memset, not 0.
60574         (utf8_sb_map): Make the calculations more obvious.
60575         (init_dfa, parse_bracket_exp, build_charclass_op):
60576         Call calloc and cast result, as glibc does.
60577         (init_word_char, fetch_token, peek_token, peek_token_bracket):
60578         (build_range_exp, build_collating_symbol):
60579         Now internal functions.
60581         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
60583         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
60584         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
60585         Don't depend on VMS; depend on __VMS instead, for POSIX
60586         namespace cleanness.
60587         (regoff_t): Define to ssize_t, not long int.
60589         Remove the REG_ macros named below.  Instead, make the old names
60590         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
60591         __USE_GNU_REGEX.
60592         (REG_BACKSLASH_ESCAPE_IN_LISTS):
60593         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
60594         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
60595         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
60596         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
60597         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
60598         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
60599         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
60600         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
60601         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
60602         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
60603         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
60604         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
60605         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
60606         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
60607         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
60608         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
60609         (REG_NREGS):
60610         Remove.  All uses replaced by the old RE_* names.
60611         (RE_BACKSLASH_ESCAPE_IN_LISTS):
60612         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
60613         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
60614         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
60615         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
60616         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
60617         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
60618         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
60619         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
60620         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
60621         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
60622         Don't bother having these macros be independent of each others'
60623         values, since they no longer exist in the POSIX name space.
60625         Rename the following member names back to their old names,
60626         unless !__USE_GNU_REGEX.  All uses changed back.
60627         (buffer): Renamed from re_buffer.
60628         (allocated): Renamed from re_allocated.
60629         (used): Renamed from re_used.
60630         (syntax): Renamed from re_syntax.
60631         (fastmap): Renamed from re_fastmap.
60632         (translate): Renamed from re_translate.
60633         (can_be_null): Renamed from re_can_be_null.
60634         (regs_allocated): Renamed from re_regs_allocated.
60635         (fastmap_accurate): Renamed from re_fastmap_accurate.
60636         (no_sub): Renamed from re_no_sub.
60637         (not_bol): Renamed from re_not_bol.
60638         (not_eol): Renamed from re_not_eol.
60639         (newline_anchor): Renamed from re_newline_anchor.
60640         (num_regs): Renamed from rm_num_regs.
60641         (start): Renamed from rm_start.
60642         (end): Renamed from rm_end.
60644         (free_state): Move up a bit.
60646         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
60647         #define to be empty.
60648         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
60649         when that is what is intended.
60650         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
60651         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
60652         (MAX): New macro.
60653         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
60654         All uses changed back to re_malloc, etc.  It's now the caller's
60655         responsibility to check for overflow; all callers changed.
60656         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
60657         (re_x2nrealloc): Remove.
60658         (free_state): Remove decl.
60660         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
60661         (re_set_registers, re_exec):
60662         Use K&R-style defn.
60664         2006-01-31  Roland McGrath  <roland@redhat.com>
60666         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
60667         Reported by Mike Frysinger <vapier@gentoo.org>.
60669         2006-01-15  Andreas Jaeger  <aj@suse.de>
60671         [BZ #1950]
60672         * lib/regex_internal.c (re_string_reconstruct): Adjust for
60673         build_wcs_upper_buffer change.
60674         (build_wcs_upper_buffer): Change return type.
60676         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
60678         * lib/regex_internal.h: Include <stdint.h> if available.
60680         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
60682         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
60684         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
60686         * lib/regcomp.c: Adjust for changed secondary hash function.
60688         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
60690         * lib/regex.h: Pretty printing.
60691         Clean up namespace a bit.
60693         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
60695         * lib/regexec.c (update_cur_sifted_state, check_arrival,
60696         check_arrival_add_next_nodes): Avoid using uninitialized variable.
60698         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
60699                     Ulrich Drepper  <drepper@redhat.com>
60701         [BZ #1302]
60702         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
60703         changed.
60704         (bitset_word_t): Renamed from bitset_word.  All uses changed.
60706         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
60708         [BZ #281]
60709         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
60710         * lib/regcomp.c: Remove unnecessary uses of
60711         unsigned RE_TRANSLATE_TYPE.
60712         * lib/regex_internal.h: Likewise.
60713         * lib/regex_internal.c: Likewise.
60714         * lib/regexec.c: Likewise.
60715         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
60717         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
60719         * lib/regexec.c (find_recover_state): Remove unnecessary
60720         initialization.
60721         (transit_state_bkref): Make DFA a const pointer.
60722         (get_subexp): Likewise.
60723         (check_arrival): Likewise.
60724         (update_cur_sifted_state): Likewise.
60725         (re_search_internal): Likewise.
60726         (prune_impossible_nodes): Likewise.
60727         (acquire_init_state_context): Likewise.
60728         (proceed_next_node): Likewise.
60729         (set_regs): Likewise.
60730         (free_fail_stack_return): Likewise.
60731         (check_arrival_expand_ecl): Mark DFA parameter as const.
60732         (check_arrival_expand_ecl_sub): Likewise.
60733         (check_subexp_limits): Likewise.
60734         (sub_epsilon_src_nodes):  Likewise.
60735         (add_epsilon_src_nodes):  Likewise.
60736         (merge_state_array): Likewise.
60737         (update_regs): Likewise.
60738         (build_trtable): Likewise.
60739         (sift_states_backward): Mark MCTX parameter as const.
60740         (build_sifted_states): Likewise.
60741         (update_cur_sifted_state): Likewise.
60742         (sift_states_mkref): Likewise.
60743         (check_arrival_expand_ecl): Mark eclosure as const.
60744         (check_dst_limits_calc_pos_1): Likewise.
60745         * lib/regex_internal.h (re_match_context_t): Make dfa a const
60746         pointer.
60748         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
60750         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
60751         (transit_state_sb): Likewise.
60752         (transit_state_mb): Likewise.
60753         (sift_states_iter_mb): Likewise.
60754         (check_arrival_add_next_nodes): Likewise.
60755         (check_node_accept_bytes): Change first parameter to pointer-to-const.
60756         [_LIBC] (re_search_2_stub): Use mempcpy.
60758         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
60759         mbrtowc for very simple UTF-8 case.
60761         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
60762         a pointer-to-const.
60763         (re_acquire_state_context): Likewise.
60764         * lib/regex_internal.h: Adjust prototypes.
60766         * lib/regex.c: Prevent using C++ compilers.
60768         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
60769         (re_acquire_state_context): Likewise.
60771 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
60773         * modules/regex (Depends-on): Add ssize_t.
60775 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
60777         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
60778         translation table.
60780 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
60782         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
60784 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
60785             Bruno Haible  <bruno@clisp.org>
60787         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
60788         <sys/types.h> and <inttypes.h>.
60790 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60792         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
60793         `__error_t_defined', so argp.h will not typedef the former.
60795 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
60797         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
60798         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
60799         glibc names.  Even if glibc is changed to conform to POSIX, the
60800         traditional names will be available anyway, since regex depends on
60801         the extensions module.  Also, fix a longstanding typo in the
60802         implementation of Spencer ERE test #75 from grep 2.3.  Problems
60803         reported by Emanuele Giaquinta.  Also, change sense of cached
60804         variable, so that the message makes sense.
60806 2006-03-24  Simon Josefsson  <jas@extundo.com>
60808         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
60809         including some doc fixes.
60810         (base64_encode_alloc): Fix +1 bug on allocation failures.
60812 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60814         * lib/base64.c (base64_encode): Do not read past end of array with
60815         unsanitized input on systems with CHAR_BIT > 8.
60817 2006-03-24  Eric Blake  <ebb9@byu.net>
60819         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
60821 2006-03-22  Karl Berry  <karl@gnu.org>
60823         * config/srclist.txt (*setenv.[ch]): get from coreutils.
60824         * config/srclistvars.sh (COREUTILS): new var.
60826 2006-03-17  Jim Meyering  <jim@meyering.net>
60828         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
60829         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
60831 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
60833         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
60834         no longer needs it.  Instead, check that regoff_t is as least
60835         as wide as ptrdiff_t.
60837         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
60838         so that our regex.h stays compatible with the installed regex.
60839         This is helpful for installers who configure --without-included-regex.
60840         Problem reported by Emanuele Giaquinta.
60842 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
60844         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
60845         Typedef to long int, not to off_, as POSIX will likely change
60846         in that direction.
60848 2006-03-15  Eric Blake  <ebb9@byu.net>
60850         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
60852 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
60854         * lib/argp-help.c (validate_uparams): Fix typo
60855         * lib/argp-parse.c (argp_default_options): Consistently begin help
60856         messages with a lowercase letter.
60858 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
60860         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
60861         overrun buffers and shouldn't be used (much as gets shouldn't be
60862         used).
60863         * lib/time_r.c (asctime_r, ctime_r): Likewise.
60865 2006-03-08  Simon Josefsson  <jas@extundo.com>
60867         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
60868         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60870 2006-03-08  Simon Josefsson  <jas@extundo.com>
60872         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
60873         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60875 2006-03-08  Simon Josefsson  <jas@extundo.com>
60877         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
60878         signal that configure disabled the device.
60880 2006-03-08  Simon Josefsson  <jas@extundo.com>
60882         * build-aux/maint.mk: Fix refresh-po, to handle no translated
60883         languages.
60885 2006-03-07  Simon Josefsson  <jas@extundo.com>
60887         * modules/getopt (Depends-on): Add unistd.
60889         * modules/unistd: New file.
60891 2006-03-07  Simon Josefsson  <jas@extundo.com>
60893         * modules/gc-random: New file.
60895 2006-03-07  Simon Josefsson  <jas@extundo.com>
60897         * m4/unistd_h.m4: New file.
60899 2006-03-07  Simon Josefsson  <jas@extundo.com>
60901         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
60902         test to be side-effect free by storing the result in the cache
60903         variable gl_cv_lib_readline, and moving the assignment of
60904         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
60905         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60907 2006-03-07  Simon Josefsson  <jas@extundo.com>
60909         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
60910         error on missing devices (the functions will return an error).
60912         * m4/gc.m4: Move random stuff to gc-random.m4
60914 2006-03-07  Simon Josefsson  <jas@extundo.com>
60916         * lib/unistd_.h: New file.
60918 2006-03-07  Simon Josefsson  <jas@extundo.com>
60920         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
60922 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
60924         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
60925         Problem reported by Juan Manuel Guerrero.
60927 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
60929         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
60930         the unistd module.
60931         * lib/getlogin_r.c: Likewise.
60932         * lib/getlogin_r.h: Likewise.
60933         * lib/glob.c: Likewise.
60934         * lib/pagealign_alloc.c: Likewise.
60935         * lib/unistd_.h: Remove; no longer needed.
60937 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
60939         * MODULES.html.sh (Support for systems lacking POSIX:2001):
60940         Add unistd.
60941         * modules/c-stack (Depends-on): Add unistd.
60942         * modules/getlogin_r: Likewise.
60943         * modules/glob: Likewise.
60944         * modules/pagealign_alloc: Likewise.
60945         * modules/unistd (Files): Remove lib/unistd_.h.
60946         (EXTRA_DIST): Remove.
60947         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
60948         need unistd_.h.
60949         (MOSTLYCLEANFILES): Remove unistd.h-t.
60951 2006-03-03  Simon Josefsson  <jas@extundo.com>
60953         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
60955 2006-03-03  Simon Josefsson  <jas@extundo.com>
60957         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
60958         libidn and bison.
60960 2006-03-03  Simon Josefsson  <jas@extundo.com>
60962         * build-aux/maint.mk: Add indent target.
60964 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
60966         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
60967         our replacement poll.h in any case, to avoid a differing
60968         declaration from a system header.  Seen on AIX.
60970 2006-03-01  Simon Josefsson  <jas@extundo.com>
60972         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
60973         <kasal@ucw.cz>.
60975 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
60977         * modules/gettime (Depends-on): Add extensions module.
60978         * modules/nanosleep (Depends-on): Likewise.
60979         * modules/settime (Depends-on): Likewise.
60981 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
60983         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
60984         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
60985         pedantically.
60986         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
60987         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
60989         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
60990         not "==".  Reported by Ralf Wildenhues.
60992 2006-03-01  Karl Berry  <karl@gnu.org>
60994         * doc/Copyright/request-*: new files, synced from gnuorg.
60996 2006-03-01  Karl Berry  <karl@gnu.org>
60998         * config/srclist.txt (Copyright/*): new entries.
61000 2006-02-28  Simon Josefsson  <jas@extundo.com>
61002         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
61004 2006-02-27  Simon Josefsson  <jas@extundo.com>
61006         * lib/base64.h: Indent #define's.  From Jim Meyering
61007         <jim@meyering.net>.
61009 2006-02-27  Jim Meyering  <jim@meyering.net>
61011         Revert the change of 2006-02-24, so these files can continue
61012         to be sync'd from gettext.
61013         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
61014         of `config.h'.
61016 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
61018         * modules/intprops: New file.
61019         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
61020         Add intprops.
61021         * modules/getloadavg (Files): Remove lib/intprops.h.
61022         (Depends-on): Add intprops.
61023         * modules/human: Likewise.
61024         * modules/inttostr: Likewise.
61025         * modules/openat: Likewise.
61026         * modules/sig2str: Likewise.
61027         * modules/userspec: Likewise.
61028         * modules/utimecmp: Likewise.
61029         * modules/xnanosleep: Likewise.
61030         * modules/xstrtol: Likewise.
61032 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
61034         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
61035         * modules/lock-tests (TESTS): Use $(EXEEXT).
61036         * modules/tls-tests: Likewise.
61037         * modules/argp-tests: Likewise.
61038         (check_PROGRAMS): New var, replacing...
61039         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
61041 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61043         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
61044         `config.h'.
61046 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
61048         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
61050 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61052         Sync from coreutils.
61053         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
61054         gl_CHDIR_SAFER.
61056 2006-02-22  Jim Meyering  <jim@meyering.net>
61058         Sync from coreutils.
61059         * m4/chdir-safer.m4: New file.
61061 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
61063         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
61064         AT_FDCWD exceeds INT_MAX.
61065         * lib/openat.h (AT_FDCWD): Likewise.
61067 2006-02-17  Eric Blake  <address@hidden>
61069         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
61071 2006-02-16  Simon Josefsson  <jas@extundo.com>
61073         * modules/getaddrinfo (Depends-on): Add sys_socket.
61075 2006-02-15  Simon Josefsson  <jas@extundo.com>
61077         * build-aux/maint.mk: Add dsyntax-check rule.
61079 2006-02-15  Eric Blake  <ebb9@byu.net>
61081         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
61082         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
61083         'present but cannot compile' warnings on cygwin.
61084         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
61085         use ws2tcpip.h if sys/socket.h works.
61086         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
61087         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
61089 2006-02-14  Simon Josefsson  <jas@extundo.com>
61091         * modules/maintainer-makefile (Files): Rename.
61093         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
61094         and (the local) Makefile.cfg to maint-cfg.mk.
61096         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
61097         to the latter.
61099         * modules/maintainer-makefile: New module.
61101         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
61102         severaly stripped to make it possible to build it up from scratch
61103         with reliable tests.
61105         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
61106         fixes to permit overriding the default actions when configure and
61107         makefile are not available.
61109 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
61111         Sync from coreutils.
61112         * modules/lstat (Depends-on): Don't depend on xalloc.
61113         (License): Change from GPL to LGPL, since this is now simply a
61114         replacement for a libc function.
61116 2006-02-14  Jim Meyering  <jim@meyering.net>
61118         Sync from coreutils.
61120         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
61121         failure on deficient systems, and simplify gnulib lgpl dependencies.
61122         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
61123         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
61125         * lib/xalloc-die.c: Remove unused definition of N_.
61127 2006-02-14  Jim Meyering  <jim@meyering.net>
61129         Sync from coreutils.
61130         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
61131         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
61132         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
61133         double-quote uses of that variable, to accommodate the rare case in
61134         which getmntent is available in none of the libraries checked.  This
61135         happens at least on FreeBSD 5.0.
61137 2006-02-13  Simon Josefsson  <jas@extundo.com>
61139         * gnulib-tool (Usage): Fix --import, from
61140         karl@freefriends.org (Karl Berry).
61142 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
61144         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
61146 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
61148         * lib/argp-namefrob.h: Restore changes accidentally lost during the
61149         "autoupdate" on 2005-12-12.
61151 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
61153         * modules/closeout (Depends-on): Remove atexit.
61155 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
61157         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
61158         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
61160 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
61162         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
61163         __EXTENSIONS__ if this causes compilation to fail.  Problem
61164         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
61165         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
61167 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
61169         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
61170         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
61171         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
61172         All uses changed.
61174 2006-01-26  Simon Josefsson  <jas@extundo.com>
61176         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
61177         prototype is visible on mingw32.
61179         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
61180         for mingw32.
61182         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
61183         mingw32).
61185 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
61187         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
61188         attempt to open for write; this always fails, at least on POSIX
61189         hosts.  This reinstates the 2006-01-09 change, which was
61190         inadvertently removed.
61192 2006-01-26  Bruno Haible  <bruno@clisp.org>
61194         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
61195         Reported by Paul Eggert.
61197 2006-01-26  Bruno Haible  <bruno@clisp.org>
61198             Paul Eggert  <eggert@cs.ucla.edu>
61200         * lib/stdbool_.h (_Bool)
61201         [(! (defined __cplusplus || defined __BEOS__)
61202           && !defined __GNUC__
61203           && !(defined __HP_cc || defined __xlc__
61204                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
61205                || defined __sgi))]:
61206         #define to signed char in these cases too; this simplifies
61207         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
61208         etc., separately) and makes it more conservative.
61210 2006-01-25  Simon Josefsson  <jas@extundo.com>
61212         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
61213         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
61214         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
61216 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
61218         * lib/argp-namefrob.h: Bugfix. Remove stray #
61220 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
61222         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
61223         so that we test the test.
61224         Check for yet another HP-UX cc bug involving *bool |= bool.
61226 2006-01-25  Karl Berry  <karl@gnu.org>
61228         * config/srclist.txt (vasnprintf.c): sync lost.
61230 2006-01-25  Jim Meyering  <jim@meyering.net>
61232         Sync from the stable (b5) branch of coreutils:
61234         * lib/fts.c (fts_children): Don't let close() clobber errno from
61235         failed fchdir().
61237         * lib/fts.c (fts_stat): When following a symlink-to-directory,
61238         don't necessarily interpret stat-fails+lstat-succeeds as indicating
61239         a dangling symlink.  That can also happen at least for ELOOP.
61240         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
61241         FYI, this bug predates the inclusion of fts.c in coreutils.
61243         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
61244         in their own block, so pre-c99 compilers don't object.
61246         Avoid the double-free (first in fts_read, second in fts_close) that
61247         would occur when an `active' directory is made inaccessible (e.g.,
61248         via chmod a-x) during a traversal.
61249         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
61250         before returning.  Reproduce this failure by
61251         mkdir -p a/b; cd a; chmod a-x . b
61252         Reported by Stavros Passas.
61254 2006-01-25  Jim Meyering  <jim@meyering.net>
61256         * lib/fileblocks.c: Remove more useless parentheses.
61257         * lib/readutmp.h: Likewise.
61259 2006-01-25  Bruno Haible  <bruno@clisp.org>
61261         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
61262         warnings.
61263         Reported by Paul Eggert.
61265 2006-01-25  Bruno Haible  <bruno@clisp.org>
61267         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
61268         rid of a trap command. For Solaris sh.
61269         Reported by Mark D. Baushke <mdb@gnu.org>.
61271 2006-01-24  Simon Josefsson  <jas@extundo.com>
61273         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
61274         Bruno.
61276 2006-01-24  Karl Berry  <karl@gnu.org>
61278         * config/srclist.txt (argp-namefrob.h): sync lost.
61280 2006-01-24  Jim Meyering  <jim@meyering.net>
61282         * modules/openat (Files): Add lib/intprops.h.
61283         From Mark D. Baushke.
61285 2006-01-24  Jim Meyering  <jim@meyering.net>
61287         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
61288         Reported by Mark D. Baushke.
61290 2006-01-24  Jim Meyering  <jim@meyering.net>
61292         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
61294 2006-01-24  Bruno Haible  <bruno@clisp.org>
61296         * modules/strnlen (Maintainer): Change from glibc to all.
61298 2006-01-24  Bruno Haible  <bruno@clisp.org>
61300         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
61301         Patch by Paul Eggert.
61303 2006-01-24  Bruno Haible  <bruno@clisp.org>
61305         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
61306         already has it.
61307         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
61308         2005-11-26.
61310         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
61311         'signed char' to avoid problems with the built-in _Bool type.
61312         Reported by Paul Eggert on 2005-11-26.
61314 2006-01-24  Bruno Haible  <bruno@clisp.org>
61316         * gnulib-tool (func_import): Avoid constructing complicated sed
61317         expressions inside backquote.
61318         Report and solution by Mark D. Baushke <mdb@gnu.org>.
61320 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
61322         These changes imported from libc.
61323         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
61324         test and two separate function calls.
61325         * lib/strndup.c (__strndup): Add libc_hidden_def.
61327 2006-01-23  Simon Josefsson  <jas@extundo.com>
61329         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
61330         Remove the test_*_SOURCES variable: automake infers it by default.
61331         * modules/tls-tests: Likewise.
61333 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
61335         Work around porting bugs reported by Dieter in
61336         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
61337         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
61338         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
61339         Include "getopt.h" first, to check interface.
61340         (getenv): Declare only if defined HAVE_DECL_GETENV &&
61341         !HAVE_DECL_GETENV.
61342         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
61343         (__strndup): Revert to K&R-style function dfns, the glibc style.
61344         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
61345         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
61346         Include strnlen.h first, to get prototype properly.
61347         (strnlen): Renamed from __strnlen.
61348         Remove weak alias.
61350 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
61352         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
61354 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
61356         * config/srclist.txt: Adjust to reflect glibc reorganization.
61357         This affects only comments.
61359 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
61361          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
61362          Reported by Bruce Korb <bkorb@gnu.org>.
61364 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
61366         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
61367         to pacify gcc -Wswitch-default.
61369 2006-01-22  Bruno Haible  <bruno@clisp.org>
61371         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
61372         temporary buffer for sprintf, take into account the precision also
61373         for 'd', 'i', 'u', 'o', 'x', 'X'.
61375 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
61377         * modules/argp-tests: New module
61378         * tests/test-argp.c: New file
61379         * tests/test-argp-2.sh: New file
61381 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
61383         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
61384         (__argp_base_name): Removed
61385         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
61386         typo.
61387         (__argp_base_name): Provide macro definition or extern declaration
61388         depending on the configuration
61390 2006-01-20  Simon Josefsson  <jas@extundo.com>
61392         * modules/inet_ntop (Depends-on): Depend on sys_socket.
61394 2006-01-20  Simon Josefsson  <jas@extundo.com>
61396         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
61398 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
61400         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
61401         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
61402         Suggested by Bruno Haible.
61404 2006-01-20  Karl Berry  <karl@gnu.org>
61406         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
61407         until changes propagate, I guess.
61409 2006-01-19  Simon Josefsson  <jas@extundo.com>
61411         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
61413 2006-01-19  Simon Josefsson  <jas@extundo.com>
61415         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
61417 2006-01-19  Simon Josefsson  <jas@extundo.com>
61419         * gnulib-tool: Set check_PROGRAMS.
61421         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
61422         modules/des-tests, modules/gc-arcfour-tests,
61423         modules/gc-arctwo-tests, modules/gc-des-tests,
61424         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
61425         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
61426         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
61427         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
61428         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
61429         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
61430         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
61431         test_*_SOURCES.
61433 2006-01-18  Simon Josefsson  <jas@extundo.com>
61435         * modules/socklen (Depends-on): Depend on sys_socket.
61437 2006-01-18  Simon Josefsson  <jas@extundo.com>
61439         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
61440         modules/des-tests, modules/gc-arcfour-tests,
61441         modules/gc-arctwo-tests, modules/gc-des-tests,
61442         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
61443         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
61444         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
61445         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
61446         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
61447         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
61448         $(EXEEXT) to automake TESTS variable, for mingw32.
61450 2006-01-17  Simon Josefsson  <jas@extundo.com>
61452         * modules/socklen (Include): Need sys/socket.h.
61454 2006-01-17  Bruno Haible  <bruno@clisp.org>
61456         * modules/ssize_t (Include): Add <sys/types.h>.
61458 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
61460         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
61461         it's not portable and it doesn't work with cross-compiles.
61462         Problem reported by Bruno Haible.  Fix missing-$ typo in
61463         'test "gl_cv_ignore_unused_libraries" ...' that prevented
61464         -zignore from being used with Sun's C compiler.
61466 2006-01-12  Simon Josefsson  <jas@extundo.com>
61468         * lib/base64.c: Fix warning, reported by Bruno Haible
61469         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
61471 2006-01-12  Bruno Haible  <bruno@clisp.org>
61473         * modules/ldd: New file.
61474         * build-aux/ldd.sh.in: New file.
61475         * MODULES.html.sh (Support for building libraries and executables): Add
61476         ldd.
61478 2006-01-12  Bruno Haible  <bruno@clisp.org>
61480         * m4/ldd.m4: New file.
61482 2006-01-12  Bruno Haible  <bruno@clisp.org>
61484         * gnulib-tool (func_import, func_create_testdir): Don't go into an
61485         endless loop while replacing $auxdir with build-aux.
61487 2006-01-11  Simon Josefsson  <jas@extundo.com>
61489         * lib/stdint_.h (SIZE_MAX): Add missing (.
61491 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
61493         Sync from coreutils.
61494         * lib/md5.c: Fix commentary typos.
61495         (alignof, UNALIGNED_P): No need for a GCC-specific version.
61496         * lib/md5.h (__attribute__): Remove; unused.
61497         * lib/sha1.c: Fix commentary to match md5 better.
61498         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
61499         so that we don't need to worry about alignment.  All uses changed.
61500         This merges the 2005-10-28 md5 change into sha1.
61502 2006-01-11  Jim Meyering  <jim@meyering.net>
61504         Sync from coreutils.
61505         * lib/md5.c (OP): Fix spacing.
61507 2006-01-11  Bruno Haible  <bruno@clisp.org>
61509         Ensure automatic ordering between gl_LOCK and gl_ARGP.
61510         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
61511         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
61513 2006-01-11  Bruno Haible  <bruno@clisp.org>
61515         Ensure automatic ordering between gl_LOCK and gl_ARGP.
61516         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
61517         the "early" section as well.
61519 2006-01-11  Bruno Haible  <bruno@clisp.org>
61521         Avoid "ar: no archive members specified" error on MacOS X.
61522         * gnulib-tool (func_modules_add_dummy): New function.
61523         (func_import, func_create_testdir): Invoke it.
61525 2006-01-11  Bruno Haible  <bruno@clisp.org>
61527         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
61528         with $auxdir in AC_CONFIG_FILES statements.
61530 2006-01-11  Bruno Haible  <bruno@clisp.org>
61532         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
61533         Initialize also noinst_HEADERS to empty.
61535 2006-01-11  Bruno Haible  <bruno@clisp.org>
61537         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
61538         variables.
61539         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
61540         autoreconf.
61542 2006-01-11  Bruno Haible  <bruno@clisp.org>
61544         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
61545         overridable by the user.
61546         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61548 2006-01-10  Simon Josefsson  <jas@extundo.com>
61550         * modules/sys_socket: New file.
61552 2006-01-10  Simon Josefsson  <jas@extundo.com>
61554         * m4/sys_socket_h.m4: New file.
61556 2006-01-10  Simon Josefsson  <jas@extundo.com>
61558         * lib/socket_.h: New file.
61560 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
61562         * modules/readutmp (Maintainer): Add myself.
61564 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
61566         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
61567         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
61568         People who are still concerned with buggy memcmp implementations
61569         can invoke gl_FUNC_MEMCMP themselves.
61571 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
61573         * lib/regex_internal.h (BITSET_WORD_BITS):
61574         Work around a bug in 64-bit PGC (before version 6.1-2), where the
61575         preprocessor mishandles large unsigned values as if they were signed.
61576         Problem reported by Claudio Fontana in
61577         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
61579 2006-01-10  Jim Meyering  <jim@meyering.net>
61581         Avoid the double-free (first in fts_read, second in fts_close) that
61582         would occur when an `active' directory is made inaccessible (e.g.,
61583         via chmod a-x) during a traversal.
61584         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
61585         before returning.  Reproduce this failure by
61586         mkdir -p a/b; cd a; chmod a-x . b
61587         Reported by Stavros Passas.
61589         Sync from coreutils.
61590         * lib/sha1.c: Tweak grammar in a comment.
61592 2006-01-10  Jim Meyering  <jim@meyering.net>
61594         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
61595         Patch by Joerg Sonnenberger.
61597 2006-01-10  Bruno Haible  <bruno@clisp.org>
61599         * modules/readutmp: Depend on module free.
61600         * modules/strtok_r: Depend on module restrict.
61602 2006-01-10  Bruno Haible  <bruno@clisp.org>
61604         * modules/gettext (configure.ac): Add an invocation of
61605         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
61607 2006-01-10  Bruno Haible  <bruno@clisp.org>
61609         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
61610         Reported by Werner Lemberg <wl@gnu.org>.
61612 2006-01-10  Bruno Haible  <bruno@clisp.org>
61614         * lib/localcharset.c: Update from GNU gettext.
61616 2006-01-10  Bruno Haible  <bruno@clisp.org>
61618         * lib/argp.h (__const): Remove macro. Use const instead.
61619         * lib/argp-fmtstream.h (__const): Likewise.
61620         * lib/glob_.h (__const): Remove macro.
61621         * lib/glob-libc.h: Use const instead of __const.
61623 2006-01-10  Bruno Haible  <bruno@clisp.org>
61625         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
61626         variable.
61627         Needed to avoid an automake error regarding the 'gettext' module.
61629 2006-01-09  Simon Josefsson  <jas@extundo.com>
61631         * modules/inet_ntop (Depends-on): Add restrict.
61633 2006-01-09  Simon Josefsson  <jas@extundo.com>
61635         * modules/gc-rijndael-tests (License): Put under LGPL.
61637         * modules/gc-des-tests (License): Likewise.
61639         * modules/gc-arcfour-tests (License): Likewise.
61641         * modules/gc-arctwo-tests (License): Likewise.
61643         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
61645         * modules/gc-hmac-sha1-tests (Files): Likewise.
61647         * modules/gc-hmac-md5-tests (License): Likewise.
61649         * modules/gc-sha1-tests (License): Likewise.
61651         * modules/gc-md5-tests (License): Likewise.
61653         * modules/gc-md4-tests (License): Likewise.
61655         * modules/gc-md2-tests (License): Likewise.
61657         * modules/gc-tests (License): Likewise.
61659         * modules/des-tests (License): Likewise.
61661         * modules/md4-tests (License): Likewise.
61663         * modules/md2-tests (License): Likewise.
61665 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
61667         Sync from coreutils:
61669         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
61670         * modules/lib-ignore: New file.
61671         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
61672         chdir-safer.m4, lchmod.m4.
61673         * modules/openat: Add mkdirat.c, openat-priv.h.
61675 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
61677         Sync from coreutils.
61678         * m4/lib-ignore.m4: New file.
61679         * m4/lchmod.m4: New file.
61681 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
61683         Sync from coreutils.
61684         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
61685         for write access: POSIX says that must fail.
61686         * lib/fts.c (diropen): Likewise.
61687         * lib/save-cwd.c (save_cwd): Likewise.
61688         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
61689         well, for minor improvements on hosts that lack O_DIRECTORY.
61690         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
61691         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
61692         Fall back on chown if open failed with EACCES.
61694         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
61695         Report an error at compile-time if only a 1-second nominal clock
61696         resolution is found.
61698         * lib/lchmod.h: New file.
61699         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
61700         (make_dir_parents): Use lchown rather than chown, and
61701         lchmod rather than chmod.
61703         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
61704         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
61705         "proc" reported by n0dalus.
61707         * lib/mountlist.c: Include <limits.h>.
61708         (dev_from_mount_options)
61709         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
61710         New function.  It no longer assumes "dev=" has the System V meaning
61711         on Linux (since it doesn't).  It also parses "dev=" more carefully.
61712         (read_file_system_list)
61713         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
61714         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
61715         dev= in that case.
61717         * lib/posixtm.h (PDS_PRE_2000): New macro.
61718         * lib/posixtm.c (year): Arg is now syntax_bits rather than
61719         allow_century.  All usages changed.  Reject dates outside the range
61720         1969-1999 if PDS_PRE_2000 is used.
61722 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
61724         Sync from coreutils.
61725         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
61726         (Time of day items): Mention the possibility of leap seconds.
61727         Problem reported by Dr. David Alan Gilbert.
61729 2006-01-09  Jim Meyering  <jim@meyering.net>
61731         Sync from coreutils.
61733         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
61735         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
61737         * lib/modechange.c (mode_compile): Reject an invalid mode string
61738         that starts with an octal digit.  From Andreas Gruenbacher.
61740         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
61741         and dup to open_safer and dup_safer, respectively.
61742         (openat_permissive): Fix typo in comment.
61744         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
61745         "gettext.h"; either no longer needed or are guaranteed by openat.h.
61746         (_): Remove; no longer needed.
61747         (openat): Renamed from rpl_openat; no need for rpl_openat
61748         since openat.h renames openat for us.
61749         Replace most of the body with a call to openat_permissive,
61750         to avoid duplicate code.
61751         Port to (probably hypothetical) environments were mode_t is
61752         wider than int.
61753         (openat_permissive): Require mode arg, so that we can check
61754         types better.  Put it just after flags.  Change cwd failure
61755         indicator from pointer-to-bool to pointer-to-errno-value.
61756         All callers changed.
61757         Invoke openat_save_fail and/or openat_restore_fail if
61758         cwd_errno is null, so that openat can call us.
61759         (openat_permissive, fdopendir, fstatat, unlinkat):
61760         Simplify errno handling to avoid some duplicate code,
61761         as it's OK to set errno on success.
61762         * lib/openat.h: Revamp code so that function macros depend on
61763         __OPENAT_PREFIX only, not also on AT_FDCWD.
61764         (openat_ro): Remove.  Caller changed to use openat_permissive.
61765         (openat_permissive): Now a macro, if not a function.
61766         (openat_restore_fail, openat_save_fail): Now always functions,
61767         since mkdirat needs them even if __OPENAT_PREFIX is defined.
61769         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
61770         and openat.c.
61771         * lib/mkdirat.c: Include openat-priv.h.
61772         Remove definitions of macros defined therein.
61773         * lib/openat.c: Likewise.
61775         * lib/mkdirat.c (mkdirat): New file and function.
61776         * lib/openat.h (mkdirat): Declare.
61778         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
61780         * lib/openat.h (openat_permissive): Declare.
61781         (openat_ro): Define.
61783         * lib/openat.c (EXPECTED_ERRNO): New macro.
61784         (openat_permissive): New function -- used in remove.c rewrite.
61785         (all functions): Set errno just before returning, only if there
61786         was an actual failure.
61787         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
61789         Emulate openat-family functions using Linux's procfs, if possible.
61790         Idea and some code based on Ulrich Drepper's glibc changes.
61792         * lib/openat.c: (BUILD_PROC_NAME): New macro.
61793         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
61794         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
61795         before falling back on save_cwd and restore_cwd.
61796         (fdopendir, fstatat, unlinkat): Likewise.
61798         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
61799         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
61801         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
61802         as second argument to va_arg.  Otherwise, some versions of gcc
61803         warn that `if this code is reached, the program will abort'.
61805 2006-01-09  Jim Meyering  <jim@meyering.net>
61807         Sync from coreutils.
61808         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
61809         Require openat-priv.h.
61811 2006-01-09  Bruno Haible  <bruno@clisp.org>
61813         * modules/strnlen (Include): Use strnlen.h.
61815 2006-01-09  Bruno Haible  <bruno@clisp.org>
61817         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
61819 2006-01-09  Bruno Haible  <bruno@clisp.org>
61821         * lib/sysexit_.h (EX_OK): New macro.
61822         Suggested by Martin Lambers <marlam@marlam.de>.
61824 2006-01-09  Bruno Haible  <bruno@clisp.org>
61826         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
61827         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
61829 2006-01-09  Bruno Haible  <bruno@clisp.org>
61831         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
61832         numbers.
61834 2006-01-09  Bruno Haible  <bruno@clisp.org>
61836         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
61837         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
61838         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
61839         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
61841 2006-01-09  Bruno Haible  <bruno@clisp.org>
61843         * build-aux/javacomp.sh.in: New file, moved from lib/.
61844         * modules/javacomp-script (Files): Update.
61845         (configure.ac): Add AC_CONFIG_FILES invocation.
61846         (EXTRA_DIST): Remove variable.
61848         * build-aux/javaexec.sh.in: New file, moved from lib/.
61849         * modules/javaexec (Files): Update.
61850         (configure.ac): Add AC_CONFIG_FILES invocation.
61851         (EXTRA_DIST): Remove javaexec.sh.in.
61853         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
61854         * modules/csharpcomp-script (Files): Update.
61855         (configure.ac): Add AC_CONFIG_FILES invocation.
61856         (EXTRA_DIST): Remove variable.
61858         * build-aux/csharpexec.sh.in: New file, moved from lib/.
61859         * modules/csharpexec (Files): Update.
61860         (configure.ac): Add AC_CONFIG_FILES invocation.
61861         (EXTRA_DIST): Remove csharpexec.sh.in.
61863 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
61865         Sync from coreutils.
61867         Add POSIX ACL support
61868         * lib/acl.h (copy_acl, set_acl): Add declarations.
61869         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
61870         systems other than Linux.
61871         (chmod_or_fchmod): New function: use fchmod when possible,
61872         and chmod otherwise.
61873         (file_has_acl): Add a POSIX ACL implementation, with a
61874         Linux-specific subcase.
61875         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
61876         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
61877         acls are unsupported.
61878         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
61879         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
61880         are unsupported.
61882 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
61884         Sync from coreutils.
61885         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
61887 2006-01-07  Bruno Haible  <bruno@clisp.org>
61889         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
61890         gl_EARLY.
61892 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
61894         * lib/strftime.c (tzname): Don't declare if it is already #defined.
61895         Problem reported for Mingw by Mark Junker.
61897 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
61899         * README: Gnulib normally doesn't generate a tarball.
61901 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
61903         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
61904         long int, not int, for nanosecond counts, so that people who are
61905         used to POSIX struct timespec won't be surprised.  Reported by Jim
61906         Meyering.
61908 2005-12-28  Bruno Haible  <bruno@clisp.org>
61910         * build-aux/config.rpath: Update from GNU gettext.
61912 2005-12-16  Jim Meyering  <jim@meyering.net>
61914         * modules/fprintftime: New module.
61915         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
61917 2005-12-16  Jim Meyering  <jim@meyering.net>
61919         * m4/fprintftime.m4: New file.
61921 2005-12-16  Jim Meyering  <jim@meyering.net>
61923         * lib/fprintftime.c, lib/fprintftime.h: New files.
61925 2005-12-15  Simon Josefsson  <jas@extundo.com>
61927         * modules/socklen (configure.ac): Fix M4 macro name, to align with
61928         new m4/socklen.m4.
61930 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
61932         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
61933         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
61935 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
61937         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
61938         * lib/argp-help.c (fill_in_uparams): Check if the constructed
61939         struct uparams is valid. Fall back to the default values if it is
61940         not.
61942 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
61944         * modules/argp (Files): Add argp-pin.c
61945         (Depends-on): dirname
61946         (lib_SOURCES): Add argp-pin.c
61948 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
61950         * m4/argp.m4:  Check if program_invocation_name and
61951         program_invocation_short_name are declared and define appropriate
61952         macros if they are not.
61954 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
61956         * lib/argp-help.c (__argp_base_name): New function
61957         (__argp_short_program_name): Rewrite using __argp_base_name
61958         * lib/argp-namefrob.h: Define program_invocation_name and
61959         program_invocation_short_name if requested
61960         (__argp_base_name): Add prototype
61961         * lib/argp-parse.c (argp_def): Use gettext wrappers
61962         (argp_default_parser): Use __argp_base_name
61963         * lib/argp-pin.c: New file. Defines program_invocation_name and
61964         program_invocation_short_name on systems that lack them.
61966 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
61968         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
61969         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
61970         porting problem reported by Georg Schwarz in
61971         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
61973 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
61975         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
61976         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
61977         porting problem reported by Georg Schwarz in
61978         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
61980 2005-12-05  Bruno Haible  <bruno@clisp.org>
61982         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
61983         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
61984         Reported by Mark Junker <mjscod@gmx.de>.
61986 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
61988         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
61989         Use implementation from Albert Chin, with some
61990         comments/corrections by Stepan Kasal and myself.
61992 2005-12-02  Bruno Haible  <bruno@clisp.org>
61994         * gnulib-tool (func_import): Accept GPLed build tool modules when
61995         --lgpl is given.
61996         * modules/csharpcomp-script: New file.
61997         * modules/csharpcomp: Depend on it.
61998         * modules/javacomp-script: New file.
61999         * modules/javacomp: Depend on it.
62000         Suggested by Simon Josefsson.
62002 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
62004         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
62005         statement, to work around an HP-UX 10.20 compiler bug reported by
62006         Peter O'Gorman.
62008 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
62010         * modules/savedir (Depends-on): Add openat.
62012 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
62014         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
62015         (uintmax_t) [defined uintmax_t]: Do not declare.
62016         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
62017         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
62018         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
62019         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
62020         sake of portability to weird hosts that C allows (though we don't
62021         know of any practical examples).
62023         * lib/savedir.h (fdsavedir): New decl.
62024         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
62025         contains most of the former guts of savedir.
62026         (savedir): Use savedirstream.
62027         Include "openat.h".
62029 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
62031         * modules/obstack (Files): Add m4/ulonglong.m4.
62032         Problem reported by Davide Angelocola.
62034 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
62036         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
62037         coreutils no longer futzes with rounding modes.
62039 2005-11-14  Jim Meyering  <jim@meyering.net>
62041         * lib/mkstemp-safer.c: Include <config.h>, required for possible
62042         replacement of mkstemp.
62044 2005-11-10  Simon Josefsson  <jas@extundo.com>
62046         * lib/readline.c: Remove EOL.
62048 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
62050         * modules/gethrxtime (Depends-on): Add gettime.
62052 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
62054         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
62055         or gettimeofday; no longer needed.
62057 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
62059         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
62060         time business.
62061         (gethrxtime) [! (HAVE_NANOUPTIME
62062         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
62063         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
62064         our own approximation.
62066 2005-11-08  Eric Blake  <ebb9@byu.net>
62068         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
62070 2005-11-08  Eric Blake  <ebb9@byu.net>
62072         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
62074 2005-11-04  Bruno Haible  <bruno@clisp.org>
62076         * gnulib-tool: Implement --update mode.
62078 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
62080         Fix porting problem reported by Theodoros V. Kalamatianos.
62081         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
62082         Don't assume that futimes failing means we must fail.
62084 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
62086         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
62087         variables to suggest the intended function of the PATH_MAX check.
62089 2005-10-30  Kean Johnston  <jkj@sco.com>
62091         Trivial changes to support SCO systems.
62092         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
62093         as PATH_MAX.
62094         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
62095         where __ptr is null when no I/O is pending.
62097 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
62099         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
62100         leave errno alone.  Problem reported by Dmitry V. Levin.
62102 2005-10-28  Simon Josefsson  <jas@extundo.com>
62104         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
62105         Test more.
62107         * tests/test-gc-md2.c, tests/test-md2.c: New files.
62109         * modules/md2, modules/md2-tests: New files.
62111 2005-10-28  Simon Josefsson  <jas@extundo.com>
62113         * m4/inet_ntop.m4: More tests.
62115         * m4/gc-md2.m4, md2.m4: New file.
62117 2005-10-28  Simon Josefsson  <jas@extundo.com>
62119         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
62120         "restrict" keywords, as per POSIX.  Protect the function
62121         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
62122         Don't use K&R prototypes.  Check the sprintf return values.
62123         Re-define EAFNOSUPPORT if not present.  Indent.
62125         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
62126         suggested by Bruno Haible <bruno@clisp.org>.
62128         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
62130         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
62132         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
62133         libgcrypt).
62135         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
62137         * lib/md2.h, lib/md2.c: New files.
62139 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
62141         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
62142         errno alone.  Problem reported by Frederic Jolliton.
62144 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
62146         * modules/verify (License): Change from GPL to LGPL.  This is a
62147         tiny module and there are apparently near-equivalents that are
62148         under the BSD license.
62150 2005-10-24  Simon Josefsson  <jas@extundo.com>
62152         * modules/sha1: Relicense to LGPL.
62154 2005-10-24  Simon Josefsson  <jas@extundo.com>
62156         * lib/md4.h: Shrink buffer size, now that we changed the type.
62158 2005-10-23  Simon Josefsson  <jas@extundo.com>
62160         * gnulib-tool (func_import): Fix --tests-base.
62162 2005-10-22  Simon Josefsson  <jas@extundo.com>
62164         * modules/arcfour (Depends-on): Need stdint.
62166 2005-10-22  Simon Josefsson  <jas@extundo.com>
62168         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
62169         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
62171 2005-10-22  Simon Josefsson  <jas@extundo.com>
62173         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
62174         suggested by Bruno Haible <bruno@clisp.org>.
62176 2005-10-22  Simon Josefsson  <jas@extundo.com>
62178         * lib/crc.h: Include stddef.h, for size_t.
62180 2005-10-22  Simon Josefsson  <jas@extundo.com>
62182         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
62183         arcfour_context struct (simplify test vector testing in GNU
62184         Shishi).
62186 2005-10-21  Simon Josefsson  <jas@extundo.com>
62188         * modules/des, modules/des-tests: New files.
62190         * modules/gc-des, modules/gc-des-tests: New files.
62192         * tests/test-des.c, tests/test-gc-des.c: New file.
62194 2005-10-21  Simon Josefsson  <jas@extundo.com>
62196         * modules/arctwo, modules/arctwo-tests: New files.
62198         * tests/test-arctwo.c: New file.
62200         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
62202         * tests/test-gc-arctwo.c: New file.
62204 2005-10-21  Simon Josefsson  <jas@extundo.com>
62206         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
62207         Bruno Haible <bruno@clisp.org>.
62209         * m4/gc-des.m4: New file.
62211 2005-10-21  Simon Josefsson  <jas@extundo.com>
62213         * m4/arctwo.m4: New file.
62215         * m4/gc-arctwo.m4: New file.
62217 2005-10-21  Simon Josefsson  <jas@extundo.com>
62219         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
62220         block.
62222 2005-10-21  Simon Josefsson  <jas@extundo.com>
62224         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
62225         <bruno@clisp.org>.
62227         * lib/hmac-sha1.c (hmac_sha1): Likewise.
62229         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
62230         Bruno Haible <bruno@clisp.org>.
62232         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
62233         <bruno@clisp.org>.
62235 2005-10-21  Simon Josefsson  <jas@extundo.com>
62237         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
62239 2005-10-21  Simon Josefsson  <jas@extundo.com>
62241         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
62243 2005-10-21  Simon Josefsson  <jas@extundo.com>
62245         * lib/des.h, lib/des.c: New files.
62247         * lib/gc-gnulib.c: Support DES.c
62249 2005-10-21  Simon Josefsson  <jas@extundo.com>
62251         * lib/arctwo.h, lib/arctwo.c: New files.
62253         * lib/gc-gnulib.c: Support ARCTWO.
62255 2005-10-21  Simon Josefsson  <jas@extundo.com>
62257         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
62258         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62260 2005-10-21  Simon Josefsson  <jas@extundo.com>
62262         * gnulib-tool (func_import, func_create_testdir): Define automake
62263         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
62264         Makefile.am snippet),
62265         suggested by Bruno Haible <bruno@clisp.org>.
62267         * modules/gc (Makefile.am): Use it.
62269 2005-10-21  Bruno Haible  <bruno@clisp.org>
62271         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
62272         patch.
62274 2005-10-19  Simon Josefsson  <jas@extundo.com>
62276         * tests/test-gc-rijndael.c: New file.
62278         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
62280 2005-10-19  Simon Josefsson  <jas@extundo.com>
62282         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
62283         interface too.
62285 2005-10-19  Simon Josefsson  <jas@extundo.com>
62287         * tests/test-gc-arcfour.c: New file.
62289         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
62291 2005-10-19  Simon Josefsson  <jas@extundo.com>
62293         * modules/gc-md4, modules/gc-md4-tests: New file.
62295         * tests/test-gc-md4.c: New file.
62297 2005-10-19  Simon Josefsson  <jas@extundo.com>
62299         * m4/gc-md4.m4: New file.
62301 2005-10-19  Simon Josefsson  <jas@extundo.com>
62303         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
62304         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
62305         <kasal@ucw.cz>.
62307 2005-10-19  Simon Josefsson  <jas@extundo.com>
62309         * m4/gc-arcfour.m4: New file.
62311         * m4/gc-rijndael.m4: New file.
62313 2005-10-19  Simon Josefsson  <jas@extundo.com>
62315         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
62317 2005-10-19  Simon Josefsson  <jas@extundo.com>
62319         * lib/gc-gnulib.c: Support ARCFOUR.
62321 2005-10-19  Simon Josefsson  <jas@extundo.com>
62323         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
62324         support.
62326         * lib/gc.h: Add ECB enum type.
62328         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
62330 2005-10-18  Simon Josefsson  <jas@extundo.com>
62332         * tests/test-md5.c: New file.
62334         * modules/md5-tests: New file.
62336 2005-10-18  Simon Josefsson  <jas@extundo.com>
62338         * tests/test-md4.c: New file.
62340         * modules/md4, modules/md4-tests: New files.
62342 2005-10-18  Simon Josefsson  <jas@extundo.com>
62344         * m4/md4.m4: New file.
62346 2005-10-18  Simon Josefsson  <jas@extundo.com>
62348         * lib/md4.h, lib/md4.c: New files, based on md5.?.
62350 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
62352         * gnulib-tool (func_create_testdir): Omit the second check whether
62353         BUILT_SOURCES in nonempty.
62355 2005-10-17  Simon Josefsson  <jas@extundo.com>
62357         * tests/test-rijndael.c: New file.
62359 2005-10-17  Simon Josefsson  <jas@extundo.com>
62361         * modules/sha1: Depend on stdint instead of md5.
62363         * modules/md5: Depend on stdint, remove uint32_t.
62365 2005-10-17  Simon Josefsson  <jas@extundo.com>
62367         * modules/gc-sha1-tests: New file.
62369         * tests/test-gc-sha1.c: New file.
62371 2005-10-17  Simon Josefsson  <jas@extundo.com>
62373         * m4/md5.m4: Remove call to uint32_t.m4.
62375 2005-10-17  Simon Josefsson  <jas@extundo.com>
62377         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
62379         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
62380         md5.h.
62382         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
62384         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
62386 2005-10-17  Simon Josefsson  <jas@extundo.com>
62388         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
62390 2005-10-17  Simon Josefsson  <jas@extundo.com>
62392         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
62394 2005-10-17  Simon Josefsson  <jas@extundo.com>
62396         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
62398         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
62400 2005-10-17  Bruno Haible  <bruno@clisp.org>
62402         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
62403         that it can also be used in a test.
62405 2005-10-16  Bruno Haible  <bruno@clisp.org>
62407         * gnulib-tool (func_emit_tests_Makefile_am): Also define
62408         TESTS_ENVIRONMENT, so that individual tests can augment it.
62410         * gnulib-tool (func_create_testdir): Use an intermediate target for
62411         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
62412         macros, like $(ALLOCA_H), which cannot be passed through the command
62413         line.
62415 2005-10-15  Simon Josefsson  <jas@extundo.com>
62417         * modules/rijndael-tests: New file.
62419         * modules/rijndael: New file.
62421 2005-10-15  Simon Josefsson  <jas@extundo.com>
62423         * m4/rijndael.m4: New file.
62425 2005-10-15  Simon Josefsson  <jas@extundo.com>
62427         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
62429         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
62431 2005-10-14  Simon Josefsson  <jas@extundo.com>
62433         * tests/test-arcfour.c: New file.
62435         * modules/arcfour, modules/arcfour-tests: New files.
62437 2005-10-14  Simon Josefsson  <jas@extundo.com>
62439         * m4/arcfour.m4: New file.
62441 2005-10-14  Simon Josefsson  <jas@extundo.com>
62443         * lib/arcfour.h, lib/arcfour.c: New files.
62445 2005-10-14  Roland McGrath  <roland@redhat.com>
62447         Import from libc.  [BZ #1331]
62448         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
62449         macro argument.
62450         Reported by Matej Vela <vela@debian.org>.
62452 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
62454         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
62455         include <wchar.h>; no longer needed.
62457 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
62459         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
62461 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
62462         and  Ulrich Drepper  <drepper@redhat.com>
62464         Import from libc.
62465         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
62466         instead of inline stream orientation test and two separate
62467         function calls.  Pay no attention to USE_IN_LIBIO.
62469 2005-10-13  Simon Josefsson  <jas@extundo.com>
62471         * modules/gc-hmac-md5-tests: New file.
62473         * tests/test-gc-hmac-sha1.c: New file.
62475         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
62477         * modules/gc-hmac-md5-tests: New file.
62479         * tests/test-gc-md5.c: New file.
62481         * modules/gc-md5-tests: New file.
62483 2005-10-13  Simon Josefsson  <jas@extundo.com>
62485         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
62486         Move memory allocation outside of loop.
62488 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
62490         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
62491         intermediate directory is in a read-only file system.  Problem
62492         reported by Eric Blake.
62494 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
62496         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
62498 2005-10-12  Simon Josefsson  <jas@extundo.com>
62500         * tests/test-hmac-sha1.c: New file.
62502         * modules/hmac-sha1-tests: New file.
62504         * modules/hmac-sha1: New file.
62506 2005-10-12  Simon Josefsson  <jas@extundo.com>
62508         * modules/gc-sha1: New file.
62510 2005-10-12  Simon Josefsson  <jas@extundo.com>
62512         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
62514         * tests/test-gc-pbkdf2-sha1.c: New file.
62516 2005-10-12  Simon Josefsson  <jas@extundo.com>
62518         * modules/gc-md5, modules/gc-hmac-md5: New files.
62520         * modules/gc (Files): Remove md5, memxor and hmac files.
62522 2005-10-12  Simon Josefsson  <jas@extundo.com>
62524         * m4/gc-pbkdf2-sha1.m4: New file.
62526         * m4/gc-hmac-sha1.m4: New file.
62528         * m4/gc-sha1: New file.
62530         * m4/hmac-sha1.m4: New file.
62532 2005-10-12  Simon Josefsson  <jas@extundo.com>
62534         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
62536         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
62538 2005-10-12  Simon Josefsson  <jas@extundo.com>
62540         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
62541         suggested by Bruno Haible <bruno@clisp.org>.
62543 2005-10-12  Simon Josefsson  <jas@extundo.com>
62545         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
62547 2005-10-12  Simon Josefsson  <jas@extundo.com>
62549         * lib/gc-pbkdf2-sha1.c: New file.
62551         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
62553 2005-10-12  Simon Josefsson  <jas@extundo.com>
62555         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
62557         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
62559 2005-10-12  Simon Josefsson  <jas@extundo.com>
62561         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
62562         GC_USE_HMAC_MD5, respectively.
62564         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
62565         (gc_md5): Fix typo.
62567         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
62569         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
62571         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
62573 2005-10-12  Bruno Haible  <bruno@clisp.org>
62575         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
62576         Reported by Stepan Kasal <kasal@ucw.cz>.
62578 2005-10-11  Simon Josefsson  <jas@extundo.com>
62580         * tests/test-crc.c: New file.
62582         * modules/crc, modules/crc-tests: New files.
62584 2005-10-11  Simon Josefsson  <jas@extundo.com>
62586         * m4/crc.m4: New file.
62588 2005-10-11  Simon Josefsson  <jas@extundo.com>
62590         * lib/gc.h: Add gc_hash and gc_hash_buffer.
62592         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
62594         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
62596 2005-10-11  Simon Josefsson  <jas@extundo.com>
62598         * lib/crc.h, lib/crc.c: New files.
62600         * lib/gc.h (gc_hash_buffer): Add doc.
62602 2005-10-11  Bruno Haible  <bruno@clisp.org>
62604         * modules/c-strcasestr: New file.
62605         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
62607 2005-10-11  Bruno Haible  <bruno@clisp.org>
62609         * modules/c-strcase: New file.
62610         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
62612 2005-10-11  Bruno Haible  <bruno@clisp.org>
62614         * lib/strcasecmp.c: Include limits.h.
62615         (strcasecmp): Avoid integer overflow on exotic platforms.
62616         * lib/strncasecmp.c: Include limits.h.
62617         (strncasecmp): Avoid integer overflow on exotic platforms.
62618         Reported by Paul Eggert.
62620 2005-10-11  Bruno Haible  <bruno@clisp.org>
62622         * lib/c-strcasestr.h: New file, from GNU gettext.
62623         * lib/c-strcasestr.c: New file, from GNU gettext.
62625 2005-10-11  Bruno Haible  <bruno@clisp.org>
62627         * lib/c-strcase.h: New file, from GNU gettext.
62628         * lib/c-strcasecmp.c: New file, from GNU gettext.
62629         * lib/c-strncasecmp.c: New file, from GNU gettext.
62631 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
62633         * modules/mempcpy (License): GPL -> LGPL.
62634         * modules/strchrnul (License): Likewise.
62635         * modules/sysexits (License): Likewise.
62637 2005-10-08  Simon Josefsson  <jas@extundo.com>
62639         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
62641 2005-10-07  Simon Josefsson  <jas@extundo.com>
62643         * m4/memxor.m4: Remove gl_C_RESTRICT call.
62645 2005-10-06  Simon Josefsson  <jas@extundo.com>
62647         * tests/test-hmac-md5.c: New file.
62649         * modules/hmac-md5-tests: New file.
62651         * modules/hmac-md5: New file.
62653 2005-10-06  Simon Josefsson  <jas@extundo.com>
62655         * m4/hmac-md5.m4: New file.
62657         * m4/memxor.m4: Require gl_C_RESTRICT.
62659 2005-10-06  Simon Josefsson  <jas@extundo.com>
62661         * lib/memxor.c (memxor): Avoid casts and warnings.
62663 2005-10-06  Simon Josefsson  <jas@extundo.com>
62665         * lib/hmac-md5.c: New file.
62667         * lib/hmac.h: New file.
62669 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
62671         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
62672         promotes to int, not unsigned int, to catch the AIX 5.3
62673         compiler bug.
62675 2005-10-05  Simon Josefsson  <jas@extundo.com>
62677         * modules/memxor: New file.
62679         * modules/iconv (Files): Move config.rpath to havelib, it is used
62680         there.
62682         * modules/havelib (Files): Add config.rpath.
62684 2005-10-05  Simon Josefsson  <jas@extundo.com>
62686         * m4/memxor.m4: New file.
62688 2005-10-05  Simon Josefsson  <jas@extundo.com>
62690         * lib/memxor.c (memxor): Fix compiler error.
62692         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
62693         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
62695         * lib/memxor.h, lib/memxor.c: New files.
62697         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
62698         we assume all systems have it, suggested by Jim Meyering
62699         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
62700         any systems lack sys/socket.h; mingw32 is known to lack it, but we
62701         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
62702         same reasons.
62704 2005-10-05  Simon Josefsson  <jas@extundo.com>
62706         * config/srclist.txt: Add glibc bug 1423 for md5.h.
62708 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
62710         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
62711         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
62712         needed, since the source code now assumes these .h files.
62714 2005-10-05  Derek Price  <derek@ximbiot.com>
62716         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
62718 2005-10-05  Bruno Haible  <bruno@clisp.org>
62720         * modules/stdint (License): Change to LGPL.
62722 2005-10-04  Simon Josefsson  <jas@extundo.com>
62724         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
62725         D. Baushke" <mdb@gnu.org>.
62727 2005-10-04  Bruno Haible  <bruno@clisp.org>
62729         * lib/verify.h (verify_true): Provide alternative definition for C++.
62731 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
62733         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
62734         (SSIZE_MAX): New macro, if not already defined.
62735         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
62736         than 2 GiB.
62738 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
62740         Sync from coreutils.
62741         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
62742         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
62743         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
62744         ULLONG_MAX doesn't work with 2.7.2.1.
62746 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
62748         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
62749         From Ben Pfaff.
62751         * modules/exclude (Depends-on): Depend on verify.
62752         * modules/strtoimax (Depends-on): Likewise.
62753         * modules/utimecmp (Depends-on): Likewise.
62755 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
62757         * lib/exclude.c: Include verify.h.
62758         (verify): Remove.  All callers changed to use verify.h's version.
62759         * lib/strtoimax.c: Likewise.
62760         * lib/utimecmp.c: Likewis.e
62762         Sync from coreutils.
62763         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
62764         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
62765         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
62766         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
62767         bother returning ENOSYS if settimeofday or stime fails; just let
62768         them return whatever errno they want to return.
62769         * lib/utimens.c: Include unistd.h, for dup2.
62770         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
62771         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
62773 2005-10-02  Jim Meyering  <jim@meyering.net>
62775         Sync from coreutils.
62776         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
62777         from glibc-2.2.5 that fails for read-only files.
62779 2005-10-02  Jim Meyering  <jim@meyering.net>
62781         Sync from coreutils.
62782         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
62783         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
62784         `#if HAVE_CONFIG_H'.
62785         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
62786         Remove AT_FDCWD test.
62787         Do not consume the fd unless successful.
62788         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
62789         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
62790         block, so that we don't even try to compile it if settimeofday is
62791         available.  This works around a compilation failure on OSF1 V5.1,
62792         due to stime requiring a `long int*' while tv_sec is `int'.
62794 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
62796         Sync from coreutils.
62797         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
62798         against `yes', rather than just testing for nonempty.
62800 2005-10-01  Simon Josefsson  <jas@extundo.com>
62802         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
62803         and Darwin.
62805         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
62806         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
62807         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
62808         freeaddrinfo and gai_strerror are declared by the POSIX headers.
62809         Check if struct addrinfo is declared.
62811 2005-10-01  Simon Josefsson  <jas@extundo.com>
62813         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
62814         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
62815         AI_* and EAI_* definitions.  Protect function declarations.
62817 2005-10-01  Jim Meyering  <jim@meyering.net>
62819         Sync from coreutils.
62821         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
62822         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
62823         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
62824         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
62825         in the inet and nsl libraries.  Required on Solaris 5.7.
62827 2005-10-01  Jim Meyering  <jim@meyering.net>
62829         Sync from coreutils.
62830         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
62831         in the inet and nsl libraries.  Required on Solaris 5.7.
62833 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
62835         * lib/getdelim.c (getdelim): Remove unused variables.
62837 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
62839         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
62840         so that the code works even with ancient cpp.  Portability problem
62841         with GCC 2.7.2.1 reported by Thomas M.Ott.
62843 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
62845         * modules/regex (Depends-on): Add strcase.
62847         * modules/gethostname (Licence): Change from GPL to LGPL, since
62848         gethostname.c is a trivial implementation of a standard library
62849         function.
62850         * modules/poll (License): Change from GPL to LGPL, since it's
62851         derived from LGPL code.
62853 2005-09-27  Jim Meyering  <jim@meyering.net>
62855         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
62856         HAVE_CONFIG_H.
62858         * lib/intprops.h (signed_type_or_expr__): Define.
62859         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
62860         for unsigned types.
62862 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
62864         * lib/verify.h (verify_expr): Remove, replacing with:
62865         (verify_true): New macro that returns true instead of void.
62866         (verify_type__): Remove.
62867         (verify): Use verify_true rather than verify_type__.
62869 2005-09-26  Bruno Haible  <bruno@clisp.org>
62871         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
62872         is necessary.
62873         (lib_SOURCES): Remove mbchar.c.
62874         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
62875         (Files): Add m4/mbrtowc.m4.
62876         * modules/mbiter: Likewise.
62877         * modules/mbuiter: Likewise.
62879 2005-09-26  Bruno Haible  <bruno@clisp.org>
62881         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
62882         compile mbchar.c if they are not both present.
62883         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
62884         * m4/mbiter.m4 (gl_MBITER): Likewise.
62885         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
62886         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
62887         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
62889 2005-09-25  Jim Meyering  <jim@meyering.net>
62891         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
62892         also uses socklen_t.
62894 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
62896         * lib/utimens.c (ENOSYS): Define if not already defined.
62897         (futimens): Support having a null PATH if the file descriptor
62898         is nonnegative.
62900         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
62901         Remove.
62902         (__attribute): Define to empty unless GCC 3.1 or later.
62903         This works around a core dump on OpenBSD 3.4, which has GCC
62904         2.95.3, which dumps core when given __attribute__(()).  It also
62905         simplifies other tests, since we really don't want to bother with
62906         worrying about which ancient version of GCC supported what.
62907         Original problem reported by Yoann Vandoorselaere, with part of
62908         the fix suggested by Derek Price.
62910 2005-09-24  Jim Meyering  <jim@meyering.net>
62912         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
62913         so we can once again use a positive bitfield width of 1 -- now we
62914         don't have to explain why we were using a bitfield width of 2.
62916 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
62918         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
62919         and similarly for the other external symbols.  Problem reported
62920         by James Gallager.
62922         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
62923         bug reported by Jim Meyering.
62925         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
62926         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
62927         not needed, since socklen is a prerequisite module.
62929 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
62931         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
62932         Problem reported by Eric Blake.
62933         (getaddrinfo): Initialize se so that it's not garbage.
62934         Redo internal storage allocation so that it doesn't make unportable
62935         assumptions about alignment.
62936         Fix a memory leak.
62938         * lib/utimens.c (futimens): Use futimesat if available.
62939         Prefer it to futimes since it doesn't have the futimes bug.
62941         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
62942         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
62943         Instead, declare a function that returns a pointer to an array,
62944         and use verify_type__ to declare the size of the array.
62945         Problem and germ of a solution reported by Bruno Haible.
62946         (verify_type__): Use 2, not 1, for bitfield size, to avoid
62947         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
62949 2005-09-23  Jim Meyering  <jim@meyering.net>
62951         Sync from coreutils.
62952         Correct build failure (socklen_t not defined) on at least
62953         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
62954         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
62956 2005-09-23  Jim Meyering  <jim@meyering.net>
62958         * modules/getaddrinfo (Depends-on): Add socklen.
62960 2005-09-23  Bruno Haible  <bruno@clisp.org>
62962         * tests/test-verify.c: New file.
62964 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
62966         Sync from coreutils.
62968         * modules/argmatch (Depends-on): Add verify.
62969         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
62970         unistd-safer.
62971         * modules/save-cwd (Depends-on): Likewise.
62973         * modules/openat (Files): Add lib/openat-die.c.
62974         (Depends-on): Remove error, exitfail.
62975         Add dirname.
62977         * modules/verify: New file.
62978         * MODULES.html.sh (Diagnostics <assert.h>): New section,
62979         with "verify" module.
62981 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
62983         Sync from coreutils.
62985         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
62986         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
62987         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
62988         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
62989         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
62990         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
62991         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
62992         Don't bother checking for string.h, stdlib.h, unistd.h.
62993         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
62994         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
62995         module's job.
62996         * m4/jm-macros.m4 (gl_MACROS): Likewise.
62997         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
62999         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
63000         (gl_GETDATE): Use it.
63002         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
63004 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
63006         Sync from coreutils.
63008         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
63009         stat-time.h.
63010         * lib/argmatch.h: Include verify.h
63011         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
63012         (ARGMATCH_ASSERT): Remove; unused.
63013         * lib/canonicalize.c: Assume STDC_HEADERS.
63014         * lib/exclude.c: Include "strcase.h".
63015         * lib/regex_internal.h [!defined _LIBC]: Likewise.
63016         * lib/getusershell.c: Include stdio--.h rather than stdio.h
63017         and stdio-safer.h.
63018         (getusershell): Call fopen, not fopen_safer.
63019         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
63020         Do not include unistd-safer.h.
63021         (save_cwd): Don't call fd_safer; no longer needed
63022         now that we include fcntl--.h.
63024         * lib/getdate.y (relative_time): New type.
63025         (RELATIVE_TIME_0): New constant.
63026         (parser_control): Use relative_time instead of doing it ourselves.
63027         (%union): Add new relative_time rel member.
63028         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
63029         Now typeless.
63030         (relunit, relunit_snumber): Now of type rel.
63031         (zone, rel, relunit, get_date): Adjust to above changes.
63033         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
63034         Do not include unistd-safer.h.
63035         (getloadavg): Don't call fd_safer; no longer needed
63036         now that we include fcntl--.h.
63038         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
63039         (make_dir_parents): Treat ENOSYS like EEXIST.
63041         Improve quality of diagnostics on restore_cwd failure.
63042         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
63043         (make_dir_parents): Last arg is now int * (for errno), not bool *.
63044         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
63045         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
63046         each time through the loop.  Do not diagnose restore_cwd failure;
63047         that is the caller's job (and perhaps the caller does not care).
63049         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
63050         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
63051         If the file already exists but is not a directory, don't bother
63052         to try to make its parents.
63053         Close potential file descriptor leak if we can't chdir("/") (!).
63054         Don't always return true if chdir($PWD) fails; return true only
63055         if the requested action was done successfully (except for the
63056         chdir($PWD)).
63057         Don't log final directory unless we actually made it.
63058         Refactor to avoid duplicate code to fix up permissions.
63059         Don't attempt to fix up parent permissions if chdir($PWD) fails.
63061         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
63062         to make it a bit faster and (I hope) clearer.
63063         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
63064         Fix bug in formats like %2N.
63066         * lib/verify.h: New file.
63068 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
63070         Sync from coreutils.
63071         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
63073 2005-09-22  Jim Meyering  <jim@meyering.net>
63075         Sync from coreutils.
63077         * m4/lstat.m4 (gl_FUNC_LSTAT):
63078         Use AC_LIBSOURCES to require lstat.c and lstat.h.
63079         Remove obsolete comment.
63080         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
63081         * m4/xstrtod.m4: Likewise.
63083         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
63085 2005-09-22  Jim Meyering  <jim@meyering.net>
63087         Sync from coreutils.
63089         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
63091         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
63092         the .tm_year member, since otherwise gcc-4.0 would now warn about
63093         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
63095         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
63096         order to avoid an unsuppressible warning from gcc on 64-bit systems.
63098         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
63099         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
63100         when run in a time zone for which daylight savings time is in effect
63101         for the starting date.
63103         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
63104         stop us from restricting permissions of just-created absolute-named
63105         directories.
63106         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
63107         to restore initial working directory.
63108         * lib/mkdir-p.c (make_dir_parents): New parameter:
63109         different_working_dir, to tell caller if/when we change the working
63110         directory and are unable to return to the initial one.
63111         * lib/mkdir-p.h (make_dir_parents): Update prototype.
63112         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
63113         `return false'.  This fixes a bug introduced on 2004-07-30.
63115         * lib/openat.c (fdopendir): Be sure to close the supplied
63116         file descriptor before returning.  This makes our replacement
63117         implementation a little closer to Solaris's, where fdopendir
63118         ties the file descriptor to the returned DIR* pointer.
63119         * lib/openat.c (unlinkat): New function.
63120         * lib/openat.h (unlinkat): Add prototype.
63121         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
63122         (openat_restore_fail): Rename from openat_restore_die.
63123         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
63125         Provide an alternative to exiting immediately upon save_cwd or
63126         restore_cwd failure.  Now, an application can arrange e.g.,
63127         to perform a longjump in that case.
63128         * lib/openat.c: Include dirname.h.
63129         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
63130         (rpl_openat, fdopendir, fstatat): Call openat_save_die
63131         and openat_restore_die rather than calling error directly.
63132         Don't include "error.h" or "exitfail.h"; they're no longer needed.
63134         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
63135         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
63136         define.
63138         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
63139         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
63140                             int utc, int nanoseconds);
63141         Background:
63142         date should not have to allocate a megabyte of virtual memory to
63143         handle a format argument like +%1048575T.  When implemented with
63144         strftime, it must allocate such a buffer, use strftime to fill it
63145         in, print it, then free it.
63146         With fprintftime, it simply prints everything and exits.
63147         With no need for memory allocation, that's one fewer way to fail.
63148         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
63149         optional field width, not before, so we accept %9:z, not %:9z.
63150         (my_strftime): Be sure to use L_('x') for literals.
63152         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
63153         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
63154         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
63155         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
63156         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
63157         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
63158         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
63159         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
63160         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
63161         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
63162         * lib/xgethostname.c, lib/xreadlink.c:
63163         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
63165         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
63166         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
63167         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
63168         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
63169         and don't include <sys/file.h>).
63171 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
63173         Sync from coreutils.
63175         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
63176         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
63177         [!LDAV_DONE]: Avoid unused variable warning.
63179 2005-09-21  Bruno Haible  <bruno@clisp.org>
63181         * lib/unicodeio.h (unicode_to_mb): New declaration.
63183 2005-09-20  Derek Price  <derek@ximbiot.com>
63185         * lib/getaddrinfo.c: Don't include <netdb.h> included from
63186         getaddrinfo.h.
63188 2005-09-20  Bruno Haible  <bruno@clisp.org>
63190         * gnulib-tool: Remove trailing slashes from the values specified for
63191         --source-base, --m4-base, --tests-base, --aux-dir.
63192         Suggested by Simon Josefsson <jas@extundo.com>.
63194 2005-09-20  Bruno Haible  <bruno@clisp.org>
63196         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
63197         func_modules_to_filelist, func_import, func_create_testdir): Make all
63198         sorting results locale-independent, so that gnulib-cache.m4 doesn't
63199         change when gnulib-tool is invoked in a different locale.
63201 2005-09-19  Simon Josefsson  <jas@extundo.com>
63203         * m4/socklen.m4: Fix typo.
63205 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63207         Use a consistent style for including <config.h>.
63208         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
63209         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
63210         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
63211         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
63212         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
63213         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
63214         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
63215         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
63216         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
63217         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
63218         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
63219         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
63220         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
63221         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
63222         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
63223         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
63224         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
63225         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
63226         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
63227         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
63228         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
63229         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
63230         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
63231         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
63232         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
63233         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
63234         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
63235         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
63236         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
63237         lib/xstrtoumax.c, lib/yesno.c:
63238         Standardize inclusion of config.h.
63239         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
63240         lib/inttostr.h:  Removed inclusion of config.h from header files.
63241         * lib/inttostr.c:  Adjusted in-tree users.
63242         * lib/timespec.h: Remove superfluous warning to include config.h.
63243         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
63244         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
63245         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
63246         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
63247         config.h with HAVE_CONFIG_H.
63249 2005-09-19  Jim Meyering  <jim@meyering.net>
63251         * modules/pathmax (License): Change to LGPL.
63253 2005-09-19  Derek Price  <derek@ximbiot.com>
63255         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
63257 2005-09-19  Bruno Haible  <bruno@clisp.org>
63259         * gnulib-tool (import): Provide default for --tests-base.
63261 2005-09-19  Bruno Haible  <bruno@clisp.org>
63263         * doc/quote.texi: New file, extracted from gnulib.texi.
63264         * doc/ctime.texi: New file, extracted from gnulib.texi.
63265         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
63266         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
63267         * doc/gnulib.texi: Include them.
63269 2005-09-18  Bruno Haible  <bruno@clisp.org>
63271         Portability fix.
63272         * gnulib-tool (func_readlink): New function.
63273         (func_ln_if_changed): Use it.
63275 2005-09-18  Bruno Haible  <bruno@clisp.org>
63277         * gnulib-tool: Support --with-tests also with --import.
63278         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
63279         (func_import): Use variables $testsbase and $inctests. Emit a
63280         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
63281         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
63282         SUBDIRS += $testsdir.
63283         (func_create_testdir): Update.
63285 2005-09-18  Bruno Haible  <bruno@clisp.org>
63287         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
63288         instead of $dry_run.
63289         (func_cp_if_changed, func_mv_if_changed): Remove functions.
63290         (func_ln_if_changed): Don't handle dry-run here.
63291         (func_import): In dry-run mode, detect more precisely which actions
63292         would be performed, and don't use "...ing" verbs.
63294 2005-09-18  Bruno Haible  <bruno@clisp.org>
63296         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
63297         (func_import): Use join on two temporary files instead of three nested
63298         loops, in order to determine which files are new or old.
63300 2005-09-18  Bruno Haible  <bruno@clisp.org>
63302         * gnulib-tool (func_import): Comment out code that spits out the
63303         new files with --dry-run.
63305 2005-09-18  Bruno Haible  <bruno@clisp.org>
63307         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
63309 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
63311         * lib/stat-time.h: New file.
63312         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
63313         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
63314         in a different way.
63315         (timespec_cmp): New function.
63316         * lib/utimecmp.c: Include stat-time.h.
63317         (SYSCALL_RESOLUTION): Depend on whether various struct stat
63318         members exist, not on the obsolescent ST_MTIM_NSEC.
63319         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
63321 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
63323         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
63325 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
63327         * MODULES.html.sh (File system functions): Add stat-time.
63328         * modules/stat-time: New file.
63329         * modules/timespec (Files): Remove m4/st_mtim.m4; this
63330         is now done in a different way, by the stat-time module.
63331         * modules/utimecmp (Depends-on): Add stat-time.
63333 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
63335         * m4/st_mtim.m4: Remove.  Superseded by...
63336         * m4/stat-time.m4: New file.
63337         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
63338         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
63340 2005-09-15  Derek Price  <derek@ximbiot.com>
63342         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
63344 2005-09-15  Derek Price  <derek@ximbiot.com>
63346         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
63347         * lib/regex_internal.c: Ditto, using this...
63348         (__GNUC_PREREQ): ...new macro.
63349         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
63350         using...
63351         (__GNUC_PREREQ): ...this new macro.
63353         * lib/strstr.h: Include string.h. Define strstr as a macro here.
63355 2005-09-15  Derek Price  <derek@ximbiot.com>
63356             Paul Eggert  <eggert@cs.ucla.edu>
63358         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
63359         changes, consolidating in...
63360         * lib/regex_internal.h: ...this file.
63362 2005-09-13  Jim Meyering  <jim@meyering.net>
63364         * lib/canon-host.c: Filter through gnu indent and reword comments
63365         slightly.
63366         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
63368 2005-09-13  Derek Price  <derek@ximbiot.com>
63370         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
63371         failure.
63372         Reported by Jim Meyering  <jim@meyering.net>.
63374 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
63376         * lib/base64.c: Typo.
63377         (base64_encode): Put b64str in initialized data section.
63379 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
63381         Merge glibc and coreutils changes into gnulib, plus a few
63382         extra fixes.
63383         * lib/md5.c: Use #error rather than a string.
63384         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
63385         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
63386         (__attribute__): Define to empty for non recent-GCC.
63387         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
63388         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
63389         Renamed from their non-__ counterparts, with new macros replacing
63390         them if not _LIBC.  Add __THROW attribute.
63391         (rol): Remove.
63392         (struct md5_ctx): Align buffer if using GCC.
63393         * lib/sha1.h (struct sha1_ctx): Likewise.
63394         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
63395         The old name was backwards.
63396         (NOTSWAP): Remove; not used.
63397         (rol): New macro, moved here from md5.h.
63398         (sha1_process_block): Remove a FIXME that doesn't make sense.
63400 2005-09-12  Derek Price  <derek@ximbiot.com>
63402         Return usable errors from canon-host.
63403         * lib/canon-host.h: New file.
63404         * lib/canon-host.c (canon_host): Wrap...
63405         (canon_host_r): ...this new function, which now relies exclusively on
63406         getaddrinfo.
63407         (ch_strerror): New function.
63408         (last_cherror): New global.
63409         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
63410         interface.
63411         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
63412         void *.
63413         (freeaddrinfo): Free ai->ai_canonname when set.
63415 2005-09-12  Derek Price  <derek@ximbiot.com>
63417         Make canon-host require getaddrinfo.
63418         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
63419         AC_LIBSOURCE canon-host.h.  Call...
63420         (gl_PREREQ_CANON_HOST): ...this new function, which requires
63421         gl_GETADDRINFO.
63422         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
63424 2005-09-12  Derek Price  <derek@ximbiot.com>
63426         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
63427         LGPL.
63428         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
63430 2005-09-12  Derek Price  <derek@ximbiot.com>
63432         * lib/gai_strerror.c: Include config.h when available.  Include
63433         getaddrinfo.h before other headers to test interface.
63434         Reported by Larry Jones <lawrence.jones@ugs.com>.
63436 2005-09-12  Derek Price  <derek@ximbiot.com>
63437             Paul Eggert  <eggert@cs.ucla.edu>
63439         * modules/glob (Files): Add glob-libc.h.
63441 2005-09-12  Derek Price  <derek@ximbiot.com>
63442             Paul Eggert  <eggert@cs.ucla.edu>
63444         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
63445         glob_.h, glob-libc.h.
63446         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
63448 2005-09-12  Derek Price  <derek@ximbiot.com>
63449             Paul Eggert  <eggert@cs.ucla.edu>
63451         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
63452         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
63453         protecting things that should be done only in gnulib contexts.
63454         * lib/glob_.h: New file, containing only the glob things needed for
63455         gnulib.
63456         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
63457         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
63458         (glob, globfree, glob_pattern_p): Now defined simply in terms of
63459         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
63460         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
63461         and to respect the namespace rules better.
63463 2005-09-08  Simon Josefsson  <jas@extundo.com>
63465         * modules/socklen: New file.
63467 2005-09-08  Simon Josefsson  <jas@extundo.com>
63469         * m4/socklen.m4: New file.
63471 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
63473         * modules/utimens (Files): Add m4/utimbuf.m4, since
63474         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
63475         Reported by Sergey Poznyakoff.
63477 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
63479         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
63480         definitions, since that's the preferred style in glibc.
63481         Fix a minor spacing issue, and update copyright notice to match
63482         glibc's.
63484 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
63486         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
63488 2005-09-06  Simon Josefsson  <jas@extundo.com>
63490         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
63491         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
63493 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
63495         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
63496         warning.
63498 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
63500         * config/srclist.txt: Add glibc bug 1302.
63502 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
63504         Change bitset word type from unsigned int to unsigned long int,
63505         as this has better performance on typical 64-bit hosts.
63506         Port bitset code to hosts with unusual word sizes.
63507         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
63508         (build_collating_symbol):
63509         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
63510         argument is a bitset.  This is merely a style issue, but it makes
63511         it clearer that an entire array is expected.
63512         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
63513         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
63514         Port to the case where bitset_word is not the same as unsigned int.
63515         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
63516         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
63517         Likewise.
63518         * lib/regexec.c (check_dst_limits_calc_pos_1,
63519         check_subexp_matching_top):
63520         (build_trtable, group_nodes_into_DFAstates):
63521         Likewise.
63522         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
63523         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
63524         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
63525         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
63526         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
63527         * lib/regcomp.c (optimize_subexps, lower_subexp):
63528         Work even if bitset_word has holes in its bitwise representation.
63529         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
63530         * lib/regexec.c (check_dst_limits_calc_pos_1,
63531         check_subexp_matching_top):
63532         Likewise.
63533         * lib/regex_internal.c (re_string_reconstruct):
63534         Don't assume UCHAR_MAX == 255.
63535         * lib/regex_internal.h (bitset_set_all): Likewise.
63536         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
63537         All uses changed.
63538         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
63539         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
63540         All uses changed.
63541         (BITSET_WORD_MAX): New macro.
63542         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
63543         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
63544         (bitset_empty, bitset_copy):
63545         Prefer sizeof (bitset) to multiplying it out ourselves.
63546         (bitset_not_merge): Remove; unused.
63547         (bitset_contain): Return bool, not unsigned int with one bit on.
63548         All callers changed.
63549         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
63550         alignment than re_node_set; do this by defining a new internal
63551         type struct dests_alloc and using it to allocate memory.
63553 2005-09-05  Bruno Haible  <bruno@clisp.org>
63555         * gnulib-tool (func_import): Fix comparison in handling of symbolic
63556         links.
63558 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
63560         * modules/size_max (Makefile.am): Add size_max.h
63562 2005-09-04  Derek Price  <derek@ximbiot.com>
63564         * gnulib-tool (func_import): Fix reversed $symbolic logic.
63566 2005-09-03  Simon Josefsson  <jas@extundo.com>
63568         * gnulib-tool: Fix typo.
63570 2005-09-03  Simon Josefsson  <jas@extundo.com>
63572         * config/srclist.txt: Add glibc bug 1293.
63574 2005-09-03  Derek Price  <derek@ximbiot.com>
63576         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
63577         From Larry Jones <lawrence.jones@ugs.com>.
63579 2005-09-02  Simon Josefsson  <jas@extundo.com>
63581         * modules/socklen: New file.
63583 2005-09-02  Simon Josefsson  <jas@extundo.com>
63585         * modules/havelib: New module.
63587         * modules/gettext, modules/iconv, modules/lock, modules/readline:
63588         Use havelib.
63590 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
63592         Check for arithmetic overflow when calculating sizes, to prevent
63593         some buffer-overflow issues.  These patches are conservative, in the
63594         sense that when I couldn't determine whether an overflow was possible,
63595         I inserted a run-time check.
63596         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
63597         macros.
63598         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
63599         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
63600         (re_xnrealloc, re_x2nrealloc): New inline functions.
63601         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
63602         parse_bracket_exp):
63603         (build_equiv_class, build_charclass): Check for arithmetic overflow
63604         in size expression calculations.
63605         * lib/regex_internal.c (re_string_realloc_buffers):
63606         (build_wcs_upper_buffer, re_node_set_add_intersect):
63607         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
63608         (re_dfa_add_node, register_state): Likewise.
63609         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
63610         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
63611         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
63612         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
63614 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
63616         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
63617         m4/ulonglong.m4.  Problem reported by Martin Lambers.
63619 2005-09-02  Bruno Haible  <bruno@clisp.org>
63621         Support for lib vs. lib64 distinction on biarch platforms.
63622         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
63623         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
63624         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
63626 2005-09-02  Bruno Haible  <bruno@clisp.org>
63628         * gnulib-tool (import): In the other first-use case, provide defaults
63629         as well.
63631 2005-09-02  Bruno Haible  <bruno@clisp.org>
63633         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
63634         patches not yet found in the latest gettext release.
63636 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
63638         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
63639         to avoid a collision with bits/local_lim.h in glibc.
63640         All uses changed.  Problem reported by Dmitry V. Levin in
63641         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
63643         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
63644         bugs in int versus size_t comparisons.
63645         (re_string_context_at): Fix bug where the code assumed that
63646         Idx is signed.
63648         Use bool where appropriate.
63649         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
63650         All callers changed.
63651         (calc_eclosure_iter): Likewise, for ROOT arg.
63652         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
63653         (build_charclass_op): Likewise, for NON_MATCH arg.
63654         * lib/regex_internal.c (re_string_allocate, re_string_construct):
63655         (re_string_construct_common): Likewise, for ICASE arg.
63656         * lib/regexec.c (re_search_2_stub, re_search_stub):
63657         Likewise, for RET_LEN arg.
63658         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
63659         (set_regs): Likewise, for FL_BACKTRACK arg.
63660         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
63661         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
63662         (calc_eclosure_iter, parse_bracket_exp):
63663         Use bool for internal variables that are booleans.
63664         * lib/regexec.c (re_search_internal, check_matching,
63665         proceed_next_node):
63666         (set_regs, build_sifted_states, sift_states_bkref):
63667         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
63668         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
63669         (find_collation_sequence_value):
63670         Likewise.
63671         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
63672         (re_node_set_compare):
63673         Return bool, not int. All callers changed.
63674         * lib/regexec.c (check_halt_node_context, check_dst_limits):
63675         (build_trtable, check_node_accept): Likewise.
63676         * lib/regex_internal.h: Include stdbool.h.
63678         Fix bugs uncovered when converting to bool.
63679         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
63680         failure instead of charging ahead blindly.
63681         * lib/regex_internal.c (register_state): Likewise.
63682         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
63683         for freeing internal storage.
63684         (group_nodes_into_DFA_states): Use unsigned int, not int, for
63685         bitset pieces used as boolean, to avoid undefined behavior
63686         on hosts that do int overflow checking.
63688 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
63690         * config/srclist.txt: Add glibc bugs 1285-1287.
63692 2005-09-01  Jim Meyering  <jim@meyering.net>
63694         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
63695         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
63696         Require gl_STAT_MACROS, too.
63698 2005-09-01  Bruno Haible  <bruno@clisp.org>
63700         * gnulib-tool (import): In the first-use case, provide defaults.
63702 2005-09-01  Bruno Haible  <bruno@clisp.org>
63704         * gnulib-tool (func_import): Remove the .tmp files.
63706 2005-09-01  Bruno Haible  <bruno@clisp.org>
63708         * gnulib-tool (func_import): Fix handling of symbolic links.
63710 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
63712         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
63713         old glibc regex code mishandles strings longer than 2**31 bytes.
63714         This patch fixes this when the regex code is used in gnulib
63715         (i.e., outside glibc).
63717         This patch should not affect the use of the regex code inside
63718         glibc.  No doubt this problem also needs to be handled for glibc
63719         as well, but the result will be an incompatible change to the
63720         glibc ABI, and the old ABI will have to be supported too.  That
63721         can be the the subject for another patch.
63723         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
63724         governing whether the rest of this patch is active.  By default,
63725         the macro is disabled and the patch has no effect.
63726         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
63727         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
63728         (struct re_pattern_buffer, re_search, re_search_2, re_match):
63729         (re_match_2, re_set_registers): Use the new types.
63730         * lib/regex_internal.h (Idx, re_hashval_t): New types.
63731         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
63732         New macros.
63733         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
63734         (re_string_context_at, bin_tree_t, re_dfastate_t):
63735         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
63736         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
63737         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
63738         (re_string_char_size_at, re_string_wchar_at):
63739         (re_string_elem_size_at):
63740         Use the new types and macros to port to 64-bit hosts.
63741         Use unsigned types for internal values, so that the code
63742         mostly works even for arrays larger than SSIZE_MAX.
63743         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
63744         (search_duplicated_node, calc_eclosure_iter, fetch_number):
63745         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
63746         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
63747         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
63748         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
63749         (calc_inveclosure, parse_dup_op, build_range_exp):
63750         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
63751         (fetch_number, create_token_tree, mark_opt_subexp):
63752         Likewise.
63753         * lib/regex_internal.c (re_string_construct_common,
63754         create_ci_newstate):
63755         (create_cd_newstate, re_string_allocate, re_string_construct):
63756         (re_string_realloc_buffers, build_wcs_upper_buffer):
63757         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
63758         (re_string_reconstruct, re_string_peek_byte_case):
63759         (re_string_fetch_byte_case, re_string_context_at):
63760         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
63761         (re_node_set_init_copy, re_node_set_add_intersect):
63762         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
63763         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
63764         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
63765         (re_acquire_state, re_acquire_state_context, register_state):
63766         Likewise.
63767         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
63768         search_cur_bkref_entry):
63769         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
63770         (re_search_internal, re_search_2_stub, re_search_stub)
63771         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
63772         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
63773         (update_cur_sifted_state, check_dst_limits):
63774         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
63775         (check_subexp_limits, sift_states_bkref, merge_state_array):
63776         (check_subexp_matching_top, get_subexp, get_subexp_sub):
63777         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
63778         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
63779         (expand_bkref_cache, check_node_accept_bytes):
63780         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
63781         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
63782         (acquire_init_state_context, check_halt_node_context):
63783         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
63784         (sift_states_backward, clean_state_log_if_needed):
63785         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
63786         (find_recover_state, transit_state_sb, transit_state_mb):
63787         (transit_state_bkref, build_trtable, match_ctx_clean):
63788         Likewise.
63789         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
63790         to work around an assumption that REG_MISSING is negative.
63792         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
63793         (seek_collating_symbol_entry) [defined _LIBC]:
63794         (lookup_collation_sequence_value) [defined _LIBC]:
63795         (build_range_exp, build_collating_symbol) [defined _LIBC]:
63796         Use prototypes rather than old-style function definitions.
63797         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
63798         (transit_state_sb) [0]:
63799         (find_collation_sequence_value) [defined _LIBC]: Likewise.
63801         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
63802         rm_eo.
63804         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
63805         (optimize_subexps, lower_subexp):
63806         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
63807         since the signed shift might overflow.  Use 1u<<31 instead.
63808         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
63809         Likewise.
63810         * lib/regexec.c (check_dst_limits_calc_pos_1,
63811         check_subexp_matching_top): Likewise.
63813         * lib/regcomp.c (optimize_subexps, lower_subexp):
63814         Use CHAR_BIT rather than 8, for clarity.
63815         * lib/regexec.c (check_dst_limits_calc_pos_1):
63816         (check_subexp_matching_top): Likewise.
63817         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
63818         have to worry about portability issues when shifting it left.
63819         Remove no-longer-needed test for table_size > 0.
63820         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
63821         in a word, as the resulting behavior is undefined.
63822         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
63823         in one case, a <= should have been an <, and in another case the
63824         whole test was missing.
63825         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
63826         the standard name CHAR_BIT.
63827         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
63828         this is not true on one's complement and signed-magnitude hosts.
63830         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
63831         next_last_offset.
63832         (struct re_dfa_t): Remove unused member states_alloc.
63833         * lib/regcomp.c (init_dfa): Don't initialize unused members.
63835 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
63837         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
63838         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
63839         and large-file glibc and in 32-bit large-file Solaris.
63841 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
63843         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
63844         lengths fit in regoff_t; this isn't true if regoff_t is the same
63845         width as size_t.
63846         * lib/regex.c (re_search_internal): 5th arg is LAST_START
63847         (= START + RANGE) instead of RANGE.  This avoids overflow
63848         problems when regoff_t is the same width as size_t.
63849         All callers changed.
63850         (re_search_2_stub): Check for overflow when adding the
63851         sizes of the two strings.
63852         (re_search_stub): Check for overflow when adding START
63853         to RANGE; if it occurs, substitute the extreme value.
63855 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
63857         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
63859 2005-08-31  Jim Meyering  <jim@meyering.net>
63861         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
63862         a pointer-to-const.
63863         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
63864         (register_state): Likewise.
63865         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
63866         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
63867         (group_nodes_into_DFAstates): Likewise.
63869 2005-08-31  Jim Meyering  <jim@meyering.net>
63871         * check-module: Add a FIXME comment.
63873 2005-08-31  Eric Blake  <ebb9@byu.net>
63875         * modules/unistd-safer (Files): Add unistd--.h.
63876         * modules/stdio-safer (Files): Add stdio--.h.
63878 2005-08-31  Derek Price  <derek@ximbiot.com>
63880         * lib/getdelim.c (getdelim): Return EOF on EOF.
63881         Reported by Larry Jones <lawrence.jones@ugs.com>.
63883 2005-08-31  Bruno Haible  <bruno@clisp.org>
63885         Avoid unnecessary diffs in the generated lib/Makefile.am.
63886         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
63887         the generated files.
63888         (func_import): Don't set cmd.
63890 2005-08-31  Bruno Haible  <bruno@clisp.org>
63892         * lib/strstr.c: Include <stddef.h>, for NULL.
63893         * lib/strcasestr.c: Likewise.
63894         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
63896 2005-08-31  Bruno Haible  <bruno@clisp.org>
63898         * gnulib-tool: New option --macro-prefix.
63899         (func_import): Use macro_prefix.
63900         (import): Handle option --macro-prefix.
63902 2005-08-31  Bruno Haible  <bruno@clisp.org>
63904         * gnulib-tool (import): Rename most ac_* variables to cached_*.
63905         Also use new variables cached_lgpl, cached_libtool.
63907 2005-08-31  Bruno Haible  <bruno@clisp.org>
63909         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
63910         always instantiating them.
63912 2005-08-31  Bruno Haible  <bruno@clisp.org>
63914         * gnulib-tool (func_import): Read the previous cached settings
63915         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
63916         earlier added by gnulib but are now dropped. Warn when a gnulib file
63917         overwrites a non-gnulib file.
63919 2005-08-31  Bruno Haible  <bruno@clisp.org>
63921         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
63922         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
63923         projects that don't keep autogenerated files in CVS. Put into
63924         actioncmd only the specified modules, not the transitive closure.
63926 2005-08-31  Bruno Haible  <bruno@clisp.org>
63928         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
63929         Create directories that shall be filled.
63930         (import): Don't look for gl_* macros in configure.ac. Recurse across
63931         all directories containing a gnulib-cache.m4 files, if meaningful.
63933 2005-08-31  Bruno Haible  <bruno@clisp.org>
63935         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
63936         (import): Set seen_libtool when we see gl_LIBTOOL.
63938 2005-08-31  Bruno Haible  <bruno@clisp.org>
63940         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
63941         declaration macro definitions from generated gnulib.m4.
63943 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
63945         * lib/iconvme.h: Add prototype for iconv_alloc.
63947 2005-08-29  Simon Josefsson  <jas@extundo.com>
63949         * lib/iconvme.c: Fix errno.
63951 2005-08-29  Bruno Haible  <bruno@clisp.org>
63953         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
63954         that it works when the directory contains spaces.
63956 2005-08-29  Bruno Haible  <bruno@clisp.org>
63958         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
63960 2005-08-29  Bruno Haible  <bruno@clisp.org>
63962         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
63963         Emit more advice.
63965 2005-08-29  Bruno Haible  <bruno@clisp.org>
63966         and Stepan Kasal  <kasal@ucw.cz>
63968         * check-module: If more parameters are given, check each of them
63969         separately; add more exceptions, as noted by Jim Meyering.
63970         (check_module): New procedure.
63971         (%exempt_header): Now contains all exceptions.
63973 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
63975         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
63977 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
63979         * lib/iconvme.c: Split iconv_string into iconv_alloc.
63981 2005-08-28  Bruno Haible  <bruno@clisp.org>
63983         * m4/gnulib-tool.m4: New file.
63985 2005-08-27  Jim Meyering  <jim@meyering.net>
63987         * modules/unistd-safer (Files): Add pipe-safer.c.
63988         * modules/fcntl-safer (Files): Add creat-safer.c.
63990 2005-08-27  Jim Meyering  <jim@meyering.net>
63992         * m4/stdlib-safer.m4: New file.  From coreutils.
63993         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
63994         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
63995         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
63996         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
63997         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
63999 2005-08-27  Jim Meyering  <jim@meyering.net>
64001         * lib/fopen-safer.c: Merge minor changes from coreutils.
64002         * lib/dup-safer.c: Likewise.
64003         * lib/fd-safer.c: Likewise.
64005         Merge from coreutils.
64006         * lib/stdio--.h: New file.
64007         * lib/stdlib--.h: New file.
64008         * lib/mkstemp-safer.c: New file.
64010         GNU tar needs these.
64011         * lib/pipe-safer.c: New file.
64012         * lib/creat-safer.c: New file.
64013         * lib/fcntl--.h (creat): Define to creat_safer.
64014         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
64015         * lib/unistd--.h (pipe): Define to pipe_safer.
64016         * lib/unistd-safer.h: Declare pipe_safer.
64018 2005-08-26  Simon Josefsson  <jas@extundo.com>
64020         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
64021         Haible <bruno@clisp.org>.
64023 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
64025         * lib/regex_internal.h: Remove all references to
64026         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
64027         or better.
64028         (bitset_not, bitset_merge, bitset_not_merge):
64029         (bitset_mask, re_string_allocate, re_string_construct):
64030         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
64031         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
64032         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
64033         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
64034         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
64035         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
64036         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
64037         (re_acquire_state_context):
64038         Remove unnecessary forward decls.
64039         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
64040         Put __attribute at function definition,
64041         now that the function decl has been removed.
64042         * lib/regex_internal.c (re_string_peek_byte_case):
64043         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
64044         Likewise.
64046 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
64048         * m4/regex.m4: Add AC_PREREQ(2.50).
64049         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
64051 2005-08-25  Simon Josefsson  <jas@extundo.com>
64053         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
64054         __fsetlocking.
64056 2005-08-25  Simon Josefsson  <jas@extundo.com>
64058         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
64059         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
64060         GLIBC specific code.
64062 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
64064         Make regex safe for g++.  This fixes one real bug (an "err"
64065         that should have been "*err").  g++ problem reported by
64066         Sam Steingold.
64067         * lib/regex_internal.h (re_calloc): New macro, consistent with
64068         re_malloc etc.  All callers of calloc changed to use re_calloc.
64069         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
64070         not int.  All callers changed.
64071         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
64072         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
64073         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
64074         (find_recover_state): Change "err" to "*err"; this fixes what
64075         appears to be a real bug.
64076         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
64077         versus int.
64079 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
64081         * modules/regex (Depends-on): Add malloc, since the code
64082         assumes that !malloc(0) means failure.
64084 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
64086         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
64088         alloca modernization/simplification for regex.
64089         * lib/regex.c: Remove portability cruft for alloca.  This no longer
64090         needs to be at the start of the file, and can be moved into
64091         regex_internal.h and simplified.
64092         * lib/regex_internal.h: Include <alloca.h>.
64093         (__libc_use_alloca) [!defined _LIBC]: New macro.
64094         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
64095         now works outside glibc.
64097 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
64099         * config/srclist.txt: Add glibc bugs 1241, 1245.
64101 2005-08-25  Jim Meyering  <jim@meyering.net>
64103         * lib/open-safer.c: Include <config.h>.
64104         Otherwise, we'd lose LARGEFILE support in any file using
64105         e.g. "fcntl--.h"
64107 2005-08-25  Bruno Haible  <bruno@clisp.org>
64109         * m4/minmax.m4: Require autoconf 2.52.
64110         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
64111         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
64112         alternatives of translit over the alphabet.
64113         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
64115 2005-08-24  Simon Josefsson  <jas@extundo.com>
64117         * tests/test-getpass.c: New file.
64119 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
64121         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
64122         for GNU regex features.
64124 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
64126         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
64127         * lib/regex.h (regerror): Likewise.
64129         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
64130         requires this.  (The code never needed it.)
64132         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
64133         All uses of recently-renamed identifiers changed to use the new,
64134         POSIX-compliant names.  The code will build and run just fine
64135         without these changes, but it's better to eat our own dog food
64136         and use the standard-conforming names.
64138         * lib/regex.h: Fix a multitude of POSIX name space violations.
64139         These changes have an effect only for programs that define
64140         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
64141         do not change anything for programs compiled in the normal way.
64142         Also, there is no effect on the ABI.
64144         (_REGEX_SOURCE): New macro.
64145         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
64146         defined and _GNU_SOURCE is not; this fixes a name space violation.
64148         Rename the following macros to obey POSIX requirements.
64149         The old names are still visible as macros if _REGEX_SOURCE is defined.
64150         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
64151         RE_BACKSLASH_ESCAPE_IN_LISTS.
64152         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
64153         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
64154         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
64155         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
64156         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
64157         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
64158         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
64159         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
64160         (REG_INTERVALS): renamed from RE_INTERVALS.
64161         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
64162         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
64163         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
64164         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
64165         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
64166         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
64167         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
64168         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
64169         RE_UNMATCHED_RIGHT_PAREN_ORD.
64170         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
64171         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
64172         (REG_DEBUG): renamed from RE_DEBUG.
64173         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
64174         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
64175         unusual, since we can't clash with the POSIX REG_ICASE.
64176         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
64177         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
64178         (REG_NO_SUB): renamed from RE_NO_SUB.
64179         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
64180         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
64181         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
64182         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
64183         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
64184         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
64185         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
64186         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
64187         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
64188         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
64189         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
64190         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
64191         RE_SYNTAX_POSIX_MINIMAL_BASIC.
64192         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
64193         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
64194         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
64195         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
64196         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
64197         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
64198         (REG_FIXED): Renamed from REGS_FIXED.
64199         (REG_NREGS): Renamed from RE_NREGS.
64201         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
64202         of other REG_* macros, since POSIX says the user is allowed to
64203         #undef these macros selectively.
64205         (reg_errcode_t): Update comment stating what other tables need
64206         to be consistent.
64208         Rename the following enum values to obey POSIX requirements.
64209         The old names are still visible as macros.
64210         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
64211         is not defined, since GNU is supposed to be a superset of POSIX as
64212         much as possible, and since we want reg_errcode_t to be a signed
64213         type for implementation consistency.
64214         (_REG_NOERROR): Renamed from REG_NOERROR.
64215         (_REG_NOMATCH): Renamed from REG_NOMATCH.
64216         (_REG_BADPAT): Renamed from REG_BADPAT.
64217         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
64218         (_REG_ECTYPE): Renamed from REG_ECTYPE.
64219         (_REG_EESCAPE): Renamed from REG_EESCAPE.
64220         (_REG_ESUBREG): Renamed from REG_ESUBREG.
64221         (_REG_EBRACK): Renamed from REG_EBRACK.
64222         (_REG_EPAREN): Renamed from REG_EPAREN.
64223         (_REG_EBRACE): Renamed from REG_EBRACE.
64224         (_REG_BADBR): Renamed from REG_BADBR.
64225         (_REG_ERANGE): Renamed from REG_ERANGE.
64226         (_REG_ESPACE): Renamed from REG_ESPACE.
64227         (_REG_BADRPT): Renamed from REG_BADRPT.
64228         (_REG_EEND): Renamed from REG_EEND.
64229         (_REG_ESIZE): Renamed from REG_ESIZE.
64230         (_REG_ERPAREN): Renamed from REG_ERPAREN.
64231         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
64232         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
64233         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
64234         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
64236         (_REG_RE_NAME, _REG_RM_NAME): New macros.
64237         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
64238         changed.  But support the old name if the new one is not defined
64239         and if _REGEX_SOURCE.
64241         Change the following member names in struct re_pattern_buffer.
64242         The old names are still supported if !_REGEX_SOURCE.
64243         The new names are always supported, regardless of _REGEX_SOURCE.
64244         (re_buffer): Renamed from buffer.
64245         (re_allocated): Renamed from allocated.
64246         (re_used): Renamed from used.
64247         (re_syntax): Renamed from syntax.
64248         (re_fastmap): Renamed from fastmap.
64249         (re_translate): Renamed from translate.
64250         (re_can_be_null): Renamed from can_be_null.
64251         (re_regs_allocated): Renamed from regs_allocated.
64252         (re_fastmap_accurate): Renamed from fastmap_accurate.
64253         (re_no_sub): Renamed from no_sub.
64254         (re_not_bol): Renamed from not_bol.
64255         (re_not_eol): Renamed from not_eol.
64256         (re_newline_anchor): Renamed from newline_anchor.
64258         Change the following member names in struct re_registers.
64259         The old names are still supported if !_REGEX_SOURCE.
64260         The new names are always supported, regardless of _REGEX_SOURCE.
64261         (rm_num_regs): Renamed from num_regs.
64262         (rm_start): Renamed from start.
64263         (rm_end): Renamed from end.
64265         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
64266         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
64267         Prepend __ to parameter names.
64269         Undo yesterday's changes.
64271 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
64273         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
64274         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
64275         lib/regex.c.
64277 2005-08-24  Jim Meyering  <jim@meyering.net>
64279         Sync from coreutils.
64280         * m4/fcntl-safer.m4: New file.
64282         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
64283         and object files for this module.
64285 2005-08-24  Jim Meyering  <jim@meyering.net>
64287         Sync from coreutils.
64288         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
64290 2005-08-24  Jim Meyering  <jim@meyering.net>
64292         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
64293         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
64295 2005-08-24  Jim Meyering  <jim@meyering.net>
64297         * modules/fcntl-safer: New module.
64298         * modules/fts (Depends-on): Add fcntl-safer.
64299         * MODULES.html.sh (File descriptor based Input/Output):
64300         Add fcntl-safer.
64302 2005-08-24  Bruno Haible  <bruno@clisp.org>
64304         Support for unit test modules.
64305         * modules/README: Mention tests modules.
64306         * modules/TEMPLATE-TESTS: New file.
64307         * gnulib-tool: New options --extract-tests-module, --with-tests and
64308         --tests-base (unused for the moment).
64309         (testsbase, inctests): New variables.
64310         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
64311         (func_verify_module): Exclude TEMPLATE-TESTS.
64312         (func_verify_nontests_module, func_verify_tests_module): New functions.
64313         (func_get_dependencies): Add implicit dependency for tests modules.
64314         (func_get_tests_module): New function.
64315         (func_modules_transitive_closure): When --with-tests was specified,
64316         include the unit tests as well, unless explicitly avoided.
64317         (func_emit_lib_Makefile_am): Ignore the tests modules here.
64318         (func_emit_tests_Makefile_am): New function.
64319         (func_create_testdir): When --with-tests was specified, emit a
64320         tests/ directory.
64321         * MODULES.html.sh (Future developments): Update.
64323 2005-08-24  Bruno Haible  <bruno@clisp.org>
64325         * modules/tls-tests: New file.
64326         * tests/test-tls.c: New file, from GNU gettext.
64328 2005-08-24  Bruno Haible  <bruno@clisp.org>
64330         * modules/lock-tests: New file.
64331         * tests/test-lock.c: New file, from GNU gettext.
64333 2005-08-24  Bruno Haible  <bruno@clisp.org>
64335         * lib/lock.h: Add multiple inclusion guard.
64336         * lib/tls.h: Add multiple inclusion guard.
64338 2005-08-24  Bruno Haible  <bruno@clisp.org>
64340         * gnulib-tool: Add support for the --aux-dir option to
64341         --create-testdir, --create-megatestdir, --test, --megatest.
64342         (func_create_testdir, func_create_megatestdir): Optionally emit a
64343         AC_CONFIG_AUX_DIR directive.
64344         (create-testdir, create-megatestdir, test, megatest): Provide a
64345         default value for $auxdir.
64347 2005-08-24  Bruno Haible  <bruno@clisp.org>
64349         * gnulib-tool (import): Use compound statement instead of subshell
64350         where possible.
64352 2005-08-24  Bruno Haible  <bruno@clisp.org>
64354         * gnulib-tool (import): Change --aux-dir default to "build-aux".
64356 2005-08-24  Bruno Haible  <bruno@clisp.org>
64358         * gnulib-tool (func_version): Update.
64360 2005-08-24  Bruno Haible  <bruno@clisp.org>
64362         * gnulib-tool (func_import, func_create_testdir,
64363         func_create_megatestdir): Quote all autoconf macro arguments.
64365 2005-08-24  Bruno Haible  <bruno@clisp.org>
64367         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
64368         option --force, because --force causes the aclocal.m4 of each
64369         subdirectory to be newer than the corresponding config.h.in.
64371 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
64373         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
64374         All contents moved to gl_REGEX.
64375         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
64376         assume that it does.
64378 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
64380         * lib/regex.h (REG_NOSYS)
64381         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
64382         Define, since POSIX requires it as of 2001.
64383         (_REG_ENOSYS)
64384         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
64385         New private symbol, used to keep the enum signed in all cases.
64386         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
64387         Youngman in
64388         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
64390         * lib/regex_internal.c (re_string_skip_chars, register_state):
64391         (calc_state_hash):
64392         Remove forward decls; no longer needed now that we use prototypes.
64393         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
64394         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
64395         (clean_state_log_if_needed): Likewise.
64397 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
64399         * config/srclist.txt: Add glibc bugs 1231-1233.
64401 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
64403         Fix problems reported by Sam Steingold in
64404         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
64405         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
64406         assumed that reg_errcode_t is a signed type, which is not
64407         necessarily true if _XOPEN_SOURCE is not defined.
64408         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
64409         since some compilers warn about it otherwise.
64411 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
64413         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
64414         (init_word_char, create_initial_state, duplicate_node_closure):
64415         (fetch_token, peek_token_bracket, build_range_exp):
64416         (build_collating_symbol): Remove forward decls; no longer needed
64417         now that we use prototypes.
64419         * lib/regcomp.c:
64420         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
64421         (re_compile_fastmap_iter, regcomp, regerror, regfree):
64422         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
64423         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
64424         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
64425         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
64426         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
64427         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
64428         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
64429         (build_range_exp, build_collating_symbol, parse_bracket_exp):
64430         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
64431         (build_charclass, build_charclass_op, fetch_number, create_tree):
64432         (create_token_tree, mark_opt_subexp, duplicate_tree):
64433         Use prototypes rather than old-style definitions.
64435         * lib/regex_internal.c:
64436         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
64437         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
64438         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
64439         (re_string_reconstruct, re_string_peek_byte_case):
64440         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
64441         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
64442         (re_node_set_init_copy, re_node_set_add_intersect):
64443         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
64444         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
64445         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
64446         (re_acquire_state, re_acquire_state_context, register_state):
64447         (create_ci_newstate, create_cd_newstate, free_state):
64448         Likewise.
64449         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
64450         re_search_2):
64451         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
64452         (re_search_internal, prune_impossible_nodes):
64453         (acquire_init_state_context, check_matching, static):
64454         (check_halt_node_context, check_halt_state_context, proceed_next_node):
64455         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
64456         (update_regs, sift_states_backward, build_sifted_states):
64457         (clean_state_log_if_needed, merge_state_array):
64458         (update_cur_sifted_state, add_epsilon_src_nodes):
64459         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
64460         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
64461         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
64462         (find_recover_state, check_subexp_matching_top, transit_state_mb):
64463         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
64464         (check_arrival, check_arrival_add_next_nodes):
64465         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
64466         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
64467         (check_node_accept_bytes, check_node_accept, extend_buffers):
64468         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
64469         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
64470         (sift_ctx_init):
64471         Likewise.
64473         * lib/regex_internal.h:
64474         (re_string_allocate, re_string_construct, re_string_reconstruct):
64475         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
64476         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
64477         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
64478         (re_string_context_at, re_string_peek_byte_case):
64479         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
64480         is defined, since we now use prototypes always.
64482         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
64483         C89 or better.  All uses removed.
64485 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
64487         * config/srclist.txt: Add glibc bugs 1220-1227.
64489 2005-08-20  Jim Meyering  <jim@meyering.net>
64491         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
64492         of unused local, dfa.
64494 2005-08-20  Bruno Haible  <bruno@clisp.org>
64496         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
64498 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
64500         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
64501         (re_node_set_insert_last, re_dfa_add_node):
64502         Rename local variables to avoid GCC shadowing warnings.
64504 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
64506         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
64507         [defined lint]: Suppress bogus uninitialized-variable warnings.
64509         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
64510         and let the caller return REG_ESPACE if out of space.  This
64511         removes an uninitialied-variable warning with GCC 4.0.1, and also
64512         avoids taking the address of a local variable.  All callers
64513         changed.
64515 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
64517         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
64518         $LIBCSRC/posix/regexec.c.
64519         Add glibc bug 1217 for regcomp.c.
64521 2005-08-19  Jim Meyering  <jim@meyering.net>
64523         * lib/regexec.c (proceed_next_node): Redo local variables to
64524         avoid GCC shadowing warnings.
64526 2005-08-18  Bruno Haible  <bruno@clisp.org>
64528         * lib/strstr.c (strstr): Fix return value in multibyte case.
64529         * lib/strcasestr.c (strcasestr): Likewise.
64531 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
64533         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
64535 2005-08-17  Jim Meyering  <jim@meyering.net>
64537         Make the %s format (seconds since the epoch) work for a negative
64538         number and when used with a zero-padded field width, e.g. %015s.
64540         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
64541         label so that it precedes the code to set `digits'.  Otherwise,
64542         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
64543         print `00-22'.  Now, it prints `-0022', as it should.
64545 2005-08-17  Bruno Haible  <bruno@clisp.org>
64547         * modules/strstr (Files): Add m4/mbrtowc.m4.
64548         (Depends-on): Add mbuiter.
64550 2005-08-17  Bruno Haible  <bruno@clisp.org>
64552         * modules/strcasestr: New file.
64553         * MODULES.html.sh (String handling, based on ANSI C 89): Add
64554         strcasestr.
64556 2005-08-17  Bruno Haible  <bruno@clisp.org>
64558         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
64560 2005-08-17  Bruno Haible  <bruno@clisp.org>
64562         * modules/mbuiter: New file.
64563         * MODULES.html.sh (Extended multibyte and wide character utilities):
64564         Add mbuiter.
64566 2005-08-17  Bruno Haible  <bruno@clisp.org>
64568         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
64569         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
64571 2005-08-17  Bruno Haible  <bruno@clisp.org>
64573         * m4/strcasestr.m4: New file.
64575 2005-08-17  Bruno Haible  <bruno@clisp.org>
64577         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
64578         * lib/strstr.c: Completely rewritten, with multibyte locale support.
64580 2005-08-17  Bruno Haible  <bruno@clisp.org>
64582         * lib/strcasestr.h: New file.
64583         * lib/strcasestr.c: New file.
64585 2005-08-17  Bruno Haible  <bruno@clisp.org>
64587         * lib/strcasecmp.c: Use mbuiter.h.
64589 2005-08-17  Bruno Haible  <bruno@clisp.org>
64591         * lib/mbuiter.h: New file.
64593 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
64595         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
64596         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
64597         and gl_GETOPT are both invoked via different paths (as happens
64598         with GNU tar CVS because it uses both argp and getopt), the former
64599         wins.
64601 2005-08-16  Bruno Haible  <bruno@clisp.org>
64603         * modules/tls: New file.
64604         * MODULES.html.sh (Multithreading): Add tls.
64606 2005-08-16  Bruno Haible  <bruno@clisp.org>
64608         * modules/strnlen1: New file.
64609         * MODULES.html.sh (String handling): Add strnlen1.
64611 2005-08-16  Bruno Haible  <bruno@clisp.org>
64613         * modules/strcase (Files): Add m4/mbrtowc.m4.
64614         (Depends-on): Add strnlen1, mbchar.
64616 2005-08-16  Bruno Haible  <bruno@clisp.org>
64618         * modules/mbiter: New file.
64619         * MODULES.html.sh (Extended multibyte and wide character utilities):
64620         Add mbiter.
64622 2005-08-16  Bruno Haible  <bruno@clisp.org>
64624         * modules/mbfile: New file.
64625         * MODULES.html.sh (Extended multibyte and wide character utilities):
64626         Add mbfile.
64628 2005-08-16  Bruno Haible  <bruno@clisp.org>
64630         * modules/mbchar: New file.
64631         * MODULES.html.sh (Extended multibyte and wide character utilities):
64632         New section.
64634 2005-08-16  Bruno Haible  <bruno@clisp.org>
64636         * m4/tls.m4: New file, from GNU gettext.
64638 2005-08-16  Bruno Haible  <bruno@clisp.org>
64640         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
64641         always.
64642         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
64644 2005-08-16  Bruno Haible  <bruno@clisp.org>
64646         * m4/mbiter.m4: New file.
64648 2005-08-16  Bruno Haible  <bruno@clisp.org>
64650         * m4/mbfile.m4: New file.
64652 2005-08-16  Bruno Haible  <bruno@clisp.org>
64654         * m4/mbchar.m4: New file.
64656 2005-08-16  Bruno Haible  <bruno@clisp.org>
64658         * lib/tls.h: New file, from GNU gettext.
64659         * lib/tls.c: New file, from GNU gettext.
64661 2005-08-16  Bruno Haible  <bruno@clisp.org>
64663         * lib/strnlen1.h: New file.
64664         * lib/strnlen1.c: New file.
64666 2005-08-16  Bruno Haible  <bruno@clisp.org>
64668         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
64669         (mbi_init): Update.
64670         (mbi_avail, mbi_advance): Let the iteration end before the terminating
64671         NUL byte, not after it.
64673 2005-08-16  Bruno Haible  <bruno@clisp.org>
64675         * lib/strcase.h (strcasecmp): Add note in comments.
64676         * lib/strncasecmp.c: Use code from strcasecmp.c.
64677         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
64678         (strcasecmp): Work correctly in multibyte locales.
64680 2005-08-16  Bruno Haible  <bruno@clisp.org>
64682         * lib/mbiter.h: New file.
64684 2005-08-16  Bruno Haible  <bruno@clisp.org>
64686         * lib/mbfile.h: New file.
64688 2005-08-16  Bruno Haible  <bruno@clisp.org>
64690         * lib/mbchar.h: New file.
64691         * lib/mbchar.c: New file.
64693 2005-08-16  Bruno Haible  <bruno@clisp.org>
64695         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
64696         the valid ones. Makes the comparison operations transitive:
64697         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
64698         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
64700 2005-08-15  Simon Josefsson  <jas@extundo.com>
64702         * modules/ssize_t (License): Change to 'unlimited'.
64704         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
64706 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
64708         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
64709         Add comments for each pending glibc patch.
64711 2005-08-15  Bruno Haible  <bruno@clisp.org>
64713         * lib/regex.h (__restrict_arr): Don't define to __restrict if
64714         __cplusplus is defined.
64716 2005-08-14  Jim Meyering  <jim@meyering.net>
64718         Sync from coreutils.
64720         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
64721         Use the hash-table-based cycle-detection code not just when
64722         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
64723         Reported by James Youngman in
64724         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
64725         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
64726         FTS_TIGHT_CYCLE_CHECK.
64727         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
64728         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
64729         once again.
64730         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
64731         * lib/fts.c (fd_safer): Remove decl.
64732         Include fcntl--.h rather than unistd-safer.h
64733         (fts_safe_changedir): Don't call fd_safer; no longer needed
64734         now that we include fcntl--.h.
64736 2005-08-12  Simon Josefsson  <jas@extundo.com>
64738         * modules/getndelim2: Use ssize_t module.
64739         * modules/getnline: Likewise.
64740         * modules/safe-read: Likewise.
64741         * modules/xreadlink: Likewise.
64743         * modules/ssize_t: New file.
64745 2005-08-12  Simon Josefsson  <jas@extundo.com>
64747         * m4/readline.m4: Look for termcap, curses or ncurses if required.
64749 2005-08-12  Simon Josefsson  <jas@extundo.com>
64751         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
64752         ssize_t.
64754 2005-08-12  Simon Josefsson  <jas@extundo.com>
64756         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
64757         readline, getdelim and check_version.
64758         (Support for systems lacking ISO C 99: Sizes of integer types):
64759         Add size_max.
64761 2005-08-12  Bruno Haible  <bruno@clisp.org>
64763         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
64765 2005-08-11  Simon Josefsson  <jas@extundo.com>
64767         * modules/readline: New file.
64769         * modules/strnlen (Files): Add strnlen.h.
64771 2005-08-11  Simon Josefsson  <jas@extundo.com>
64773         * m4/readline.m4: New file.
64775 2005-08-11  Simon Josefsson  <jas@extundo.com>
64777         * lib/readline.h, readline.c: New file.
64779 2005-08-11  Simon Josefsson  <jas@extundo.com>
64781         * doc/gnulib.texi (Initial import, Finishing touches): Mention
64782         gl_AVOID.
64784 2005-08-11  Bruno Haible  <bruno@clisp.org>
64786         * lib/strnlen.h (strnlen): Change parameter name to match comment.
64788 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
64790         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
64792 2005-08-10  Simon Josefsson  <jas@extundo.com>
64794         * tests/test-iconvme.c: New file.
64796 2005-08-10  Simon Josefsson  <jas@extundo.com>
64798         * m4/strnlen.m4: New file.
64800         * m4/strndup.m4: Don't check for strnlen declaration, done in
64801         strnlen.m4.
64803 2005-08-10  Simon Josefsson  <jas@extundo.com>
64805         * lib/strndup.c: Use strnlen.h.
64807         * lib/strnlen.h: New file.
64809 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
64811         * README: Typos.
64813 2005-08-02  Simon Josefsson  <jas@extundo.com>
64815         * modules/readline: New file.
64817 2005-08-02  Simon Josefsson  <jas@extundo.com>
64819         * modules/getdelim: New file.
64821         * modules/getline: Rewrite, don't use getndelim2.
64823 2005-08-02  Simon Josefsson  <jas@extundo.com>
64825         * m4/getline.m4: Separate out getdelim stuff into separate module.
64827         * m4/getdelim.m4: New file.
64829 2005-08-02  Simon Josefsson  <jas@extundo.com>
64831         * lib/getline.h, getline.c: Rewrite.
64833         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
64835 2005-07-31  Bruno Haible  <bruno@clisp.org>
64837         * lib/lock.h (gl_lock_initializer): New macro.
64838         (gl_lock_define_initialized): Use it.
64839         (gl_rwlock_initializer): New macro.
64840         (gl_rwlock_define_initialized): Use it.
64841         (gl_recursive_lock_initializer): New macro.
64842         (gl_recursive_lock_define_initialized): Use it.
64844 2005-07-30  Karl Berry  <karl@gnu.org>
64846         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
64847         Report from Ben Pfaff, regarding getopt.
64849 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
64851         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
64852         normal way.
64853         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
64854         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
64855         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
64856         (gl_GETOPT): Use the new macros.  Most of the implementation
64857         is moved to the new macros.  This is for programs like Emacs
64858         that don't want all the functionality of gl_GETOPT.
64860 2005-07-26  Bruno Haible  <bruno@clisp.org>
64862         * m4/lock.m4: Update from GNU gettext.
64864 2005-07-26  Bruno Haible  <bruno@clisp.org>
64866         * lib/lock.h: Update from GNU gettext.
64867         * lib/lock.c: Update from GNU gettext.
64869 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
64871         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
64872         obsolescent AC_TRY_RUN.  Include the default includes files, for
64873         'exit'.
64875 2005-07-24  Bruno Haible  <bruno@clisp.org>
64877         * modules/visibility: New file.
64878         * MODULES.html.sh (Misc): Add visibility.
64880 2005-07-24  Bruno Haible  <bruno@clisp.org>
64882         * m4/visibility.m4: New file.
64884 2005-07-24  Bruno Haible  <bruno@clisp.org>
64886         * doc/visibility.texi: New file.
64888 2005-07-22  Bruno Haible  <bruno@clisp.org>
64890         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
64891         $(ALLOCA_H), redundant through BUILT_SOURCES.
64892         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
64893         redundant through BUILT_SOURCES.
64894         * modules/byteswap (Makefile.am): Remove explicit dependency on
64895         $(BYTESWAP_H), redundant through BUILT_SOURCES.
64896         * modules/fnmatch (Makefile.am): Remove explicit dependency on
64897         $(FNMATCH_H), redundant through BUILT_SOURCES.
64898         * modules/getopt (Makefile.am): Remove explicit dependency on
64899         $(GETOPT_H), redundant through BUILT_SOURCES.
64900         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
64901         redundant through BUILT_SOURCES.
64902         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
64903         redundant through BUILT_SOURCES.
64904         * modules/stdbool (Makefile.am): Remove explicit dependency on
64905         $(STDBOOL_H), redundant through BUILT_SOURCES.
64906         * modules/stdint (Makefile.am): Remove explicit dependency on
64907         $(STDINT_H), redundant through BUILT_SOURCES.
64908         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
64909         Remove explicit dependency on $(SYSEXITS_H).
64910         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
64912 2005-07-18  Simon Josefsson  <jas@extundo.com>
64914         * lib/check-version.c (check_version): Accept identical versions too.
64916 2005-07-18  Bruno Haible  <bruno@clisp.org>
64918         * modules/lock: New file.
64919         * MODULES.html.sh (Multithreading): New section.
64921 2005-07-18  Bruno Haible  <bruno@clisp.org>
64923         * m4/lock.m4: New file, from GNU gettext.
64925 2005-07-18  Bruno Haible  <bruno@clisp.org>
64927         * lib/lock.h: New file, from GNU gettext.
64928         * lib/lock.c: New file, from GNU gettext.
64930 2005-07-18  Bruno Haible  <bruno@clisp.org>
64932         * lib/lock.h (gl_once_t): New type.
64933         (gl_once_define, gl_once): New macros.
64934         * lib/lock.c (fresh_once): New variable.
64935         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
64936         functions.
64938 2005-07-16  Simon Josefsson  <jas@extundo.com>
64940         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
64941         workaround, suggested by Bruno.
64943 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
64945         * modules/xalloc (Depends-on): Add xalloc-die.
64946         * modules/xvasprintf (Depends-on): Add xalloc-die.
64948 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
64950         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
64951         with a minor change.
64953 2005-07-15  Bruno Haible  <bruno@clisp.org>
64955         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
64956         When using lib/poll.c, define poll as rpl_poll.
64958 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
64960         * modules/argp (Depends-on): Remove unlocked-io.
64962 2005-07-14  Derek Price  <derek@ximbiot.com>
64964         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
64965         for glob symlink bug.
64967 2005-07-14  Bruno Haible  <bruno@clisp.org>
64969         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
64970         Instead, test for *_unlocked function declarations directly.
64972 2005-07-11  Simon Josefsson  <jas@extundo.com>
64974         * modules/size_max: New file.
64976         * modules/xsize: Depend on size_max module for size_max.m4.
64978 2005-07-11  Simon Josefsson  <jas@extundo.com>
64980         * lib/size_max.h: New file.
64982 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
64984         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
64985         copyright symbol and the year.
64986         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
64987         (version_etc_va): Use parameterized copyright notice.
64988         Reword to conform to the current GNU coding standards.
64990 2005-07-11  Karl Berry  <karl@gnu.org>
64992         * doc/gnulib.texi (Quoting): new node.
64993         (Initial import): more info, from Patrice.
64995 2005-07-11  Bruno Haible  <bruno@clisp.org>
64997         * gnulib-tool (func_usage): Document option --avoid.
64998         (Command line options): Handle --avoid.
64999         (func_acceptable): New function.
65000         (func_modules_transitive_closure): Use it.
65002 2005-07-11  Bruno Haible  <bruno@clisp.org>
65004         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
65005         Reported by Jim Meyering.
65007 2005-07-10  Bruno Haible  <bruno@clisp.org>
65009         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
65010         Needed when size_t is smaller than 'unsigned int'.
65011         Reported by Paul Eggert.
65013 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
65015         * modules/argp (Depends-on): Add unlocked-io
65017 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
65019         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
65020         block of defines.
65022 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
65024         * config/srclist.txt: Comment out regcomp.c, since we have a porting
65025         fix now.
65027 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
65028         and Paul Eggert  <eggert@cs.ucla.edu>
65030         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
65031         in wint_t, not wchar_t.  Remove now-unnecessary cast.
65033 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
65035         * modules/regex (Files): Add lib/regex_internal.c,
65036         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
65037         (Depends-on): Add extensions.
65038         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
65040 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
65042         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
65043         pathconf.
65044         * m4/same.m4 (gl_SAME): Likewise.
65045         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
65047         * m4/regex.m4: Adjust to new libc regex implementation.
65048         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
65049         all the .c and .h parts of (the new) regex.
65050         Quote the m4 stuff better.
65051         Check for RE_ICASE bug of old gnulib.
65052         Check for REG_STARTEND of recent libc.
65053         Rename local variables from jm_* to gl_*.
65054         Quote operand of "test -f".
65055         Say "recent enough" version of libc, not "version 2".
65056         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
65057         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
65058         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
65059         Remove check for btowc, isascii.
65060         Require AM_LANGINFO_CODESET.
65062 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
65064         * lib/regex.c, regex.h: Sync from libc.
65065         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
65066         * lib/regexec.c:
65067         New files, synced from libc, except that regex_internal.h
65068         currently has a small porting fix.
65070 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
65072         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
65073         regex_internal.c, regexec.c.
65074         Add regex_internal.h too, but as a comment, since the libc version
65075         is currently broken in gnulib mode.
65077 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
65079         Support programs like Emacs that use gnulib but not gettext.
65080         * MODULES.html.sh (Internationalization functions): Add gettext-h.
65081         * modules/gettext-h: New file.
65082         * modules/gettext (Files): Remove lib/gettext.h.
65083         (Depends-on): Add gettext-h.
65084         (Makefile.am): Remove lib_SOURCES.
65085         * modules/argmatch, modules/c-stack, modules/closeout:
65086         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
65087         * modules/execute, modules/file-type, modules/getaddrinfo:
65088         * modules/getopt, modules/human, modules/javacomp:
65089         * modules/javaexec, modules/mkdir-p, modules/obstack:
65090         * modules/openat, modules/pagealign_alloc, modules/pipe:
65091         * modules/quotearg, modules/regex, modules/rpmatch:
65092         * modules/unicodeio, modules/userspec, modules/version-etc:
65093         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
65094         * modules/xsetenv:
65095         Depend on gettext-h, not gettext.
65097 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
65099         * gnulib-tool (func_import): Add support for 'public domain' license.
65100         * modules/alloca, modules/atexit, modules/memmove:
65101         Now public domain, not GPL.
65102         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
65103         * modules/realloc, modules/strerror, modules/strtod:
65104         Now LGPL, not GPL.
65106 2005-07-05  Bruno Haible  <bruno@clisp.org>
65108         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
65109         autoconf CVS. Needed for mingw.
65111 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
65113         Remove the dependency of the strftime module on the tzset module.
65114         * modules/strftime (Depends-on): Remove dependency on tzset.
65116 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
65118         Remove the dependency of the strftime module on the tzset module.
65119         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
65120         gl_FUNC_TZSET_CLOBBER.
65122 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
65124         Remove the dependency of the strftime module on the tzset module.
65125         * lib/strftime.c (my_strftime)
65126         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
65127         Copy the input structure, to work around some of the bug with
65128         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
65129         Solaris releases, you should also use the tzset module, but we won't
65130         require it as a dependency any more since we don't want LGPLed code
65131         to depend on GPLed code.
65133 2005-07-02  Jim Meyering  <jim@meyering.net>
65135         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
65136         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
65137         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
65138         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
65140 2005-07-02  Jim Meyering  <jim@meyering.net>
65142         * lib/backupfile.c (backup_args): Change a `0' to NULL.
65144 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
65146         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
65147         declares only 'struct timespec;' (!).
65149 2005-07-01  Jim Meyering  <jim@meyering.net>
65151         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
65152         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
65153         * lib/save-cwd.c, tempname.c:
65154         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
65155         and don't include <sys/file.h>).
65157 2005-06-29  Jim Meyering  <jim@meyering.net>
65159         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
65160         type name.  Use the variable name instead.
65161         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
65162         Likewise.
65164 2005-06-28  Simon Josefsson  <jas@extundo.com>
65166         * modules/check-version (Files): Add check-version.m4.
65168 2005-06-28  Simon Josefsson  <jas@extundo.com>
65170         * m4/check-version.m4: New file, suggested by Jim Meyering
65171         <jim@meyering.net>.
65173 2005-06-28  Simon Josefsson  <jas@extundo.com>
65175         * lib/check-version.h, lib/check-version.c: New files.
65177 2005-06-28  Simon Josefsson  <jas@extundo.com>
65179         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
65180         collision with global variable.  Better indentation.  Don't
65181         increment buffer pointer beyond buffer end.  Based on comments
65182         from Paul Eggert <eggert@cs.ucla.edu>.
65184         * lib/base64.h: Indent.
65186 2005-06-28  Simon Josefsson  <jas@extundo.com>
65188         * doc/gnulib.texi (Library version handling): New section.
65190 2005-06-28  Jim Meyering  <jim@meyering.net>
65192         * check-module (find_included_lib_files): Hard-code another
65193         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
65194         but modules/fts-lgpl (correctly) does not list those files.
65196         * modules/canonicalize (Files): Add lib/pathmax.h.
65198 2005-06-25  Simon Josefsson  <jas@extundo.com>
65200         * modules/check-version: New file.
65202 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
65204         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
65205         initializer of struct addrinfo, as an indication that we don't
65206         care how many members the structure has.
65208 2005-06-24  Derek Price  <derek@ximbiot.com>
65209         and Bruno Haible  <bruno@clisp.org>
65211         Remove stat module & update lstat.
65212         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
65213         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
65214         * m4/stat.m4: Remove this file.
65216 2005-06-24  Derek Price  <derek@ximbiot.com>
65217         and Bruno Haible  <bruno@clisp.org>
65219         Remove stat module & update lstat.
65220         * lib/stat.c: Remove this file...
65221         (slash_aware_lstat): ...moving this content and its support...
65222         * lib/lstat.c (rpl_lstat): ...into here.
65223         * lib/lstat.h: New file.
65225 2005-06-24  Derek Price  <derek@ximbiot.com>
65226         and Bruno Haible  <bruno@clisp.org>
65228         Remove stat module & update lstat.
65229         * config/srclist.txt (libc sources): Remove stat.
65231 2005-06-24  Derek Price  <derek@ximbiot.com>
65232         and Bruno Haible  <bruno@clisp.org>
65234         Remove stat module & update lstat.
65235         * MODULES.html.sh (stat): Remove.
65236         * MODULES.html: Regenerated.
65237         * modules/lstat (Description): Correct function name.
65238         (Files): Add "lstat.h".
65239         (Depends-on): Remove stat, add xalloc, stat-macros.
65240         * modules/stat: Remove this file.
65241         (Include): Add "lstat.h", remove <sys/stat.h>.
65243 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
65245         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
65246         (ranged_convert): Don't save conversion in a temporary struct.
65247         This causes a warning with GCC 4.0.0, and anyway in the typical
65248         case it's not worth the extra 100 bytes or so of code.
65249         (ranged_convert, __mktime_internal): When calling a function via a
65250         pointer P, use P () rather than (*P) (), as we now assume C89 or
65251         better.
65253 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
65255         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
65256         "who -r" failed to give output.  Problem reported by Tim Waugh.
65258         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
65259         (xcalloc): Use it to avoid needless tests.
65260         Problem reported by Jim Meyering.
65262 2005-06-20  Derek Price  <derek@ximbiot.com>
65264         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
65265         unnecessary for Autoconfs > 2.59c.
65267 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
65269         * lib/argp.h (__option_is_short): Check upper limit of
65270         __key. Isprint() requires its argument to have the value
65271         of an unsigned char or EOF.
65273 2005-06-16  Jim Meyering  <jim@meyering.net>
65275         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
65276         when either N or S is zero.
65278 2005-06-16  Derek Price  <derek@ximbiot.com>
65280         * m4/bison.m4: Declare YACC & YFLAGS precious.
65282 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
65284         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
65285         multibyte string or pattern, fall back on unibyte matching.
65286         Problem reported by James Youngman.
65288 2005-06-08  Bruno Haible  <bruno@clisp.org>
65290         * modules/csharpcomp: New file.
65291         * MODULES.html.sh (C#): Add csharpcomp.
65293 2005-06-08  Bruno Haible  <bruno@clisp.org>
65295         * m4/csharpcomp.m4: New file, from GNU gettext.
65297 2005-06-08  Bruno Haible  <bruno@clisp.org>
65299         * lib/csharpcomp.h: New file, from GNU gettext.
65300         * lib/csharpcomp.c: New file, from GNU gettext.
65301         * lib/csharpcomp.sh.in: New file, from GNU gettext.
65303 2005-06-08  Bruno Haible  <bruno@clisp.org>
65305         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
65306         warning on mingw.
65308 2005-06-07  Derek Price  <derek@ximbiot.com>
65310         Sync from CVS.
65311         * lib/glob_.h: Indent nested #ifdef.
65313 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
65315         Sync from coreutils.
65316         Use "file name" when talking about file names, instead of "filename"
65317         or "path", as per the GNU coding standards.
65318         * lib/mkdir-p.c: Renamed from makepath.c.
65319         (make_dir_parents): Renamed from make_path.  All callers changed.
65320         * lib/mkdir-p.h: Likewise.  All includers changed.
65321         * lib/filenamecat.c: Renamed from path-concat.c.
65322         (file_name_concat): Renamed from path_concat.  All callers changed.
65323         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
65324         * lib/filenamecat.h: Likewise.  All includers changed.
65325         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
65326         in comments or local variable names.
65327         * lib/basename.c: Likewise.
65328         * lib/canonicalize.c, canonicalize.h: Likewise.
65329         * lib/dirname.c, dirname.h: Likewise.
65330         * lib/euidaccess.c: Likewise.
65331         * lib/exclude.c: Likewise
65332         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
65333         * lib/fsusage.c, fsuage.h: Likewise.
65334         * lib/fts.c, fts_.h: Likewise.
65335         * lib/getcwd.c: Likewise.
65336         * lib/getloadavg.c: Likewise.
65337         * lib/mkstemp.c: Likewise.
65338         * lib/mountlist.c, mountlist.h: Likewise.
65339         * lib/openat.c, openat.h: Likewise.
65340         * lib/readlink-stub.c: Likewise.
65341         * lib/readutmp.c, readutmp.h: Likewise.
65342         * lib/rename.c: Likewise.
65343         * lib/rmdir.c: Likewise.
65344         * lib/same.c: Likewise.
65345         * lib/savedir.c: Likewise.
65346         * lib/stripslash.c: Likewise.
65347         * lib/tempname.c: Likewise.
65348         * lib/xreadlink.c: Likewise.
65349         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
65350         All uses changed.
65351         * lib/exclude.h: Likewise.
65353         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
65354         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
65355         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
65356         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
65357         * lib/pathmax.h: Include <limits.h> unconditionally, since other
65358         files have been getting away with it for years (MORE/BSD 4.3
65359         is extinct now).
65360         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
65361         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
65363         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
65364         Define to 256, not 255, as per modern POSIX.
65366 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
65368         Sync from coreutils.
65369         Use "file name" when talking about file names, instead of "filename"
65370         or "path", as per the GNU coding standards.
65371         * MODULES.html.sh: mkdir-p renamed from makepath.
65372         filenamecat renamed from path-concat.
65373         * modules/filenamecat: Renamed from modules/path-concat.
65374         (Files): filenamecat.h and filenamecat.c renamed from
65375         path-concat.h and path-concat.c.
65376         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
65377         (Include): filenamecat.h, not path-concat.h.
65378         * modules/mkdir-p: Renamed from modules/makepath.
65379         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
65380         makepath.c.
65381         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
65382         (Include): mkdir-p.h, not makepath.h.
65384 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
65386         Sync from coreutils.
65387         * m4/mkdir-p.m4: Renamed from makepath.m4.
65388         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
65389         Rename files from makepath.c to mkdir-p.c, and from
65390         makepath.h to mkdir-p.h.
65391         * m4/filenamecat.m4: Renamed from path-concat.m4.
65392         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
65393         Rename files from path-concat.c to filenamecat.c,
65394         and from path-concat.h to filenamecat.h.
65395         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
65396         "file name" in local variables or comments.
65397         * m4/rename.m4: Likewise.
65399 2005-06-01  Bruno Haible  <bruno@clisp.org>
65401         * modules/csharpexec: New file.
65402         * MODULES.html.sh (C#): New section.
65404 2005-06-01  Bruno Haible  <bruno@clisp.org>
65406         * m4/csharp.m4: New file, from GNU gettext.
65407         * m4/csharpexec.m4: New file, from GNU gettext.
65409 2005-06-01  Bruno Haible  <bruno@clisp.org>
65411         * lib/csharpexec.h: New file, from GNU gettext.
65412         * lib/csharpexec.c: New file, from GNU gettext.
65413         * lib/csharpexec.sh.in: New file, from GNU gettext.
65415 2005-05-31  Derek Price  <derek@ximbiot.com>
65416             Paul Eggert  <eggert@cs.ucla.edu>
65418         Sync from cvs.
65419         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
65421 2005-05-31  Derek Price  <derek@ximbiot.com>
65422             Paul Eggert  <eggert@cs.ucla.edu>
65424         Sync from cvs.
65425         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
65427 2005-05-29  Derek Price  <derek@ximbiot.com>
65429         * config/srclist.txt (glob_.h, glob.c): Add these files.
65431 2005-05-29  Derek Price  <derek@ximbiot.com>
65433         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
65434         * modules/glob: New file.
65435         * modules/getlogin_r: Add link to POSIX spec in description.
65437 2005-05-29  Derek Price  <derek@ximbiot.com>
65438             Paul Eggert  <eggert@cs.ucla.edu>
65440         * m4/glob.m4: New file.
65442 2005-05-29  Derek Price  <derek@ximbiot.com>
65443             Paul Eggert  <eggert@cs.ucla.edu>
65445         * lib/glob_.h, lib/glob.c: New files.
65447 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
65449         * modules/fts (Files): Remove m4/inttypes-pri.m4.
65450         * modules/fts-lgpl (Depends-on): Remove gettext.
65452 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
65454         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
65455         and don't require gt_INTTYPES_PRI.
65457 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
65459         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
65461         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
65462         the configuration hassle isn't worth it.
65463         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
65464         (LONGEST_MODIFIER, PRIuMAX): Remove.
65466 2005-05-27  Bruno Haible  <bruno@clisp.org>
65468         * lib/getlogin_r.h: Remove second include of <stddef.h>.
65470 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
65472         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
65473         _POSIX_PTHREAD_SEMANTICS for Solaris.
65475 2005-05-25  Derek Price  <derek@ximbiot.com>
65477         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
65479 2005-05-25  Derek Price  <derek@ximbiot.com>
65480             Paul Eggert  <eggert@cs.ucla.edu>
65482         * modules/getlogin_r, m4/getlogin_r.m4: New files.
65483         * lib/getlogin_r.c, getlogin_r.h: New files.
65485 2005-05-25  Bruno Haible  <bruno@clisp.org>
65486             Derek Price  <derek@ximbiot.com>
65488         * lib/getlogin_r.h: Simplify API documentation.
65490 2005-05-23  Derek Price  <derek@ximbiot.com>
65492         * modules/minmax (Files): Add m4/minmax.m4.
65493         (configure.ac): Add gl_MINMAX.
65495 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
65497         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
65498         so that unistd-safer.h (GPL'ed code) need not be included.
65500 2005-05-22  Bruno Haible  <bruno@clisp.org>
65502         * m4/minmax.m4: New file.
65503         Based on a patch by Derek Price <derek@ximbiot.com>.
65505 2005-05-22  Bruno Haible  <bruno@clisp.org>
65507         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
65508         (INT64_MIN): Fix definition.
65509         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
65511         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
65512         NEED_SIGNED_INT_TYPES.
65514         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
65515         HAVE_SYSTEM_INTTYPES.
65517 2005-05-22  Bruno Haible  <bruno@clisp.org>
65519         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
65520         Also include <sys/param.h> if it defines MIN, MAX.
65521         Based on a patch by Derek Price <derek@ximbiot.com>.
65523 2005-05-21  Jim Meyering  <jim@meyering.net>
65525         * modules/fts (Files): Add m4/inttypes-pri.m4.
65526         (Depends-on): Add lstat and remove gettext.  Alphabetize.
65528 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
65530         New fts module.
65531         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
65532         (setup_dir, free_dir): New functions.
65533         (enter_dir, leave_dir): Define trivial
65534         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
65535         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
65536         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
65537         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
65538         Move to fts-cycle.c.
65539         (fts_open): Use setup_dir.
65540         (fts_close): Use free_dir.
65541         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
65542         This adds a label and some gotos, but the alternatives were messier.
65543         Check for memory allocation failure when entering a dir.
65544         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
65545         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
65546         (FTS): New member fts_cycle, that is a union that contains the
65547         old active_dir_ht and cycle_state.  All uses changed to mention
65548         fts_cycle.ht and fts_cycle.state.
65549         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
65550         fts.c, with the following changes:
65551         (setup_dir, free_dir): New functions.
65552         (enter_dir): Now returns bool.  Return true if successful, false
65553         if memory exhausted.  All callers changed.
65554         Do not bother partly cleaning up on
65555         memory allocation failure; that is free_dir's job.
65556         However, free ad if hash_insert fails, to avoid memory leak.
65557         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
65558         fts->fts_options to see which union member to use.
65560 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
65562         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
65563         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
65565 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
65567         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
65569 2005-05-20  Jim Meyering  <jim@meyering.net>
65571         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
65572         Now a macro, to pacify GCC.
65574 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
65576         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
65577         of -1.
65579 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
65581         * lib/chown.c (rpl_chown): Return -1 on failure.
65583 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
65585         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
65586         Don't check for stddef.h.
65587         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
65588         don't use its results.
65589         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
65590         since we include them unconditionally.  Don't require
65591         AM_STDBOOL_H, since stdbool is a prerequisite.
65592         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
65593         since we assume C89 or better.
65594         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
65595         as we don't use their results.
65596         Don't check for fchdir, memmove, memset, strrchr, as we use
65597         them unconditionally.
65598         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
65599         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
65601 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
65603         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
65604         Include <stddef.h> unconditionally, since we assume C89 now.
65605         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
65606         * lib/fts.c: Include fts_.h first, to check interface.
65607         Do not include intprops.h; no longer needed.
65608         Include cycle-check.h and hash.h, since fts_.h no longer does.
65609         Remove unnecessary casts of closedir to void.
65610         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
65611         decide whether to decrement nlinks.
65612         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
65613         (FTS): Use struct hash_table * instead of Hash_table, so that
65614         we no longer need to include hash.h here.
65616 2005-05-18  Jim Meyering  <jim@meyering.net>
65618         * modules/dirfd (License): Change to LGPL.  Most of the code
65619         is already in the public domain.
65621 2005-05-18  Jim Meyering  <jim@meyering.net>
65623         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
65624         Reported by Yoann Vandoorselaere.
65626 2005-05-17  Jim Meyering  <jim@meyering.net>
65628         * m4/fts.m4: New file, from coreutils.
65630 2005-05-17  Jim Meyering  <jim@meyering.net>
65632         * lib/fts.c, lib/fts_.h: New files, from coreutils.
65634 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
65636         Sync from coreutils.
65637         * m4/unlinkdir.m4: New file.
65639 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
65641         Sync from coreutils.
65642         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
65643         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
65644         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
65645         White space changes only.
65646         * lib/makepath.c (make_path): Port to hosts where leading "//" is
65647         special.
65648         * lib/yesno.c: Include getline.h, not ctype.h.
65649         (yesno): Don't remove leading white space; POSIX doesn't allow it.
65650         Use getline to remove arbitrary restriction on response length.
65652 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
65654         * config/srclist-update: Spell out "Street" in FSF postal
65655         mail address; this is the style the FSF seems to prefer.
65657         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
65658         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
65659         this updates FSF postal mail address.
65661         Sync from coreutils.
65662         * modules/unlinkdir: New file.
65663         * modules/yesno (Depends-on): Add getline.
65664         * MODULES.html.sh (File system functions): Add unlinkdir.
65666 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
65668         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
65669         lib/strsep.h:
65670         Change the initial comment to refer to GPL, not LGPL.
65671         gnulib-tool will change it to LGPL as needed.
65673         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
65674         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
65675         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
65676         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
65677         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
65678         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
65679         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
65680         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
65681         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
65682         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
65683         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
65684         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
65685         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
65686         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
65687         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
65688         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
65689         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
65690         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
65691         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
65692         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
65693         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
65694         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
65695         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
65696         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
65697         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
65698         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
65699         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
65700         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
65701         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
65702         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
65703         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
65704         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
65705         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
65706         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
65707         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
65708         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
65709         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
65710         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
65711         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
65712         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
65713         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
65714         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
65715         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
65716         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
65717         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
65718         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
65719         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
65720         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
65721         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
65722         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
65723         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
65724         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
65725         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
65726         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
65727         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
65728         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
65729         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
65730         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
65731         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
65732         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
65733         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
65734         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
65735         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
65736         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
65737         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
65738         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
65739         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
65740         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
65741         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
65742         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
65743         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
65744         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
65745         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
65746         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
65747         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
65748         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
65749         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
65750         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
65751         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
65752         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
65753         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
65754         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
65755         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
65756         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
65757         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
65758         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
65759         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
65760         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
65761         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
65762         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
65763         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
65764         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
65765         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
65766         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
65767         lib/yesno.c, lib/yesno.h:
65768         Update FSF postal mail address.
65770 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
65772         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
65773         tests/test-memmem.c, tests/test-stpncpy.c:
65774         Update FSF postal mail address.
65776 2005-05-13  Bruno Haible  <bruno@clisp.org>
65778         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
65779         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
65780         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
65781         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
65782         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
65783         Add support for 64-bit integers in the MSVC compiler.
65785 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
65787         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
65789 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
65791         * gnulib-tool (func_import): Sort and uniquify recommended includes.
65793 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
65795         * doc/getdate.texi (General date syntax): Don't say that date
65796         date --iso-8601=ns generates acceptable dates; it doesn't yet.
65797         Problem reported by Nic Ferrier.
65799 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65801         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
65802         specified in ai_socktype. Fix invalid ai_protocol
65803         check. ai_protocol is usually set to 0 or depending on
65804         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
65805         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
65806         ai_socktype / ai_protocol in the returned addrinfo structure.
65808 2005-05-10  Simon Josefsson  <jas@extundo.com>
65810         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
65811         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
65813 2005-05-10  Karl Berry  <karl@gnu.org>
65815         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
65816         (from http://www.gnu.org/licenses).
65817         * doc/COPYING.LIB: also rename to COPYING.LESSER.
65818         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
65819         fdl.texi suffices.
65821 2005-05-10  Karl Berry  <karl@gnu.org>
65823         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
65824         (COPYING.DOC): remove.
65826         * config/srclist-update: new FSF address.
65828 2005-05-10  Derek Price  <derek@ximbiot.com>
65830         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
65831         possible.
65833 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65834             Bruno Haible  <bruno@clisp.org>
65836         * modules/inet_ntop: New file.
65837         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
65838         inet_ntop.
65840 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65841             Bruno Haible  <bruno@clisp.org>
65843         * m4/inet_ntop.m4: New file.
65845 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65846             Bruno Haible  <bruno@clisp.org>
65848         * lib/inet_ntop.h: New file.
65849         * lib/inet_ntop.c: New file, from glibc with modifications.
65851 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
65853         * modules/time_r (License): Change to LGPL.
65854         * modules/extensions (License): Change to LGPL.  Actually,
65855         the license is more permissive than that, but currently gnulib-tool
65856         doesn't know how to handle more-permissive licenses.
65858         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
65859         Problem reported by Dave Love.
65861 2005-05-08  Jim Meyering  <jim@meyering.net>
65863         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
65864         blank.
65866 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
65868         * modules/argmatch (Depends-on): Add stdbool.
65869         * modules/backupfile (Depends-on): Likewise.
65870         * modules/chdir-long (Depends-on): Likewise.
65871         * modules/closeout (Depends-on): Likewise.
65872         * modules/cycle-check (Depends-on): Likewise.
65873         * modules/dirname (Depends-on): Likewise.
65874         * modules/fnmatch (Depends-on): Likewise.
65875         * modules/fsusage (Depends-on): Likewise.
65876         * modules/fwriteerror (Depends-on): Likewise.
65877         * modules/getcwd (Depends-on): Likewise.
65878         * modules/getloadavg (Depends-on): Likewise.
65879         * modules/hard-locale (Depends-on): Likewise.
65880         * modules/makepath (Depends-on): Likewise.
65881         * modules/mountlist (Depends-on): Likewise.
65882         * modules/nanosleep (Depends-on): Likewise.
65883         * modules/posixtm (Depends-on): Likewise.
65884         * modules/quotearg (Depends-on): Likewise.
65885         * modules/readtokens (Depends-on): Likewise.
65886         * modules/readtokens0 (Depends-on): Likewise.
65887         * modules/readutmp (Depends-on): Likewise.
65888         * modules/save-cwd (Depends-on): Likewise.
65889         * modules/strftime (Depends-on): Likewise.
65890         * modules/userspec (Depends-on): Likewise.
65891         * modules/utimecmp (Depends-on): Likewise.
65892         * modules/xgetcwd (Depends-on): Likewise.
65893         * modules/xnanosleep (Depends-on): Likewise.
65894         * modules/xstrtod (Depends-on): Likewise.
65895         * modules/yesno (Depends-on): Likewise.
65897 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
65899         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
65900         needless checks.
65902 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
65904         Merge from coreutils.  Among other things,
65905         add bulletproofing for cases where stdin, stdout, or stderr are closed.
65906         * lib/fd-safer.c: New file.
65907         * lib/fcntl-safer.h, open-safer.c: Remove.
65908         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
65909         * lib/dup-safer.c: Include unistd-safer.h first.
65910         Don't include errno.h.
65911         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
65912         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
65913         * lib/file-type.c: Rely on file-type.h change.
65914         * lib/getloadavg.c: Include unistd-safer.h.
65915         (getloadavg): Use safer open.
65916         * lib/getusershell.c: Include "stdio-safer.h".
65917         (getusershell): Use safer fopen.
65918         * lib/long-options.c (long_options): Use NULL rather than 0.
65919         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
65920         'free'.
65921         * lib/modechange.c: Likewise.
65922         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
65923         (MODE_DONE): New constant.
65924         (struct mode_change): Remove 'next' member.
65925         (make_node_op_equals): New function; like the old one of the
65926         same name, except it allocates an array.
65927         (mode_compile, mode_create_from_ref): Use it.
65928         (mode_compile): Allocate result as an array, not a linked list.
65929         Parse octal string ourself, so that we catch mistakes like "+0".
65930         (mode_adjust): Arg is an array, not a linked list.
65931         * lib/modechange.c: Include stat-macros.h, xalloc.h.
65932         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
65933         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
65934         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
65935         Remove.  This is now stat-macros.h's job.
65936         (talloc): Remove.  All callers replaced by xalloc, so that
65937         our invokers don't have to worry about reporting memory failures.
65938         (make_node_op_equals): Remove.
65939         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
65940         New constants.
65941         (struct mode_change): Moved here from modechange.h.
65942         (mode_append_entry): Remove.
65943         (mode_compile): Remove MASKED_OPS arg, since it encouraged
65944         apps to have incorrect behavior.  Use simpler algorithm for head
65945         and tail.  Don't futz with umask; that's now the job of mode_adjust.
65946         Detect more invalid usages rather than having somewhat-random behavior.
65947         Don't insert an "a=" action, as that leads to incorrect behavior.
65948         (mode_compile, mode_create_from_ref): Return NULL on error instead
65949         of an enum, since now there's only one way to have an error.  All
65950         callers changed.
65951         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
65952         at the correct time.  Simplify calculation of "+u" and its ilk.
65953         Don't mishandle "+X".
65954         (mode_free): Remove "register" and localize decls.
65955         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
65956         (struct mode_change): Move to modechange.c; callers don't
65957         need to see this stuff.
65958         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
65959         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
65960         (mode_change, mode_adjust): Reflect the new signatures noted above.
65961         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
65962         that might redefine system include files.
65963         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
65964         (my_usleep): Use NULL rather than (void *) 0.
65965         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
65966         Use siginterrupt to specify that system calls should be interrupted.
65967         (rpl_nanosleep): Move initialization of suspended closer to call of
65968         my_usleep.
65969         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
65970         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
65971         (desirable_utmp_entry): New function.
65972         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
65973         using x2nrealloc, to simplify logic.
65974         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
65975         size calculation.  Do not assume utmp file is a regular file.
65976         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
65977         (READ_UTMP_CHECK_PIDS): New constant.
65978         * lib/save-cwd.c: Include unistd-safer.h.
65979         (save_cwd): Use fd_safer.
65980         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
65981         [!_LIBC] Include "stat-macros.h" instead.
65982         * lib/unistd-safer.h (fd_safer): New decl.
65984 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
65986         * modules/getloadavg (Depends-on): Add unistd-safer.
65987         * modules/getusershell (Depends-on): Add stdio-safer.
65988         * modules/lstat (Depends-on): Remove xalloc.
65989         * modules/mkstemp (Depends-on): Add stat-macros.
65990         * modules/modechange (Depends-on): Remove xstrtol.
65991         Add stat-macros, xalloc.
65992         * modules/save-cwd (Depends-on): Add unistd-safer.
65993         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
65994         * modules/unistd-safer (Files): Add lib/fd-safer.c
65995         (Makefile.am): Remove lib_SOURCES.
65997         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
65998         Remove fcntl-safer; unistd-safer supersedes it.
66000 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
66002         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
66003         AC_HEADER_STAT.
66004         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
66005         (gl_PREREQ_CHOWN): Remove.
66006         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
66007         it.  Don't require AC_HEADER_STAT.
66008         (gl_PREREQ_LSTAT): Remove.
66009         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
66010         Don't require AC_HEADER_STAT.
66011         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
66012         (gl_PREREQ_RMDIR): Remove.
66013         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
66014         mention stat-macros.h or AC_HEADER_STAT, since we'll make
66015         the stat-macros module a prerequisite.
66016         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
66017         * m4/filemode.m4 (gl_FILEMODE): Likewise.
66018         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
66019         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
66020         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
66021         variable names.
66022         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
66023         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
66024         variable prefixes.
66025         * m4/fcntl-safer.m4: Remove.
66026         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
66027         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
66028         Invoke gl_PREREQ_FD_SAFER.
66029         (gl_PREREQ_FD_SAFER): New macro.
66030         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
66031         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
66032         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
66033         Remove duplicate call to AC_LIBOBJ(readutmp).
66034         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
66036         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
66037         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
66039 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
66041         * MODULES.html.sh (Misc): Add byteswap.
66043 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
66045         * modules/getcwd (Depends-on): Add extensions.
66046         * modules/openat (Depends-on): Likewise.
66048 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
66050         * modules/byteswap: New file.
66052 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
66054         * m4/byteswap.m4: New file.
66056 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
66058         * lib/byteswap_.h: New file.
66060 2005-04-25  Karl Berry  <karl@gnu.org>
66062         * m4/gettext.m4: Update from GNU gettext 0.14.4.
66064 2005-04-25  Albert Chin  <china@thewrittenword.com>
66066         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
66067         Toolkit C bug.
66069 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
66071         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
66072         (func_ln_if_changed) Remove forcibly for no error message
66073         in case file does not exist.
66075 2005-04-19  Simon Josefsson  <jas@extundo.com>
66077         * gnulib-tool (Options): Make --symlink mean --symbolic.
66079 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
66081         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
66083 2005-04-16  Simon Josefsson  <jas@extundo.com>
66085         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
66087 2005-04-15  Simon Josefsson  <jas@extundo.com>
66089         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
66091 2005-04-15  Simon Josefsson  <jas@extundo.com>
66093         * gnulib-tool: Rename --symlink to --symbolic.
66095 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
66097         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
66098         symbolic links to files instead of copying/moving.  Add --aux-dir,
66099         specifying directory relative --dir where auxiliary build tools
66100         are placed.
66102 2005-04-14  Bruno Haible  <bruno@clisp.org>
66104         * modules/allocsa (License): Change to LGPL.
66105         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
66107 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
66109         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
66110         that "UTC +1 second" continues to work.  Problem reported
66111         by Dmitry V. Levin.
66112         (relunit_snumber): New rule.
66113         (relunit): Use it.
66115 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
66117         * lib/getdate.y (universal_time_zone_table): New constant.
66118         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
66119         universal_time_zone_table.
66120         (lookup_zone): Prefer universal_time_zone_table to
66121         local_time_zone_table, so that "GMT" time stamps are allowed in
66122         London during the summer.  Problem reported by Ian Abbott.
66124 2005-04-12  Jim Meyering  <jim@meyering.net>
66126         * lib/human.c (humblock): Set *options even when returning due to
66127         xstrtoumax conversion failure.  Thanks to a used-uninitialized
66128         warning from gcc-4.
66130 2005-04-09  Jim Meyering  <jim@meyering.net>
66132         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
66133         -Wuninitialized: initialize tm0.tm_year.
66135 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
66137         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
66138         count, since there's no maximum.  All uses changed.
66139         Add member dsts_seen.
66140         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
66141         not being INT_MAX.
66142         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
66143         Use pc_rels_seen to decide whther a date is absolute.
66145         * lib/getdate.y (number): Don't overwrite year.
66146         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
66147         check.
66149 2005-04-02  Simon Josefsson  <jas@extundo.com>
66151         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
66152         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
66154 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
66156         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
66157         where no absolute path name can be longer than PATH_MAX.
66159 2005-03-27  Jim Meyering  <jim@meyering.net>
66161         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
66163 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
66165         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
66166         "one's complement" -> "ones' complement" in comment, as per Knuth.
66167         "value of type" -> "type or expression" in comment.
66168         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
66170 2005-03-26  Jim Meyering  <jim@meyering.net>
66172         Comment nits.
66173         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
66174         Correct typos: s/or/of/.
66176 2005-03-26  Jim Meyering  <jim@meyering.net>
66178         * modules/check-include-files: Move to ../ and rename to...
66179         * check-module: ...this.
66181 2005-03-25  Jim Meyering  <jim@meyering.net>
66183         * modules/xvasprintf (Files): Add xalloc.h.
66185 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
66187         * modules/gettext (Files): config/config.rpath ->
66188         build-aux/config.rpath
66189         * modules/iconv (Files): Likewise.
66190         Problem reported by Oskar Liljeblad.
66192 2005-03-23  Jim Meyering  <jim@meyering.net>
66194         * modules/check-include-files: New script to check for
66195         missing dependencies, multiple includes, etc.
66197         * modules/c-strtold (Depends-on): Add xalloc.
66198         * modules/c-strtod (Depends-on): Add xalloc.
66199         * modules/hash (Depends-on): Add xalloc.
66200         (Files): Remove lib/xalloc.h.
66202         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
66203         * modules/userspec (Files): Add lib/inttostr.h.
66205 2005-03-23  Jim Meyering  <jim@meyering.net>
66207         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
66209 2005-03-22  Jim Meyering  <jim@meyering.net>
66211         * modules/stat-macros: New module.
66212         * modules/canonicalize, modules/euidaccess, modules/file-type,
66213         * modules/filemode, modules/lchown, modules/makepath,
66214         * modules/rmdir, modules/stat: Depend on new stat-macros module
66215         rather than listing lib/stat-macros.h manually.
66216         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
66218 2005-03-22  Jim Meyering  <jim@meyering.net>
66220         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
66222 2005-03-22  Bruno Haible  <bruno@clisp.org>
66224         * config/srclist.txt: Replace target directory 'config' with
66225         'build-aux'.
66226         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
66227         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
66228         ../build-aux/.
66230 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
66232         * modules/chdir-long (Depends-on): Add mempcpy.
66234         * modules/acl, modules/backupfile, modules/c-strtod,
66235         modules/c-strtold, modules/canon-host, modules/canonicalize,
66236         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
66237         modules/exclude, modules/exitfail, modules/file-type,
66238         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
66239         modules/getdate, modules/getline, modules/getpagesize,
66240         modules/getpass, modules/getugroups, modules/group-member,
66241         modules/hard-locale, modules/hash, modules/human, modules/idcache,
66242         modules/inttostr, modules/long-options, modules/makepath,
66243         modules/md5, modules/memcasecmp, modules/memcoll,
66244         modules/modechange, modules/mountlist, modules/path-concat,
66245         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
66246         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
66247         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
66248         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
66249         modules/strftime, modules/strndup, modules/strverscmp,
66250         modules/timespec, modules/unlocked-io, modules/userspec,
66251         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
66252         modules/yesno:
66253         Remove lib_SOURCES line from Makefile.am section, as this is now
66254         done automatically by the corresponding Autoconf macro.
66256 2005-03-21  Jim Meyering  <jim@meyering.net>
66258         Changes imported from coreutils.
66260         * lib/cycle-check.c: Don't include xalloc.h.
66262         * lib/path-concat.c: Don't include assert.h.
66263         (path_concat): Remove assertion that would have triggered
66264         for ABASE starting with more than one slash.
66265         Reported by Andreas Schwab.
66267         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
66268         properly when ABASE is an absolute file name.
66269         Correct the description of this function.
66270         Include <assert.h>.
66271         Add an assertion and a test driver.
66272         This fixes a bug introduced on 2004-07-02.
66273         Andreas Schwab reported the resulting failure of cp --parents:
66274         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
66276 2005-03-21  Jim Meyering  <jim@meyering.net>
66278         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
66279         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
66281 2005-03-21  Jim Meyering  <jim@meyering.net>
66282         and  Paul Eggert  <eggert@cs.ucla.edu>
66284         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
66285         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
66286         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
66287         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
66288         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
66289         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
66290         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
66291         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
66292         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
66293         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
66294         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
66295         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
66296         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
66297         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
66298         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
66299         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
66300         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
66301         for these modules.
66303 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
66305         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
66306         (which shouldn't happen), generate nothing instead of returning 0
66307         immediately, so that nstrftime (NULL, ...) doesn't return 0.
66309 2005-03-16  Bruno Haible  <bruno@clisp.org>
66311         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
66312         HAVE_LONGLONG_64BIT.
66314 2005-03-16  Bruno Haible  <bruno@clisp.org>
66316         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
66317         HAVE_LONGLONG_64BIT.
66319 2005-03-16  Bruno Haible  <bruno@clisp.org>
66321         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
66322         HAVE_LONGLONG_64BIT.
66324 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
66326         * lib/strftime.c (my_strftime): Prepend space to format so that we can
66327         reliably distinguish strftime failure from empty output on POSIX
66328         hosts.
66330 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
66332         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
66333         (iconv_string): Don't guess a size-zero buffer, as that might cause
66334         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
66335         result would be 'too large', where 'too large' is (heuristically)
66336         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
66337         overflow concerns.  This will prevent some unwanted malloc failures
66338         when the inputs are very large.
66340 2005-03-15  Karl Berry  <karl@gnu.org>
66342         * config/srclist.txt (config.rpath): from gettext.
66343         * config/config.rpath: update.
66345 2005-03-15  Bruno Haible  <bruno@clisp.org>
66347         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
66348         to 'negate'.
66350         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
66351         variable.
66353         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
66354         results.
66356 2005-03-14  Simon Josefsson  <jas@extundo.com>
66358         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
66359         <fx@gnu.org>.
66361 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
66363         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
66364         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
66365         intprops.h.
66366         * lib/strtol.c: Likewise.
66368 2005-03-14  Jim Meyering  <jim@meyering.net>
66370         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
66371         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
66372         to be nonzero so that we (and caller) can detect the difference
66373         between a valid zero-length expansion and an error return, even
66374         when the underlying strftime fails before writing anything into
66375         that location.
66377 2005-03-14  Bruno Haible  <bruno@clisp.org>
66379         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
66380         Update from GNU gettext 0.14.3.
66382 2005-03-10  Jim Meyering  <jim@meyering.net>
66384         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
66386 2005-03-10  Jim Meyering  <jim@meyering.net>
66388         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
66389         so that this module works on systems without fchdir.
66391 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
66393         Factor int-properties macros into a single file, except for
66394         glibc-related files.
66395         * lib/intprops.h: New file.
66396         * lib/getloadavg.c: Include it instead of limits.h.
66397         (INT_STRLEN_BOUND): Remove.
66398         * lib/human.c: Include intprops.h.
66399         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
66400         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
66401         302/1000.
66402         * lib/inttostr.h: Include intprops.h instead of limits.h.
66403         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
66404         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
66405         for consistency with intprops.h.
66406         (time_t_is_integer, twos_complement_arithmetic): Use them.
66407         * lib/sig2str.h: Include <signal.h>, intprops.h.
66408         (INT_STRLEN_BOUND): Remove.
66409         * lib/strftime.c (TYPE_SIGNED): Remove.
66410         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
66411         * lib/strtol.c: Adjust comments to match intprops.h.
66412         * lib/userspec.c: Include intprops.h.
66413         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
66414         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
66415         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
66416         instead of rolling our own expressions.
66417         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
66419         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
66420         instead of int.
66421         (my_strftime): Do not mishandle years close to INT_MAX, by doing
66422         the right thing even if adding 1900 would overflow.  Similarly
66423         for tm_mon + 1 and tm_yday + 1.
66424         Make %Y always equivalent to %C%y, and similarly for %G and %g.
66425         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
66426         (DO_SIGNED_NUMBER): New macro.
66427         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
66429 2005-03-07  Bruno Haible  <bruno@clisp.org>
66431         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
66433 2005-03-07  Bruno Haible  <bruno@clisp.org>
66435         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
66437 2005-03-04  Derek R. Price  <derek@ximbiot.com>
66439         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
66440         (func_import): Only replace files via --import when they have actually
66441         changed.
66443 2005-03-03  Derek R. Price  <derek@ximbiot.com>
66445         * m4/mmap-anon.m4: New file.
66446         * m4/pagealign_alloc.m4: New file.
66448 2005-03-03  Derek R. Price  <derek@ximbiot.com>
66449             Bruno Haible  <bruno@clisp.org>
66451         * modules/pagealign_alloc: New file.
66452         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
66454 2005-03-03  Derek R. Price  <derek@ximbiot.com>
66455             Bruno Haible  <bruno@clisp.org>
66457         * lib/pagealign_alloc.h: New file.
66458         * lib/pagealign_alloc.c: New file.
66460 2005-03-03  Bruno Haible  <bruno@clisp.org>
66462         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
66463         Use an all-permissive copyright notice, recommended by RMS.
66465 2005-03-02  Bruno Haible  <bruno@clisp.org>
66467         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
66468         of AIX, the replacement has to be done only after <string.h> is
66469         included, therefore not in config.h. stpncpy.h does the replacement,
66470         and stpncpy.c uses it.
66472 2005-03-02  Bruno Haible  <bruno@clisp.org>
66474         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
66475         stpncpy.c uses it.
66477 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
66479         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
66480         The workaround isn't strictly needed for POSIX conformance, and
66481         it's too much of a pain to configure and maintain.  We'll ask
66482         people to fix their kernels instead.
66483         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
66484         (NANOSLEEP_BUG_WORKAROUND): Remove.
66485         (xnanosleep): Remove the workaround.
66487 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
66489         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
66490         Reported by Derek Price.
66491         (Include): Add "timespec.h".
66493         * modules/xnanosleep (Depends-on): Remove gethrxtime.
66495 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
66497         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
66498         to detect nanosleep bug.
66500 2005-03-01  Bruno Haible  <bruno@clisp.org>
66502         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
66504 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
66506         * modules/gethrxtime: New file.
66507         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
66508         (Depends-on): Add gethrxtime.
66509         (configure.ac): Add gl_XNANOSLEEP.
66510         (Makefile.am): Remove lib_SOURCES line.
66512 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
66514         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
66515         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
66517 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
66519         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
66520         * lib/timespec.h (gettime): Return void, since it always
66521         succeeds now.  All uses changed.
66522         * lib/gettime.c (gettime) Likewise.
66523         [HAVE_NANOTIME]: Prefer nanotime.
66524         Assume gettimeofday succeeds, as POSIX requires.
66525         Assime time () succeeds, since other code already does.
66526         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
66527         (timespec_subtract): Remove.
66528         (NANOSLEEP_BUG_WORKAROUND): New constant.
66529         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
66530         things considerably.  Use it only on GNU/Linux hosts, since the
66531         workaround shouldn't be needed elsewhere.
66533 2005-02-24  Bruno Haible  <bruno@clisp.org>
66535         * modules/gettext (Files): Add m4/glibc2.m4.
66537 2005-02-24  Bruno Haible  <bruno@clisp.org>
66539         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
66540         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
66541         * m4/progtest.m4:
66542         Update from GNU gettext 0.14.2.
66543         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
66545 2005-02-24  Bruno Haible  <bruno@clisp.org>
66547         * lib/localcharset.c: Update from GNU gettext 0.14.2.
66548         * lib/config.charset: Update from GNU gettext 0.14.2.
66550 2005-02-24  Bruno Haible  <bruno@clisp.org>
66552         * lib/gettext.h: Update from GNU gettext 0.14.2.
66554 2005-02-23  Simon Josefsson  <jas@extundo.com>
66556         * m4/iconvme.m4: New file.
66558 2005-02-23  Jim Meyering  <jim@meyering.net>
66560         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
66561         change.
66562         Thanks to Bruno Haible for catching it.
66564 2005-02-22  Simon Josefsson  <jas@extundo.com>
66566         * modules/iconvme: New file.
66568         * MODULES.html.sh: Add iconvme.
66570 2005-02-22  Simon Josefsson  <jas@extundo.com>
66572         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
66574 2005-02-22  Simon Josefsson  <jas@extundo.com>
66576         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
66578 2005-02-22  Jim Meyering  <jim@meyering.net>
66580         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
66581         s/ifndef/ifdef/.
66583 2005-02-20  Neil Conway  <neilc@samurai.com>
66585         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
66586         returned by OSX/Darwin if the specified buffer is not large
66587         enough for the hostname.
66589 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
66591         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
66592         pass it to _help, otherwise the latter coredumps trying to
66593         dereference state.root_argp.
66595 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
66597         * modules/chdir-long (Depends-on): Add memrchr.
66598         * modules/memrchr (Files): Add lib/memrchr.h.
66599         (Include): "memrchr.h".
66601 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
66603         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
66605 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
66607         * lib/memrchr.h: New file.
66608         * lib/chdir-long.c: Include it.
66609         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
66610         Don't bother including stddef.h.
66612 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
66614         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
66615         inclusion.
66616         Include <sys/types.h>, for dev_t.
66617         (ME_DUMMY, ME_REMOTE): Move from here....
66618         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
66619         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
66620         Dmitry V. Levin.
66621         Include mountlist.h first, to test the interface.
66623 2005-01-29  Bruno Haible  <bruno@clisp.org>
66625         * lib/progname.c (program_name): Initialize.
66626         Needed when linking statically on MacOS X.
66628 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
66630         Sync from coreutils.
66631         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
66632         (Depends-on): Add c-strtod.
66633         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
66635 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
66637         Sync from coreutils.
66638         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
66640         Remove files that are specific to coreutils.
66641         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
66643 2005-01-28  Bruno Haible  <bruno@clisp.org>
66645         * modules/javacomp: New file.
66646         * MODULES.html.sh (Java): Add javacomp.
66648 2005-01-28  Bruno Haible  <bruno@clisp.org>
66650         * m4/javacomp.m4: New file, from GNU gettext.
66652 2005-01-28  Bruno Haible  <bruno@clisp.org>
66654         * lib/javacomp.sh.in: New file, from GNU gettext.
66655         * lib/javacomp.h: New file, from GNU gettext.
66656         * lib/javacomp.c: New file, from GNU gettext.
66658 2005-01-26  Simon Josefsson  <jas@extundo.com>
66660         * lib/gai_strerror.c: Use GPL in header.
66662 2005-01-26  Bruno Haible  <bruno@clisp.org>
66664         * modules/javaexec: New file.
66665         * MODULES.html.sh (Java): Add javaexec.
66667 2005-01-26  Bruno Haible  <bruno@clisp.org>
66669         * m4/javaexec.m4: New file, from GNU gettext.
66671 2005-01-26  Bruno Haible  <bruno@clisp.org>
66673         * lib/javaexec.sh.in: New file, from GNU gettext.
66674         * lib/javaexec.h: New file, from GNU gettext.
66675         * lib/javaexec.c: New file, from GNU gettext.
66677 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
66679         * modules/lchown (Depends-on): Remove lchown.h
66681 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
66683         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
66684         must be defined if the header file was not found, in order
66685         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
66687 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
66689         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
66690         initializers for struct pentry_state.
66691         (__argp_error): Check return value of __asprintf
66692         (__argp_failure): Translate error message
66694         * lib/argp-parse.c: Removed braces around the expansion of N_()
66696 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
66698         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
66699         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
66700         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
66701         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
66702         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
66703         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
66704         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
66705         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
66706         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
66707         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
66708         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
66709         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
66710         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
66711         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
66712         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
66713         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
66714         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
66715         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
66716         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
66717         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
66718         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
66719         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
66720         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
66721         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
66722         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
66723         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
66724         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
66725         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
66726         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
66727         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
66728         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
66729         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
66730         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
66731         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
66732         xstrtol.m4, xstrtoumax.m4, yesno.m4:
66733         Use an all-permissive copyright notice, recommended by RMS.
66735 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
66737         * modules/chdir-long (Depends-on): Remove mempcpy.
66739 2005-01-21  Jim Meyering  <jim@meyering.net>
66741         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
66742         same value as for Solaris 9.
66744         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
66745         component length.  This included changing the parameter to be
66746         of type `char *' rather than `char const *'.
66747         * lib/chdir-long.h (chdir_long): Update prototype.
66749         * lib/openat.c (fdopendir, fstatat): New functions.
66750         * lib/openat.h: Include headers required for use of DIR and struct
66751         stat.
66752         [AT_SYMLINK_NOFOLLOW]: Define.
66753         (fdopendir, fstatat): Add prototypes.
66755 2005-01-21  Bruno Haible  <bruno@clisp.org>
66757         * modules/classpath: New file.
66758         * MODULES.html.sh (Java): Add classpath.
66760 2005-01-21  Bruno Haible  <bruno@clisp.org>
66762         * lib/classpath.h: New file, from GNU gettext.
66763         * lib/classpath.c: New file, from GNU gettext.
66765 2005-01-20  Simon Josefsson  <jas@extundo.com>
66767         * modules/version-etc-fsf: New file.
66769 2005-01-20  Simon Josefsson  <jas@extundo.com>
66771         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
66772         * lib/version-etc.c: Remove version_etc_copyright.
66773         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
66774         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
66776 2005-01-20  Simon Josefsson  <jas@extundo.com>
66778         * lib/base64.h (isbase64): Add.
66780         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
66781         using a unsigned prototype, don't inline.
66782         (base64_decode): Use it.
66784 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
66786         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
66787         it.
66789 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
66791         * lib/save-cwd.c (save_cwd): Remove code to support the case
66792         where fchdir is missing or flaky.
66794 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
66796         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
66798 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
66800         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
66801         AC_LIBSOURCES now does this.
66802         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
66803         with new ullong_max module.
66805 2005-01-19  Bruno Haible  <bruno@clisp.org>
66807         * modules/sh-quote: New file.
66808         * MODULES.html.sh (Executing programs): Add sh-quote.
66810 2005-01-19  Bruno Haible  <bruno@clisp.org>
66812         * lib/sh-quote.h: New file, from GNU gettext.
66813         * lib/sh-quote.c: New file, from GNU gettext.
66815 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
66817         Merge from coreutils.
66818         * m4/ullong_max.m4: New file.
66819         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
66820         (gl_MACROS): Assume localeconv exists.
66822 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
66824         Merge changes from coreutils, as described below in several
66825         changelogs dated today.
66827         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
66828         (O_DIRECTORY): Remove; not needed here, since "." must be
66829         a directory.  All uses removed.
66830         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
66831         universal on Suns, and we also need to test for IRIX.
66832         Revamp code to use 'if' rather than '#if'.
66833         Avoid unnecessary comparison of cwd->desc to 0.
66835         * lib/utimens.c (futimens): Robustify the previous patch, by checking
66836         for known valid error numbers rather than observed invalid ones.
66838 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
66840         * modules/ullong_max: New file.
66842         * modules/chdir-long, modules/openat: New files.
66843         * modules/save-cwd (Depends-on): Depend on chdir-long.
66844         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
66846 2005-01-18  Jim Meyering  <jim@meyering.net>
66848         Merge from coreutils.
66849         * m4/chdir-long.m4, m4/openat.m4: New files.
66850         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
66851         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
66852         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
66853         is sane and DOES follow symlinks.  Besides, testing 20 different
66854         systems found no broken chown implementations.
66855         Prompted by a change in rsync's copy of this macro.
66856         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
66858         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
66860         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
66861         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
66862         NULL-means-set-to-current-time semantics.
66863         Remove temporary file immediately, rather than waiting
66864         for configure's at-exit trap code to do it.
66866 2005-01-18  Jim Meyering  <jim@meyering.net>
66868         * lib/version-etc.c (version_etc_copyright): Update copyright date.
66870         * lib/utimens.c (futimens): Account for the fact that futimes
66871         can also fail with errno == ENOSYS or errno == ENOENT.
66872         Patch from Dmitry V. Levin.
66874         Change the name of the robust chdir function from chdir to chdir_long.
66875         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
66876         (restore_cwd): Use chdir_long, not chdir.
66877         * lib/chdir-long.c: Renamed from chdir.c.
66878         * lib/chdir-long.h: Renamed from chdir.h.
66879         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
66880         Hurd.
66882 2005-01-18  Bruno Haible  <bruno@clisp.org>
66884         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
66885         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
66886         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
66887         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
66888         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
66889         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
66890         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
66891         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
66892         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
66893         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
66894         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
66895         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
66896         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
66897         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
66898         Use an all-permissive copyright notice, recommended by RMS.
66900 2005-01-18  Bob Proulx  <bob@proulx.com>
66902         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
66903         simplify offsetof() macro construct to avoid compile failure with
66904         native HP-UX 11.0 ANSI C compiler.
66906 2005-01-17  Bruno Haible  <bruno@clisp.org>
66908         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
66909         redundant because stpncpy.m4 takes care of it.
66911 2005-01-17  Bruno Haible  <bruno@clisp.org>
66913         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
66915 2005-01-17  Bruno Haible  <bruno@clisp.org>
66917         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
66918         used.
66920 2005-01-17  Bruno Haible  <bruno@clisp.org>
66922         * lib/fwriteerror.h (fwriteerror): Change specification to include
66923         fclose.
66924         * lib/fwriteerror.c: Include <stdbool.h>.
66925         (fwriteerror): At the end, close the file stream. Record whether
66926         stdout was already closed.
66928 2005-01-17  Bruno Haible  <bruno@clisp.org>
66930         * lib/execute.c (environ): Declare if needed.
66931         * lib/pipe.c (environ): Likewise.
66932         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
66934 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
66936         * modules/argp: Depend on vsnprintf
66938 2005-01-10  Jim Meyering  <jim@meyering.net>
66940         * modules/closeout (Depends-on): Add atexit.
66942 2005-01-06  Bruno Haible  <bruno@clisp.org>
66944         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
66946 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
66948         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
66949         definitions to be after all include files, to avoid collisions.
66950         Problem reported by Bob Proulx.
66952 2005-01-04  Jim Meyering  <jim@meyering.net>
66954         Changes imported from coreutils.
66955         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
66956         as the mkstemp template, use a temporary directory and an
66957         8.3-friendly template to avoid trouble on systems like DJGPP.
66958         Reported by Juan M. Guerrero via Stepan Kasal.
66959         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
66960         close. Remove the temporary directory right away, rather than waiting
66961         for configure's at-exit trap code to do it.
66962         Suggestion from Stepan Kasal.
66964 2005-01-01  Simon Josefsson  <jas@extundo.com>
66966         * gnulib-tool: Print #include directives when --import'ing.
66968 2004-12-28  Simon Josefsson  <jas@extundo.com>
66970         * tests/test-base64.c: Include required header files.  Remove
66971         unused variables.
66973 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
66975         * modules/error (Depends-on): Remove gettext.
66977 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
66979         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
66980         not needed.  This removes a dependency on the gettext module.
66981         [defined _LIBC]: Do not include <libintl.h>; not needed.
66983 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
66985         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
66986         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
66988 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
66990         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
66991         HAVE_DECL_STRTOLD.
66993 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
66995         * modules/getdate (Depends-on): Remove alloca-opt.
66997 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
66999         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
67001 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
67003         * lib/argp-parse.c: Include <stddef.h>.
67004         (alignof, alignto): New macros.
67005         (parser_init): Don't assume that void * is aligned sufficiently
67006         for struct option.
67008         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
67009         need to extend the stack.
67010         (YYINITDEPTH): New macro, so that the initial stack isn't overly
67011         large.
67013 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
67015         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
67017 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
67019         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
67020         (2004-10-24) change.  Apparently this was a false alarm.
67022         * modules/getdate: Depend on alloca-opt, not alloca.
67024 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
67026         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
67027         Remove now-obsolete comment about AIX.
67028         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
67029         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
67030         (YYMAXDEPTH): New macro.
67032 2004-12-18  Simon Josefsson  <jas@extundo.com>
67034         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
67036 2004-12-18  Bruno Haible  <bruno@clisp.org>
67038         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
67040 2004-12-18  Bruno Haible  <bruno@clisp.org>
67042         * lib/fatal-signal.c (fatal_signals): Make non-const.
67043         (init_fatal_signals): New function.
67044         (uninstall_handlers, install_handlers): Ignore signals that were set to
67045         SIG_IGN.
67046         (at_fatal_signal): Call init_fatal_signals.
67047         (init_fatal_signal_set): Likewise. Ignore signals that were set to
67048         SIG_IGN.
67049         Reported by Paul Eggert.
67051 2004-12-18  Bruno Haible  <bruno@clisp.org>
67053         * doc/alloca.texi: New file.
67054         * doc/alloca-opt.texi: New file.
67056 2004-12-17  Jim Meyering  <jim@meyering.net>
67058         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
67059         Otherwise, install-sh could exit with improper exit status when
67060         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
67062 2004-12-16  Simon Josefsson  <jas@extundo.com>
67064         * tests/test-base64.c: Add license.
67066 2004-12-15  Stepan Kasal  <address@hidden>
67068         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
67070 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
67072         * modules/getcwd (Files): Add m4/d-ino.m4.
67073         Suggested by Mark D. Baushke.
67075 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
67077         * lib/getdate.y (textint): New member "negative".
67078         (time_zone_hhmm): New function.
67079         Expect 14 shift-reduce conflicts, not 13.
67080         (o_colon_minutes): New rule.
67081         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
67082         (yylex): Set the "negative" member of signed numbers.
67084 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
67086         * doc/getdate.texi (Time of day items, Time zone items):
67087         Describe new formats +00:00, UTC+00:00.
67089 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
67091         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
67092         spurious "-l"s.  Problem reported by Stepan Kasal.
67094 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
67096         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
67097         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
67099 2004-12-04  Simon Josefsson  <jas@extundo.com>
67101         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
67102         Vandoorselaere <yoann@prelude-ids.org>.
67104 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
67106         Changes imported from coreutils.
67107         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
67108         exist.
67109         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
67111 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
67113         Changes imported from coreutils.
67114         * lib/hard-locale.c: Assume <locale.h> exists.
67115         Include "strdup.h".
67116         (GLIBC_VERSION): New macro.
67117         (hard_locale): Assume setlocale exists.
67118         Rewrite to avoid #ifdef.
67119         Use strdup rather than malloc + strcpy.
67120         * lib/human.c: Assume <locale.h> exists.
67121         (human_readable): Assume localeconv exists.
67123 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
67125         * modules/hard-locale (Depends-on): Add strdup.
67127 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
67129         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
67130         convert T2, not T.  (Imported from libc.)
67132 2004-11-30  Simon Josefsson  <jas@extundo.com>
67134         * modules/restrict (License): Change to LGPL.
67136 2004-11-30  Simon Josefsson  <jas@extundo.com>
67138         * m4/restrict.m4: Add copyright and copying conditions.
67140 2004-11-30  Simon Josefsson  <jas@extundo.com>
67142         * m4/base64.m4: New file.
67144 2004-11-30  Simon Josefsson  <jas@extundo.com>
67146         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
67147         base64.
67149         * tests/test-base64.c: New file.
67151         * modules/base64: New file.
67153 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
67155         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
67156         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
67158         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
67160 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
67162         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
67163         (__getcwd.c): Don't restore errno; glibc doesn't.
67164         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
67165         first, falling back to our code only if its results look suspicious.
67166         Ensure that the resulting buffer is only as large as necessary.
67168         * lib/readutmp.c: Include readutmp.h first.
67169         Include <errno.h>, since readutmp.h no longer does that.
67170         * lib/readutmp.h: Don't include <errno.h>,
67171         <sys/param.h>, <time.h>; not needed to establish interface.
67172         (errno): Remove decl.
67173         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
67174         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
67175         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
67177 2004-11-28  Simon Josefsson  <jas@extundo.com>
67179         * lib/base64.h, base64.c: New file.
67181 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
67183         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
67185 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
67187         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
67188         (Depends-on): Remove pathmax, same.  Add mempcpy.
67189         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
67190         (Makefile.am): Append getcwd.h to lib_SOURCES.
67191         (Include): Add getcwd.h.
67192         (Maintainer): Change from Jim Meyering to "all, glibc",
67193         since getdate now uses intended-for-glibc code.
67194         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
67195         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
67197 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
67199         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
67200         HP's ANSI C compiler.
67201         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
67202         Declaring int functions causes warnings on some modern systems and
67203         shouldn't be needed to compile on ancient ones.
67204         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
67205         defined.
67207         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
67208         with the following changes.
67209         (__set_errno): Parenthesize properly.
67210         Include <stdbool.h>.
67211         (MIN, MAX, MATCHING_INO): New macros.
67212         (__getcwd): Define with prototype, not K&R form.
67213         Use heuristics to allocate default buffer on stack if possible.
67214         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
67215         behavior, and to avoid the PATH_MAX limit when computing
67216         ../../../../...
67217         Use MATCHING_INO to compare inode number to file.
67218         Check for arithmetic overflow in size calculations.
67219         Fix bug in reallocation of dot array that caused getcwd to fail
67220         on directories nested deeper than 75.
67221         Be more careful about saving errno on error.
67222         Do not use realloc; use only free+malloc, as this is a bit
67223         more flexible and avoids a needless copy operation.
67224         Do not inspect st_dev and st_ino for symbolic links; POSIX
67225         doesn't specify the latter.
67226         Check for closedir errors.
67227         Avoid needless casts.
67228         Use "#ifdef weak_alias" around weak_alias, to be like other
67229         glibc code.
67230         The following changes to getcwd.c have effect only when used in
67231         gnulib; they have no effect inside glibc proper.
67232         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
67233         as alloca isn't used.
67234         (alloca, __alloca): Likewise.
67235         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
67236         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
67237         unconditionally, as gnulib assumes C89 or better.
67238         Do not include <sys/param.h>.
67239         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
67240         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
67241         better.
67242         (NULL) [!defined NULL]: Remove; we assume C89 or better.
67243         Include <dirent.h> in a way that is compatible with modern Autoconf.
67244         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
67245         New macros, if not already defined.
67246         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
67247         Use "_LIBC", not "defined _LIBC", for consistency.
67248         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
67249         a mempcpy module.
67250         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
67251         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
67252         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
67253         credit only to Jim Meyering and adjust the copyright dates.
67254         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
67255         <stdlib.h>, <unistd.h>, "pathmax.h".
67256         Instead, include "xgetcwd.h" (first) and "getcwd.h".
67257         (INITIAL_BUFFER_SIZE): Remove.
67258         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
67260 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
67262         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
67263         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
67264         Use the _ONCE methods, for efficiency.
67265         Check for fcntl.h.  In test program, include <errno.h>
67266         and <fcntl.h> if available.  Remove old K&R cruft from
67267         test program.  Check for common errors in GNU/Linux,
67268         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
67269         don't do AC_LIBOBJ, as that's getcwd.m4's job.
67270         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
67271         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
67272         name accordingly.
67273         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
67274         accommodate new getcwd.c.
67275         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
67276         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
67277         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
67278         that's all we need now.
67280 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
67282         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
67283         argp-parse.c depends on getopt internals, that means we should
67284         always use our getopt, to be on the safe side.
67285         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
67286         order not to spoil the result of an eventual previous invocation
67287         of gl_GETOPT_SUBSTITUTE.
67289 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
67291         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
67292         redefinition warnings. To avoid them, include the defines
67293         in `#if !defined __need_getopt ... #endif'. The only place
67294         where __getopt_argv_const is used is in definitions
67295         of getopt_long and getopt_long_only below, which are as well
67296         protected by `#ifndef __need_getopt'.
67297         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
67298         __need_getopt after including <stdio.h> and <unistd.h> These
67299         headers might have defined it.
67301 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
67303         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
67305 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
67307         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
67308         (futimens): New function, which uses futimes if available.
67309         (futimens, utimens): Support timespec==NULL, with same semantics
67310         as utime and utimens.
67311         * lib/utimens.h (futimens): New decl.
67313 2004-11-23  Jim Meyering  <jim@meyering.net>
67315         * lib/getopt_.h: Remove trailing blanks.
67317 2004-11-23  Jim Meyering  <jim@meyering.net>
67319         * lib/__fpending.c: Add comment.
67321 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
67323         * modules/canonicalize (Depends-on): Add xreadlink.
67324         Problem reported by James Youngman.
67326 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
67328         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
67329         New macros.
67330         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
67331         optopt): Use them instead of invoking ## directly; otherwise, the
67332         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
67334 2004-11-19  Bruno Haible  <bruno@clisp.org>
67336         * lib/strtok_r.c: Move comments from here...
67337         * lib/strtok_r.h: ... to here.
67339 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
67341         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
67342         implementations that mishandle size_t overflow.
67344 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
67346         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
67347         might fail.  Problem reported by Yoann Vandoorselaere.
67348         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
67349         implementations that mishandle size_t overflow.
67351 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
67353         * modules/canon-host (Depends-on): Add strdup.
67355 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
67357         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
67359 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
67361         * lib/canon-host.c: Include "strdup.h".
67362         (canon_host): Use getaddrinfo if available, so that IPv6 works.
67363         Use strdup instead of malloc/strcpy to duplicate strings.
67365         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
67366         (human_space_before_unit): New constant.
67367         * lib/human.c (human_readable): Support it.
67369         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
67370         (xgetcwd): Set errno correctly when failing.
67371         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
67372         the failure is actually due to a PATH_MAX problem.
67374         Further getopt changes to make it more likely that glibc will
67375         buy the changes back.
67376         * lib/getopt.c (POSIXLY_CORRECT): New constant.
67377         (getopt): Use it, so to preserve glibc semantic
67378         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
67379         when compiling for libc.
67380         * lib/getopt_.h (__getopt_argv_const): Bring it back.
67381         (getopt_long, getopt_long_only): Use it.
67383         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
67384         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
67385         (getopt): Argv is now char * const *, as per standard.
67386         (_getopt_internal_r, _getopt_internal): Argv is now char **,
67387         not char *__getopt_argv_const *.
67388         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
67389         _getopt_long_only_r): Likewise.
67390         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
67391         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
67392         _getopt_long_r, _getopt_long_only_r): Likewise.
67393         * lib/getopt_.h (__getopt_argv_const): Remove.
67394         (getopt): Argv is now char * const *, as per standard.
67396         * lib/getdate.y (tORDINAL): New token.
67397         (day, relunit): Allow it for relative times.
67398         (relative_time_table): Use tORDINAL for ordinals.
67400 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
67402         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
67403         Document that "second" isn't allowed as an ordinal number.
67405 2004-11-16  Jim Meyering  <jim@meyering.net>
67407         * modules/closeout (Depends-on): Add fpending.
67409 2004-11-15  Jim Meyering  <jim@meyering.net>
67411         * lib/closeout.c: Include "__fpending.h" once again.
67412         Include <stdbool.h>.
67413         (close_stdout): Don't fail just because stdout was closed initially,
67414         since some programs don't write to stdout in the normal course of
67415         operation (other than --version and --help), and we don't want this
67416         function to make e.g. `touch file >&-' fail.
67417         But do fail if it was closed and someone has tried to write to it.
67418         E.g., `printf foo >&-' must fail.
67420 2004-11-13  Jim Meyering  <jim@meyering.net>
67422         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
67424 2004-11-12  Simon Josefsson  <jas@extundo.com>
67426         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
67427         small doc fix is still pending.
67429 2004-11-11  Simon Josefsson  <jas@extundo.com>
67431         * modules/strtok_r: New file.
67433         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
67434         strtok_r.
67436 2004-11-11  Simon Josefsson  <jas@extundo.com>
67438         * m4/strtok_r.m4: New file.
67440         * m4/getopt.m4: Replace opterr.
67442 2004-11-11  Simon Josefsson  <jas@extundo.com>
67444         * lib/strtok_r.h, strtok_r.c: New file.
67446 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
67448         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
67449         of replacing opterr, getopt, etc.  This should handle the
67450         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
67452 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
67454         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
67455         we can stop lying to compilers about the constness of argv when we
67456         are compiled outside glibc.
67457         (getopt, getopt_long, getopt_long_only): Use it.
67458         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
67459         _getopt_internal, getopt): Likewise.
67460         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
67461         _getopt_long_only_r): Likewise.
67462         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
67463         _getopt_long_r, _getopt_long_only_r): Likewise.
67465         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
67466         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
67467         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
67468         the other external symbols.
67469         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
67470         declaration, since the above renaming now works around collisions.
67472 2004-11-11  Jim Meyering  <jim@meyering.net>
67474         * lib/linebreak.c: Remove trailing blanks.
67475         * lib/alloca_.h: Likewise.
67476         * lib/acosl.c: Likewise.
67477         * lib/euidaccess.c: Likewise.
67478         * lib/allocsa.h: Likewise.
67480 2004-11-10  Simon Josefsson  <jas@extundo.com>
67482         * m4/getaddrinfo.m4: New file.
67484 2004-11-10  Simon Josefsson  <jas@extundo.com>
67486         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
67488 2004-11-10  Simon Josefsson  <jas@extundo.com>
67490         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
67491         getaddrinfo.
67493         * modules/getaddrinfo: New file.
67495 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
67497         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
67499 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
67501         * lib/mktime.c (SHR): New macro, which is a portable
67502         substitute for >> that should work even on Crays.
67503         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
67504         Problem reported by Mark D. Baushke in
67505         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
67506         * lib/getdate.y (SHR): Likewise.
67507         (tm_diff): Use it.
67508         * lib/strftime.c (SHR): Likewise.
67509         (tm_diff): Use it.
67510         * lib/quotearg.c (struct quoting_options): Use unsigned int for
67511         quote_these_too, so that right shifts are well defined.  All uses
67512         changed.
67514 2004-11-10  Jim Meyering  <jim@meyering.net>
67516         Ensure that no close failure goes unreported.
67517         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
67518         return early when it seems there's nothing to flush.
67519         Don't include __fpending.h.
67521 2004-11-10  Jim Meyering  <jim@meyering.net>
67523         * modules/closeout (Depends-on): Remove fpending.
67525 2004-11-10  Jim Meyering  <jim@meyering.net>
67527         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
67529 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
67531         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
67532         gl_FUNC_STRFTIME.
67533         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
67534         and AC_REQUIRE when possible, to avoid duplicate checks.
67535         Check for <wchar.h>.
67537 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
67539         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
67541 2004-11-09  Bruno Haible  <bruno@clisp.org>
67543         * m4/sockpfaf.m4: New file.
67545 2004-11-05  Bruno Haible  <bruno@clisp.org>
67547         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
67548         Reported by Mark D. Baushke <mdb@cvshome.org>.
67550 2004-11-04  Bruno Haible  <bruno@clisp.org>
67552         2004-09-11  Bruno Haible  <bruno@clisp.org>
67553                 * allocsa.valgrind: New file.
67554         2004-02-06  Bruno Haible  <bruno@clisp.org>
67555                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
67556                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
67557                 Reported by Christopher Seip <chris.seip@hp.com>.
67559 2004-11-04  Bruno Haible  <bruno@clisp.org>
67561         * modules/allocsa (Files): Add lib/allocsa.valgrind.
67562         (Makefile.am): Distribute it.
67564 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
67566         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
67567         with errno == ERANGE if the buffer is too small.
67568         Problem reported by Mark D. Baushke.
67570 2004-11-03  Albert Chin  <china@thewrittenword.com>
67571             Paul Eggert  <eggert@cs.ucla.edu>
67573         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
67574         equivalent, substitute $ac_type for equivalent type rather than
67575         blindly using uint32_t *always* which won't work if uint32_t is not
67576         available.  Define _UINT32_T to work around typedef of uint32_t if
67577         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
67578         2.5.1.
67580 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
67582         * m4/jm-macros.m4: Sync from coreutils.
67583         (gl_MACROS): Check for mbrlen, for pathchk.
67584         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
67586 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
67588         * lib/xreadlink.c (MAXSIZE): New macro.
67589         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
67590         size does not exceed MAXSIZE.  Avoid cast.
67591         As suggested by Mark D. Baushke in
67592         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
67593         if readlink fails with buffer size just under MAXSIZE, try again
67594         with MAXSIZE.
67596 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
67598         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
67600 2004-11-02  Derek R. Price  <derek@ximbiot.com>
67601         and  Paul Eggert  <eggert@cs.ucla.edu>
67603         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
67604         (get_date): Overparenthesize to avoid GCC warning.
67606 2004-11-02  Bruno Haible  <bruno@clisp.org>
67608         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
67609         returns void.
67611 2004-11-02  Bruno Haible  <bruno@clisp.org>
67613         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
67614         function returns void.
67616 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
67618         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
67619         fflush_unlocked, flockfile, funlockfile, funlockfile,
67620         fputs_unlocked, putc_unlocked.
67622 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
67624         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
67625         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
67626         already declared.
67628 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
67630         * modules/getdate (Files): Add doc/getdate.texi.
67631         (Depends-on): Add setenv, xalloc.
67633 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
67635         * lib/getdate.y: Add support for TZ="foo" within a date string.
67636         Fix some bugs near time_t boundaries.  Reject dates with
67637         out-of-range components, e.g., "Sept 31".
67638         Include <stdlib.h>, "setenv.h", "xalloc.h".
67639         (ISDIGIT_LOCALE): Remove; unused.
67640         Note that the TZ and time functions used here are not reentrant.
67641         (mktime_ok, get_tz): New functions.
67642         (TZBUFSIZE): New constant.
67643         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
67644         This requires that we sometimes generate our own TZ="XXX..." setting.
67646 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
67648         * doc/getdate.texi: New file, from coreutils with modifications for
67649         the new TZ parsing.
67651 2004-10-27  Derek R. Price  <derek@ximbiot.com>
67653         * lib/mktime.c (not_equal_tm): Remove redundant check.
67655 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
67657         * modules/regex (lib_SOURCES): Add regex.c.
67658         Reported by James Youngman in
67659         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
67661 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
67663         * lib/getdate.y: Use Bison 1.875 features, and some minor
67664         code cleanups.  This change does not affect semantics.
67665         Don't include <stdlib.h>; no longer needed.
67666         Don't include unlocked-io.h; only the "#if TEST" code uses
67667         stdio, and performance isn't crucial there.
67668         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
67669         Bison 1.875 features as described below.
67670         All uses of "PC." replaced by "pc->".
67671         (YYSTYPE): Add a forward declaration.
67672         (yylex, yyerror): Use full prototypes in forward decls.
67673         Use "%pure-parser" rather than obsolescent "%pure_parser".
67674         Use %parse-param and %lex-param instead of obsolescent
67675         YYPARSE_PARAM and YYLEX_PARAM.
67676         (meridian_table, month_and_day_table, time_units_table,
67677         relative_time_table, time_zone_table, military_table,
67678         lookup_zone, lookup_word, get_date):
67679         Use NULL instead of 0 where appropriate.
67680         (to_hour): Avoid abort (), to avoid a dependency on
67681         stdlib.h.
67682         (yyerror, yylex): Now accepts parser_control * arg.
67683         (main) [TEST]: Use '\0' rather than 0 for char.
67685 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
67687         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
67689 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
67691         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
67692         It's now the caller's responsibility to handle the case where
67693         !HAVE_GETPAGESIZE && !defined getpagesize.
67695         * lib/mktime.c (leapyear): Arg is long int, not int.
67697 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
67699         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
67701 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
67703         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
67704         missing.  Problem reported by James Youngman.
67706 2004-10-16  Simon Josefsson  <jas@extundo.com>
67708         * gnulib-tool: Fix comments.  Fix parse problem.
67709         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
67711 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
67713         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
67714         implementation of getopt_long.  Problem reported by Alexander Taler in:
67715         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
67717 2004-10-15  Bruno Haible  <bruno@clisp.org>
67719         * gnulib-tool: Untabify. Initialize supplied_libname.
67720         (func_usage): More homogenous output.
67721         (func_modules_transitive_closure, func_modules_to_filelist,
67722         func_emit_lib_Makefile_am): New functions.
67723         (func_import): New function, extracted from big case statement. Use
67724         func_get_license, func_modules_transitive_closure,
67725         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
67726         opt_lgpl. Don't use test -a, as it's not portable.
67727         (func_create_testdir): Use func_modules_transitive_closure,
67728         func_modules_to_filelist, func_emit_lib_Makefile_am.
67730 2004-10-15  Bruno Haible  <bruno@clisp.org>
67732         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
67734 2004-10-15  Bruno Haible  <bruno@clisp.org>
67736         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
67737         the portions belonging to each module.
67738         Suggested by Derek Robert Price <derek@ximbiot.com>.
67740 2004-10-12  Simon Josefsson  <jas@extundo.com>
67742         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
67743         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
67744         to real functions.
67746 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
67748         * modules/vsnprintf: New file.
67750 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
67752         * m4/vsnprintf.m4: New file.
67754 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
67756         * lib/vsnprintf.h: New file.
67757         * lib/vsnprintf.c: New file.
67759 2004-10-11  Bruno Haible  <bruno@clisp.org>
67761         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
67762         vsnprintf.
67764 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
67766         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
67768 2004-10-07  Bruno Haible  <bruno@clisp.org>
67770         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
67771         fits into the provided buffer.
67773 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
67775         * lib/diacrit.c, diacrit.h: Add GPL notice.
67777         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
67778         notice.
67779         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
67780         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
67781         This avoids a potential constant-folding bug.
67783 2004-10-05  Bruno Haible  <bruno@clisp.org>
67785         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
67786         for the declaration of strsep.
67788 2004-10-05  Bruno Haible  <bruno@clisp.org>
67790         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
67792 2004-10-04  Simon Josefsson  <jas@extundo.com>
67794         * modules/memmem: New file.
67795         * tests/test-memmem.c: New file.
67796         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
67798 2004-10-04  Simon Josefsson  <jas@extundo.com>
67800         * m4/memmem.m4: New file.
67802 2004-10-04  Simon Josefsson  <jas@extundo.com>
67804         * lib/memmem.h: New file.
67805         * lib/memmem.c: New file, taken from glibc.
67807 2004-10-04  Simon Josefsson  <jas@extundo.com>
67809         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
67810         '#ifdef USE_UNLOCKED_IO'.
67812 2004-10-04  Simon Josefsson  <jas@extundo.com>
67814         * config/srclist.txt: Add memmem from glibc.
67816 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
67818         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
67820         * modules/argmatch, modules/argp, modules/closeout, modules/error,
67821         modules/exclude, modules/getdate, modules/getline,
67822         modules/getndelim2, modules/getpass, modules/getpass-gnu,
67823         modules/getusershell, modules/linebuffer, modules/md5,
67824         modules/mountlist, modules/posixtm, modules/readtokens,
67825         modules/readutmp, modules/regex, modules/sha1,
67826         modules/version-etc, modules/yesno:
67827         Remove dependency on unlocked-io.
67829 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
67831         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
67833         * m4/unlocked-io.m4: Add copyright notice.
67834         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
67836 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
67838         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
67839         * lib/xmalloc.c (xmemdup): Likewise.
67840         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
67841         XFREE): Remove these long-obsolescent macros.
67842         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
67843         * lib/xstrdup.c: Remove.
67845         * lib/regex.c (re_comp): Cast gettext return value to char *,
67846         Problem reported by Martin Neitzel via Mark D. Baushke.
67848 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
67850         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
67851         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
67852         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
67853         regex.c, sha1.c, version-etc.c, yesno.c:
67854         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
67855         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
67856         the includer's responsibility.
67858         Sync from coreutils.
67860         * lib/modechange.c (mode_compile): Don't decrement a pointer that
67861         points to the start of a string, as the C Standard says the
67862         resulting behavior is undefined.
67864         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
67865         simple -> simple_backups, numbered_existing ->
67866         numbered_existing_backups, numbered -> numbered_backups
67867         to avoid shadowing problems.  All uses changed.
67868         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
67869         * lib/backupfile.c (check_extension, numbered_backup):
67870         Rename locals to avoid shadowing 'basename'.
67871         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
67872         once.
67874         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
67875         * lib/.cvsignore: Add getopt.h.
67877 2004-10-04  Bruno Haible  <bruno@clisp.org>
67879         * modules/README: New file.
67880         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
67881         not a module.
67883 2004-10-02  Jim Meyering  <jim@meyering.net>
67885         * lib/dirfd.h, getpagesize.h: Add copyright notice.
67887 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
67889         * modules/strsep: New file.
67891 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
67893         * m4/strsep.m4: New file.
67895 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
67897         * lib/strsep.h: New file.
67898         * lib/strsep.c: New file.
67900 2004-10-01  Simon Josefsson  <jas@extundo.com>
67902         * lib/snprintf.c (snprintf): Handle size==0.
67904 2004-10-01  Simon Josefsson  <jas@extundo.com>
67905             Bruno Haible  <bruno@clisp.org>
67907         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
67908         (snprintf): Declare 'args'.
67910 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
67912         * lib/snprintf.c: Remove comments as to why each header is needed.
67914 2004-10-01  Bruno Haible  <bruno@clisp.org>
67916         * MODULES.html.sh: Add strsep.
67918 2004-09-30  Simon Josefsson  <jas@extundo.com>
67920         * modules/snprintf: New file.
67922 2004-09-30  Simon Josefsson  <jas@extundo.com>
67924         * m4/snprintf.m4: New file.
67926 2004-09-30  Simon Josefsson  <jas@extundo.com>
67928         * lib/snprintf.h, lib/snprintf.c: New files.
67930 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
67932         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
67933         (hol_entry_help): Never translate an empty string.
67934         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
67935         * lib/argp.h (OPTION_NO_TRANS): New option.
67937 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
67939         * modules/argp (Maintainer): Replace Simon Josefsson
67940         by Sergey Poznyakoff.
67942 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
67944         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
67945         changes merged back into glibc.
67947 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
67949         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
67951 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
67953         * lib/xvasprintf.c: Include xalloc.h.
67954         (xvasprintf): Use xalloc_die, not xmalloc_die.
67956 2004-09-29  Bruno Haible  <bruno@clisp.org>
67958         * modules/alloca-opt: New file, derived from modules/alloca.
67959         * modules/allocsa: Depend on alloca-opt instead of alloca.
67960         * modules/setenv: Likewise.
67961         * modules/vasnprintf: Likewise.
67962         * MODULES.html.sh: Add alloca-opt.
67964 2004-09-28  Simon Josefsson  <jas@extundo.com>
67966         * gnulib-tool: New parameter --lgpl, to asseert that modules are
67967         LGPL, and to replace license template from GPL to LGPL.
67969 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
67971         * modules/dummy: Change license to LGPL.
67973 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
67975         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
67977 2004-09-24  Simon Josefsson  <jas@extundo.com>
67979         * modules/minmax (License): Change from GPL to LGPL.
67981 2004-09-23  Simon Josefsson  <jas@extundo.com>
67983         * gnulib-tool (--import): Typo.
67985 2004-09-23  Simon Josefsson  <jas@extundo.com>
67987         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
67989 2004-09-22  Bruno Haible  <bruno@clisp.org>
67991         * modules/*: Add 'License' field.
67992         * gnulib-tool: Accept --extract-license option.
67993         (func_get_license): New function.
67995 2004-09-21  Bruno Haible  <bruno@clisp.org>
67997         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
67998         Reported by Simon Josefsson.
68000 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
68002         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
68003         gl_AC_TYPE_LONG_LONG.
68005 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
68007         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
68009 2004-09-18  Simon Josefsson  <jas@extundo.com>
68010         and  Paul Eggert  <eggert@cs.ucla.edu>
68012         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
68013         calls with autoreconf.  Define GL_LIB.
68015 2004-09-14  Karl Berry  <karl@gnu.org>
68017         * config/srclist.txt: unsync setenv.c, sigh.
68019 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
68021         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
68022         Problem reported by Bruno Haible in:
68023         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
68025 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
68027         * config/srclist.txt: Comment out argp-pvh.c.
68029 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
68031         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
68032         in case some system header has #define'd it.  Problem reported by
68033         Soeren D. Schulze in
68034         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
68036 2004-09-09  Karl Berry  <karl@gnu.org>
68038         * regex.[ch]: delete from the root.  These were supposed to be
68039                 synced with emacs cvs, but this has not happened for about
68040                 a year, and anyway nothing else uses emacs regex.[ch].
68041                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
68042                 lib/regex[.ch] is untouched.
68044 2004-09-09  Bruno Haible  <bruno@clisp.org>
68046         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
68048 2004-09-09  Bruno Haible  <bruno@clisp.org>
68050         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
68051         modifications.
68052         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
68054 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
68056         * modules/xvasprintf: New file.
68057         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
68059 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
68061         * lib/xvasprintf.h: New file.
68062         * lib/xvasprintf.c: New file.
68063         * lib/xasprintf.c: New file.
68065 2004-09-08  Bruno Haible  <bruno@clisp.org>
68067         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
68069 2004-09-08  Bruno Haible  <bruno@clisp.org>
68071         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
68072         length is > INT_MAX.
68073         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
68074         more.
68076 2004-09-08  Bruno Haible  <bruno@clisp.org>
68078         * lib/stdint_.h: New file, taken from GNU clisp.
68080 2004-09-08  Bruno Haible  <bruno@clisp.org>
68081             Oskar Liljeblad  <oskar@osk.mine.nu>
68083         * modules/stdint: New file.
68084         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
68086 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
68088         Import from coreutils.
68089         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
68090         strings on unbounded length.  alloca's performance benefits aren't
68091         that important here.
68092         (V_STRDUP): Remove.
68093         (parse_with_separator): New function, with most of the internals
68094         of the old parse_user_spec.  Allow user to omit both user and group,
68095         for compatibility with FreeBSD.
68096         Clone only the user name, not the entire spec.
68097         Do not set *uid, *gid unless entirely successful.
68098         Avoid memory leak in some failing cases.
68099         Fix regression for USER.GROUP reported by Dmitry V. Levin in
68100         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
68101         (parse_user_spec): Rewrite to use parse_with_separator.
68103 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
68105         * modules/userspec: Don't depend on alloca.
68107 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
68109         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
68111 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
68113         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
68114         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
68115         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
68117 2004-08-16  Simon Josefsson  <jas@extundo.com>
68119         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
68120         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
68121         Add --dry-run for --import.
68122         Let user provided command line parameters override configure.ac
68123         settings.
68125 2004-08-12  Simon Josefsson  <jas@extundo.com>
68127         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
68128         as discussed with Paul Eggert in threads rooted at
68129         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
68130         and
68131         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
68132         Before, the test was empty, and relied on ELIDE_CODE in source
68133         code.)
68134         (gl_PREREQ_GETOPT): New macro.
68135         (gl_GETOPT): Use them.
68137 2004-08-12  Simon Josefsson  <jas@extundo.com>
68139         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
68140         * lib/getopt_.h: Renamed from getopt.h.
68142 2004-08-12  Simon Josefsson  <jas@extundo.com>
68144         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
68145         Change default library name from libfoo to libgnu.
68146         Now, if you have a configure.ac that says:
68147                 gl_SOURCE_BASE(gl)
68148                 gl_M4_BASE(gl/m4)
68149                 gl_MODULES(error getopt etcetera)
68150                 gl_INIT
68151         you can import all you need by running:
68152                 ../gnulib/gnulib-tool --import
68154         * modules/getopt (Files): Rename getopt.h to getopt_.h.
68155         (Makefile.am): Rewrite, use logic from argz.
68156         (Include): Use <getopt.h> instead of "getopt.h".
68158 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
68160         * modules/argp (Files): Add m4/unlocked-io.m4.
68161         (Depends-on): Add extensions.
68163 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
68165         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
68166         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
68167         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
68168         Check for program_invocation_name, program_invocation_short_name,
68169         flockfile, funlockfile, features.h, _getopt_long_only_r.
68171 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
68173         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
68174         its complicated substitute.
68175         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
68176         and program_invocation_name.
68177         (__argp_basename) [!_LIBC]: Remove; the only use was
68178         replaced by its body.
68179         (__argp_short_program_name): Change condition from
68180         !defined __argp_short_program_name to
68181         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
68182         to match argp-namefrob.h.
68183         (__argp_failure): Don't assume strerror_r returns char *.
68184         * lib/argp-parse.c (N_): Define unconditionally.
68185         (argp_default_options): Fill out initializers with 0 to avoid
68186         gcc warnings.
68188 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
68190         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
68191         getopt1.c.
68193 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
68195         Merge from coreutils.
68197         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
68199         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
68200         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
68202 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
68204         Merge from coreutils.
68206         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
68207         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
68208         for Reliant Unix 5.43.
68210         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
68211         (union fooround): Use uintmax_t, not long int.
68212         The rest is a merge from libc:
68213         [defined _LIBC]: Include <shlib-compat.h>.
68214         (_obstack) [defined _LIBC]: Remove after 2.3.4.
68216         * lib/settime.c (settime): Recode to avoid warning with
68217         Sun Forte C 6U2.
68219         * lib/strverscmp.c: Convert to UTF-8.
68221 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
68223         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
68224         m4/uintmax_t.m4.
68226 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
68228         * modules/xalloc-die: New file.
68229         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
68231         * modules/md5 (Files): Add m4/uint32_t.m4.
68232         * modules/sha1: Renamed from modules/sha.
68233         (Files):
68234         Rename lib/sha.h to lib/sha1.h.
68235         Rename lib/sha.c to lib/sha1.c.
68236         Rename m4/sha.m4 to m4/sha1.m4.
68237         (lib_SOURCES): Likewise.
68238         (configure.ac): Rename gl_SHA to gl_SHA1.
68239         (Include): sha.h -> sha1.h.
68241 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
68243         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
68244         * m4/sha1.m4: Renamed from sha.m4.
68245         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
68247 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
68249         * lib/obstack.h (obstack_empty_p):
68250         Don't assume that chunk->contents is suitably aligned.
68251         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
68252         Likewise. Problem reported by Benno in
68253         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
68255         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
68256         readable.  This could be improved further but it'd take some work.
68258 2004-08-08  Simon Josefsson  <jas@extundo.com>
68260         * modules/xgethostname (Depends-on): Remove exit and error (not
68261         used).
68263         * modules/getpass-gnu: Add getpass.h.
68264         (Depends-on): Add stdbool.
68265         * modules/getpass: Add getpass.h.
68267 2004-08-08  Simon Josefsson  <jas@extundo.com>
68269         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
68270         Check getpass declaration.
68272 2004-08-08  Simon Josefsson  <jas@extundo.com>
68274         * lib/xgethostname.c: Don't include error.h (not used).
68276         * lib/getpass.h: Add.
68277         * lib/getpass.c: Include getpass.h first.
68279 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
68281         * lib/xalloc-die.c: New file.
68282         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
68283         All uses removed.
68284         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
68285         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
68286         xalloc-die.c.
68287         (_, N_, xalloc_die): Move to xalloc-die.c.
68288         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
68289         so that we needn't mess with xalloc_msg_memory_exhausted.
68291         * lib/sha1.h: Renamed from sha.h.
68292         (SHA1_H): Renamed from _SHA_H.
68293         (sha1_ctx): Renamed from sha_ctx.
68294         (sha1_init_ctx): Renamed from sha_init_ctx.
68295         (sha1_process_block): Renamed from sha_process_block.
68296         (sha1_process_bytes): Renamed from sha_process_bytes.
68297         (sha1_finish_ctx): Renamed from sha_finish_ctx.
68298         (sha1_read_ctx): Renamed from sha_read_ctx.
68299         (sha1_stream): Renamed from sha_stream.
68300         (sha1_buffer): Renamed from sha_buffer.
68301         * lib/sha1.c: Likewise; renamed from sha.c.
68302         Do not include <sys/types.h>.
68303         Include <stddef.h> rather than <stdlib.h>.
68305 2004-08-08  Bruno Haible  <bruno@clisp.org>
68307         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
68308         FILESYSTEM_PREFIX_LEN.
68309         * lib/progreloc.c: Likewise.
68310         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
68312 2004-08-06  Simon Josefsson  <jas@extundo.com>
68314         * modules/progname (Depends-on): Don't depend on stdbool.
68316 2004-08-06  Simon Josefsson  <jas@extundo.com>
68318         * modules/getsubopt: New file.
68319         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
68320         getsubopt.
68322 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
68324         More merge from coreutils.
68326         * m4/utimens.m4, m4/utimecmp.m4: New files.
68327         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
68328         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
68329         prereq.m4, sha.m4: Import changes from coreutils.
68331 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
68333         More merge from coreutils.
68334         * modules/raise, modules/readtokens0, modules/utimens:
68335         * modules/utimecmp, module/xnanosleep: New files.
68336         * modules/strftime: Add lib/strftime.h.
68337         Change include from <time.h> to "strftime.h".
68338         * modules/yesno: Add lib/yesno.h.
68339         * modules/backupfile: Remove lib/addext.c.
68340         * modules/euidaccess: Add stat-macros.h.
68341         * modules/canonicalize, modules/euidaccess,
68342         modules/filemode, modules/lchown, modules/makepath,
68343         modules/rmdir, modules/stat: Likewise.
68345 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
68347         Merge from tar.
68348         * lib/argp-help.c (make_hol, hol_append): Don't assume that
68349         SIZE_MAX is a valid preprocessor constant.
68350         (__argp_basename): Change from "#ifndef _LIBC"
68351         to "#ifndef __argp_short_program_name", so that
68352         we don't compile these functions for tar.
68354         More merges from coreutils.
68355         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
68356         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
68357         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
68358         * lib/addext.c: Remove; no longer needed.
68359         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
68360         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
68361         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
68362         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
68363         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
68364         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
68365         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
68366         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
68367         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
68368         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
68369         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
68370         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
68371         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
68372         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
68373         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
68374         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
68375         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
68376         Import changes from coreutils.
68378 2004-08-05  Simon Josefsson  <jas@extundo.com>
68380         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
68382 2004-08-05  Simon Josefsson  <jas@extundo.com>
68384         * m4/getsubopt.m4: New file.
68386 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
68388         Merge from coreutils.
68390         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
68391         * m4/getcwd-path-max.m4: New files.
68393         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
68394         FILESYSTEM_PREFIX_LEN ->
68395         FILE_SYSTEM_PREFIX_LEN.
68396         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
68397         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
68398         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
68399         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
68401         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
68402         prerequisite modules now handle the DOS stuff.
68403         Don't check for unistd.h.
68405 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
68407         Merge from coreutils.
68409         * lib/.gdb-history: Remove; this doesn't belong here.
68411         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
68412         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
68413         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
68414         * lib/getcwd.c: New files.
68416         * lib/dirname.h: Include <stdbool.h>.
68417         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
68418         for consistency with POSIX terminology.  All uses changed.
68419         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
68420         (strip_trailing_slashes): Use bool for booleans.
68421         * lib/stripslash.c (strip_trailing_slashes): Likewise.
68423         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
68424         sometimes returns a positive errno value even when it succeeds.
68425         (print_errno_message) [!LIBC]: Fall back on strerror if
68426         __strerror_r fails.
68428         * lib/path-concat.c (mempcpy): Don't define if a system header defines
68429         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
68430         (longest_relative_suffix): New function.
68431         (path_concat): Use it.  Assume first argument is not NULL.
68432         Port to DOS.  Omit redundant separators.
68433         Report an error instead of returning NULL.
68434         Use mempcpy instead of memcpy.
68435         (xpath_concat): Remove: not declared or used.
68437         * lib/same.h: Include <stdbool.h>
68438         (same_name): Return bool, not int.
68439         * lib/same.c (same_name): Likewise.
68440         (errno): Don't declare; we assume C89 or better now.
68442         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
68443         if not already defined.
68445         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
68446         * lib/dup-safer.c (errno): Likewise.
68448 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
68450         Merge from coreutils.
68451         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
68452         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
68453         * modules/path-concat: Don't depend on strdup.
68455 2004-08-03  Simon Josefsson  <jas@extundo.com>
68457         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
68458         * lib/progname.h: Don't include stdbool.h.
68460 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
68462         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
68463         * MODULES.html.sh (func_all_modules): Remove fatal.
68465 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
68467         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
68469 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
68471         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
68472         working.
68474 2004-08-02  Simon Josefsson  <jas@extundo.com>
68476         * lib/getsubopt.h: New file, with comments from Bruno Haible.
68477         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
68478         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
68480 2004-08-01  Simon Josefsson  <jas@extundo.com>
68482         * lib/xgetdomainname.c: Include stdlib.h, for free().
68484 2004-07-19  Bruno Haible  <bruno@clisp.org>
68486         * MODULES.html.sh (func_all_modules): Add dummy.
68488 2004-07-16  Simon Josefsson  <jas@extundo.com>
68490         * modules/dummy: New file.
68492 2004-07-16  Simon Josefsson  <jas@extundo.com>
68494         * lib/dummy.c: New file.
68496 2004-07-16  Bruno Haible  <bruno@clisp.org>
68498         * lib/backupfile.h: Add extern "C" for C++.
68499         * lib/closeout.h: Likewise.
68500         * lib/copy-file.h: Likewise.
68501         * lib/findprog.h: Likewise.
68502         * lib/full-write.h: Likewise.
68503         * lib/pathname.h: Likewise.
68504         * lib/progname.h: Likewise.
68505         * lib/stpcpy.h: Likewise.
68506         * lib/stpncpy.h: Likewise.
68507         * lib/strcase.h: Likewise.
68508         * lib/strstr.h: Likewise.
68509         * lib/xalloc.h: Likewise.
68511         * lib/mbswidth.h: Add extern "C" for C++.
68512         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
68514 2004-07-13  Robert Millan  <robertmh@gnu.org>
68516         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
68518 2004-07-09  Simon Josefsson  <jas@extundo.com>
68520         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
68521         failed without this.)
68523 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
68525         * modules/chown (Files): Add lib/fchown-stub.c, since
68526         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
68528 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
68530         * lib/fchown-stub.c: New file.
68532 2004-06-24  Jim Meyering  <jim@meyering.net>
68534         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
68536 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
68538         * modules/argz: Omit "#include".
68540         * MODULES.html.sh (func_all_modules): Add calloc, to match
68541         2004-06-01 addition of calloc module.
68543 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
68545         * m4/argz.m4: New file, which is autoupdated from libtool.
68547 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
68549         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
68550         libtool.
68552 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
68554         * config/srclist-update: Don't insist on "USA." before the
68555         close-comment, as libtool omits the period and puts the */ on a
68556         separate line.
68557         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
68558         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
68560 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
68562         * modules/argz: New file.
68563         * MODULES.html.sh (func_all_modules): Add argz.
68565 2004-06-12  Jim Meyering  <jim@meyering.net>
68566         and  Paul Eggert  <eggert@cs.ucla.edu>
68568         * modules/hash (Files): Add lib/xalloc.h.
68569         * modules/pipe (Depends-on): Add wait-process.
68570         * modules/stat (Depends-on): Add xalloc.
68571         * modules/userspec (Files): Add lib/userspec.h.
68572         * modules/xstrto
68574         Upgrade from gettext-0.13.
68575         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
68576         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
68577         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
68579 2004-06-10  Jim Meyering  <jim@meyering.net>
68581         * lib/calloc.c: New file.
68583 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
68585         * lib/getdate.y (yylex): Allow space between sign and number.
68586         Problem reported by Dan Jacobson.
68588 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
68590         Merge from coreutils CVS.
68592         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
68593         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
68594         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
68595         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
68596         xstrtol.m4: Fix copyright date and/or serial number.
68598         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
68599         See if we need an fchown replacement.
68600         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
68601         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
68602         and use the replacement function if we detect either defect.
68604         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
68605         gl_UTIMECMP.
68607 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
68608         and  Jim Meyering  <jim@meyering.net>
68610         Merge from coreutils CVS.
68612         * lib/stat-macros.h: New file, with contents from file-type.h
68613         and coreutils' system.h.
68614         * lib/file-type.c: Include "stat-macros.h".
68615         * lib/file-type.h (file_type): Move all macro definitions to new file,
68616         stat-macros.h.
68618         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
68619         Wrap old code with this conditional.
68620         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
68621         function that does not dereference symlinks.
68622         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
68624         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
68625         dependency problems.
68626         (xreadlink): Accept new arg SIZE, for efficiency.
68627         All decls and uses changed.
68628         * lib/xreadlink.h: Include <stddef.h>, for size_t.
68630         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
68631         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
68633         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
68634         sysexits.h.
68636 2004-06-01  Jim Meyering  <jim@meyering.net>
68638         * m4/calloc.m4: New file.
68640 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
68642         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
68643         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
68644         Also, fix a typo in a diagnostic.
68646 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
68648         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
68649         or AC_FUNC_REALLOC.
68651 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
68653         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
68654         macros to be defined.
68655         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
68656         the allocator returns NULL because the requested size is zero.
68658 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
68660         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
68661         var.  Add comment explaining why libc still defines it.  This
68662         merges the following patch from glibc:
68663         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
68665 2004-05-20  Andreas Schwab  <schwab@suse.de>
68667         * m4/free.m4: Replace free if it not known to work, not the other
68668         way round.
68670 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
68672         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
68673         present in glibc since revision 1.1 of this file.
68674         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
68675         obstack_alignment_mask, obstack_alloc, obstack_base,
68676         obstack_blank, obstack_blank_fast, obstack_chunk_size,
68677         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
68678         obstack_grow0, obstack_init, obstack_int_grow,
68679         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
68680         obstack_next_free, obstack_object_size, obstack_ptr_grow,
68681         obstack_ptr_grow_fast, obstack_room): Remove declarations of
68682         nonexistent functions.
68684 2004-05-18  Karl Berry  <karl@gnu.org>
68686         * config/srclist.txt: break link for vasnprintf.c.
68688 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
68690         Port obstack to the AS/400, where pointers are 16 bytes wide and
68691         you cannot cast an integer to a valid pointer.  This patch is
68692         currently waiting to be integrated into glibc; see
68693         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
68695         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
68696         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
68697         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
68698         (struct obstack): temp member is now a union of a pointer and
68699         an integer, instead of an integer.  All integer uses changed.
68700         This does not affect the physical layout of struct obstack,
68701         except on hosts (like the AS/400) where the size or alignment of
68702         void * is greater than that of ptrdiff_t.
68703         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
68704         __STDC__)]: Store temporary in pointer member of union, not
68705         integer member.
68706         * lib/obstack.c: Include <stddef.h>, for offsetof.
68707         (struct fooalign): Remove; it doesn't need a name.
68708         (union fooround): Change double to long double, and add void *.
68709         (DEFAULT_ALIGNMENT): Use offsetof to compute.
68710         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
68711         not a macro.  Hence the values are always int; so remove all
68712         casts-to-int in uses.
68714 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
68716         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
68717         we can get this patch merged into glibc.
68719 2004-05-17  Derek R. Price  <derek@ximbiot.com>
68720             Paul Eggert  <eggert@cs.ucla.edu>
68722         * m4/argp: Depend on alloca.
68724 2004-05-17  Derek R. Price  <derek@ximbiot.com>
68725             Paul Eggert  <eggert@cs.ucla.edu>
68727         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
68728         freecoding.
68730 2004-05-17  Bruno Haible  <bruno@clisp.org>
68732         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
68733         precision that consists of a '.' followed by an empty digit string.
68734         Patch by Tor Lillqvist <tml@iki.fi>.
68736 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
68738         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
68739         for backward compatibility with older code.  We need our own
68740         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
68741         it under some other name, and our alloca.h will define it.
68743 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
68744             Derek Price  <derek@ximbiot.com>
68746         * lib/alloca.c: Include <alloca.h>, to get our interface.
68747         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
68748         include <alloca.h> first.  Use C89 prototype for alloca; this
68749         requires including <stddef.h> for size_t.  Use extern "C" if C++.
68750         Use #elif for simplicity, since we can assume C89 now.
68751         Don't try to source the system alloca.h since it will not be found
68752         and to prevent recursively including its replacement.
68753         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
68754         * lib/regex.c: Likewise.
68756 2004-05-16  Derek Price  <derek@ximbiot.com>
68757             Paul Eggert  <eggert@cs.ucla.edu>
68759         getline cleanup.  This changes the getndelim2 API: both order of
68760         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
68761         no delimiter).
68763         * lib/getline.c: Don't include stddef.h or stdio.h, since our
68764         interface does that.
68765         (getline): Always use getdelim, so that we don't have two
68766         copies of this code.
68767         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
68768         if available.
68769         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
68770         (GETNDELIM2_MAXIMUM): New macro.
68771         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
68772         instead of the old practice of delim2==0.  All callers changed.
68773         Return -1 on overflow, instead of returning junk.
68774         Do not set *linesize unless allocation succeeds.
68775         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
68776         that we include sys/types.h.
68777         * lib/getnline.h: Likewise.
68778         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
68779         (getndelim2): Reorder arguments.
68780         * lib/getnline.c (getnline, getndelim):
68781         Don't discard the NMAX argument.
68782         (getnline): Invoke getndelim, to avoid code duplication.
68783         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
68784         of (size_t) -1 by callers of the getnline family.
68786 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
68788         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
68789         Check for gettimeofday.
68790         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
68791         Check for settimeofday, stime.
68793 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
68795         * lib/nanosleep.c (suspended): Change its type from int to
68796         sig_atomic_t volatile.
68797         (first_call): Make it private to rpl_nanosleep, and have it
68798         be zero initially as that's a bit faster.
68799         (my_usleep): Round up fractional times instead of truncating them,
68800         as this is the usual meaning for 'sleep'.
68802         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
68803         doesn't work.
68804         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
68805         (ENOSYS): Define if not defined.
68806         (settime): Fall back on stime if it exists and settimeofday fails.
68807         But don't bother with fallbacks if a method fails with errno == EPERM.
68809 2004-05-11  Jim Meyering  <jim@meyering.net>
68811         Prior to this change, the save_cwd caller required read access to the
68812         current directory on most systems (ones with the fchdir function).
68814         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
68815         fails, try write-only, and finally, resort to using xgetcwd.
68817 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
68819         * lib/obstack.c, obstack.h: Import changes from libc.
68821 2004-04-28  Bruno Haible  <bruno@clisp.org>
68823         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
68824         also implicitly appends .exe to executables.
68825         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
68826         accepts Windows pathnames.
68827         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
68828         Treat Cygwin like Windows, since it now accepts Windows pathnames.
68829         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
68830         Treat Cygwin like Windows, since it now accepts Windows pathnames.
68831         Reported by Derek Robert Price <derek@ximbiot.com>.
68833 2004-04-21  Karl Berry  <karl@gnu.org>
68835         * config/srclist.txt (localcharset.c): break sync.
68837 2004-04-20  Paul Eggert  <eggert@twinsun.com>
68839         * m4/host-os.m4: Add a copyright notice.
68841 2004-04-20  Jim Meyering  <jim@meyering.net>
68843         Change UTILS_ to gl_ in AC_DEFINE'd names.
68844         Change utils_- and jm_-prefixed variables, too.
68845         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
68846         UTILS_FUNC_MKDIR_TRAILING_SLASH.
68847         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
68849         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
68850         Don't emit trailing blanks.
68851         Also rename jm_-prefixed variables to have gl_ prefix.
68853         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
68854         Also rename jm_-prefixed variables to have gl_ prefix.
68856         * m4/jm-macros.m4: Reflect the renamings.
68857         * m4/prereq.m4: Likewise.
68859 2004-04-20  Jim Meyering  <jim@meyering.net>
68861         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
68862         memory.
68864 2004-04-20  Jim Meyering  <jim@meyering.net>
68865             Bruno Haible  <bruno@clisp.org>
68867         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
68868         memory when realloc fails.
68870 2004-04-19  Jim Meyering  <jim@meyering.net>
68872         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
68873         now that readutmp.c may call `free (0)'.
68875 2004-04-19  Bruno Haible  <bruno@clisp.org>
68877         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
68878         * m4/inttypes_h.m4: Likewise.
68879         * m4/stdint_h.m4: Likewise.
68880         * m4/intmax_t.m4: Likewise.
68881         * m4/uintmax_t.m4: Likewise.
68883 2004-04-18  Jim Meyering  <jim@meyering.net>
68885         * m4/prereq.m4: Don't forbid jm_ prefix.
68887         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
68888         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
68889         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
68890         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
68891         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
68892         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
68893         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
68894         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
68895         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
68896         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
68897         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
68898         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
68899         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
68900         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
68901         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
68902         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
68903         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
68904         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
68905         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
68907 2004-04-18  Jim Meyering  <jim@meyering.net>
68909         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
68910         failure, don't leak memory and do call END_UTMP_ENT.
68912 2004-04-16  Jim Meyering  <jim@meyering.net>
68914         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
68915         coreutils' stat program.
68916         (gl_PREREQ): Don't require jm_PREREQ_STAT.
68918 2004-04-11  Paul Eggert  <eggert@twinsun.com>
68920         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
68921         C89.
68922         (CHAR_BIT): Remove, since we assume C89.
68923         Include <stdint.h> if available, as per current Autoconf CVS advice.
68925 2004-03-31  Jim Meyering  <jim@meyering.net>
68927         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
68928         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
68929         * m4/xalloc.m4: Likewise.
68931 2004-03-30  Paul Eggert  <eggert@twinsun.com>
68933         Merge from coreutils.
68935         * m4/inttostr.m4: New file.
68936         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
68937         Require AM_STDBOOL_H and gl_TIMESPEC instead.
68938         Require gl_CLOCK_TIME.
68939         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
68941 2004-03-30  Paul Eggert  <eggert@twinsun.com>
68943         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
68944         not bool, to be more consistent with Unix conventions.
68945         Suggested by Bruno Haible.
68947         Merge from coreutils.
68949         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
68950         * lib/umaxtostr.c: New files.
68952         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
68953         the usual <time.h> dance.
68954         (get_date): Change signature to support fractional time stamps.
68955         All callers changed.
68956         * lib/getdate.y: Include "getdate.h" first, as we can now
68957         assume C89 and don't need to worry about 'const'.
68958         Similarly, include "unlocked-io.h" near start, not in middle.
68959         Include <limits.h>.
68960         (textint.value): Use long int rather than int.
68961         (textint.digits): Use size_t rather than int.
68962         (BILLION, LOG10_BILLION): New constants.
68963         (parser_control): New member rel_ns.  Members day_ordinal,
68964         time_zone, month, day, hour, minutes, rel_year, rel_month,
68965         rel_day, rel_hour, rel_minutes, rel_seconds
68966         are now long int, not int.  Member seconds is now struct timespec,
68967         not int.  New member timespec_seen.  Members dates_seen, days_seen,
68968         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
68969         not int.
68970         (%union.intval): Now long int, not int.
68971         New member timespec.
68972         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
68973         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
68974         (spec): Now is a timespec or an item list.
68975         (timespec, items): New nonterminals.
68976         (time, rel, relunit, number, get_date):
68977         Add support for fractional seconds.
68978         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
68979         (gmtime, localtime, mktime): Remove decls; not needed with C89.
68980         (to_hour): First arg is now long int, not int.
68981         (to_year): Returns long int, not int.
68982         Don't treat year -70 like 70.
68983         (tm_diff): Returns long int, not int.
68984         (lookup_word): Use bool instead of int when appropriate.
68985         (yylex): Use size_t for count, not int.
68986         Detect overflow when parsing large integer constants.
68987         Add support for fractions.
68988         (get_date): Make pointers 'const' if possible.
68989         Use more-portable code to detect integer overflow.
68990         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
68991         Don't use ctime; it's not reliable if the year has >4 digits.
68993         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
68994         This is for compatibility with BSD.
68996         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
68997         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
68998         From coreutils' system.h.
69000         * lib/userspec.c: Don't include "posixver.h".
69001         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
69002         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
69003         compatible extension.  Simplify code by removing a boolean int
69004         that was always nonzero if a string was nonnull.
69006 2004-03-30  Jim Meyering  <jim@meyering.net>
69008         Merge from coreutils.
69010         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
69011         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
69012         on some systems one must include <grp.h> before it.
69013         Reported by Christian Krackowizer.
69015 2004-03-30  Jim Meyering  <jim@meyering.net>
69017         Merge from coreutils.
69019         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
69021         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
69022         an empty input stream.
69024         * lib/readtokens.c: Include <stdbool.h>.
69025         (readtoken): Use `size_t' rather than int/long.
69026         All callers adjusted.
69027         Use `bool' rather than `int' where appropriate.
69028         Use memset rather than an explicit loop.
69029         Use x2nrealloc rather than xrealloc.
69030         Allow the use of `\0' as a delimiter.
69031         (readtokens): Likewise.
69032         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
69034 2004-03-30  Jim Meyering  <jim@meyering.net>
69036         * m4/realloc.m4: Remove file, since now it does no more than
69037         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
69038         the `configure.ac' section of module/realloc.
69039         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
69041 2004-03-30  Bruno Haible  <bruno@clisp.org>
69043         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
69044         nonnull.
69046 2004-03-29  Paul Eggert  <eggert@twinsun.com>
69048         Merge changes to getloadavg.c from coreutils and Emacs.
69050         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
69051         Define to an expression, not to the empty string.
69052         Include cloexec.h and xalloc.h.
69053         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
69054         Use set_cloexec_flag rather than rolling our own.
69055         * lib/cloexec.c, lib/cloexec.h: New files.
69057 2004-03-29  Paul Eggert  <eggert@twinsun.com>
69059         * m4/cloexec.m4: New file.
69061 2004-03-18  Paul Eggert  <eggert@twinsun.com>
69063         * lib/getopt.h: Sync with libc CVS.
69065 2004-03-18  Paul Eggert  <eggert@twinsun.com>
69066             Bruno Haible  <bruno@clisp.org>
69068         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
69069         mbswidth.
69071 2004-03-18  Paul Eggert  <eggert@twinsun.com>
69072             Bruno Haible  <bruno@clisp.org>
69074         * lib/mbswidth.h: Include <wchar.h> only if
69075         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
69076         <wchar.h>.
69077         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
69079 2004-03-09  Paul Eggert  <eggert@twinsun.com>
69081         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
69082         Sync with libc CVS.
69083         * lib/getopt_int.h: New file, also synced from libc.
69085 2004-03-09  Paul Eggert  <eggert@twinsun.com>
69087         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
69088         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
69089         Bring back getopt.c, getopt.h, getopt1.c.
69091 2004-03-07  Paul Eggert  <eggert@twinsun.com>
69093         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
69094         All uses changed.  Check for sa_sigaction member; this fixes
69095         a bug first reported by Jason Andrade in
69096         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
69098 2004-03-07  Paul Eggert  <eggert@twinsun.com>
69100         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
69101         '#if' expressions.  Unlike the code it replaces, it does not
69102         depend on (defined _SC_PAGESIZE).  However, it does depend on
69103         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
69104         first reported by Jason Andrade in
69105         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
69107 2004-02-25  Simon Josefsson  <jas@extundo.com>
69109         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
69111 2004-02-25  Simon Josefsson  <jas@extundo.com>
69113         * lib/strdup.h: New file.
69114         * lib/strdup.c: Include it.
69115         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
69116         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
69118 2004-02-23  Karl Berry  <karl@gnu.org>
69120         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
69121         (from fencepost.gnu.org:/gd/gnuorg).
69123 2004-02-23  Karl Berry  <karl@gnu.org>
69125         * config/srclistvars.sh (GNUORG) [karl]: redefine.
69126         * config/srclist.txt: add maintain/standards documents.
69128 2004-02-18  Bruno Haible  <bruno@clisp.org>
69130         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
69131         Reported by Derek Robert Price <derek@ximbiot.com>.
69133 2004-02-16  Karl Berry  <karl@gnu.org>
69135         * config/mkinstalldirs, install-sh: update from automake.
69137 2004-02-06  Karl Berry  <karl@gnu.org>
69139         * m4/po.m4: update from gettext 0.14.1.
69141 2004-02-06  Karl Berry  <karl@gnu.org>
69143         * lib/config.charset: update from gettext 0.14.1.
69145 2004-02-05  Paul Eggert  <eggert@twinsun.com>
69147         Add comments and code, prompted by suggestions from Bruno Haible
69148         for sh-quote.
69149         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
69150         describing the enum quoting_style values.
69151         * lib/quotearg.c (quotearg_alloc): New function.
69152         (quotearg_buffer_restyled): Treat lone { and } as special.
69153         Treat = as special.  Work around bug with older shells
69154         that "see" a '\' that is really the 2nd byte of a multibyte char.
69155         Quote empty string with shell_quoting_style.
69157 2004-02-03  Bruno Haible  <bruno@clisp.org>
69159         * m4/pipe.m4: New file, from GNU gettext.
69161 2004-02-03  Bruno Haible  <bruno@clisp.org>
69163         * lib/pipe.h: New file, from GNU gettext.
69164         * lib/pipe.c: New file, from GNU gettext.
69166 2004-01-27  Bruno Haible  <bruno@clisp.org>
69168         * m4/execute.m4: New file, from GNU gettext.
69170 2004-01-27  Bruno Haible  <bruno@clisp.org>
69172         * lib/execute.h: New file, from GNU gettext.
69173         * lib/execute.c: New file, from GNU gettext.
69174         * lib/w32spawn.h: New file, from GNU gettext.
69176 2004-01-24  Paul Eggert  <eggert@twinsun.com>
69178         Merge from diffutils.
69180         * lib/file-type.c (file_type): Add typed memory objects.
69181         * lib/file-type.h (S_TYPEISTMO): New macro.
69183         * lib/c-stack.h (c_stack_action): Remove argv argument.
69184         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
69185         (die): Don't calculate message unless segv_action returns.
69186         (get_stack_location, min_address_from_argv, max_address_from_argv,
69187         volatile stack_base, volatile_stack_size): Remove.
69188         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
69189         that every segmentation violation is a stack overflow.  (Ouch!)
69190         See Debian bug 136249 (still outstanding) for more info about why
69191         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
69193 2004-01-24  Paul Eggert  <eggert@twinsun.com>
69195         Exit-status fix from coreutils.
69197         Use exit_failure consistently in place of EXIT_FAILURE,
69198         so that program exit statuses are consistent on failure.
69200         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
69201         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
69202         * lib/argmatch.h: Comment fix to match the above.
69203         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
69204         Now a macro referring to exit_failure, instead of a separate
69205         variable.  Include "exitfail.h" to get it.
69206         * lib/xstrtol.h: Include "exitfail.h".
69207         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
69209         * lib/long-options.c (parse_long_options): Use prototype
69210         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
69211         for clarity.
69213 2004-01-21  Jim Meyering  <jim@meyering.net>
69215         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
69216         so as not to conflict with a different-sized __mktime_internal
69217         function in GNU libc.
69218         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
69219         Problem building statically-linked `ls' reported by Michael Brunnbauer.
69221 2004-01-20  Karl Berry  <karl@gnu.org>
69223         * config/config.guess: update from config.
69225         * config/srclistvars.sh: GNUWWWLICENSES for karl.
69227 2004-01-20  Bruno Haible  <bruno@clisp.org>
69229         Safer stack allocation.
69230         * lib/setenv.c: Include allocsa.h.
69231         (alloca): Remove fallback definition.
69232         (freea): Remove macro.
69233         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
69234         instead of freea.
69236 2004-01-20  Bruno Haible  <bruno@clisp.org>
69238         * m4/eealloc.m4: New file, from GNU gettext.
69240 2004-01-20  Bruno Haible  <bruno@clisp.org>
69242         * m4/allocsa.m4: New file, from GNU gettext.
69244 2004-01-20  Bruno Haible  <bruno@clisp.org>
69246         * lib/xallocsa.h: New file, from GNU gettext.
69247         * lib/xallocsa.c: New file, from GNU gettext.
69249 2004-01-20  Bruno Haible  <bruno@clisp.org>
69251         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
69253 2004-01-20  Bruno Haible  <bruno@clisp.org>
69255         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
69256         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
69257         specially.
69259 2004-01-20  Bruno Haible  <bruno@clisp.org>
69261         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
69262         patch.
69264 2004-01-20  Bruno Haible  <bruno@clisp.org>
69266         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
69268 2004-01-20  Bruno Haible  <bruno@clisp.org>
69270         * lib/eealloc.h: New file.
69272 2004-01-20  Bruno Haible  <bruno@clisp.org>
69274         * lib/binary-io.h: Avoid warnings on Cygwin.
69276 2004-01-20  Bruno Haible  <bruno@clisp.org>
69278         * lib/allocsa.h: New file, from GNU gettext.
69279         * lib/allocsa.c: New file, from GNU gettext.
69281 2004-01-18  Karl Berry  <karl@gnu.org>
69283         * doc/gpl.texi, doc/lgpl.texi: new files.
69285 2004-01-18  Karl Berry  <karl@gnu.org>
69287         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
69288         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
69290 2004-01-15  Paul Eggert  <eggert@twinsun.com>
69292         Merge from coreutils.
69294         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
69295         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
69296         (gl_DEFAULT_POSIX2_VERSION): Move
69297         the documentation from 'configure' into 'config.hin',
69298         so that 'configure --help' isn't burdened by it and
69299         we don't have to worry about its formatting there.
69300         Reword the documentation so that it's more succinct
69301         and can be run together into a single paragraph.
69302         * m4/same.m4 (gl_SAME): Check for pathconf.
69304 2004-01-15  Paul Eggert  <eggert@twinsun.com>
69306         Merge from coreutils.
69308         * lib/posixver.c: Include posixver.h.
69310         * lib/same.c: Include <stdbool.h>, <limits.h>.
69311         (_POSIX_NAME_MAX): Define if not defined.
69312         (MIN): New macro.
69313         (same_name): If file names are silently truncated, report
69314         that the file names are the same if they are the same after
69315         the silent truncation.
69317         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
69318         conversion function.
69319         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
69320         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
69321         longer needed.
69323 2004-01-15  Jim Meyering  <jim@meyering.net>
69325         Merge from coreutils.
69327         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
69328         if no library is required.
69329         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
69330         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
69331         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
69332         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
69333         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
69334         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
69335         value, $ac_cv_search_crypt, if it's "none required".
69336         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
69337         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
69338         not gl_FUNC_GETLOADAVG.
69339         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
69340         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
69342 2004-01-15  Jim Meyering  <jim@meyering.net>
69344         Merge from coreutils.
69346         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
69347         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
69348         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
69350         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
69351         optional configure-time default.
69353         * lib/version-etc.c (version_etc_copyright): Update copyright date.
69355         * lib/xreadlink.c (xreadlink): Correct outdated comment.
69357 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
69359         Merge from coreutils.
69361         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
69362         value, $ac_cv_search_nanosleep, if it's "none required".
69364 2004-01-14  Paul Eggert  <eggert@twinsun.com>
69366         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
69367         with like-named macro in fnmatch.c.
69368         (EXT): Use an internal constant instead.
69370         Merge fnmatch patches from glibc.
69371         * lib/fnmatch.c (mbsinit): Remove define.
69372         Add libc_hidden_ver (__fnmatch, fnmatch).
69373         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
69374         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
69376 2004-01-14  Karl Berry  <karl@gnu.org>
69378         * config/install-sh: update from automake.
69380 2004-01-13  Karl Berry  <karl@gnu.org>
69382         * config/install-sh: update from automake.
69384 2004-01-09  Karl Berry  <karl@gnu.org>
69386         * config/install-sh: update from automake.
69388 2004-01-05  Karl Berry  <karl@gnu.org>
69390         * config/config.{sub,guess}: update from config.
69392 2003-12-31  Karl Berry  <karl@gnu.org>
69394         * config/depcomp: update from automake.
69396 2003-12-14  Karl Berry  <karl@gnu.org>
69398         * lib/config.charset: update from gettext-runtime.
69400 2003-12-03  Paul Eggert  <eggert@twinsun.com>
69402         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
69403         Bug reported by Alfred M. Szmidt.
69405 2003-12-03  Bruno Haible  <bruno@clisp.org>
69407         * m4/gettext.m4: Upgrade from gettext-0.13.
69408         * m4/po.m4: Upgrade from gettext-0.13.
69409         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
69410         * m4/intmax.m4: New file, from gettext-0.13.
69411         * m4/printf-posix.m4: New file, from gettext-0.13.
69413 2003-11-29  Karl Berry  <karl@gnu.org>
69415         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
69417 2003-11-25  Paul Eggert  <eggert@twinsun.com>
69418             Bruno Haible  <bruno@clisp.org>
69420         * lib/printf-parse.h: Don't include sys/types.h.
69421         (ARG_NONE): New macro.
69422         (char_directive): Change type of *arg_index fields to size_t.
69423         * lib/printf-parse.c: Don't include sys/types.h.
69424         (SSIZE_MAX): Remove macro.
69425         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
69426         Remove unnecessary overflow check.
69427         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
69428         fields.
69430 2003-11-25  Bruno Haible  <bruno@clisp.org>
69432         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
69434 2003-11-25  Bruno Haible  <bruno@clisp.org>
69436         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
69437         gt_TYPE_SSIZE_T.
69439 2003-11-24  Paul Eggert  <eggert@twinsun.com>
69441         * modules/alloca: Remove dependency on xalloc.
69443 2003-11-24  Paul Eggert  <eggert@twinsun.com>
69445         * lib/alloca.c: Remove dependency on xalloc module.
69446         (xalloc_die): Remove.
69447         (memory_full) [!defined emacs]: New macro.
69448         [!defined emacs]: Don't include xalloc.h.
69449         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
69450         address arithmetic overflows.  Change datatypes a bit to avoid
69451         unnecessary casts.
69453 2003-11-22  Jim Meyering  <jim@meyering.net>
69455         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
69456         s/size/size_t/.
69458 2003-11-21  Karl Berry  <karl@gnu.org>
69460         * config/config.{sub,guess}: update from config.
69462 2003-11-18  Karl Berry  <karl@gnu.org>
69464         * config/config.{sub,guess}: update from config.
69466         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
69468 2003-11-17  Paul Eggert  <eggert@twinsun.com>
69470         * README: Mention that S+T cannot overflow if S is the size of
69471         an existing object and T is sufficiently small.
69473 2003-11-17  Jim Meyering  <jim@meyering.net>
69475         On systems without utime and without a utimes function capable of
69476         dealing with a NULL struct utimbuf* argument, this utime replacement
69477         could -- in unusual circumstances -- leak a file descriptor.
69478         * lib/utime.c: Include <unistd.h> and <errno.h>.
69479         (utime_null): Be sure to close `fd' and to preserve errno.
69480         Reported by Geoff Collyer via Arnold Robbins.
69482 2003-11-17  Bruno Haible  <bruno@clisp.org>
69484         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
69485         (Depends-on): Add xsize.
69487 2003-11-17  Bruno Haible  <bruno@clisp.org>
69489         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
69491 2003-11-17  Bruno Haible  <bruno@clisp.org>
69493         * lib/vasnprintf.c (alloca): Remove fallback definition.
69494         (freea): Remove definition.
69495         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
69496         Reported by Paul Eggert.
69498 2003-11-16  Paul Eggert  <eggert@twinsun.com>
69499             Bruno Haible  <bruno@clisp.org>
69501         Protect against address arithmetic overflow.
69502         * lib/printf-args.h: Include stddef.h.
69503         (arguments): Change type of field 'count' to size_t.
69504         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
69505         'unsigned int' where appropriate.
69506         * lib/printf-parse.h: Include sys/types.h.
69507         (char_directive): Change type of *arg_index fields to ssize_t.
69508         (char_directives): Change type of fields 'count', max_*_length to
69509         size_t.
69510         * lib/printf-parse.c: Include sys/types.h and xsize.h.
69511         (SSIZE_MAX): Define fallback value.
69512         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
69513         instead of 'int' where appropriate. Check a_allocated, d_allocated
69514         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
69515         * lib/vasnprintf.c: Include xsize.h.
69516         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
69517         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
69518         overflow. Avoid wraparound when converting a width or precision from
69519         decimal to binary.
69521 2003-11-16  Bruno Haible  <bruno@clisp.org>
69523         Update from GNU gettext.
69524         * lib/printf-parse.c: Generalize to it can be compiled for wide
69525         strings.
69526         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
69527         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
69528         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
69529         SNPRINTF): New macros.
69530         Don't include <alloca.h> if the file is used inside libintl.
69531         (local_wcslen): New function, for Solaris 2.5.1.
69532         (VASNPRINTF): Use it instead of wcslen.
69534 2003-11-16  Bruno Haible  <bruno@clisp.org>
69536         * lib/xsize.h (xmax): New function.
69537         (xsum, xsum3, xsum4): Declare as "pure" functions.
69539 2003-11-12  Paul Eggert  <eggert@twinsun.com>
69541         * modules/xalloc (Files): Undo latest change, since xalloc.h
69542         no longer needs SIZE_MAX or PTRDIFF_MAX.
69544 2003-11-12  Paul Eggert  <eggert@twinsun.com>
69546         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
69547         gl_PTRDIFF_MAX.
69549 2003-11-12  Paul Eggert  <eggert@twinsun.com>
69551         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
69552         "return", to pacify some unknown compiler.  Problem reported
69553         by Joerg Schilling.
69555 2003-11-12  Paul Eggert  <eggert@twinsun.com>
69557         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
69558         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
69559         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
69560         heuristic is just as accurate as far as we know, and it removes a
69561         dependency on size_max.m4 and ptrdiff_max.m4.
69563 2003-11-11  Bruno Haible  <bruno@clisp.org>
69565         * modules/xsize (Files): Add m4/size_max.m4.
69566         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
69568 2003-11-11  Bruno Haible  <bruno@clisp.org>
69570         * m4/size_max.m4: New file.
69571         * m4/ptrdiff_max.m4: New file.
69572         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
69573         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
69574         (gl_XALLOC): Invoke it.
69576 2003-11-11  Bruno Haible  <bruno@clisp.org>
69578         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
69579         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
69580         defined.
69582 2003-11-10  Paul Eggert  <eggert@twinsun.com>
69584         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
69585         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
69586         rejected some allocations of exactly SIZE_MAX - 2 bytes.
69587         From Bruno Haible.
69588         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
69589         not (size_t) -1, since it's defined here.
69591 2003-11-09  Karl Berry  <karl@gnu.org>
69593         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
69595 2003-11-06  Paul Eggert  <eggert@twinsun.com>
69597         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
69598         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
69599         Reject sizes of exactly SIZE_MAX bytes.
69600         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
69601         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
69603 2003-11-05  Bruno Haible  <bruno@clisp.org>
69605         * lib/xsize.h: Include limits.h, to avoid a possible collision with
69606         SIZE_MAX defined in <limits.h> on Solaris.
69608 2003-11-04  Jim Meyering  <jim@meyering.net>
69610         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
69611         variable names, rather than @VAR@.
69612         * modules/poll: Likewise.
69614 2003-11-04  Bruno Haible  <bruno@clisp.org>
69616         * modules/xsize: New file.
69617         * modules/linebreak: Depend on xsize.
69618         * MODULES.html.sh (func_all_modules): Add xsize.
69620 2003-11-04  Bruno Haible  <bruno@clisp.org>
69622         * m4/xsize.m4: New file.
69624 2003-11-04  Bruno Haible  <bruno@clisp.org>
69626         * lib/xsize.h: New file.
69627         * lib/linebreak.c: Include xsize.h.
69628         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
69629         argument for overflow.
69630         Suggested by Paul Eggert.
69632 2003-11-03  Karl Berry  <karl@gnu.org>
69634         * config/config.{guess,sub}: update from config.
69636 2003-11-03  Jim Meyering  <jim@meyering.net>
69638         * modules/userspec (lib_SOURCES): Add userspec.h.
69639         (Include): Add "userspec.h".
69640         Improve description.
69642 2003-11-03  Jim Meyering  <jim@meyering.net>
69644         * lib/userspec.c: Include "userspec.h".
69645         * lib/userspec.h: New file.
69647 2003-11-03  Bruno Haible  <bruno@clisp.org>
69649         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
69651 2003-11-03  Bruno Haible  <bruno@clisp.org>
69653         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
69654         available, to avoid (extremely rare) race condition.
69655         Suggested by Paul Eggert.
69657 2003-11-02  Karl Berry  <karl@gnu.org>
69659         * config/srclist.txt (vasprintf.c): sync broken, sigh.
69661 2003-10-31  Paul Eggert  <eggert@twinsun.com>
69663         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
69664         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
69665         (read_filesystem_list): Set and use me_type_malloced.
69666         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
69667         whatever the type happens to be), for brevity and consistency.
69668         Check for size calculation overflow on Alphas running OSF/1.
69670 2003-10-31  Jim Meyering  <jim@meyering.net>
69672         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
69674         * lib/linebuffer.c: Include <string.h> for declaration of memset.
69676 2003-10-30  Paul Eggert  <eggert@twinsun.com>
69677             Bruno Haible  <bruno@clisp.org>
69679         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
69680         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
69682 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
69684         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
69685         netbsd*-gnu*.  Suggested by Robert Millan.
69687 2003-10-29  Paul Eggert  <eggert@twinsun.com>
69689         * modules/group-member: Depend on stdbool.
69691 2003-10-29  Paul Eggert  <eggert@twinsun.com>
69693         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
69695 2003-10-29  Paul Eggert  <eggert@twinsun.com>
69697         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
69698         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
69699         after the 'gnu' in these cases.  This fixes some bugs in the
69700         previous change, and is based on suggestions by Robert Millan.
69702 2003-10-29  Paul Eggert  <eggert@twinsun.com>
69704         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
69705         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
69706         no longer needed.
69707         * lib/quotearg.c (quotearg_n_options): Use it.
69708         * lib/group-member.c: Include <stdbool.h>.
69709         (free_group_info): Arg is now const *; don't free arg.
69710         (get_group_info): Now returns bool and accepts struct group_info *,
69711         rather than returning a malloc'ed struct group_info *.
69712         All uses changed.  Check for overflow in internal size calculation.
69714         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
69715         rather than xmalloc/xrealloc.
69716         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
69717         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
69718         conformance bug: the old code used a pointer after freeing the
69719         storage that it addressed.
69720         * lib/hash.c (hash_initialize): Simplify the code by using
69721         xalloc_oversized rather than doing it by hand.
69722         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
69723         the buffer preserved.  Use free and xmalloc instead.
69724         * lib/quotearg.c (quotearg_n_options): Likewise.
69725         Use a simpler test for size overflow.  Don't use xalloc_oversized
69726         because unsigned int might be wider than size_t (!); this suggests
69727         that we should switch from unsigned int to size_t for slot numbers.
69729 2003-10-28  Paul Eggert  <eggert@twinsun.com>
69731         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
69732         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
69733         NetBSD kernels.  Requested by Richard Stallman.
69735 2003-10-27  Paul Eggert  <eggert@twinsun.com>
69737         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
69738         to allocate the returned structure.  Do not allocate a subarray,
69739         as x2nrealloc will do that.
69740         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
69741         instead of xnrealloc.
69742         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
69744 2003-10-27  Bruno Haible  <bruno@clisp.org>
69746         * lib/stdbool_.h: Better support for BeOS.
69748 2003-10-26  Paul Eggert  <eggert@twinsun.com>
69750         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
69751         now uses inline.
69753 2003-10-26  Paul Eggert  <eggert@twinsun.com>
69755         * lib/xalloc.h (xalloc_oversized): New static inline function, for
69756         callers that want to do their own size-overflow checking.  Include
69757         <stdbool.h>, since xalloc_oversized returns bool.
69758         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
69759         to use xalloc_oversized.
69761         Add two functions x2realloc, x2nrealloc, for programs that grow
69762         arrays dynamically by doubling their sizes.
69763         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
69764         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
69765         New functions.
69767         Port to C99 semantics for 'inline' of external functions.
69768         Bug reported by Bruno Haible.
69769         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
69770         with the old contents of xnmalloc.
69771         (xnmalloc, xmalloc): Use it.
69772         (xnrealloc_inline): New static inline function,
69773         with the old contents of xnrealloc.
69774         (xnrealloc, xrealloc): Use it.
69776         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
69777         that.
69779 2003-10-26  Karl Berry  <karl@gnu.org>
69781         * config/srclist.txt (COPYING.DOC): no longer available from
69782         /gd/gnuorg; don't know where the ultimate source is.
69784 2003-10-25  Paul Eggert  <eggert@twinsun.com>
69786         Fix several address-calculation bugs in the hash modules,
69787         plus some minor code cleanup.
69789         * lib/hash.h: Include <stdbool.h>, for bool.
69790         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
69791         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
69792         hash_get_n_entries, hash_get_max_bucket_length,
69793         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
69794         hash_rehash): Use size_t rather than unsigned.
69795         * lib/hash.c (struct hash_table, hash_get_n_buckets,
69796         hash_get_n_buckets_used, hash_get_n_entries,
69797         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
69798         hash_get_entries, hash_do_for_each, hash_string, is_prime,
69799         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
69800         Likewise.
69801         (SIZE_MAX): Define if not defined.
69802         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
69803         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
69804         hash_print):
69805         Use const * when possible.
69806         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
69807         (check_tuning): Fix bug: if tuning parameters were very close to
69808         0 or 1, rounding errors could have caused subscript violations.
69809         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
69810         (hash_initialize): Add 'fail:' label
69811         to free table and return NULL, and use it to simplify code.
69812         Use calloc rather than clearing the storage ourself.
69813         (hash_initialize, hash_rehash): Check for arithmetic overflow in
69814         buffer size calculations.
69815         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
69816         Include <stddef.h>, for size_t.
69817         * lib/hash-pjw.c (hash_pjw): Likewise.
69818         Switch to method described by Bruno Haible.
69819         Include <limits.h>, for CHAR_BIT.
69820         (SIZE_BITS): New macro.
69822 2003-10-23  Paul Eggert  <eggert@twinsun.com>
69824         * m4/getline.m4 (AM_FUNC_GETLINE):
69825         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
69826         hosts.  Problem reported by Derek Robert Price in
69827         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
69828         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
69829         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
69831 2003-10-21  Paul Eggert  <eggert@twinsun.com>
69833         * lib/getndelim2.c (getndelim2): When size calculation overflows,
69834         ceiling the allocation at NMAX bytes rather than silently
69835         discarding input bytes before NMAX is reached.  This makes
69836         a difference only if NMAX exceeds SIZE_MAX / 2.
69838         * lib/obstack.c: Merge from glibc.
69839         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
69840         Add libc_hidden_def (_obstack_newchunk).
69841         (_obstack_free) [! defined _LIBC]: Remove.
69842         [defined _LIBC]: Make a strong alias from obstack_free, rather than
69843         a clone of the function body.
69844         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
69845         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
69847         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
69848         glibc.
69849         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
69850         arg to memcpy.
69852         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
69853         (obstack_ptr_grow_fast, obstack_int_grow_fast):
69854         Don't use lvalue casts, as GCC plans to remove support for them
69855         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
69856         was also present in the non-GCC version, indicating that this
69857         code had always been buggy and had never been widely used.
69858         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
69859         Use the fast variant of each macro, rather than copying the
69860         definiens of the fast variant; that way, we'll be more likely to
69861         catch future bugs in the fast variants.
69863 2003-10-20  Bruno Haible  <bruno@clisp.org>
69865         * modules/wait-process: New file.
69866         * MODULES.html.sh (func_all_modules): Add wait-process.
69868 2003-10-20  Bruno Haible  <bruno@clisp.org>
69870         * m4/wait-process.m4: New file.
69872 2003-10-20  Bruno Haible  <bruno@clisp.org>
69874         * lib/wait-process.h: New file, from GNU gettext.
69875         * lib/wait-process.c: New file, from GNU gettext.
69877 2003-10-19  Jim Meyering  <jim@meyering.net>
69879         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
69880         HPUX 10.20.
69882 2003-10-18  Karl Berry  <karl@gnu.org>
69884         * config/config.guess: update from config.
69886 2003-10-16  Paul Eggert  <eggert@twinsun.com>
69888         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
69889         (getgroups): First arg is int, not size_t.
69890         Don't let 'free' mangle errno.
69892 2003-10-16  Paul Eggert  <eggert@twinsun.com>
69894         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
69896 2003-10-16  Karl Berry  <karl@gnu.org>
69898         * config/config.{guess,sub}: update from config.
69900 2003-10-16  Jim Meyering  <jim@meyering.net>
69902         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
69903         memcpy.
69905 2003-10-15  Paul Eggert  <eggert@twinsun.com>
69907         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
69908         (SIZE_MAX): Remove.
69909         (new_exclude, add_exclude_file): Initial size no longer needs to
69910         be a power of 2.
69911         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
69912         our own address arithmetic overflow checking.
69914         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
69915         (fnmatch): Do not alloca more than 2000 wide characters;
69916         instead, use malloc for large buffers.
69917         Check for address arithmetic overflow, and return -1
69918         with errno set to ENOMEM in that case.
69919         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
69920         (NEW_PATTERN): Do not alloca more than 8000 bytes;
69921         instead, return -1.  Check for address arithmetic overflow.
69923 2003-10-14  Paul Eggert  <eggert@twinsun.com>
69925         Handle invalid suffixes and overflow independently, so that
69926         callers can treat them independently as needed.  Fix some bugs in
69927         suffix handling, e.g., "100k@" was not diagnosed as an invalid
69928         suffix for a human-readable blocksize.  The major caller-visible
69929         change is the addition of a new
69930         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
69931         that both overflow and suffix chars were found.
69933         * lib/human.c (humblock): Don't check separately for invalid suffix
69934         char; that is xstrtoumax's job (now that its bug is fixed).
69935         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
69936         INTMAX_MAX]: New macros.
69937         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
69938         TYPE_MAXIMUM): New macros.
69939         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
69940         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
69941         if overflow occurs, as it's what __strtol does and it's more useful
69942         in practice.
69943         (__xstrtol): If __strtol reports some error other than ERANGE,
69944         reflect it to the caller as LONGINT_INVALID.  If it reports
69945         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
69946         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
69947         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
69948         value.
69949         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
69950         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
69951         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
69952         [defined UINTMAX_MAX]: New macros.
69954 2003-10-14  Bruno Haible  <bruno@clisp.org>
69956         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
69958 2003-10-14  Bruno Haible  <bruno@clisp.org>
69960         * m4/sig_atomic_t: New file, from GNU gettext.
69961         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
69963 2003-10-14  Bruno Haible  <bruno@clisp.org>
69965         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
69966         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
69967         Also use volatile where needed.
69969 2003-10-12  Paul Eggert  <eggert@twinsun.com>
69971         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
69972         Change maintainer from Bruno Haible to 'all'.
69974 2003-10-12  Paul Eggert  <eggert@twinsun.com>
69976         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
69978 2003-10-12  Paul Eggert  <eggert@twinsun.com>
69980         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
69981         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
69982         and define in terms of the other primitives.
69983         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
69984         (SIZE_MAX): Define if not already defined.
69985         (array_size_overflow): New function.
69986         (xalloc_die): Abort instead of exiting if 'error' returns.
69987         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
69988         (xmalloc, xrealloc): Use them.
69989         (xcalloc): Check for address arithmetic overflow.
69990         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
69991         a bit faster than strcpy.
69993 2003-10-10  Simon Josefsson  <jas@extundo.com>
69995         * modules/argp (Depends-on): Add restrict and strcase.
69997 2003-10-10  Simon Josefsson  <jas@extundo.com>
69999         * m4/argp.m4: Add AC_C_INLINE.
70001 2003-10-08  Paul Eggert  <eggert@twinsun.com>
70003         Merge getpass from libc, plus a few fixes.
70005         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
70006         Include <stdbool.h>.
70007         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
70008         __fsetlocking to empty.
70009         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
70010         do include <bits/libc-lock.h>.
70011         Do not include <fcntl.h>; not needed.
70012         [_LIBC]: Include <wchar.h>.
70013         (NOTCANCEL_MODE): New macro.
70014         (flockfile, funlockfile) [_LIBC]: New macros.
70015         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
70016         [!_LIBC]: New macros.
70017         (call_fclose): New function.
70018         (getpass): Use it.  Save tty stream separately; this simplifies the
70019         code and makes it more reliable if stdin happens to equal stdout.
70020         Invoke __fsetlocking on tty.
70021         Handle thread cancellation if needed.
70022         Namespace cleanup (use __tcgetattr, __getline).
70023         Use bool for Booleans.
70024         [USE_IN_LIBIO]: Handle wide streams.
70025         [!_LIBC]: Unconditionally do the fseek, since we don't know what
70026         stream might go where.
70028         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
70029         doesn't have to include <stdio.h> before us.
70030         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
70031         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
70032         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
70033         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
70034         if not declared, so that we can use getpass.c code from libc without
70035         rewriting it.
70036         (flockfile, ftrylockfile, funlockfile): New macros.
70038 2003-10-08  Paul Eggert  <eggert@twinsun.com>
70040         * modules/getpass: Depend on stdbool.
70042 2003-10-08  Paul Eggert  <eggert@twinsun.com>
70044         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
70046 2003-10-07  Karl Berry  <karl@gnu.org>
70048         * config/config.{guess,sub}: update from config.
70050 2003-10-06  Jim Meyering  <jim@meyering.net>
70051             Bruno Haible  <bruno@clisp.org>
70053         This lets translators provide better translations for the
70054         "Written by ..." part of --version output.
70055         * lib/version-etc.h: Include stdarg.h.
70056         (version_etc_copyright): Declare as readonly.
70057         (version_etc): Make this function variadic with a NULL-terminated list
70058         of author name strings.
70059         (version_etc_va): New declaration.
70060         * lib/version-etc.c: Include stdarg.h, stdlib.h.
70061         (version_etc_copyright): Declare as readonly.
70062         (version_etc_va): New function. Provide a different translatable string
70063         for each possible number of authors < 10. Abbreviate when there are 10
70064         authors or more.
70065         (version_etc): Make this function variadic. Call version_etc_va.
70066         Suggestion from Gary V. Vaughan.
70068         * lib/long-options.h (parse_long_options): Change prototype: the
70069         authors string is moved to the end and becomes variadic.
70070         * lib/long-options.c: Include stdarg.h.
70071         (parse_long_options): Make this function variadic, too.
70072         Call version_etc_va, not version_etc.
70074 2003-10-06  Bruno Haible  <bruno@clisp.org>
70076         * modules/version-etc-2: Remove file.
70077         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
70079 2003-10-06  Bruno Haible  <bruno@clisp.org>
70081         * modules/fatal-signal: New file.
70082         * MODULES.html.sh (func_all_modules): Add fatal-signal.
70084 2003-10-06  Bruno Haible  <bruno@clisp.org>
70086         * m4/fatal-signal.m4: New file.
70087         * m4/signalblocking.m4: New file, from GNU gettext.
70089 2003-10-06  Bruno Haible  <bruno@clisp.org>
70091         * lib/version-etc-2.h: Remove file.
70092         * lib/version-etc-2.c: Remove file.
70094 2003-10-06  Bruno Haible  <bruno@clisp.org>
70096         * lib/fatal-signal.h: New file, from GNU gettext.
70097         * lib/fatal-signal.c: New file, from GNU gettext.
70099 2003-10-05  Paul Eggert  <eggert@twinsun.com>
70101         * README: Rework advice for preventing empty .o files.
70102         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
70103         not <sys/types.h>.
70105 2003-10-04  Karl Berry  <karl@gnu.org>
70107         * lib/argp*: update from libc.
70109 2003-10-04  Karl Berry  <karl@gnu.org>
70111         * config/config.{guess,sub}: update from config.
70113 2003-10-02  Bruno Haible  <bruno@clisp.org>
70115         * modules/lchown (Include): Add lchown.h.
70116         * modules/time_r (Include): Use "..." syntax.
70117         * modules/xgetdomainname (Include): Add xgetdomainname.h.
70119 2003-10-01  Simon Josefsson  <jas@extundo.com>
70121         * MODULES.html.sh (func_all_modules): Move gethostname from section
70122         'based on' to section 'lacking' POSIX:2001.
70124 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
70126         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
70127         to output mode on the same stream.
70129 2003-09-29  Paul Eggert  <eggert@twinsun.com>
70131         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
70132         Fix arg typo in previous patch.
70134 2003-09-28  Jim Meyering  <jim@meyering.net>
70136         * lib/error.c: Correct cpp indentation.
70138 2003-09-27  Paul Eggert  <eggert@twinsun.com>
70140         * modules/free: New file.
70142 2003-09-27  Paul Eggert  <eggert@twinsun.com>
70144         * m4/free.m4: New file.
70146 2003-09-27  Paul Eggert  <eggert@twinsun.com>
70148         * lib/minmax.h (MIN, MAX)
70149         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
70150         Omit the special code that used __typeof__, since we worry that
70151         it could be more trouble than it's worth.  See:
70152         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
70153         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
70155         * lib/free.c: New file.
70157 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
70159         Trivial fixes to Makefile.am parts of module listings.
70160         * modules/strstr: Append strstr.h to lib_SOURCES.
70161         * modules/strcase: Likewise, for strcase.h.
70163 2003-09-27  Karl Berry  <karl@gnu.org>
70165         * config/mkinstalldirs: update from automake.
70167 2003-09-26  Paul Eggert  <eggert@twinsun.com>
70169         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
70170         (error_tail): Do not loop, reallocating temporary buffer, since
70171         the output cannot contain more wide characters than the input
70172         contains bytes, the size must be big enough already.  This avoids
70173         one potential size overflow calculation.  Check for size overflow
70174         when calculating temporary buffer size.  Free temporary buffer
70175         when done, if it was allocated with malloc; this plugs a memory
70176         leak.  Remove casts from void * to pointers, that are no longer
70177         needed now that we're assuming C89 or better.
70179         Merge error changes from glibc.
70181         * lib/error.c, error.h: Update copyright notice header to match glibc.
70182         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
70183         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
70184         Disable cancellation while printing error.
70185         * lib/error.h: Prepend __ to parameter names.
70187 2003-09-26  Jim Meyering  <jim@meyering.net>
70189         * lib/error.c (error_tail): Move some declarations
70190         into inner scope where the local variables are used.
70192 2003-09-26  Bruno Haible  <bruno@clisp.org>
70194         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
70195         stpncpy().
70196         Don't define stpncpy through config.h; it's now done through stpncpy.h.
70198 2003-09-26  Bruno Haible  <bruno@clisp.org>
70200         * lib/stpncpy.h (gnu_stpncpy): New declaration.
70201         (stpncpy): Define as alias for gnu_stpncpy.
70202         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
70204 2003-09-25  Simon Josefsson  <jas@extundo.com>
70206         * lib/xgetdomainname.h: New file.
70207         * lib/xgetdomainname.c: New file.
70209 2003-09-25  Simon Josefsson  <jas@extundo.com>
70210             Bruno Haible  <bruno@clisp.org>
70212         * modules/getdomainname: New file.
70213         * modules/xgetdomainname: New file.
70214         * MODULES.html.sh (func_all_modules): Add getdomainname,
70215         xgetdomainname.
70217 2003-09-25  Simon Josefsson  <jas@extundo.com>
70218             Bruno Haible  <bruno@clisp.org>
70220         * m4/getdomainname.m4: New file.
70222 2003-09-25  Simon Josefsson  <jas@extundo.com>
70223             Bruno Haible  <bruno@clisp.org>
70225         * lib/getdomainname.h: New file.
70226         * lib/getdomainname.c: New file.
70228 2003-09-25  Karl Berry  <karl@gnu.org>
70230         * lib/argp-fmtstream.c, argp-help.c: update from libc.
70232 2003-09-25  Karl Berry  <karl@gnu.org>
70234         * config/install-sh: update from automake.
70236 2003-09-25  Bruno Haible  <bruno@clisp.org>
70238         * modules/version-etc-2: New file, from modules/version-etc with
70239         modifications.
70240         * MODULES.html.sh (func_all_modules): Add version-etc-2.
70242 2003-09-25  Bruno Haible  <bruno@clisp.org>
70244         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
70245         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
70247 2003-09-24  Simon Josefsson  <jas@extundo.com>
70249         * modules/xgethostname: Add xgethostname.h.
70251 2003-09-24  Paul Eggert  <eggert@twinsun.com>
70253         * lib/linebuffer.c (freebuffer): Don't free the argument, just
70254         the buffer associated with the argument.  Bug reported by
70255         Simon Josefsson.
70257 2003-09-24  Paul Eggert  <eggert@twinsun.com>
70259         * README: Document assumptions that 'int' is at least 32 bits
70260         wide, that integer arithmetic is 2's complement without overflow,
70261         that there are no holes in integer values, that adding sizes of
70262         two nonoverlapping objects can't overflow, and that all-bits-zero
70263         yields scalar zero.  Fix spelling and capitalization typos.
70265 2003-09-19  Karl Berry  <karl@gnu.org>
70267         * lib/argp.h: update from libc.
70269 2003-09-17  Paul Eggert  <eggert@twinsun.com>
70271         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
70272         to avoid spurious warnings like "AC_RUN_IFELSE was called before
70273         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
70275 2003-09-17  Paul Eggert  <eggert@twinsun.com>
70277         * gnulib-tool: Use "test -h", not "test -L", for portability
70278         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
70279         (tags_regexp): Remove, since \| doesn't conform to POSIX.
70280         (sed_extract_prog): Issue s commands one-by-one, rather than
70281         using \| in one s command.
70283 2003-09-16  Paul Eggert  <eggert@twinsun.com>
70285         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
70286         input error, instead of returning NULL the next time we are called
70287         (and therefore losing track of errno).
70289 2003-09-16  Bruno Haible  <bruno@clisp.org>
70291         * gnulib-tool (func_create_testdir): Warn about duplicated
70292         dependencies.
70294 2003-09-15  Paul Eggert  <eggert@twinsun.com>
70296         * modules/argmatch, modules/fatal, modules/obstack,
70297         modules/xalloc, modules/xgethostname: Sort dependencies by
70298         importance, not alphabetically.
70300 2003-09-15  Paul Eggert  <eggert@twinsun.com>
70302         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
70303         fails, so that the caller gets the proper errno.
70305         * lib/readutmp.c (read_utmp): Likewise.
70306         Check for fstat error.  Close stream and free storage
70307         when failing.
70309 2003-09-14  Karl Berry  <karl@gnu.org>
70311         * config/srclist.txt (strdup.c): disable for c89 changes.
70313 2003-09-14  Jim Meyering  <jim@meyering.net>
70315         * lib/getloadavg.c: Correct cpp indentation.
70316         * lib/strdup.c: Likewise.
70317         * lib/vasnprintf.c: Likewise.
70319 2003-09-14  Bruno Haible  <bruno@clisp.org>
70321         * modules/fwriteerror: New file.
70322         * MODULES.html.sh (func_all_modules): Add fwriteerror.
70324 2003-09-14  Bruno Haible  <bruno@clisp.org>
70326         * lib/fwriteerror.h: New file.
70327         * lib/fwriteerror.c: New file.
70329 2003-09-12  Paul Eggert  <eggert@twinsun.com>
70331         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
70332         modules/xgethostname, modules/xalloc: Depend on exit.
70334 2003-09-12  Paul Eggert  <eggert@twinsun.com>
70336         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
70338         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
70339         and AC_MINIX, too, so that their extensions are available.
70341         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
70342         This macro has been superseded by gl_BACKUPFILE.
70344         More patches to assume C89 or better.
70346         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
70348         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
70349         unconditionally.
70350         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
70351         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
70352         Include <string.h>, <stdlib.h> unconditionally.
70353         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
70354         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
70355         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
70356         headers or for string.h.
70357         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
70358         or strtoul.
70360         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
70361         headers.
70362         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
70363         * m4/userspec.m4 (gl_USERSPEC): Likewise.
70364         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
70365         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
70366         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
70367         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
70368         memcpy, memset.
70369         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
70370         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
70371         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
70372         strtol.
70373         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
70374         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
70375         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
70376         strtoul.
70378 2003-09-12  Paul Eggert  <eggert@twinsun.com>
70380         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
70381         * lib/obstack.c [!defined _LIBC]: Likewise.
70382         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
70383         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
70384         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
70386         More changes to assume C89 or better.
70388         * lib/error.c (error_tail): Assume vprintf.
70390         * lib/argmatch.c (getenv): Remove decl.
70391         * lib/progreloc.c (get_full_program_name): Define via prototype.
70392         * lib/setenv.c (clearenv): Likewise.
70393         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
70394         needed.
70395         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
70396         (malloc, memcpy): Remove decls.
70397         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
70398         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
70399         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
70400         (memcpy): Remove macro.
70401         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
70402         (__P): Remove.  All uses removed.
70403         (PTR): Remove.  All uses changed to void *.
70404         (CHAR_BIT, NULL): Remove.
70405         (spaces, zeros, memset_space, memset_zero)
70406         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
70407         Remove.
70408         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
70409         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
70410         Define with prototype.
70411         Remove now-unnecessary prototype decl.
70412         (extra_args_spec): Assume ANSI C.  All uses changed.
70413         (extra_args_spec_iso): Remove.
70414         (my_strftime, emacs_strftimeu): Define via prototype.
70415         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
70416         unconditionally.
70417         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
70418         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
70419         (strtoul, strtol): Remove decls.
70420         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
70421         LONG_MAX): Remove.
70422         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
70423         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
70424         (LOCALE_PARAM_PROTO): New macro.
70425         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
70426         (INTERNAL (strtol), strtol): Define with a prototype.
70427         (PARAMS): Remove.  All uses removed.
70428         * lib/tempname.c: Include <string.h> unconditionally.
70429         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
70430         * lib/xgethostname.c (main): Define with a prototype.
70431         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
70432         Include <stdlib.h> unconditionally.
70433         (calloc, malloc, realloc, free): Remove decls.
70434         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
70435         Include <stdlib.h> unconditionally.  Sort include file names.
70436         (strtod): Remove.
70437         (xstrtod): Define with a prototype.
70438         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
70439         (strtol, strtoul): Remove decls.
70441 2003-09-11  Paul Eggert  <eggert@twinsun.com>
70443         More patches to assume C89 or better.
70444         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
70445         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
70446         string.h, memchr, STDC_HEADERS.
70448 2003-09-11  Paul Eggert  <eggert@twinsun.com>
70450         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
70451         Include <stdlib.h>, <string.h> unconditionally.
70452         Remove now-unnecessary cast to char *.
70453         * lib/strnlen.c: Include <string.h> unconditionally.
70454         * lib/yesno.c (yesno): Define with a prototype.
70456 2003-09-11  Bruno Haible  <bruno@clisp.org>
70458         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
70460 2003-09-10  Jim Meyering  <jim@meyering.net>
70462         * lib/error.c: Correct indentation of cpp directives.
70464 2003-09-10  Bruno Haible  <bruno@clisp.org>
70466         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
70467         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
70468         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
70469         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
70470         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
70471         <stdlib.h> and <string.h> checks.
70472         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
70473         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
70475 2003-09-10  Bruno Haible  <bruno@clisp.org>
70477         * lib/strcspn.c: Include <string.h> unconditionally.
70478         * lib/strpbrk.c: Include <string.h> unconditionally.
70479         * lib/strstr.c: Include <string.h> unconditionally.
70480         * lib/unicodeio.c: Include <string.h> unconditionally.
70481         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
70482         * lib/unsetenv.c: Likewise.
70483         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
70484         * lib/yesno.c: Include <stdlib.h> unconditionally.
70485         (rpmatch): Add prototype.
70487 2003-09-09  Paul Eggert  <eggert@twinsun.com>
70489         More patches to assume C89 or better.
70490         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
70491         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
70492         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
70493         or for string.h.
70494         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
70495         stdlib.h.
70496         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
70497         C headers.
70498         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
70499         string.h.
70500         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
70501         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
70502         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
70503         or for string.h.
70504         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
70505         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
70506         C headers.
70507         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
70508         memcpy.
70509         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
70510         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
70511         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
70512         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
70513         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
70514         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
70515         string.h, free.
70516         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
70517         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
70518         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
70519         C headers, or for string.h.
70520         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
70521         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
70522         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
70523         headers, memory.h, stdlib.h, string.h, strings.h.
70524         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
70525         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
70526         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
70527         strchr.
70528         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
70529         headers, memory.h, string.h.
70530         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
70531         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
70532         free.
70533         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
70534         headers.
70535         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
70536         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
70537         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
70538         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
70539         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
70541 2003-09-09  Paul Eggert  <eggert@twinsun.com>
70543         More K&R removal.
70545         * lib/acosl.c (main): Use a prototype.
70546         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
70547         tanl.c: Likewise.
70549         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
70551         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
70552         (getopt, etopt_long, getopt_long_only, _getopt_internal)
70553         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
70554         with a prototype.
70555         * lib/getopt.c (const): Remove macro.
70556         Include <string.h> unconditionally.
70557         (my_index): Remove; all uses changed to strchr.
70558         (strlen): Remove decl.
70559         (exchange): Remove forward decl; no longer needed.
70560         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
70561         Define with prototype.
70562         * lib/getopt1.c (const): Remove macro.
70563         (getopt_long, getopt_long_only, main): Define with prototype.
70565         * lib/getugroups.c: Include <string.h> unconditionally.
70567         * lib/getusershell.c: Include <stdlib.h> unconditionally.
70568         (getusershell, setusershell, endusershell, readname, main):
70569         Define with prototypes.
70571         * lib/group-member.c: Include group-member.h first.
70572         Include <stdlib.h> unconditionally.
70574         * lib/hard-locale.c: Include hard-locale.h first.
70575         Include <stdlib.h>, <string.h> unconditionally.
70577         * lib/hash.c (free, malloc): Remove decls.
70578         Include <stdlib.h> unconditionally.
70580         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
70581         (getenv): Do not declare.
70583         * lib/idcache.c: Include <string.h> unconditionally.
70585         * lib/long-options.c: Include long-options.h first, to test interface.
70586         Include <stdlib.h> unconditionally.
70588         * lib/makepath.c: Include makepath.h first, to test interface.
70589         Include <stdlib.h> and <string.h> unconditionally.
70591         * lib/linebuffer.c: Include <stdlib.h>.
70592         (free): Remove decl.
70594         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
70595         stddef.h. rpl_malloc returns void *, not char *.
70596         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
70597         prototype.
70599         * lib/md5.h: Include <limits.h> unconditionally.
70600         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
70601         (__P): Remove; all uses removed.
70602         * lib/md5.c: Include "md5.h" first.
70603         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
70604         md5_buffer, md5_process_bytes, md5_process_block):
70605         Define with prototypes.
70606         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
70607         * lib/sha.c: Include "sha.h" first.
70608         Include <stdlib.h>, <string.h> unconditionally.
70610         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
70611         * lib/memcmp.c (__ptr_t): Likewise.
70612         * lib/memrchr.c (__ptr_t): Likewise.
70613         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
70614         Include <string.h> unconditionally.
70615         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
70616         * lib/memchr.c: Include <stdlib.h> unconditionally.
70617         * lib/memchr.c (LONG_MAX): Remove.
70618         * lib/memrchr.c (LONG_MAX): Likewise.
70619         * lib/memchr.c (__memchr): Define via a prototype.
70620         * lib/memrchr.c (__memrchr): Likewise.
70621         * lib/memcmp.c (__P): Remove, and remove all uses.
70622         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
70623         Remove forward decls; no longer needed.
70624         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
70625         Use types required by C89 in prototype.
70627         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
70628         * lib/savedir.c: Likewise.
70629         * lib/mkdir.c (free): Remove decl.
70630         * lib/rmdir.c (rmdir): Define with a prototype.
70631         * lib/savedir.c: Include savedir.h first, to test interface.
70633         * lib/mktime.c (STDC_HEADERS): Remove.
70634         Include <stdlib.h>, <string.h> unconditionally.
70636         * lib/modechange.c: Include <stdlib.h> unconditionally.
70637         (malloc): Remove decl.
70639         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
70640         (free): Remove decl.
70642         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
70643         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
70644         (This type really should be intptr_t, but that's a C99ism.)
70645         (_obstack_memcpy): Remove: all uses changed to memcpy.
70646         Include <string.h> unconditionally.
70647         (struct obstack): Assume __STDC__ for types of members
70648         chunkfun, freefun, extra_arg.
70649         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
70650         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
70651         obstack_begin, obstack_specify_allocation,
70652         obstack_specify_allocation_with_arg, obstack_chunkfun,
70653         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
70654         Remove unprototyped decls and the macros that use them.
70655         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
70656         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
70657         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
70658         (defined __STDC__ && __STDC__)]:
70659         Remove nonprototyped code.
70660         Include <stdlib.h> unconditionally.
70661         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
70662         _obstack_allocated_p, _obstack_free, obstack_free,
70663         _obstack_memory_used, print_and_abort):
70664         Define using prototypes.
70665         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
70666         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
70667         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
70668         obstack_next_free, obstack_object_size, obstack_room) [0]:
70669         Remove unused, unprototyped code.
70671         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
70673         * lib/physmem.c (physmem_total, physmem_available, main): Define
70674         with prototypes.
70676         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
70677         (main): Define with a prototype.
70679         * lib/posixver.c (getenv): Remove decl.
70681         * lib/putenv.c (malloc): Returns void *, not char *.
70682         Include <string.h> unconditionally.
70683         (strchr, memcpy, NULL): Do not define.
70685         * lib/readtokens.c: Include readtokens.h first, to test interface.
70686         Include <stdlib.h>, <string.h> unconditionally.
70687         (init_tokenbuffer): Define with a prototype.
70689         * lib/regex.c (PARAMS): Remove.  All uses removed.
70690         All uses of _RE_ARGS removed, too.
70691         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
70692         unconditionally.
70693         (bzero): Assume memset exists.
70694         (memcmp, memcpy, NULL): Remove.
70695         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
70696         char, or assignments to local vars of type signed char.
70697         (init_syntax_once, PREFIX(extract_number_and_incr),
70698         PREFIX(print_partial_compiled_pattern),
70699         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
70700         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
70701         PREFIX(regex_grow_registers), PREFIX(regex_compile),
70702         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
70703         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
70704         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
70705         wcs_compile_range, byte_compile_range, truncate_wchar,
70706         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
70707         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
70708         count_mbs_length, wcs_re_match_2_internal,
70709         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
70710         PREFIX(alt_match_null_string_p),
70711         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
70712         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
70713         regfree, PREFIX(extract_number)): Define with prototype.  Remove
70714         now-unnecessary declaration, if any.
70715         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
70716         regcomp, regexec):
70717         Remove now-unnecessary casts among pointer types.
70718         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
70720         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
70721         (free): Remove decl.
70723         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
70725         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
70726         (free): Remove decl.
70728         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
70729         * lib/xgetcwd.c: Likewise.
70731         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
70732         (free): Remove decl.
70734         * lib/strchrnul.c (strchrnul): Define with a prototype.
70735         Fix bug: c_in was not converted to char before searching.
70737         The following changes are not K&R related:
70739         * lib/group-member.h: Include <sys/types.h>, so that this file is
70740         self-contained.
70741         * lib/makepath.h: Likewise.
70743         * lib/getusershell.c (readname, default_index, line_size, readname):
70744         Use size_t, not int, for sizes.
70745         (readname): If the size overflows, report an error instead of
70746         looping forever.
70748 2003-09-09  Paul Eggert  <eggert@twinsun.com>
70750         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
70751         libc.
70753 2003-09-09  Paul Eggert  <eggert@twinsun.com>
70755         * README: New section: portability guidelines.
70757 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
70759         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
70760         C89 spec.
70762 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
70764         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
70766 2003-09-08  Paul Eggert  <eggert@twinsun.com>
70768         Assume C89 or better; remove K&R cruft.
70769         A few of these changes were first proposed by Derek Robert Price
70770         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
70772         * lib/addext.c: Include <string.h> unconditionally.
70773         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
70774         Don't declare getenv or malloc.
70776         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
70777         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
70778         (NULL): Remove.
70779         (find_stack_direction, alloca): Use prototypes.
70781         * lib/atexit.c (atexit): Define using a prototype.
70783         * lib/basename.c, dirname.c, stripslash.c:
70784         Include <string.h> unconditionally.
70786         * lib/bcopy.c: Include <stddef.h>.
70787         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
70789         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
70791         * lib/error.h (error, error_at_line, error_print_progname)
70792         [! (defined (__STDC__) && __STDC__)]: Remove decls.
70793         * lib/error.c: Include error.h first, to check interface.
70794         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
70795         (VA_START): Remove; all uses changeed to va_start.
70796         (exit, strerror): Remove decls.
70797         (error_print_progname): Prototype uncondionally.
70798         Don't include <errno.h>; no longer needed.
70799         (private_strerror): Remove.
70800         (error_tail): Always define.
70801         (error, error_at_line): Assume C89 or better; always use prototypes.
70802         * lib/fatal.c: Include "fatal.h" first, to test interface.
70803         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
70804         (VA_START): Remove; all uses changed to va_start.
70805         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
70806         this case.
70807         (exit): Remove decl.
70808         (fatal): Prototype unconditionally.  Assume va_start works.
70809         Abort at end, to pacify gcc.
70811         * lib/euidaccess.c (main): Define with a prototype.
70813         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
70815         * lib/exitfail.c: Include <stdlib.h> unconditionally.
70817         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
70818         prototypes.
70819         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
70820         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
70821         (getenv): Remove decl.
70822         (fnmatch): Define using a prototype.
70823         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
70824         (FCT): Define using a prototype.
70826         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
70828         * lib/gethostname.c: Include <stddef.h>.
70829         (gethostname): Define with prototype.  Length is size_t, not int.
70831 2003-09-08  Paul Eggert  <eggert@twinsun.com>
70833         Assume C89 or better; remove K&R cruft.
70834         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
70835         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
70836         string.h, getenv, malloc.
70837         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
70838         headers.
70839         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
70840         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
70841         do not check for strerror.
70842         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
70843         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
70844         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
70845         do not check for doprnt or vprintf.
70846         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
70847         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
70849 2003-09-08  Paul Eggert  <eggert@twinsun.com>
70851         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
70852         getversion.c should have been removed then, but was accidentally
70853         preserved.
70855         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
70856         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
70858 2003-09-08  Karl Berry  <karl@gnu.org>
70860         * config/config.sub, config.guess, srclistvars.sh: update from savannah
70861                 config, forget about prep.
70863         * config/depcomp, missing: update from automake.
70865 2003-09-07  Paul Eggert  <eggert@twinsun.com>
70867         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
70868         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
70870 2003-09-07  Paul Eggert  <eggert@twinsun.com>
70872         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
70873         copy_tm_result.  Bug reported by Simon Josefsson in
70874         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
70876 2003-09-06  Paul Eggert  <eggert@twinsun.com>
70878         * m4/time_r.m4: New file.
70879         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
70880         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
70881         is. Check for timegm declaration.
70882         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
70883         Do not check for gmtime_r.
70884         Replace mktime if __mktime_internal does not exist and if mktime
70885         hasn't been replaced already.
70887 2003-09-06  Paul Eggert  <eggert@twinsun.com>
70889         * lib/time_r.c, lib/time_r.h: New files.
70891         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
70892         __localtime_r.
70893         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
70894         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
70896         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
70897         __gmtime_r.
70898         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
70899         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
70900         Include <time_r.h>.
70902         * lib/timegm.c: Switch to glibc implementation, with the following
70903         changes:
70904         [defined HAVE_CONFIG_H]: Include <config.h>.
70905         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
70906         (__mktime_internal) [!defined _LIBC]: New decl.
70907         (__gmtime_r) [!defined _LIBC]: New macro and function.
70908         (timegm): Use a prototype, since gnulib assumes C89.
70909         Do not bother declaring tmp to be const, as it's not really usefu.
70910         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
70911         (timegm): Declare only if HAVE_DECL_TIMEGM.
70913 2003-09-06  Paul Eggert  <eggert@twinsun.com>
70915         * MODULES.html.sh (func_all_modules): Add time_r.
70916         * modules/time_r: New file.
70917         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
70918         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
70920 2003-09-03  Paul Eggert  <eggert@twinsun.com>
70922         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
70923         Bug reported by Lute Kamstra in
70924         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
70926         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
70927         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
70928         course with correspondingly smaller numbers for tomorrow and
70929         yesterday.  From Tadayoshi Funaba.  Originally installed into
70930         sh-utils on 1999-08-07, but the patch got lost (I guess during the
70931         coreutils merge?).
70933 2003-08-31  Simon Josefsson  <jas@extundo.com>
70935         * modules/timegm: New file.
70936         * MODULES.html.sh (func_all_modules): Add timegm.
70938 2003-08-31  Simon Josefsson  <jas@extundo.com>
70940         * m4/timegm.m4: New file.
70942 2003-08-31  Simon Josefsson  <jas@extundo.com>
70944         * lib/timegm.h: New file.
70945         * lib/timegm.c: New file.  Based on
70946         wget-1.8.2/src/http.c:mktime_from_utc.
70948 2003-08-31  Karl Berry  <karl@gnu.org>
70950         * lib/argp.h: update from libc.
70952 2003-08-28  Bruno Haible  <bruno@clisp.org>
70954         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
70955         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
70956         followed by '#define fnmatch fnmatch_posix' gives an error.
70958 2003-08-28  Bruno Haible  <bruno@clisp.org>
70960         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
70961         warning on QNX, which defines O_BINARY to 000000.
70963 2003-08-27  Jim Meyering  <jim@meyering.net>
70965         * m4/mkstemp.m4: Require that the system mkstemp be able to create
70966         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
70967         would fail after 32.  Reported by Danny Levinson.  Details here:
70968         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
70970 2003-08-24  Bruno Haible  <bruno@clisp.org>
70972         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
70973         MSVC7 <stdio.h> is included later.
70975 2003-08-22  Simon Josefsson  <jas@extundo.com>
70977         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
70979 2003-08-20  Karl Berry  <karl@gnu.org>
70981         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
70983 2003-08-20  Bruno Haible  <bruno@clisp.org>
70985         * modules/progname: New file.
70986         * MODULES.html.sh (func_all_modules): Add progname.
70988 2003-08-20  Bruno Haible  <bruno@clisp.org>
70990         * lib/progname.h: New file, from GNU gettext.
70991         * lib/progname.c: New file, from GNU gettext.
70992         * lib/progreloc.c: New file, from GNU gettext.
70994 2003-08-19  Jim Meyering  <jim@meyering.net>
70996         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
70997         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
70999 2003-08-19  Bruno Haible  <bruno@clisp.org>
71001         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
71002         more.
71004 2003-08-19  Bruno Haible  <bruno@clisp.org>
71006         * lib/xstrdup.c: Assume <string.h> exists.
71008 2003-08-18  Paul Eggert  <eggert@twinsun.com>
71010         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
71011         in makefile rules.
71013 2003-08-18  Jim Meyering  <jim@meyering.net>
71015         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
71016         * m4/lib-ld.m4: Likewise.
71018 2003-08-18  Jim Meyering  <jim@meyering.net>
71020         * lib/setenv.h: Indent nested cpp directive.
71021         * lib/vasnprintf.c: Remove trailing blanks.
71023 2003-08-17  Simon Josefsson  <jas@extundo.com>
71025         * modules/xstrndup: New file.
71026         * MODULES.html.sh (func_all_modules): Add xstrndup.
71028 2003-08-17  Simon Josefsson  <jas@extundo.com>
71030         * modules/argp: Fix autoconf macro name. Add more dependencies.
71032 2003-08-17  Simon Josefsson  <jas@extundo.com>
71034         * m4/xstrndup.m4: New file.
71036 2003-08-17  Simon Josefsson  <jas@extundo.com>
71038         * m4/argp.m4: New file.
71040 2003-08-17  Simon Josefsson  <jas@extundo.com>
71041             Bruno Haible  <bruno@clisp.org>
71043         * lib/xstrndup.h: New file.
71044         * lib/xstrndup.c: New file.
71046 2003-08-17  Bruno Haible  <bruno@clisp.org>
71048         * modules/strndup (Files, Include): Add lib/strndup.h.
71050 2003-08-17  Bruno Haible  <bruno@clisp.org>
71052         * modules/euidaccess (Files): Add lib/euidaccess.h.
71054 2003-08-17  Bruno Haible  <bruno@clisp.org>
71056         * lib/strndup.h: New file.
71058 2003-08-17  Bruno Haible  <bruno@clisp.org>
71060         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
71061         like AC_GNU_SOURCE.
71062         * modules/extensions (configure.ac): Comment out the invocation of
71063         gl_USE_SYSTEM_EXTENSIONS.
71065 2003-08-16  Paul Eggert  <eggert@twinsun.com>
71067         Merges from coreutils, etc.
71068         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
71069         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
71070         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
71071         fixing a typo.
71072         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
71073         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
71075 2003-08-16  Paul Eggert  <eggert@twinsun.com>
71077         Document merge from coreutils.
71078         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
71079         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
71080         * modules/utime: Add m4/utimes-null.m4.
71082 2003-08-16  Paul Eggert  <eggert@twinsun.com>
71084         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
71085         space, undoing this 2003-08-12 change:
71086         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
71088 2003-08-16  Paul Eggert  <eggert@twinsun.com>
71090         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
71091         strtoul.c from libc, undoing this 2003-08-12 change:
71092         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
71094 2003-08-16  Jim Meyering  <jim@meyering.net>
71096         Merges from coreutils.
71097         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
71098         prefix.  Adjust cache variables similarly.  Create 500 rather than
71099         just 300 files, to exercise bug on Darwin6.5, too.
71100         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
71101         $missing_dir.
71102         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
71103         AM_SYS_POSIX_TERMIOS.
71104         Reported by mkc@mathdogs.com.
71105         Also change use of $am_cv_sys_posix_termios
71106         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
71107         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
71108         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
71109         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
71110         in /proc/mounts until it finds one with matching device number.  This
71111         is unnecessary when the FILE argument *is* a mount point.  No stat call
71112         is necessary in that case.  So, disable the statvfs-testing code on
71113         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
71114         as RedHat bug# 84846.
71115         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
71116         to 1MB, so as not to render systems with no stack size limit (e.g.,
71117         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
71118         Include <unistd.h>.  On some systems,
71119         it is required for the definition of _SC_PAGESIZE.
71121 2003-08-16  Jim Meyering  <jim@meyering.net>
71123         Merge from coreutils.
71124         * lib/xstrtoimax.c: #else #if -> #elif.
71125         * lib/xstrtoumax.c: Likewise.
71127 2003-08-16  Jim Meyering  <jim@meyering.net>
71129         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
71130         * m4/utimes.m4: Removed.
71131         * m4/utimes-null.m4: Renamed from utimes.m4.
71133         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
71134         to 1MB, so as not to render systems with no stack size limit (e.g.,
71135         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
71136         Include <unistd.h>.  On some systems,
71137         it is required for the definition of _SC_PAGESIZE.
71139 2003-08-16  Jim Meyering  <jim@meyering.net>
71140         and Paul Eggert  <eggert@cs.ucla.edu>
71142         Merges from coreutils, etc.
71144         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
71145         using the latest version from cvs.  This avoids problems with #line
71146         directives using a vendor (Sun) compiler.
71147         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
71148         Don't set GETGROUPS_LIB here; now it's
71149         done via getgroups.m4's wrapper function.
71150         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
71151         rather than just in sh-util/configure.in, so that the
71152         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
71153         same.
71154         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
71155         AC_FUNC_GETLOADAVG where to find getloadavg.c.
71156         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
71157         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
71158         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
71159         Remove code that is now done by the newly-required macros.
71160         Append $(EXEEXT) to DF_PROG.
71161         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
71162         Do not invoke or require the following here,
71163         since prereq.m4 or some gnulib .m4 now does this for us:
71164         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
71165         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
71166         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
71167         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
71168         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
71169         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
71170         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
71171         AC_FUNC_OBSTACK.
71172         Do not replace the following functions, as this is now the job
71173         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
71174         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
71175         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
71176         atexit getpass, strdup, getpagesize.
71177         Replace 'raise'.
71178         Do not check for the following functions, as this is now the job
71179         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
71180         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
71181         setregid.
71182         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
71183         Check for sys/sysctl.h.
71184         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
71185         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
71186         of checking for ssize_t ourselves.
71188         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
71189         Require every macro that gnulib/modules/* suggests for us.
71190         (jm_PREREQ_ADDEXT): New macro.
71191         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
71192         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
71194         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
71195         (gl_PHYSMEM): Use it.
71196         Also check for `table' function.
71197         Check for new headers and functions.
71198         Add check for sys/sysmp.h.
71199         With suggestions from Kaveh Ghazi.
71200         Ignore headers that are present but cannot be compiled.  This
71201         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
71202         C 5.4.
71204 2003-08-15  Paul Eggert  <eggert@twinsun.com>
71206         Document merge from coreutils.
71207         * modules/userspec: Depend on posixver.
71208         * modules/strftime: Depend on tzset.
71210 2003-08-15  Paul Eggert  <eggert@twinsun.com>
71212         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
71213         rather than tab, after '#' in shell-script copyright notices.
71214         Suggested by Bruno Haible.
71216 2003-08-15  Paul Eggert  <eggert@twinsun.com>
71218         * config/srclist-update: Use three spaces, rather than tab, after '#'
71219         in shell-script copyright notices.  Suggested by Bruno Haible.
71220         Remove unnecessary parenthesization in regular expression.
71222 2003-08-15  Jim Meyering  <jim@meyering.net>
71224         Merge from coreutils.
71225         * lib/xgethostname.c: Include <stdlib.h>.
71226         (xghostname): Don't exit for anything other than memory-related
71227         failure; just return NULL.
71228         * lib/userspec.c: Include "posixver.h".
71229         (parse_user_spec): Accept `.' as a separator only
71230         in pre-POSIX-200112 mode.
71231         * lib/strtoimax.c: Use #elif rather than #else #if.
71232         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
71233         Remove function, now that we can rely on a working tzset function.
71234         [!_LIBC]: Ensure that the required autoconf test has been run.
71235         [!defined _NL_CURRENT && HAVE_STRFTIME]:
71236         Use underlying_strftime for %r.
71237         * lib/sha.c: Merge in some clean-up and optimization changes from
71238         glibc.
71239         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
71240         Ensure that it is a multiple of 64.
71241         Rearrange loop exit tests so as to avoid performing an
71242         additional fread after encountering an error or EOF.
71243         * lib/realloc.c: Update copyright date.
71245 2003-08-15  Jim Meyering  <jim@meyering.net>
71246         and Paul Eggert  <eggert@twinsun.com>
71248         Merge from coreutils.
71249         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
71250         member but strut utmpx does not.  Needed for AIX 4.3.3.
71251         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
71253 2003-08-15  Jim Meyering  <jim@meyering.net>
71254         and Paul Eggert  <eggert@cs.ucla.edu>
71256         Merges from coreutils, etc.
71257         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
71258         Require gl_FUNC_TZSET_CLOBBER.
71259         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
71260         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
71261         members.
71263 2003-08-14  Paul Eggert  <eggert@twinsun.com>
71265         Help the merge from coreutils.
71266         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
71267         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
71268         * m4/tzset.m4: Use it too.
71270 2003-08-14  Paul Eggert  <eggert@twinsun.com>
71272         * modules/tzset: New file.
71274 2003-08-14  Jim Meyering  <jim@meyering.net>
71276         Merges from coreutils.
71277         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
71278         variable names, rather than @FNMATCH_H@.
71279         * modules/alloca: Likewise for $(ALLOCA_H).
71281         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
71282         the three copies of the literal target, `fnmatch.h'.
71283         * modules/alloca (alloca.h): Likewise.
71285 2003-08-14  Jim Meyering  <jim@meyering.net>
71287         Merge from coreutils.
71288         * m4/tzset.m4: New file.
71289         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
71290         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
71291         otherwise, AIX 5.1 systems would end up using the latter.
71292         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
71293         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
71294         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
71295         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
71297 2003-08-14  Jim Meyering  <jim@meyering.net>
71299         Merge from coreutils.
71300         * lib/obstack.h: Whitespace changes.
71301         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
71302         and xcalloc return values.
71303         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
71304         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
71305         hang on OSF/1 5.1 for DIR on both local and remote file systems.
71306         Reported by (and fix confirmed by) Nelson H. F. Beebe.
71307         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
71308         error from mntctl.
71309         Use mntctl's return value to drive the entry-processing loop, since
71310         we can't rely on the value of the vmt_length member in the last
71311         entry.  On some systems doing so could result in exhausting
71312         virtual memory.  Based in part on a patch from Mike Jetzer.
71314 2003-08-14  Jim Meyering  <jim@meyering.net>
71315         and Paul Eggert  <eggert@twinsun.com>
71317         Merges from coreutils, plus other fixes.
71318         * lib/physmem.c: Merge in portability changes from gcc/libiberty
71319         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
71320         for credits and details.  Thanks to Kaveh Ghazi for helping
71321         to keep these files in sync.
71322         (ARRAY_SIZE): Define it.
71323         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
71324         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
71325         (memcasecmp): Don't assume size_t fits in unsigned int.
71326         Remove casts and duplicate code.
71327         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
71328         (memcpy): Remove definition.
71329         Merge in some clean-up and optimization changes from glibc.
71330         [BLOCKSIZE]: Move definition to top of file.
71331         Ensure that it is a multiple of 64.
71332         Rearrange loop exit tests so as to avoid performing an
71333         additional fread after encountering an error or EOF.
71334         * lib/md5.h (md5_uintptr): Define.
71335         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
71336         return to the initial working directory.  Preserve errno
71337         for caller.
71338         * lib/idcache.c: Include "xalloc.h".
71339         (xmalloc, xrealloc): Remove decls.
71340         (getuser): Remove casts no longer required in C89.
71341         * lib/human.c: Include stdio.h, for sprintf.
71342         * lib/group-member.c: Include "xalloc.h".
71343         (xmalloc, xrealloc): Remove decls.
71344         (get_group_info): Remove casts no longer required in C89.
71345         * lib/getusershell.c (readname): Remove casts no longer required in
71346         C89.
71347         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
71348         * lib/getline.c: Whitespace fix, from coreutils.
71350 2003-08-13  Paul Eggert  <eggert@twinsun.com>
71352         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
71353         Check for isascii.
71355         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
71356         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
71357         Undo previous (whitespace-only) change.
71359 2003-08-13  Paul Eggert  <eggert@twinsun.com>
71361         * lib/exclude.c: Include <ctype.h>
71362         (IN_CTYPE_DOMAIN): New macro.
71363         (is_space): New fn.
71364         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
71365         and empty lines.
71367         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
71368         Undo previous (whitespace-only) change.
71370 2003-08-13  Paul Eggert  <eggert@twinsun.com>
71372         * config/srclist-update: Change update back to the old behavior,
71373         leaving whitespace alone.  Use one 'sed' command rather than a
71374         pipeline.
71375         (fixlicense): Now a variable, not a function.
71376         (remove_trailing_blanks): Remove.
71377         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
71378         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
71379         Undo previous (whitespace-only) change.
71381 2003-08-12  Paul Eggert  <eggert@twinsun.com>
71383         Merge from coreutils.
71384         * modules/euidaccess: Add lib_SOURCES, include for new
71385         file euidaccess.h
71387 2003-08-12  Paul Eggert  <eggert@twinsun.com>
71389         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
71390         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
71391         Normalize leading white space and remove trailing white space.
71393         Merge from coreutils
71394         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
71396         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
71397         0.12.1.  These files are now being upgraded automatically by
71398         ../config/srclist-update.
71400 2003-08-12  Paul Eggert  <eggert@twinsun.com>
71402         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
71403         Normalize leading white space and remove trailing white space.
71404         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
71405         notice, as per ../config/srclist-update.
71407         Merge from coreutils.
71408         * lib/euidaccess.h: New file.
71409         * lib/euidaccess.c: Include it.
71410         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
71411         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
71412         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
71414 2003-08-12  Paul Eggert  <eggert@twinsun.com>
71416         * config/srclist-update: Add copyright notice.
71417         (remove_id_lines, remove_trailing_blanks): New constants.
71418         (fixfile): Use them to normalize spacing a bit in copied files.
71419         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
71420         Normalize leading white space and remove trailing white space.
71422         * config/texinfo.tex: Sync with texinfo.
71424         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
71425         strtoul.c from libc, to merge coreutils whitespace changes.
71427         * config/srclist.txt: Get the following m4 files from gettext:
71428         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
71429         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
71430         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
71431         wint_t.m4.
71433 2003-08-12  Karl Berry  <karl@gnu.org>
71435         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
71436         been made.
71438 2003-08-11  Paul Eggert  <eggert@twinsun.com>
71440         * modules/gnu-source, m4/gnu-source.m4:
71441         Remove; we're assuming Autoconf 2.54 or later now.
71442         Suggested by Bruno Haible.
71443         * MODULES.html.sh (func_all_modules): Remove gnu-source.
71445 2003-08-11  Bruno Haible  <bruno@clisp.org>
71447         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
71449 2003-08-11  Bruno Haible  <bruno@clisp.org>
71451         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
71452         (vasnprintf): Use it instead of wcslen.
71454 2003-08-11  Bruno Haible  <bruno@clisp.org>
71456         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
71457         value to ensure that _Bool promotes to int. Use #define for _Bool when
71458         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
71460 2003-08-10  Karl Berry  <karl@gnu.org>
71462         * lib/regex.h: update from libc (whitespace fix).
71464 2003-08-09  Paul Eggert  <eggert@twinsun.com>
71466         Merge some files from coreutils.  These changes were
71467         originally made by Jim Meyering.
71468         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
71469         many older Unixes require this.
71470         * lib/alloca.c (alloca): Remove cast to argument of free;
71471         no longer needed in C89.
71472         * lib/alloca_.h, regex.h: Fix white space to match
71473         what GNU indent does.
71475 2003-08-09  Paul Eggert  <eggert@twinsun.com>
71477         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
71478         apparently Emacs's Unicode mode got confused before my 2003-08-05
71479         checkin.
71481 2003-08-08  Paul Eggert  <eggert@twinsun.com>
71483         * m4/extensions.m4: New file.
71484         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
71485         Require gl_USE_SYSTEM_EXTENSIONS.
71486         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
71487         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
71489 2003-08-08  Paul Eggert  <eggert@twinsun.com>
71491         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
71492         * modules/extensions, modules/gnu-source: New files.
71493         * modules/timespec, modules/unlocked-io: Depend on extensions.
71495 2003-08-07  Paul Eggert  <eggert@twinsun.com>
71497         * modules/restrict: New file.
71498         * MODULES.html.sh (func_all_modules): Add restrict.
71499         * modules/regex: Depend on restrict.
71501 2003-08-07  Paul Eggert  <eggert@twinsun.com>
71503         * m4/restrict.m4: New file.
71504         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
71506 2003-08-07  Bruno Haible  <bruno@clisp.org>
71508         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
71509         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
71511 2003-08-07  Bruno Haible  <bruno@clisp.org>
71513         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
71514         makes the module 'getndelim2' compatible with the module 'getline'.
71516 2003-08-05  Paul Eggert  <eggert@twinsun.com>
71518         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
71519         byte with "\201" to avoid glitches when editing that source file
71520         with multi-gnome-terminal.
71522 2003-08-05  Paul Eggert  <eggert@twinsun.com>
71524         * lib/bumpalloc.h: Remove.
71526 2003-08-05  Paul Eggert  <eggert@twinsun.com>
71528         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
71529         * modules/bumpalloc: Remove.
71531 2003-08-04  Paul Eggert  <eggert@twinsun.com>
71533         * lib/getloadavg.c: Change copyright notice and spacing to conform to
71534         GNU coding style.
71536         Merge from coreutils.
71537         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
71538         1. From glibc.
71539         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
71540         from Karl Berry, implemented by Jim Meyering.
71541         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
71542         from Dmitry V. Levin.
71543         Remove anachronistic cast of xrealloc.
71544         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
71545         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
71546         type. Otherwise, it wouldn't compile with at least /bin/cc on
71547         ymp-cray-unicos9.0.2.X.
71548         Combine two mostly-identical uses of alloca into one.
71549         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
71551 2003-08-04  Dave Love  <d.love@dl.ac.uk>
71553         [From Emacs.]
71555         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
71556         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
71557         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
71558         obsolete NLIST_NAME_UNION.
71559         [__GNU__]: Undef BSD and FSCALE.
71560         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
71562 2003-08-03  Paul Eggert  <eggert@twinsun.com>
71564         * lib/stdbool_.h (_Bool): Make it signed char, instead of
71565         an enum type, so that it's guaranteed to promote to int.  See:
71566         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
71568 2003-08-03  Karl Berry  <karl@gnu.org>
71570         * config/depcomp: update from automake.
71572 2003-07-31  Paul Eggert  <eggert@twinsun.com>
71574         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
71575         (strerror): Don't assume that a printable int fits in 14 bytes.
71577 2003-07-31  Bruno Haible  <bruno@clisp.org>
71579         * modules/getpass-gnu: New file.
71580         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
71582 2003-07-31  Bruno Haible  <bruno@clisp.org>
71584         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
71586 2003-07-24  Karl Berry  <karl@gnu.org>
71588         * config/missing: update from automake.
71590 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
71591             Bruno Haible  <bruno@clisp.org>
71593         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
71594         * lib/getline.c (getline, getdelim): Likewise.
71595         Remove _GNU_SOURCE define; now it's defined in config.h through
71596         m4/getline.m4.
71598 2003-07-23  Karl Berry  <karl@gnu.org>
71600         * config/config.sub: update from prep.
71602 2003-07-22  Paul Eggert  <eggert@twinsun.com>
71604         * modules/xalloc (Depends-on): Add exitfail.
71605         * modules/xmemcoll: Likewise.
71607 2003-07-22  Paul Eggert  <eggert@twinsun.com>
71609         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
71610         over-parenthesization in macros.
71612         Sync with coreutils.
71614         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
71615         required by C99.
71617         Use `exit_failure' for xalloc and xmemcoll instead of their own
71618         private exit-failure variables.
71619         * lib/xalloc.h (xalloc_exit_failure): Remove.
71620         * lib/xmalloc.c: Likewise.  Include exitfail.h.
71621         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
71622         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
71623         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
71624         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
71626 2003-07-20  Jim Meyering  <jim@meyering.net>
71628         * modules/closeout (Depends-on): Add exitfail.
71629         Suggestion from Bruno Haible.
71631 2003-07-19  Karl Berry  <karl@gnu.org>
71633         * config/config.sub: update from prep.
71635 2003-07-18  Paul Eggert  <eggert@twinsun.com>
71637         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
71638         Remove.
71639         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
71640         to test that it can stand by itself.  Include "exitfail.h".
71641         Clients should set exit_failure instead.
71642         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
71644 2003-07-18  Bruno Haible  <bruno@clisp.org>
71646         * modules/getndelim2: New file.
71647         * modules/getline: Share files with module getndelim2.
71648         * modules/getnline: Depend on getndelim2 instead of sharing files with
71649         it. Add getnline.c to lib_SOURCES.
71650         * MODULES.html.sh (func_all_modules): Add getndelim2.
71652 2003-07-18  Bruno Haible  <bruno@clisp.org>
71654         * m4/getndelim2.m4: New file.
71655         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
71656         invoke gl_PREREQ_GETNDELIM2.
71657         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
71658         gl_PREREQ_GETNDELIM2.
71659         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
71660         gl_GETNDELIM2.
71662 2003-07-18  Bruno Haible  <bruno@clisp.org>
71664         * lib/getndelim2.h: New file.
71665         * lib/getndelim2.c: Make into a module of its own. Include config.h,
71666         getndelim2.h.
71667         (getndelim2): Make non-static. Change return type to ssize_t.
71668         * lib/getline.h: Change argument names.
71669         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
71670         * lib/getnline.c: Include getndelim2.h.
71672 2003-07-18  Andreas Schwab  <schwab@suse.de>
71674         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
71676 2003-07-17  Karl Berry  <karl@gnu.org>
71678         * config/config.sub: update from prep.
71680 2003-07-17  Bruno Haible  <bruno@clisp.org>
71682         * modules/getnline: New file.
71683         * modules/getline: Add lib/getndelim2.c to source file list.
71684         * MODULES.html.sh (func_all_modules): Add getnline.
71686 2003-07-17  Bruno Haible  <bruno@clisp.org>
71688         * m4/getnline.m4: New file.
71690 2003-07-17  Bruno Haible  <bruno@clisp.org>
71692         * m4/Makefile.am.in: Remove file.
71693         * m4/Makefile.am: Remove file.
71694         * m4/Makefile.in: Remove file.
71696 2003-07-17  Bruno Haible  <bruno@clisp.org>
71698         * lib/getnline.h: New file.
71699         * lib/getnline.c: New file.
71700         * lib/getndelim2.c: New file, extracted from getline.c.
71701         (getndelim2): Renamed from getdelim2, with added nmax argument.
71702         * lib/getline.c: Include getndelim2.c.
71703         (getdelim2): Moved out to getndelim2.c.
71704         (getline, getdelim): Update.
71706 2003-07-17  Bruno Haible  <bruno@clisp.org>
71708         * lib/Makefile.am: Remove file.
71709         * lib/Makefile.in: Remove file.
71711 2003-07-17  Bruno Haible  <bruno@clisp.org>
71713         * configure.in: Remove file.
71714         * Makefile.in: Remove file.
71716 2003-07-17  Bruno Haible  <bruno@clisp.org>
71718         * MODULES.html.sh: Put the </BODY> right before </HTML>.
71720 2003-07-16  Karl Berry  <karl@gnu.org>
71722         * config/srclist-update: was running fixlicense twice, which caused
71723                 texinfo.tex to be nullified for some reason.  Simplify,
71724                 $gplsrc is no longer needed as far as I can see?
71726 2003-07-16  Jim Meyering  <jim@meyering.net>
71728         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
71730 2003-07-15  Paul Eggert  <eggert@twinsun.com>
71732         * config/srclist.txt: Get the following files from gettext-runtime/intl
71733         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
71734         ref-del.sin.  From Bruno Haible.
71735         * config/srclist-update (fixfile): Change grep pattern again, since the
71736         previous fix didn't work (there was another trailing $).  Use
71737         '[$]' to escape the $s.
71739 2003-07-15  Karl Berry  <karl@gnu.org>
71741         * lib/vasnprintf.c: update from gettext.
71743 2003-07-15  Karl Berry  <karl@gnu.org>
71745         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
71746         gets expanded when surrounded by '$'.
71748 2003-07-15  Jim Meyering  <jim@meyering.net>
71750         * modules/save-cwd: Don't depend on error.  From Derek Price.
71752 2003-07-15  Jim Meyering  <jim@meyering.net>
71754         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
71756 2003-07-14  Simon Josefsson  <jas@extundo.com>
71758         * modules/mempcpy: New file.
71759         * MODULES.html.sh (func_all_modules): Add mempcpy.
71761 2003-07-14  Simon Josefsson  <jas@extundo.com>
71763         * m4/mempcpy.m4: New file.
71765 2003-07-14  Simon Josefsson  <jas@extundo.com>
71767         * lib/mempcpy.h: New file.
71768         * lib/mempcpy.c: New file.
71770 2003-07-14  Paul Eggert  <eggert@twinsun.com>
71772         * modules/getdate, modules/posixtm: Depend on mktime.
71774 2003-07-14  Paul Eggert  <eggert@twinsun.com>
71776         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
71777         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
71778         unicodeio.c, unicodeio.h, unlocked-io.h:
71779         Switch from LGPL to GPL.
71781 2003-07-14  Paul Eggert  <eggert@twinsun.com>
71783         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
71784         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
71785         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
71786         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
71787         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
71788         updated automatically by ../config/srclist-update.  This changes
71789         their license from LPGL to GPL.
71791 2003-07-14  Paul Eggert  <eggert@twinsun.com>
71793         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
71794         assumed to refer to the root of the most recent stable gettext version.
71795         * config/srclistvars.sh: Add defaults for eggert.
71796         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
71797         Match "This program" as well as "The program".  This is needed
71798         for gettext.
71800 2003-07-14  Jim Meyering  <jim@meyering.net>
71802         Don't emit diagnostics.  Let callers do that.
71803         * lib/save-cwd.c: Don't include "error.h".
71804         (save_cwd): Don't call error.  Ensure that errno is valid
71805         when returning nonzero.
71807         * lib/save-cwd.h (restore_cwd): Update prototype.
71808         * lib/save-cwd.c (restore_cwd): Remove two parameters.
71809         Simplify.  Don't call error upon failure.  Let callers do that.
71810         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
71811         when auditing is enabled.  But don't bother updating the #if.
71813 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
71815         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
71816         it breaks C++ compilation.
71817         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
71819 2003-07-10  Simon Josefsson  <jas@extundo.com>
71821         * modules/strchrnul (Makefile.am): Add strchrnul.h.
71823 2003-07-10  Jim Meyering  <jim@meyering.net>
71825         * m4/clock_time.m4: Remove trailing blank.
71826         * m4/intmax_t.m4: Likewise.
71828 2003-07-10  Jim Meyering  <jim@meyering.net>
71830         * lib/vasnprintf.c: Remove trailing blanks.
71831         Make cpp indentation consistent.
71833 2003-07-09  Paul Eggert  <eggert@twinsun.com>
71835         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
71836         posixver.c, strftime.c, strnlen.c, strverscmp.c:
71837         Switch from LGPL to GPL.
71839 2003-07-09  Paul Eggert  <eggert@twinsun.com>
71841         * config/srclist.txt: Sort sublists.  Add
71842         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
71843         that differ from gnulib for one reason or another; we'd like this list
71844         to be smaller but for now let's document what we have.
71846 2003-07-08  Paul Eggert  <eggert@twinsun.com>
71848         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
71849         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
71850         and sweeter "eval x=$x".
71851         * config/srclist.txt: Get lib/argp* from glibc.
71853 2003-07-07  Paul Eggert  <eggert@twinsun.com>
71855         * lib/mktime.c: Fix some boundary cases and remove need for floating
71856         point.
71858         Issue a compile-time diagnostic if time_t is floating point, or if
71859         two's complement arithmetic is not in effect, or if arithmetic
71860         right shift does not propagate the sign.  These assumptions were
71861         all in the original code but they weren't checked.
71863         (TIME_T_MIDPOINT, verify): New macros.
71864         (__isleap): Remove; it has integer overflow problems.
71865         (leapyear): New function, without those problems.
71866         (ydhms_tm_diff): Remove; splitting into two parts.
71867         (ydhms_diff): New function, containing the arithmetic part of
71868         the old ydhms_tm_diff function.  Issue a compile-time
71869         diagnostic if we are not using C99 integer division.
71870         Avoid casts when possible.
71871         (guess_time_tm): New function, containing the checking part of
71872         the old ydhms_tm_diff function.  Return the new value, rather than
71873         the difference between it and the old.  Accept a new argument T
71874         so that *T specifies the old value.  Check for overflow in the result.
71876         (__mktime_internal): Use a time_t offset, not a long int offset.
71877         This undoes the 2003-06-04 change, which is no longer needed now
71878         that we have better overflow checking.
71879         (localtime_offset): Likewise.
71881         (__mktime_internal): Avoid harmful overflow on hosts where time_t
71882         and long are 64-bit but int is only 32-bit.
71883         (ydhms_diff): Use long int to store year1 and yday1.
71884         Issue a compile-time diagnostic if long int is not wide enough.
71886         (__mktime_internal): Use long int to store adjusted year and yday.
71887         Use plain C rather than preprocessor commands, if that doesn't
71888         affect efficiency.
71889         Check for overflow (and try to repair) after each probe
71890         rather than checking only at the very end.  This avoids some bugs
71891         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
71892         does not equal GMT offset at maximum time).
71893         Use integer to check for overflow rather than floating point; this
71894         is more portable to non-IEEE hosts, and is a tad faster.
71895         When we detect that we are oscillating between two values,
71896         don't check whether tm_isdst has the requested value, since
71897         we already know the answer.  When tm_isdst has the wrong value,
71898         use a different heuristic to find the right one, based on the
71899         extreme values actually observed in practice in tz2003a,
71900         rather than the (overly optimistic) "previous 3 calendar quarters".
71902         (not_equal_tm, print_tm, check_result): Use "const T" rather than
71903         "T const" to accommodate glibc style.
71904         (check_result): Use less-confusing report format.  "long" -> "long int.
71905         (main): Likewise.
71906         Don't loop if the iteration overflows time_t.
71907         Allow a negative step in the iteration.
71909 2003-07-06  Karl Berry  <karl@gnu.org>
71911         * config/depcomp: update from automake.
71912         * config/config.sub: update from prep.
71914 2003-07-03  Karl Berry  <karl@gnu.org>
71916         * config/config.guess: update from prep.
71918 2003-07-01  Paul Eggert  <eggert@twinsun.com>
71920         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
71921         xreadlink.c now includes it unconditionally.
71923 2003-07-01  Paul Eggert  <eggert@twinsun.com>
71925         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
71926         having it depend on HAVE_SYS_TYPES_H.
71928 2003-07-01  Bruno Haible  <bruno@clisp.org>
71930         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
71931         <sys/types.h> should be sufficient.
71932         Reported by Paul Eggert.
71934 2003-06-26  Karl Berry  <karl@gnu.org>
71936         * config/depcomp: update from automake.
71938 2003-06-26  Bruno Haible  <bruno@clisp.org>
71940         * modules/human: Depend on module stdbool.
71942 2003-06-25  Bruno Haible  <bruno@clisp.org>
71944         * modules/readlink: New file.
71945         * modules/xreadlink: Depend on it.
71946         * MODULES.html.sh (func_all_modules): Add readlink.
71948 2003-06-25  Bruno Haible  <bruno@clisp.org>
71950         * m4/readlink.m4: New file.
71952 2003-06-25  Bruno Haible  <bruno@clisp.org>
71954         * lib/readlink.c: New file.
71956 2003-06-22  Karl Berry  <karl@gnu.org>
71958         * config/srclist.txt: update mkinstalldirs from automake.
71959         * config/mkinstalldirs: update.
71961 2003-06-22  Bruno Haible  <bruno@clisp.org>
71963         Portability to mingw32.
71964         * m4/ssize_t.m4: New file, from GNU gettext.
71965         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
71966         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
71968 2003-06-22  Bruno Haible  <bruno@clisp.org>
71970         * modules/safe-read: Add m4/ssize_t.m4.
71971         * modules/xreadlink: Add m4/ssize_t.m4.
71973 2003-06-20  Bruno Haible  <bruno@clisp.org>
71975         Assume C89, so PARAMS isn't needed.
71976         * lib/unicodeio.h (PARAMS): Remove.
71977         * lib/unicodeio.c: Don't use PARAMS.
71979 2003-06-18  Karl Berry  <karl@gnu.org>
71981         * config/config.{guess,sub}: update from prep.
71983 2003-06-18  Jim Meyering  <jim@meyering.net>
71985         Merge changes from coreutils.
71986         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
71987         Remove explicit declarations of xmalloc and realloc.
71988         Include xalloc.h.
71989         (read_utmp): Remove anachronistic cast of xmalloc.
71991 2003-06-17  Paul Eggert  <eggert@twinsun.com>
71993         Assume C89, so PARAMS isn't needed.
71994         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
71995         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
71996         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
71997         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
71998         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
71999         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
72000         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
72001         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
72002         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
72003         lib/xstrtod.h, lib/xstrtol.h: Likewise.
72004         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
72005         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
72006         no longer needed. Anyway, config.h should always be included before any
72007         other file.
72009 2003-06-11  Simon Josefsson  <jas@extundo.com>
72011         * modules/sysexits: New file.
72012         * MODULES.html.sh (func_all_modules): Add sysexits.
72014 2003-06-11  Simon Josefsson  <jas@extundo.com>
72016         * lib/sysexit_.h: New file.
72018 2003-06-11  Derek Price  <derek@ximbiot.com>
72020         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
72021         necessary.
72023 2003-06-11  Bruno Haible  <bruno@clisp.org>
72025         * m4/sysexits.m4: New file.
72027 2003-06-10  Simon Josefsson  <jas@extundo.com>
72029         * lib/argp.h: New file, from glibc.
72030         * lib/argp-ba.c: New file, from glibc.
72031         * lib/argp-eexst.c: New file, from glibc.
72032         * lib/argp-fmtstream.c: New file, from glibc.
72033         * lib/argp-fmtstream.h: New file, from glibc.
72034         * lib/argp-fs-xinl.c: New file, from glibc.
72035         * lib/argp-help.c: New file, from glibc.
72036         * lib/argp-namefrob.h: New file, from glibc.
72037         * lib/argp-parse.c: New file, from glibc.
72038         * lib/argp-pv.c: New file, from glibc.
72039         * lib/argp-pvh.c: New file, from glibc.
72040         * lib/argp-xinl.c: New file, from glibc.
72042 2003-06-10  Simon Josefsson  <jas@extundo.com>
72044         * modules/strchrnul: New file.
72046 2003-06-10  Simon Josefsson  <jas@extundo.com>
72048         * modules/argp: New file.
72050 2003-06-10  Simon Josefsson  <jas@extundo.com>
72052         * m4/strchrnul.m4: New file.
72054 2003-06-10  Simon Josefsson  <jas@extundo.com>
72056         * lib/strchrnul.h: New file.
72057         * lib/strchrnul.c: New file.
72059 2003-06-10  Bruno Haible  <bruno@clisp.org>
72061         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
72063 2003-06-07  Karl Berry  <karl@gnu.org>
72065         * config/config.{guess,sub}: update from prep.
72067 2003-06-07  Jim Meyering  <jim@meyering.net>
72069         * modules/strtod: Use $(...) notation, not @...@ for
72070         AC_REPLACE'd variables.
72071         * modules/localcharset: Likewise.
72073 2003-06-07  Jim Meyering  <jim@meyering.net>
72075         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
72076         in place of my name in the copyright comment.
72077         Remove definition and uses of __P.
72079         From coreutils.
72080         * lib/stat.c: Don't declare xmalloc explicitly.
72081         Instead, include "xalloc.h".
72082         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
72083         xrealloc, and xcalloc return values.
72084         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
72085         Improve comment.
72086         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
72088 2003-06-07  Bruno Haible  <bruno@clisp.org>
72090         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
72091         avoid AC_CONFIG_LINKS.
72092         * modules/fnmatch (Makefile.am): Use explicit creation rule for
72093         fnmatch.h, to avoid AC_CONFIG_LINKS.
72094         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
72096 2003-06-07  Bruno Haible  <bruno@clisp.org>
72098         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
72099         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
72100         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
72101         directory.
72102         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
72103         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
72104         directory.
72106 2003-06-06  Jim Meyering  <jim@meyering.net>
72108         Merge from coreutils.
72109         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
72110         Consolidate declarations and initializations of *_base* locals.
72112         Merge from coreutils.
72113         This avoids a core dump on systems without GNU putenv,
72114         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
72115         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
72116         (unsetenv): New static function, from GNU libc.
72117         (rpl_putenv): Use it.
72119         * lib/modechange.c: Remove trailing blanks.
72121         Merge from coreutils.
72122         * lib/fsusage.c: Remove declaration of statfs.
72123         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
72125         * lib/posixtm.c: Include <stdbool.h> unconditionally.
72127 2003-06-06  Jim Meyering  <jim@meyering.net>
72129         * lib/stdbool_.h: Renamed from stdbool.h.in.
72131 2003-06-06  Jim Meyering  <jim@meyering.net>
72132             Bruno Haible  <bruno@clisp.org>
72134         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
72135         Adjust Makefile.am snippet not to redirect directly to target.
72136         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
72138 2003-06-05  Paul Eggert  <eggert@twinsun.com>
72140         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
72141         mismatch, look in future quarters as well as past.  This fixes a
72142         bug when processing fall-backwards gaps immediately after a long
72143         period of daylight-saving time.
72145         * lib/mktime.c: Assume freestanding C89 or better.
72146         (HAVE_LIMITS_H): Remove.  Assume it's 1.
72147         (__P): Remove; not used.
72148         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
72149         (mktime, not_equal_tm, print_tm, check_result,
72150         main): Use prototypes.  Use const * where appropriate.
72151         (main): Fix typo in testing code that uncovered by above changes.
72152         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
72154 2003-06-04  Paul Eggert  <eggert@twinsun.com>
72156         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
72157         locale.h, localeconv.  This merges changes from coreutils.
72159         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
72160         It can be removed after the next Autoconf is released.
72161         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
72162         needed.
72164 2003-06-04  Paul Eggert  <eggert@twinsun.com>
72166         * lib/mktime.c: Fix Debian bug 177940
72167         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
72168         (localtime_offset): Now long int, not time_t, because we want it
72169         to be guaranteed to be signed.  All uses changed.
72170         (__mktime_internal): If overflow would occur when adding offset,
72171         don't add it.
72173         Merge 'human' changes from coreutils.  Rewrite to support
72174         locale-specific notations like thousands separators.
72175         * lib/human.c: Simplify authorship notice.
72176         Include human.h immediately after config.h.
72177         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
72178         <limits.h>: Do not include, since human.h does.
72179         (SIZE_MAX, UINTMAX_MAX): New macros.
72180         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
72181         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
72182         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
72183         (power_letter): Renamed from suffixes.
72184         (generate_suffix_backwards): Remove.
72185         (adjust_value): Now takes int style (because of human.h changes)
72186         and long double value (for greater precision on some platforms).
72187         (group_number): New function.
72188         (human_readable): Use it.  Use integer options, not enum.
72189         Put the options before the sizes in the arg list.
72190         Support all the new options.
72191         The old human_readable function has been removed;
72192         use inttostr.h instead.
72193         (human_readable, default_block_size, humblock):
72194         Use uintmax_t, not int, for block sizes.
72195         (human_readable_inexact, block_size_types): Remove.
72196         (block_size_opts): New constant.
72197         (human_options): Renamed from human_block_size, with new signature
72198         that allows block sizes up to UINTMAX_MAX.  All callers changed.
72199         * lib/human.h: Add copyright and authorship notice.
72200         Include <limits.h> and <stdbool.h> unconditionally.
72201         (PARAMS): Remove.  All uses removed.
72202         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
72203         (enum human_inexact_style): Remove tag; now a nameless enum.
72204         (human_floor, human_ceiling, human_round_to_even): Now have
72205         values 2, 0, 1 rather than -1, 1, 0.
72206         (human_group_digits, human_suppress_point_zero, human_autoscale,
72207         human_base_1024, human_SI, human_B): New constants.
72208         (human_readable_inexact, human_block_size): Remove.
72209         (human_readable): Size args are now uintmax_t, not int.
72210         (human_options): New decl.
72212         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
72213         unnecessary now that we assume C89 or better.  This change
72214         imported from coreutils.
72216         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
72217         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
72218         in the 2003-05-30 sync from glibc.
72220         .h files should stand alone, but we shouldn't include <sys/types.h>
72221         if we can get away with just <stddef.h>.
72223         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
72224         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
72225         rather than <sys/types.h>, as we merely need size_t.
72226         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
72227         to get size_t.
72228         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
72229         Include <stdio.h>, to get FILE.
72230         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
72231         memcasecmp.h has included <stddef.h> and all we need is size_t.
72232         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
72233         our interface, instead of including <sys/types.h>
72235 2003-06-04  Paul Eggert  <eggert@twinsun.com>
72237         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
72238         now, as glibc mktime is buggy on non-glibc systems.
72240 2003-06-03  Karl Berry  <karl@gnu.org>
72242         * config/config.sub: update from prep.
72244 2003-06-02  Paul Eggert  <eggert@twinsun.com>
72246         [from coreutils]
72247         Fix some minor time-related bugs with POSIX time arguments.
72248         Some valid time stamps were being rejected (notably -1, and
72249         time stamps before 1900 on 64-bit hosts).  And some invalid
72250         time stamps were being accepted, e.g. September 31.
72252         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
72253         that we can return (time_t) -1 successfully.
72254         * lib/posixtm.c: Likewise.
72255         [HAVE_STDBOOL_H]: Include <stdbool.h>.
72256         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
72257         (t): Remove static var.
72258         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
72259         of static var.  All uses changed.
72260         (year): Do not reject years before 1900; they can occur with
72261         64-bit time_t.
72262         (posix_time_parse): Do not check for out-of-range components;
72263         that is now the caller's responsibility, since our checks were
72264         only approximations.
72265         (posixtime): Use mktime to check for out-of-range components,
72266         since it knows them exactly.
72267         If mktime returns (time_t) -1, check whether an error actually occurred
72268         by invoking localtime on -1.
72269         (main) [TEST_POSIXTIME]: Check for input data errors, and report
72270         posixtime failures better.
72271         Improve the test data (in comments only).
72273 2003-06-02  Karl Berry  <karl@gnu.org>
72275         * config/mkinstalldirs (version): new variable.
72276         (--version): new option.
72277         (usage): improve message.
72279 2003-05-30  Karl Berry  <karl@gnu.org>
72281         * lib/mktime.c: update from libc.
72283 2003-05-30  Bruno Haible  <bruno@clisp.org>
72285         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
72286         * config/config.rpath: Upgrade to gettext-0.12.1.
72288 2003-05-30  Bruno Haible  <bruno@clisp.org>
72290         * m4/gettext.m4: Upgrade to gettext-0.12.1.
72291         * m4/nls.m4: New file, from gettext-0.12.1.
72292         * m4/po.m4: New file, from gettext-0.12.1.
72293         * m4/progtest.m4: Upgrade to gettext-0.12.1.
72295 2003-05-30  Bruno Haible  <bruno@clisp.org>
72297         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
72298         * lib/localcharset.h: Likewise.
72299         * lib/localcharset.c: Likewise.
72301 2003-05-29  Karl Berry  <karl@gnu.org>
72303         * config/config.rpath: update from gettext.
72305 2003-05-28  Paul Eggert  <eggert@twinsun.com>
72307         Assume the headers required for C89 freestanding compilers.
72308         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
72309         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
72310         * m4/human.m4 (gl_HUMAN): Likewise.
72311         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
72312         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
72313         * m4/userspec.m4 (gl_USERSPEC): Likewise.
72314         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
72315         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
72316         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
72318 2003-05-28  Paul Eggert  <eggert@twinsun.com>
72320         Assume the headers required for C89 freestanding compilers.
72321         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
72322         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
72323         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
72324         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
72325         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
72326         define, since <limits.h> is guaranteed to do that.
72327         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
72328         * lib/exclude.c: Include <stdbool.h> unconditionally.
72329         * lib/tempname.c: Include <stddef.h> unconditionally.
72330         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
72331         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
72332         <stddef.h> does that.
72333         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
72334         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
72335         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
72336         needed.
72337         * lib/xstrtol.c: Likewise.
72338         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
72339         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
72341         * lib/addext.c (addext): Use assignment rather than cast, to avoid
72342         warnings on some platforms.
72344         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
72345         arbitrarily.
72347 2003-05-26  Jim Meyering  <jim@meyering.net>
72349         Merge in a change from coreutils:
72350         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
72351         that is guaranteed to be `no'.  Use `no_such_member' to indicate
72352         that condition, rather than `-1' which is slightly misleading.
72353         Change the name of the cache variable to have the gl_ prefix.
72354         Prompted by a patch from Richard Dawe for DJGPP.
72356 2003-05-24  Karl Berry  <karl@gnu.org>
72358         * config/config.guess: update from prep.
72360 2003-05-22  Karl Berry  <karl@gnu.org>
72362         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
72364 2003-05-20  Karl Berry  <karl@gnu.org>
72366         * config/config.guess: update from prep.
72368 2003-05-18  Karl Berry  <karl@gnu.org>
72370         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
72371         might actually be set by the user.
72373         * config/depcomp, install-sh, mdate-sh: update from automake.
72375 2003-05-17  Bruno Haible  <bruno@clisp.org>
72377         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
72378         invalid expansion for AC_EGREP_CPP.
72379         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
72380         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
72381         Suggested by Akim Demaille <akim@epita.fr> in
72382         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
72384 2003-05-12  Jim Meyering  <jim@meyering.net>
72386         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
72387         the space-padded-by-default conversion specifiers, %e, %k, %l.
72389 2003-05-12  Bruno Haible  <bruno@clisp.org>
72391         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
72392         the string is longer than 4 KB.
72394 2003-05-11  Karl Berry  <karl@gnu.org>
72396         * config/config.{guess,sub}: update from prep.
72398 2003-05-09  Bruno Haible  <bruno@clisp.org>
72400         * modules/error: Add m4/strerror_r.m4 to file list.
72402 2003-05-03  Bruno Haible  <bruno@clisp.org>
72404         Upgrade to Unicode-4.0.
72405         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
72406         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
72407         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
72408         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
72409         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
72410         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
72411         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
72412         Change width of U+E0100..U+E01EF from 1 to 0.
72414 2003-04-25  Jim Meyering  <jim@meyering.net>
72416         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
72417         of type size_t, not int.
72419 2003-04-25  Bruno Haible  <bruno@clisp.org>
72421         * lib/copy-file.c: Include <stddef.h>, for size_t.
72423 2003-04-21  Paul Eggert  <eggert@twinsun.com>
72425         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
72426         code which expansion is under static control.  Patch imported from
72427         Akim Demaille's patch to Bison; see
72428         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
72430 2003-04-14  Bruno Haible  <bruno@clisp.org>
72432         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
72434 2003-04-11  Jim Meyering  <jim@meyering.net>
72436         Merge changes from Coreutils.
72438         2003-03-22  Jim Meyering  <jim@meyering.net>
72440         * lib/strftime.c (widen): Cast alloca return value to proper type.
72442         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
72444         From GNU libc.
72445         * lib/strftime.c (my_strftime): Handle very large width
72446         specifications for numeric values correctly.  Improve checks for
72447         overflow.
72449         2003-01-19  Jim Meyering  <jim@meyering.net>
72451         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
72452         definitions.
72453         (nl_get_alt_digit) [! defined my_strftime]: Define.
72454         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
72455         _nl_get_alt_digit and _nl_get_walt_digit.
72457         * lib/strftime.c (my_strftime): Merge in locale-related changes from
72458         libc. These changes have no effect outside of _LIBC.
72460 2003-04-10  Bruno Haible  <bruno@clisp.org>
72462         * modules/findprog: New file.
72463         * MODULES.html.sh (func_all_modules): Add it.
72465 2003-04-10  Bruno Haible  <bruno@clisp.org>
72467         * m4/findprog.m4: New file.
72468         * m4/eaccess.m4: New file.
72470 2003-04-10  Bruno Haible  <bruno@clisp.org>
72472         * lib/findprog.h: New file, from GNU gettext.
72473         * lib/findprog.c: New file, from GNU gettext.
72475 2003-04-05  Jim Meyering  <jim@meyering.net>
72477         Merge changes from Coreutils.
72479         * lib/exclude.h (PARAMS): Remove definition and uses.
72480         * lib/exclude.c: Remove uses of `PARAMS'.
72482         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
72483         Add test-cases for DOS filenames. Declare program_name.
72484         (main): Set up program_name.  Patch by Rich Dawe.
72486         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
72487         error from mntctl.
72488         Use mntctl's return value to drive the entry-processing loop, since
72489         we can't rely on the value of the vmt_length member in the last
72490         entry.  On some systems doing so could result in exhausting
72491         virtual memory.  Based in part on a patch from Mike Jetzer.
72493 2003-04-04  Bruno Haible  <bruno@clisp.org>
72495         * modules/linebreak: New file.
72496         * MODULES.html.sh (func_all_modules): Add it.
72498 2003-04-04  Bruno Haible  <bruno@clisp.org>
72500         * m4/linebreak.m4: New file.
72502 2003-04-04  Bruno Haible  <bruno@clisp.org>
72504         * lib/linebreak.h: New file, from GNU gettext.
72505         * lib/linebreak.c: New file, from GNU gettext with slight
72506         modifications.
72507         * lib/lbrkprop.h: New file, from GNU gettext.
72509 2003-04-03  Bruno Haible  <bruno@clisp.org>
72511         * modules/utf8-ucs4: New file.
72512         * modules/utf16-ucs4: New file.
72513         * modules/ucs4-utf8: New file.
72514         * modules/ucs4-utf16: New file.
72515         * MODULES.html.sh (func_all_modules): Add them.
72517 2003-04-03  Bruno Haible  <bruno@clisp.org>
72519         * m4/utf-ucs4.m4: New file.
72520         * m4/ucs4-utf.m4: New file.
72522 2003-04-03  Bruno Haible  <bruno@clisp.org>
72524         * lib/utf8-ucs4.h: New file, from GNU gettext.
72525         * lib/utf16-ucs4.h: New file, from GNU gettext.
72526         * lib/ucs4-utf8.h: New file, from GNU gettext.
72527         * lib/ucs4-utf16.h: New file, from GNU gettext.
72529 2003-04-02  Bruno Haible  <bruno@clisp.org>
72531         * modules/binary-io: New file.
72532         * MODULES.html.sh (func_all_modules): Add it.
72534 2003-04-02  Bruno Haible  <bruno@clisp.org>
72536         * lib/binary-io.h: New file, from GNU gettext.
72538 2003-04-01  Bruno Haible  <bruno@clisp.org>
72540         * modules/pathname: New file.
72541         * MODULES.html.sh (func_all_modules): Add it.
72543 2003-04-01  Bruno Haible  <bruno@clisp.org>
72545         * lib/pathname.h: New file, from GNU gettext.
72546         * lib/concatpath.c: New file, from GNU gettext.
72548 2003-03-30  Bruno Haible  <bruno@clisp.org>
72550         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
72552 2003-03-30  Bruno Haible  <bruno@clisp.org>
72554         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
72555         function chown() doesn't exist.
72557 2003-03-28  Bruno Haible  <bruno@clisp.org>
72559         * modules/copy-file: New file.
72560         * MODULES.html.sh (func_all_modules): Add it.
72562 2003-03-28  Bruno Haible  <bruno@clisp.org>
72564         * m4/copy-file.m4: New file.
72566 2003-03-28  Bruno Haible  <bruno@clisp.org>
72568         * lib/copy-file.h: New file, from GNU gettext.
72569         * lib/copy-file.c: New file, from GNU gettext.
72571 2003-03-18  Jim Meyering  <jim@meyering.net>
72573         * lib/quote.c (quote_n): Fix typo in comment.
72575 2003-03-18  Bruno Haible  <bruno@clisp.org>
72577         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
72578         checking.
72579         * m4/onceonly_2_57.m4: Likewise.
72581 2003-03-17  Bruno Haible  <bruno@clisp.org>
72583         * m4/onceonly.m4: Require autoconf 2.54 or newer.
72584         (m4_quote): Remove macro.
72585         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
72587 2003-03-14  Jim Meyering  <jim@meyering.net>
72589         Merge changes from Coreutils.
72590         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
72591         to be const, in order to avoid warnings.
72592         (obstack_room): Likewise.
72593         (obstack_empty_p): Likewise.
72595 2003-03-14  Bruno Haible  <bruno@clisp.org>
72597         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
72598         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
72600 2003-03-13  Paul Eggert  <eggert@twinsun.com>
72602         Merge changes from Bison.
72603         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
72604         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
72605         when compiling Bison 1.875's `bitset bset = obstack_alloc
72606         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
72607         * lib/hash.c: Include <stdbool.h> unconditionally.
72609 2003-03-13  Paul Eggert  <eggert@twinsun.com>
72611         * m4/onceonly.m4 (m4_quote): New macro.
72612         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
72613         Quote AC_FOREACH variable-expansions properly.
72615 2003-03-13  Paul Eggert  <eggert@twinsun.com>
72617         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
72619 2003-03-09  Paul Eggert  <eggert@twinsun.com>
72621         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
72622         Reported by Bruce Becker; see:
72623         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
72625 2003-03-03  Paul Eggert  <eggert@twinsun.com>
72626             Bruno Haible  <bruno@clisp.org>
72628         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
72629         Reported by John Hughes, see
72630         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
72632 2003-02-20  Bruno Haible  <bruno@clisp.org>
72634         * MODULES.html.sh (func_all_modules): Add poll.
72636 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
72638         * modules/poll: New file.
72640 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
72642         * lib/poll_.h: New file.
72643         * lib/poll.c: New file.
72645 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
72647         * m4/poll.m4: New file.
72649 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
72651         * modules/mathl: New file.
72653 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
72655         * lib/mathl.h: New file.
72656         * lib/acosl.c: New file.
72657         * lib/asinl.c: New file.
72658         * lib/atanl.c: New file.
72659         * lib/ceill.c: New file.
72660         * lib/cosl.c: New file.
72661         * lib/expl.c: New file.
72662         * lib/floorl.c: New file.
72663         * lib/frexpl.c: New file.
72664         * lib/ldexpl.c: New file.
72665         * lib/logl.c: New file.
72666         * lib/sincosl.c: New file.
72667         * lib/sinl.c: New file.
72668         * lib/sqrtl.c: New file.
72669         * lib/tanl.c: New file.
72670         * lib/trigl.c: New file.
72671         * lib/trigl.h: New file.
72673 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
72675         * m4/mathl.m4: New file.
72677 2003-02-18  Bruno Haible  <bruno@clisp.org>
72679         * MODULES.html.sh (func_all_modules): Add mathl.
72681 2003-02-17  Bruno Haible  <bruno@clisp.org>
72683         * modules/mkdtemp: New module.
72684         * MODULES.html.sh (func_all_modules): Add it.
72686 2003-02-17  Bruno Haible  <bruno@clisp.org>
72688         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
72690 2003-02-17  Bruno Haible  <bruno@clisp.org>
72692         * lib/mkdtemp.h: New file, from GNU gettext.
72693         * lib/mkdtemp.c: New file, from GNU gettext.
72695 2003-02-02  Jim Meyering  <jim@meyering.net>
72697         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
72698         e.g. glibc-2.2.93.
72700 2003-01-31  Bruno Haible  <bruno@clisp.org>
72702         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
72703         'rpl_rename'.
72704         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
72705         'rpl_strnlen'.
72706         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
72707         'rpl_strtod'.
72708         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
72709         'rpl_utime'.
72711 2003-01-31  Bruno Haible  <bruno@clisp.org>
72713         * lib/rename.c: #undef rename before defining rpl_rename.
72714         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
72716 2003-01-30  Bruno Haible  <bruno@clisp.org>
72718         * modules/vasnprintf, modules/vasprintf: New modules.
72719         * MODULES.html.sh (func_all_modules): Add them.
72721 2003-01-30  Bruno Haible  <bruno@clisp.org>
72723         * m4/signed.m4: New file, from GNU gettext.
72724         * m4/longdouble.m4: New file, from GNU gettext.
72725         * m4/wchar_t.m4: New file, from GNU gettext.
72726         * m4/wint_t.m4: New file, from GNU gettext.
72727         * m4/vasnprintf.m4: New file.
72728         * m4/vasprintf.m4: New file.
72730 2003-01-30  Bruno Haible  <bruno@clisp.org>
72732         * lib/printf-args.h: New file, from GNU gettext.
72733         * lib/printf-args.c: New file, from GNU gettext.
72734         * lib/printf-parse.h: New file, from GNU gettext.
72735         * lib/printf-parse.c: New file, from GNU gettext.
72736         * lib/vasnprintf.h: New file, from GNU gettext.
72737         * lib/vasnprintf.c: New file, from GNU gettext.
72738         * lib/asnprintf.c: New file, from GNU gettext.
72739         * lib/vasprintf.h: New file, from GNU gettext with modifications.
72740         * lib/vasprintf.c: New file, from GNU gettext.
72741         * lib/asprintf.c: New file, from GNU gettext.
72743 2003-01-29  Bruno Haible  <bruno@clisp.org>
72745         * modules/stpncpy: New module.
72746         * MODULES.html.sh (func_all_modules): Add it.
72748 2003-01-29  Bruno Haible  <bruno@clisp.org>
72750         * m4/stpncpy.m4: New file.
72752 2003-01-29  Bruno Haible  <bruno@clisp.org>
72754         * lib/stpncpy.h: New file, from GNU gettext with modifications.
72755         * lib/stpncpy.c: New file, from GNU gettext with modifications.
72757 2003-01-28  Bruno Haible  <bruno@clisp.org>
72759         * modules/c-ctype: New module.
72760         * MODULES.html.sh (func_all_modules): Add it.
72762 2003-01-28  Bruno Haible  <bruno@clisp.org>
72764         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
72765         Paul Eggert.
72766         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
72767         Paul Eggert.
72769 2003-01-27  Bruno Haible  <bruno@clisp.org>
72771         * modules/xsetenv: New module.
72772         * MODULES.html.sh (func_all_modules): Add it.
72774 2003-01-27  Bruno Haible  <bruno@clisp.org>
72776         * lib/xsetenv.h: New file, from GNU gettext.
72777         * lib/xsetenv.c: New file, from GNU gettext.
72779 2003-01-23  Jim Meyering  <jim@meyering.net>
72781         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
72782         from working on systems without dirfd (at least Irix and OSF1/Tru64).
72784 2003-01-23  Bruno Haible  <bruno@clisp.org>
72786         * modules/minmax: New module.
72787         * MODULES.html.sh (func_all_modules): Add it.
72789 2003-01-23  Bruno Haible  <bruno@clisp.org>
72791         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
72792         Eggert.
72794 2003-01-22  Bruno Haible  <bruno@clisp.org>
72796         * modules/exit: New module.
72797         * MODULES.html.sh (func_all_modules): Add it.
72799 2003-01-22  Bruno Haible  <bruno@clisp.org>
72801         * lib/exit.h: New file, from GNU gettext.
72803 2003-01-19  Bruno Haible  <bruno@clisp.org>
72805         * gnulib-tool: Recognize option --extract-maintainer.
72806         (func_get_maintainer): New function.
72807         * modules/*: Add Maintainer entry.
72809 2003-01-16  Jim Meyering  <jim@meyering.net>
72811         * m4/regex.m4: The `regex' struct is both input and output.
72812         Initialize it before each use.  Patch by Tim Waugh.
72814 2003-01-16  Bruno Haible  <bruno@clisp.org>
72816         * MODULES.html.sh: Add a table of contents. Add the module name as
72817         leftmost column. Add hyperlinks.
72819 2003-01-15  Bruno Haible  <bruno@clisp.org>
72821         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
72823 2003-01-15  Bruno Haible  <bruno@clisp.org>
72825         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
72826         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
72827         suffix.
72829 2003-01-15  Bruno Haible  <bruno@clisp.org>
72831         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
72833 2003-01-15  Bruno Haible  <bruno@clisp.org>
72835         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
72836         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
72838 2003-01-14  Jim Meyering  <jim@meyering.net>
72840         * lib/same.c (same_name): Tweak a comment.
72842 2003-01-14  Bruno Haible  <bruno@clisp.org>
72844         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
72845         when a string comparison is sufficient.
72847 2003-01-14  Bruno Haible  <bruno@clisp.org>
72849         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
72850         'unsigned int'.
72852 2003-01-14  Bruno Haible  <bruno@clisp.org>
72854         * lib/hash-pjw.c: Add comment about low quality of this function.
72856 2003-01-13  Bruno Haible  <bruno@clisp.org>
72858         * modules/stpcpy: Distribute lib/stpcpy.h.
72859         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
72861 2003-01-13  Bruno Haible  <bruno@clisp.org>
72863         * modules/*: Add a description.
72864         * modules/strpbrk: Fix Makefile.am snippet.
72865         * modules/strtoimax: Fix dependencies.
72866         * modules/strtoumax: Likewise.
72868 2003-01-13  Bruno Haible  <bruno@clisp.org>
72870         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
72871         * modules/alloca (Makefile.am): All object files depend on alloca.h.
72872         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
72874 2003-01-13  Bruno Haible  <bruno@clisp.org>
72876         * gnulib-tool (func_create_testdir): Store config/* files in the main
72877         directory.
72878         * config.rpath: Move to ...
72879         * config/config.rpath: ... here.
72880         * modules/gettext: Contains config/config.rpath, not config.rpath.
72881         * modules/iconv: Likewise.
72883 2003-01-12  Paul Eggert  <eggert@twinsun.com>
72885         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
72886         to avoid collisions with libcurses and libreadline.
72888         * m4/getstr.m4: Remove.
72889         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
72891 2003-01-12  Paul Eggert  <eggert@twinsun.com>
72893         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
72894         to avoid collisions with libcurses and libreadline.
72896         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
72897         * lib/getstr.h, getstr.c: Remove.
72898         * lib/getline.c: Include "getline.h", to check interface.
72899         Move body of old getstr.c here: this defines MIN_CHUNK and
72900         declares getdelim2, which is renamed from getstr.
72901         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
72903         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
72904         All uses changed.
72905         * lib/linebuffer.h: Likewise.
72906         (readline): Remove backward-compatibility macro.
72908 2003-01-12  Paul Eggert  <eggert@twinsun.com>
72910         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
72911         to avoid collisions with libcurses and libreadline.
72912         * getstr: Remove.
72913         * MODULES.html.sh: Remove getstr.
72914         * modules/getline: Depend on unlocked-io, not getstr.
72916 2003-01-12  Jim Meyering  <jim@meyering.net>
72918         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
72920 2003-01-10  Bruno Haible  <bruno@clisp.org>
72922         * modules/alloca: Change Makefile.am requirements. Simplify Include
72923         requirements. Add lib/alloca_.h to file list.
72925 2003-01-10  Bruno Haible  <bruno@clisp.org>
72927         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
72929 2003-01-10  Bruno Haible  <bruno@clisp.org>
72931         * lib/alloca_.h: New file.
72932         * lib/getdate.y: Unconditionally include alloca.h.
72933         * lib/makepath.c: Likewise.
72934         * lib/setenv.c: Likewise.
72935         * lib/userspec.c: Likewise.
72937 2003-01-09  Karl Berry  <karl@gnu.org>
72939         * MODULES.html.sh: include `dirname $0` in PATH, to find
72940         gnulib-tool.
72942 2003-01-09  Bruno Haible  <bruno@clisp.org>
72944         * modules/stdbool: Change configure.ac, Makefile.am requirements.
72945         Simplify Include requirements. Add lib/stdbool.h.in to file list.
72947 2003-01-09  Bruno Haible  <bruno@clisp.org>
72949         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
72951 2003-01-09  Bruno Haible  <bruno@clisp.org>
72953         * lib/stdbool.h.in: New file.
72955 2003-01-09  Bruno Haible  <bruno@clisp.org>
72957         * gnulib-tool (func_all_modules): Ignore files ending in ~.
72958         * MODULES.html.sh: Likewise.
72960 2003-01-08  Jim Meyering  <jim@meyering.net>
72962         * lib/full-write.c: Undefine and define-away `const' after inclusion
72963         of errno.h, not before.  Suggestion from Bruno Haible.
72965 2003-01-08  Bruno Haible  <bruno@clisp.org>
72967         * modules/full-read: Depend on full-write.
72969 2003-01-08  Bruno Haible  <bruno@clisp.org>
72971         * lib/safe-read.c: Include specification header first, to ensure its
72972         selfcontainedness.
72973         * lib/full-write.c: Likewise.
72975 2003-01-07  Jim Meyering  <jim@meyering.net>
72977         * lib/full-write.c: Rework so that it may serve to define full_read,
72978         too.
72979         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
72981 2003-01-07  Bruno Haible  <bruno@clisp.org>
72983         * lib/strtoimax.c: Include <stdint.h> as an alternative to
72984         <inttypes.h>.
72985         * lib/xstrtol.h: Likewise.
72986         * lib/xstrtoimax.c: Likewise.
72987         * lib/xstrtoumax.c: Likewise.
72988         * lib/human.h: Likewise.
72990         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
72991         on systems that have <inttypes.h> but not <stdint.h>.
72993 2003-01-07  Bruno Haible  <bruno@clisp.org>
72995         * MODULES.html.sh: Add copyright notice.
72996         (missed_files): Omit CVS directory entries.
72997         (func_module): Make it work with sed-3.02.
72998         * MODULES.txt: Remove file.
73000 2003-01-06  Jim Meyering  <jim@meyering.net>
73002         * lib/version-etc.c: Update year in translatable copyright string.
73004 2003-01-03  Karl Berry  <karl@gnu.org>
73006         * config/config.{guess,sub}: update from prep.
73008 2003-01-02  Karl Berry  <karl@gnu.org>
73010         * doc/COPYING.DOC: belatedly updated to 1.2.
73012 2003-01-01  Karl Berry  <karl@gnu.org>
73014         * gnulib-tool (func_verify_module): report module name $module in
73015         error message, not $1.
73016         * gnulib-tool (create-testdir): don't complain if destdir couldn't
73017         be created, only if it doesn't exist.
73018         * gnulib-tool (last_checkin_date): don't expand the $Date here.
73020 2002-12-31  Paul Eggert  <eggert@twinsun.com>
73022         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
73024 2002-12-31  Paul Eggert  <eggert@twinsun.com>
73026         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
73027         memcmp if strcoll doesn't work.
73029 2002-12-31  Bruno Haible  <bruno@clisp.org>
73031         * lib/utime.c (utime_null): No need to call ftruncate if the file was
73032         nonempty.
73034 2002-12-31  Bruno Haible  <bruno@clisp.org>
73036         * lib/memcoll.c (STRCOLL): New macro.
73037         (memcoll): Use it.
73039 2002-12-31  Bruno Haible  <bruno@clisp.org>
73041         * lib/localcharset.h: New file.
73042         * lib/localcharset.c: Include it.
73043         * lib/unicodeio.c: Likewise.
73045 2002-12-31  Bruno Haible  <bruno@clisp.org>
73047         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
73048         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
73050 2002-12-31  Bruno Haible  <bruno@clisp.org>
73052         * lib/getline.h: Include <stddef.h>, for size_t.
73054         * lib/unicodeio.h: Include <stddef.h>, for size_t.
73055         * lib/unicodeio.c: Don't include <stddef.h>.
73057 2002-12-31  Bruno Haible  <bruno@clisp.org>
73059         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
73060         HAVE_TM_ZONE.
73062 2002-12-24  Karl Berry  <karl@gnu.org>
73064         * config/config.guess: update from prep.
73066 2002-12-24  Bruno Haible  <bruno@clisp.org>
73068         General infrasructure.
73069         * m4/README: Rewritten.
73070         * m4/onceonly.m4: New file.
73071         * m4/onceonly_2_57.m4: New file.
73073         Module atexit.
73074         * m4/atexit.m4: New file.
73076         Module strtod.
73077         * m4/strtod.m4: New file.
73079         Module strtol.
73080         * m4/strtol.m4: New file.
73082         Module strtoul.
73083         * m4/strtoul.m4: New file.
73085         Module memchr.
73086         * m4/memchr.m4: New file.
73088         Module memcmp.
73089         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
73090         (jm_FUNC_MEMCMP): Invoke it.
73092         Module memcpy.
73093         * m4/memcpy.m4: New file.
73095         Module memmove.
73096         * m4/memmove.m4: New file.
73098         Module memset.
73099         * m4/memset.m4: New file.
73101         Module strcspn.
73102         * m4/strcspn.m4: New file.
73104         Module strpbrk.
73105         * m4/strpbrk.m4: New file.
73107         Module strstr.
73108         * m4/strstr.m4: New file.
73110         Module strerror.
73111         * m4/strerror.m4: New file.
73113         Module mktime.
73114         * m4/mktime.m4: Renamed from jm-mktime.m4.
73115         (gl_PREREQ_MKTIME): New macro.
73116         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
73118         Module malloc.
73119         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
73120         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
73121         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
73123         Module realloc.
73124         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
73125         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
73126         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
73128         Module strftime.
73129         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
73130         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
73131         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
73132         gl_TM_GMTOFF.
73133         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
73135         Module xalloc.
73136         * m4/xalloc.m4: New file.
73138         Module alloca.
73139         * m4/alloca.m4: New file.
73141         Module putenv.
73142         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
73143         (jm_FUNC_PUTENV): Invoke it.
73145         Module setenv.
73146         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
73147         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
73148         when invoked twice.
73149         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
73150         gt_FUNC_SETENV.
73152         Module memrchr.
73153         * m4/memrchr.m4: New file.
73155         Module stpcpy.
73156         * m4/stpcpy.m4: New file.
73158         Module strcase.
73159         * m4/strcase.m4: New file.
73161         Module strdup.
73162         * m4/strdup.m4: New file.
73164         Module strnlen.
73165         * m4/strnlen.m4: New file.
73167         Module strndup.
73168         * m4/strndup.m4: New file.
73170         Module xstrtod.
73171         * m4/xstrtod.m4: New file.
73173         Module xstrtol.
73174         * m4/xstrtol.m4: New file.
73176         Module getdate.
73177         * m4/getdate.m4: New file.
73179         Module unlocked-io.
73180         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
73181         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
73182         * m4/jm-glibc-io.m4n: Remove file.
73184         Module long-options.
73185         * m4/long-options.m4: New file.
73187         Module md5.
73188         * m4/md5.m4: New file.
73190         Module sha.
73191         * m4/sha.m4: New file.
73193         Module getstr.
73194         * m4/getstr.m4: New file.
73196         Module getline.
73197         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
73198         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
73199         <sys/types.h>, for size_t. Use the function name gnu_getline, not
73200         simply getline. Infoke gl_PREREQ_GETLINE.
73202         Module obstack.
73203         * m4/obstack.m4: New file.
73205         Module hash.
73206         * m4/hash.m4: New file.
73208         Module readtokens.
73209         * m4/readtokens.m4: New file.
73211         Module strverscmp.
73212         * m4/strverscmp.m4: New file.
73214         Module stdbool.
73215         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
73216         OSF/1.
73218         Module strtoll.
73219         * m4/strtoll.m4: New file.
73221         Module strtoull.
73222         * m4/strtoull.m4: New file.
73224         Module strtoimax.
73225         * m4/strtoimax.m4: New file.
73227         Module strtoumax.
73228         * m4/strtoumax.m4: New file.
73230         Module xstrtoimax.
73231         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
73232         jm_AC_PREREQ_XSTRTOIMAX.
73233         Moved the strtol prerequisites to strtol.m4.
73234         Moved the strtoll prerequisites to strtoll.m4.
73235         Moved the strtoimax prerequisites to strtoimax.m4.
73237         Module xstrtoumax.
73238         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
73239         jm_AC_PREREQ_XSTRTOUMAX.
73240         Moved the strtoul prerequisites to strtoul.m4.
73241         Moved the strtoull prerequisites to strtoull.m4.
73242         Moved the strtoumax prerequisites to strtoumax.m4.
73244         Module chown.
73245         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
73246         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
73248         Module dup2.
73249         * m4/dup2.m4: New file.
73251         Module ftruncate.
73252         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
73253         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
73255         Module getgroups.
73256         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
73257         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
73259         Module gettimeofday.
73260         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
73261         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
73262         gl_PREREQ_GETTIMEOFDAY.
73264         Module mkdir.
73265         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
73266         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
73268         Module mkstemp.
73269         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
73270         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
73271         jm_AC_TYPE_UINTMAX_T.
73272         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
73274         Module stat.
73275         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
73276         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
73278         Module lstat.
73279         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
73280         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
73282         Module timespec.
73283         * m4/timespec.m4 (gl_TIMESPEC): New macro.
73284         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
73285         * m4/st_mtim.m4: Indentation.
73287         Module nanosleep.
73288         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
73289         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
73290         gl_PREREQ_NANOSLEEP.
73292         Module regex.
73293         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
73294         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
73295         (gl_REGEX): New macro.
73297         Module rename.
73298         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
73299         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
73301         Module rmdir.
73302         * m4/rmdir.m4: New file.
73304         Module utime.
73305         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
73306         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
73307         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
73309         Module dirname.
73310         * m4/dirname.m4: New file.
73312         Module getopt.
73313         * m4/getopt.m4: New file.
73315         Module unistd-safer.
73316         * m4/unistd-safer.m4: New file.
73318         Module fnmatch.
73319         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
73320         declaration.
73321         (gl_PREREQ_FNMATCH_EXTRA): New macro.
73322         (gl_FUNC_FNMATCH_POSIX): New macro.
73323         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
73324         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
73325         simply fnmatch.
73327         Module exclude.
73328         * m4/exclude.m4: New file.
73330         Module human.
73331         * m4/human.m4: New file.
73333         Module acl.
73334         * m4/acl.m4: Nop.
73336         Module backupfile.
73337         * m4/backupfile.m4: New file.
73338         * m4/d-ino.m4: Indentation.
73340         Module fsusage.
73341         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
73342         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
73343         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
73345         Module dirfd.
73346         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
73347         requirements.
73349         Module euidaccess.
73350         * m4/euidaccess.m4: New file.
73352         Module file-type.
73353         * m4/file-type.m4: New file.
73355         Module fileblocks.
73356         * m4/fileblocks.m4: New file.
73358         Module filemode.
73359         * m4/filemode.m4: New file.
73361         Module isdir.
73362         * m4/isdir.m4: New file.
73364         Module lchown.
73365         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
73366         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
73368         Module makepath.
73369         * m4/makepath.m4: New file.
73371         Module modechange.
73372         * m4/modechange.m4: New file.
73374         Module mountlist.
73375         * m4/mountlist.m4: New file.
73376         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
73377         Indentation.
73379         Module path-concat.
73380         * m4/path-concat.m4: New file.
73382         Module pathmax.
73383         * m4/pathmax.m4: New file.
73385         Module same.
73386         * m4/same.m4: New file.
73388         Module save-cwd.
73389         * m4/save-cwd.m4: New file.
73391         Module savedir.
73392         * m4/savedir.m4: New file.
73394         Module xgetcwd.
73395         * m4/xgetcwd.m4: New file.
73396         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
73398         Module xreadlink.
73399         * m4/xreadlink.m4: New file.
73401         Module safe-read.
73402         * m4/safe-read.m4: New file.
73404         Module safe-write.
73405         * m4/safe-write.m4: New file.
73407         Module closeout.
73408         * m4/closeout.m4: New file.
73410         Module stdio-safer.
73411         * m4/stdio-safer.m4: New file.
73413         Module getpass.
73414         * m4/getpass.m4: New file.
73416         Module getugroups.
73417         * m4/getugroups.m4: New file.
73419         Module group-member.
73420         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
73421         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
73423         Module idcache.
73424         * m4/idcache.m4: New file.
73426         Module userspec.
73427         * m4/userspec.m4: New file.
73429         Module gettime.
73430         * m4/clock_time.m4: New file.
73431         * m4/gettime.m4: New file.
73433         Module settime.
73434         * m4/settime.m4: New file.
73436         Module posixtm.
73437         * m4/posixtm.m4: New file.
73439         Module gethostname.
73440         * m4/gethostname.m4: New file.
73442         Module canon-host.
73443         * m4/canon-host.m4: New file.
73445         Module gettext.
73446         * m4/codeset.m4: New file, from gettext-0.11.5.
73447         * m4/gettext.m4: New file, from gettext-0.11.5.
73448         * m4/glibc21.m4: New file, from gettext-0.11.5.
73449         * m4/iconv.m4: New file, from gettext-0.11.5.
73450         * m4/intdiv0.m4: New file, from gettext-0.11.5.
73451         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
73452         * m4/inttypes.m4: New file, from gettext-0.11.5.
73453         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
73454         * m4/isc-posix.m4: New file, from gettext-0.11.5.
73455         * m4/lcmessage.m4: New file, from gettext-0.11.5.
73456         * m4/lib-ld.m4: New file, from gettext-0.11.5.
73457         * m4/lib-link.m4: New file, from gettext-0.11.5.
73458         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
73459         * m4/progtest.m4: New file, from gettext-0.11.5.
73460         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
73461         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
73462         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
73464         Module localcharset.
73465         * m4/localcharset.m4: New file.
73467         Module hard-locale.
73468         * m4/hard-locale.m4: New file.
73470         Module mbswidth.
73471         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
73472         onceonly macros.
73473         * m4/mbrtowc.m4: Add comment.
73475         Module memcasecmp.
73476         * m4/memcasecmp.m4: New file.
73478         Module memcoll.
73479         * m4/memcoll.m4: New file.
73481         Module unicodeio.
73482         * m4/unicodeio.m4: New file.
73484         Module rpmatch.
73485         * m4/rpmatch.m4: New file.
73487         Module yesno.
73488         * m4/yesno.m4: New file.
73490         Module exitfail.
73491         * m4/exitfail.m4: New file.
73493         Module c-stack.
73494         * m4/c-stack.m4 (gl_C_STACK): New macro.
73495         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
73497         Module error.
73498         * m4/error.m4 (gl_ERROR): New macro.
73499         (jm_PREREQ_ERROR): Use onceonly macros.
73501         Module fatal.
73502         * m4/fatal.m4: New file.
73504         Module getloadavg.
73505         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
73506         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
73508         Module getpagesize.
73509         * m4/getpagesize.m4: New file.
73511         Module getusershell.
73512         * m4/getusershell.m4: New file.
73514         Module physmem.
73515         * m4/physmem.m4: New file.
73517         Module posixver.
73518         * m4/posixver.m4: New file.
73520         Module quotearg.
73521         * m4/quotearg.m4: New file.
73523         Module quote.
73524         * m4/quote.m4: New file.
73526         Module readutmp.
73527         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
73529         Module sig2str.
73530         * m4/sig2str.m4: New file.
73532         Other.
73533         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
73534         ulonglong.m4.
73535         * m4/intmax_t.m4: New file.
73536         * m4/d-type.m4: Indentation.
73537         * m4/jm-macros.m4: Update.
73538         * m4/prereq.m4 (jm_PREREQ): Update.
73539         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
73540         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
73541         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
73542         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
73543         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
73544         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
73545         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
73546         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
73547         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
73548         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
73549         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
73550         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
73551         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
73552         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
73553         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
73554         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
73555         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
73556         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
73557         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
73559 2002-12-24  Bruno Haible  <bruno@clisp.org>
73561         * MODULES.txt: Update according to m4/ changes.
73563         Module gettext.
73564         * config.rpath: New file, from gettext-0.11.5.
73566         * modules/*: New module descriptions.
73567         * gnulib-tool: New file.
73568         * MODULES.html.sh: New file.
73570 2002-12-21  Karl Berry  <karl@gnu.org>
73572         * doc/fdl.texi: update to version 1.2.
73574 2002-12-19  Karl Berry  <karl@gnu.org>
73576         * config/config.guess: update from prep.
73578 2002-12-18  Bruno Haible  <bruno@clisp.org>
73580         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
73581         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
73583 2002-12-17  Bruno Haible  <bruno@clisp.org>
73585         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
73586         stdlib.h, string.h.
73588 2002-12-17  Bruno Haible  <bruno@clisp.org>
73590         * lib/canon-host.c (strdup): Remove unused declaration.
73592         * lib/fsusage.c: Include full_read.h.
73593         (get_fs_usage): Use full_read instead of safe_read.
73595         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
73597 2002-12-12  Karl Berry  <karl@gnu.org>
73599         * config/config.guess: update from prep.
73601 2002-12-11  Bruno Haible  <bruno@clisp.org>
73603         * m4/setenv.m4: New file, from gettext-0.11.5.
73605 2002-12-11  Bruno Haible  <bruno@clisp.org>
73607         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
73608         not unsetenv().
73609         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
73610         modifications:
73612         2002-12-11  Bruno Haible  <bruno@clisp.org>
73614                 * setenv.c (alloca): Fall back to malloc.
73615                 (freea): New macro.
73616                 (setenv): Use freea() to free memory allocated with alloca().
73618         2002-11-13  Bruno Haible  <bruno@clisp.org>
73620                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
73621                 function declarations.
73622                 * unsetenv.c (unsetenv): Likewise.
73624         2002-03-04  Bruno Haible  <bruno@clisp.org>
73626                 Portability to AIX 4.3.3.
73627                 * unsetenv.c: New file, extracted from setenv.c.
73628                 * setenv.c: Move the unsetenv() function to unsetenv.c.
73630         2001-12-20  Bruno Haible  <bruno@clisp.org>
73632                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
73633                 use malloc instead. For SunOS 4.
73635         2001-12-11  Bruno Haible  <bruno@clisp.org>
73637                 * setenv.c: Declare alloca.
73638                 (compar_fn_t): New typedef.
73639                 (KNOWN_VALUE, STORE_VALUE): Use it.
73641         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
73642         setenv.h.
73644 2002-12-10  Paul Eggert  <eggert@twinsun.com>
73646         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
73647         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
73648         Choose values that are less likely to collide with system fnmatch
73649         options.
73650         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
73651         defined (e.g., a pure POSIX system).
73652         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
73653         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
73655 2002-12-06  Paul Eggert  <eggert@twinsun.com>
73657         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
73658         a pain in practice to deal with generated m4 files.  This change
73659         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
73661         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
73662         and jm-glibc-io.m4, as they are no longer a special case.
73663         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
73664         kludge and the auto-generation stuff.  Check only whether the
73665         functions are declared, not whether they exist, since older hosts
73666         that don't declare the functions can't use the optimization anyway.
73668 2002-12-06  Jim Meyering  <jim@meyering.net>
73670         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
73672         Merge in changes from libc's misc/error.c, in preparation
73673         for the merge of gnulib's changes back into libc.
73675         * lib/error.c (_): Define only if not already defined.
73676         Move definition to follow all #include directives.
73677         Include unlocked-io.h only if !_LIBC.
73678         [_LIBC]: Include <libio/libioP.h>.
73679         [USE_IN_LIBIO]: Include <libio/iolibio.h>
73680         (fflush): Tweak definition to use INTUSE.
73681         (putc): Define.
73683 2002-12-05  Paul Eggert  <eggert@twinsun.com>
73685         * lib/alloca.c [defined emacs]: Include "lisp.h".
73686         (xalloc_die) [defined emacs]: New macro.
73687         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
73688         [! defined emacs]: Include <xalloc.h>.
73689         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
73690         (pointer): Typedef to POINTER_TYPE *.
73691         (malloc): Remove decl; we now always use xmalloc.
73692         (alloca): Use old-style definition, since Emacs needs this.
73693         Check for arithmetic overflow when computing combined size.
73695 2002-12-04  Paul Eggert  <eggert@twinsun.com>
73697         Do not generate unlocked-io.h automatically, since it's easier to
73698         maintain it by hand.
73700         * lib/unlocked-io.h: New file, from GNU diffutils,
73701         but with proper copyright notice and attribution.
73702         * lib/gen-uio: Remove.
73703         * lib/Makefile.am: Add copyright notice.
73704         (libfetish_a_SOURCES): Add unlocked-io.h.
73705         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
73706         (DISTCLEANFILES, io_functions): Remove macros.
73707         (EXTRA_DIST): Remove gen_uio.
73708         (unlocked-io.h): Remove rule.
73710 2002-12-04  Jim Meyering  <jim@meyering.net>
73712         Reflect the fact that stat.c and lstat.c are no longer generated.
73713         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
73714         (DISTCLEANFILES): Likewise.
73715         (EXTRA_DIST): Likewise.
73716         (all_local): Don't depend on stat.c or lstat.c.
73717         (stat.c, lstat.c): Remove rules.
73718         (EXTRA_DIST): Remove xstat.in.
73720         * lib/xstat.in: Remove file.  Contents moved into stat.c.
73721         * lib/stat.c: New file.  Contents mostly from xstat.in.
73722         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
73723         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
73725         * lib/safe-read.c: Rework so that it may serve to define safe_write,
73726         too.
73727         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
73729 2002-12-03  Jim Meyering  <jim@meyering.net>
73731         * lib/safe-read.c, safe-write.c: Change variable names and comments,
73732         but not semantics, to minimize the differences between these two files.
73733         (safe_read): Change comment to mention SAFE_READ_ERROR.
73735         * lib/safe-read.c (IS_EINTR): Define.
73736         (safe_read): Use IS_EINTR in place of in-function cpp directives.
73738 2002-12-02  Jim Meyering  <jim@meyering.net>
73740         * lib/safe-read.c (EINTR): Define.
73741         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
73742         (INT_MAX): Provide fallback.
73743         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
73745         * lib/safe-read.h (SAFE_READ_ERROR): Define.
73747 2002-12-02  Bruno Haible  <bruno@clisp.org>
73749         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
73750         Define, taken from safe-read.c.
73751         (INT_MAX): Provide fallback.
73752         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
73753         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
73755         * lib/safe-read.c (EINTR): Remove definition.
73756         (safe_read): Don't use EINTR if it is absent.
73758 2002-12-01  Jim Meyering  <jim@meyering.net>
73760         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
73761         zero.
73762         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
73764 2002-11-27  Paul Eggert  <eggert@twinsun.com>
73766         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
73767         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
73768         with `if (! (value < limit)) abort ();', for readability.
73770 2002-11-26  Karl Berry  <karl@gnu.org>
73772         * lib/strdup.c: copy from libc again, with jim's ok.
73773         * lib/.cppi-disable: re-add strdup.c
73775 2002-11-25  Karl Berry  <karl@gnu.org>
73777         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
73778         instead of "strtol.c".
73780 2002-11-25  Karl Berry  <karl@gnu.org>
73782         * config/install-sh: update from automake for variable quoting, $0 in
73783         error msgs, etc.
73785         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
73786         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
73787         entry.
73789 2002-11-25  Jim Meyering  <jim@meyering.net>
73791         * lib/mktime.c: Sync from libc, now that it has the latest fix.
73793 2002-11-24  Karl Berry  <karl@gnu.org>
73795         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
73796         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
73798 2002-11-24  Jim Meyering  <jim@meyering.net>
73800         Update from coreutils:
73802         * lib/mktime.c: Merge in changes from libc.
73804         Avoid a link-time failure on some Linux systems.
73805         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
73806         (otherwise).
73807         (__mon_yday): Declare with the STATIC attribute.
73808         (__mktime_internal): Likewise.
73809         Based on a report from Greg Schafer.
73811 2002-11-23  Jim Meyering  <jim@meyering.net>
73813         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
73814         Use `unsigned', not `int', as type of index.
73816         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
73818         * lib/fsusage.c: Remove unneeded parentheses around operands of
73819         `defined'.
73821 2002-11-22  Paul Eggert  <eggert@twinsun.com>
73823         * lib/quotearg.h: Allow multiple inclusion by surrounding with
73824         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
73825         so that we can be included first.
73826         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
73827         * lib/quotearg.c: Include quotearg.h immediately after config.h.
73828         No need to include stddef.h or sys/types.h any more.
73829         Surround local include files with "", not "<>".
73830         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
73831         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
73832         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
73833         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
73834         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
73835         (ISPRINT): Remove; no longer needed now that we assume C89.
73837         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
73838         Preserve errno.
73840         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
73841         quotearg_char): Use SIZE_MAX rather than
73842         (size_t) -1 when we are talking about "infinity".
73844         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
73846 2002-11-22  Paul Eggert  <eggert@twinsun.com>
73848         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
73849         hint that one should use `if (! x) abort ();' rather than `assert
73850         (x);', and anyway it's one less thing to worry about configuring.
73851         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
73852         hash_rehash, hash_insert): Use abort rather than assert.
73854 2002-11-22  Bruno Haible  <bruno@clisp.org>
73856         * lib/safe-read.h: Assume C89. Add comments.
73857         (safe_read): Change return type to size_t.
73858         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
73859         byte counts > SSIZE_MAX correctly.
73860         * lib/safe-write.h: New file.
73861         * lib/safe-write.c: New file.
73862         * lib/full-read.h: New file.
73863         * lib/full-read.c: New file.
73864         * lib/full-write.h: Assume C89. Add comments.
73865         * lib/full-write.c: Include safe-write.h.
73866         (full_write): Rewritten to use safe_write.
73867         Suggested by Jim Meyering and Paul Eggert.
73869 2002-11-21  Jim Meyering  <jim@meyering.net>
73871         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
73873         Merge in changes from the coreutils.
73875         2002-09-25  Paul Eggert  <eggert@twinsun.com>
73876         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
73877         <stdint.h>.
73878         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
73879         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
73880         int.  Work more efficiently if X is the same width as uintmax_t.
73881         Do not compare X to -1, to avoid bogus compiler warning.
73882         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
73883         Don't assume that f_frsize and f_bsize are the same type.
73885         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
73886         warning on FreeBSD.
73888         * lib/makepath.c (make_path): Restore umask *before* creating the final
73889         component.
73890         (make_path): Minor reformatting.
73892         * lib/xmalloc.c: Adjust to work with new autoconf macros,
73893         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
73894         HAVE_MALLOC/HAVE_REALLOC.
73896         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
73897         dummy ones.  At least on GNU/Linux systems, `auto' means something
73898         else.
73899         From Michael Stone.
73901 2002-11-21  Bruno Haible  <bruno@clisp.org>
73903         Remove case insensitive option matching.
73904         * lib/argmatch.h (argcasematch): Remove declaration.
73905         (ARGCASEMATCH): Remove macro.
73906         (__xargmatch_internal): Remove case_sensitive argument.
73907         (XARGMATCH): Update.
73908         (XARGCASEMATCH): Remove macro.
73909         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
73910         case_sensitive argument.
73911         (argcasematch): Remove function.
73912         (__xargmatch_internal): Remove case_sensitive argument.
73913         (main): Use XARGMATCH instead of XARGCASEMATCH.
73915         * lib/xmalloc.c: Change compile-time error message. Add comment about
73916         required autoconf version.
73918 2002-11-20  Paul Eggert  <eggert@twinsun.com>
73920         Merge argmatch cleanups from Bison.  Assume C89.
73922         * lib/argmatch.c: Include config.h here, not in argmatch.h.
73923         Include stdlib.h, for EXIT_FAILURE.
73924         Always include <string.h>, since we assume C89.
73925         (EXIT_FAILURE): Remove pre-C89 bug workaround.
73926         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
73927         Include <stddef.h> instead, since it's all we need for size_t.
73928         (PARAMS): Remove.  All uses removed.
73929         (ARRAY_CARDINALITY): Do not bother to #undef.
73930         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
73931         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
73932         Remove unnecessary parentheses.
73933         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
73934         Insert necessary parentheses.
73935         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
73936         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
73938 2002-11-19  Bruno Haible  <bruno@clisp.org>
73940         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
73941         * lib/mbswidth.h: Include <stddef.h>, for size_t.
73943         * lib/mbswidth.h (PARAMS): Remove macro.
73944         (mbswidth, mbsnwidth): Use ANSI C function declarations.
73945         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
73947         * lib/gcd.h (PARAMS): Remove macro.
73948         (gcd): Use ANSI C function declarations.
73949         * lib/gcd.c (gcd): Likewise.
73951 2002-11-15  Bruno Haible  <bruno@clisp.org>
73953         * lib/strcspn.c: Include <stddef.h>.
73954         (strcspn): Use ANSI C function declaration. Change return type to
73955         size_t. Use NULL.
73956         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
73957         (strpbrk): Use NULL.
73958         * lib/strpbrk.h (PARAMS): Remove macro.
73959         (strpbrk): Use ANSI C function declaration.
73960         * lib/strstr.c: Don't include <sys/types.h>.
73961         * lib/strstr.h (PARAMS): Remove macro.
73962         (strstr): Use ANSI C function declarations.
73964 2002-11-14  Karl Berry  <karl@gnu.org>
73966         * config/mkinstalldirs: `do' on separate line, instead of
73967         `for var; do'.
73969 2002-11-06  Bruno Haible  <bruno@clisp.org>
73971         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
73972         * lib/gcd.c (gcd): Likewise.
73974 2002-11-05  Bruno Haible  <bruno@clisp.org>
73976         * lib/gcd.h: New file, from gettext-0.11.5.
73977         * lib/gcd.c: New file, from gettext-0.11.5.
73979 2002-11-05  Bruno Haible  <bruno@clisp.org>
73981         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
73982         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
73983         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
73984         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
73986         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
73987         <libintl.h>.
73988         * lib/makepath.c: Include gettext.h instead of <locale.h> and
73989         <libintl.h>.
73991         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
73992         * lib/human.c: Include gettext.h instead of <libintl.h>.
73993         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
73994         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
73995         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
73996         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
73997         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
73998         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
73999         (textdomain): Remove definition.
74000         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
74002         * lib/long-options.c: Remove include of <libintl.h> and definition of
74003         _.
74004         * lib/same.c: Remove include of <libintl.h> and definition of _.
74006 2002-11-04  Owen Taylor  <otaylor@redhat.com>
74008         * lib/config.charset: A few additions for Solaris.
74010 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
74012         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
74013         * lib/localcharset.c (locale_charset): Declare as extern "C".
74015 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
74017         * lib/config.charset: msdos in uk_UA uses CP1125.
74019 2002-11-04  Bruno Haible  <bruno@clisp.org>
74021         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
74022         * lib/strcase.h: New file, from GNU gettext-0.11.5.
74023         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
74024         * lib/strstr.h: New file, from GNU gettext-0.11.5.
74025         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
74027 2002-11-04  Bruno Haible  <bruno@clisp.org>
74029         * lib/localcharset.c (locale_charset): Don't return an empty string.
74031 2002-11-04  Bruno Haible  <bruno@clisp.org>
74033         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
74034         aliases.
74036 2002-11-04  Bruno Haible  <bruno@clisp.org>
74038         * lib/config.charset: Update for newest glibc. Add canonical names
74039         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
74041 2002-11-04  Bruno Haible  <bruno@clisp.org>
74043         * lib/config.charset: Add support for NetBSD.
74045 2002-11-04  Bruno Haible  <bruno@clisp.org>
74047         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
74049 2002-11-01  Bruno Haible  <bruno@clisp.org>
74051         * configure.in: Add AC_CONFIG_AUX_DIR call.
74052         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
74053         test/Makefile.
74054         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
74056 2002-09-28  Karl Berry  <karl@gnu.org>
74058         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
74059         installed automake until the next release, since changes have been
74060         made.
74062 2002-09-25  Karl Berry  <karl@gnu.org>
74064         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
74065         * lib/getopt*: copy from libc/posix.
74066         * lib/gettext.h: copy from gettext.
74067         * lib/.cppi-disable: add strdup.c, gettext.h.
74069 2002-09-25  Karl Berry  <karl@gnu.org>
74071         * config/srclist.txt: enable gettext.h check.
74072         * config/config.{guess,sub}: update from prep.
74073         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
74074                 from automake 1.6.3.
74075         See srclist*.
74077 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
74079         * regex.c (PATFETCH): Remove the translating fetch.
74080         (PATFETCH_RAW): Rename to PATFETCH.
74081         (set_image_of_range): New fun.
74082         (SET_RANGE_TABLE_WORK_AREA): Use it.
74083         (regex_compile): Don't translate the pattern chars so eagerly.
74084         Only do it when inserting an `exactn' bytecode or when handling
74085         a char-range.
74086         (mutually_exclusive_p): Avoid empty statement.
74088 2002-07-06  Jim Meyering  <meyering@lucent.com>
74090         * m4/README: Don't mention Makefile.am.in.
74091         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
74093 2002-07-01  Jim Meyering  <meyering@lucent.com>
74095         * lib/c-stack.c: Include sys/time.h.
74096         From Volker Borchert.
74098 2002-06-26  Paul Eggert  <eggert@twinsun.com>
74100         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
74102 2002-06-26  Paul Eggert  <eggert@twinsun.com>
74104         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
74105         New macro.  Use it uniformly instead of
74106         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
74107         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
74108         reported by Vin Shelton.
74110 2002-06-22  Paul Eggert  <eggert@twinsun.com>
74112         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
74113         Do not assume SA_SIGINFO behavior.
74114         Bug reported by Jim Meyering on NetBSD 1.5.2.
74116 2002-06-22  Jim Meyering  <meyering@lucent.com>
74118         * m4/c-stack.m4: New file, from diffutils-2.8.2.
74119         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
74121         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
74122         now that configure.ac uses AC_GNU_SOURCE.
74123         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
74124         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
74126         Update to latest tools.  Suggestions from Paul Eggert.
74127         * m4/stdbool.m4: New file, from diffutils-2.8.2.
74128         * m4/gnu-source.m4: Update from diffutils-2.8.2.
74129         * m4/fnmatch.m4: Likewise.
74130         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
74131         to AC_HEADER_STDBOOL
74133 2002-06-22  Jim Meyering  <meyering@lucent.com>
74135         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
74136         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
74138 2002-06-22  Jim Meyering  <meyering@lucent.com>
74140         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
74142         * lib/exitfail.c, exitfail.h: Likewise.
74143         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
74145         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
74146         of fnmatch.h.
74147         (EXTRA_DIST): Add fnmatch_loop.c.
74148         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
74150         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
74151         * lib/fnmatch.c: Update from diffutils-2.8.2.
74152         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
74153         * lib/fnmatch.h: Remove file.
74155 2002-06-21  Jim Meyering  <meyering@lucent.com>
74157         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
74158         * m4/mbrtowc.m4: Likewise.
74160         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
74161         * m4/mbswidth.m4: Reflect name change:
74162         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
74163         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
74165         * m4/lib-link.m4: Update from gettext-0.11.2.
74166         * m4/gettext.m4: Likewise.
74168         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
74169         From Alfred M. Szmidt.
74171 2002-06-18  Paul Eggert  <eggert@twinsun.com>
74173         * lib/file-type.h: Report an error if neither S_ISREG nor
74174         S_IFREG is defined, instead of using a test specific to glibc
74175         2.2.  This should be safe, since POSIX requires S_ISREG and
74176         Unix Version 7 had S_IFREG.  We don't need to check for
74177         <sys/types.h> since we don't use any symbols that it defines.
74179 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
74181         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
74182         $@-t, so that each temporary file name is unique and valid in the first
74183         8 characters, for operation under DOS.
74185 2002-06-15  Paul Eggert  <eggert@twinsun.com>
74187         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
74189 2002-06-15  Jim Meyering  <meyering@lucent.com>
74191         Work even with DJGPP 2.03, which lacks support for symlinks.
74192         From Richard Dawe.
74193         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
74194         is defined.
74195         * lib/lchown.c (S_ISLNK): Likewise.
74197 2002-06-15  Jim Meyering  <meyering@lucent.com>
74199         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
74200         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
74201         have been included before this file.
74203 2002-06-14  Jim Meyering  <meyering@lucent.com>
74205         * lib/file-type.h: Use the version from diffutils-2.8.2.
74206         * lib/file-type.c: Likewise.
74208 2002-06-07  Jim Meyering  <meyering@lucent.com>
74210         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
74211         They're needed at least for NetBSD 1.5.2.
74212         ($statxfs_includes): Include those same headers.
74213         ($statxfs_includes): Include sys/vfs.h if available.
74214         ($statxfs_includes): Likewise for sys/statvfs.h.
74215         Check for the following members in both structs statfs and statvfs:
74216         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
74218 2002-06-01  Jim Meyering  <meyering@lucent.com>
74220         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
74221         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
74223 2002-05-28  Jim Meyering  <meyering@lucent.com>
74225         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
74226         Reported by Volker Borchert.
74228 2002-05-27  Jim Meyering  <meyering@lucent.com>
74230         Fix a problem seen only on nonconforming systems whereby ls.c's
74231         use of localtime, and then of gettimeofday would cause trouble:
74232         the localtime call used to initialize rpl_gettimeofday's save
74233         mechanism would clobber ls's current local time information so
74234         that in any long listing the first file would always be listed
74235         with date 1970-01-01.  Analysis by Volker Borchert.
74237         * lib/gettimeofday.c (localtime): Undefine.
74238         (rpl_localtime): New function.
74240 2002-05-27  Jim Meyering  <meyering@lucent.com>
74242         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
74243         localtime.
74245         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
74246         use the replacement function; it wouldn't resolve at link time.
74247         Reported by Volker Borchert.
74249 2002-05-22  Jim Meyering  <meyering@lucent.com>
74251         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
74252         file-type.h.
74253         * lib/file-type.h: New file.
74254         * lib/file-type.c (file_type): New file/function.  Extracted from
74255         diffutils.
74257 2002-04-30  Jim Meyering  <meyering@lucent.com>
74259         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
74261 2002-04-29  Paul Eggert  <eggert@twinsun.com>
74263         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
74265 2002-04-29  Paul Eggert  <eggert@twinsun.com>
74267         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
74268         Do not check for alloca.h (no longer used) or stdbool.h (was never
74269         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
74271 2002-04-29  Paul Eggert  <eggert@twinsun.com>
74273         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
74275 2002-04-29  Jim Meyering  <meyering@lucent.com>
74277         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
74278         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
74279         Use AC_FUNC_STRNLEN here instead.
74281         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
74282         With autoconf-2.53a, it's part of AC_PROG_CC.
74284 2002-04-28  Paul Eggert  <eggert@twinsun.com>
74286         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
74287         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
74289 2002-04-28  Paul Eggert  <eggert@twinsun.com>
74291         * lib/sig2str.h, lib/sig2str.c: New files.
74292         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
74294 2002-04-28  Paul Eggert  <eggert@twinsun.com>
74296         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
74297         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
74298         of 127, since 64 is the largest conceivable number for ancient
74299         nonstandard hosts.
74300         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
74302 2002-04-28  Jim Meyering  <meyering@lucent.com>
74304         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
74306 2002-04-24  Jim Meyering  <meyering@lucent.com>
74308         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
74309         (jm_PREREQ): Use it.
74311         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
74312         mach/mach.h fcntl.h.
74313         Check for this function: setlocale.
74315 2002-04-24  Jim Meyering  <meyering@lucent.com>
74317         * lib/gettext.h: New file, from Gettext.
74318         * lib/Makefile.am (INCLUDES): Remove -I../intl.
74319         (libfetish_a_SOURCES): Add gettext.h.
74321 2002-04-16  Jim Meyering  <meyering@lucent.com>
74323         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
74324         ut_pid, ut_id, ut_exit.
74326 2002-04-16  Jim Meyering  <meyering@lucent.com>
74328         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
74329         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
74330         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
74332 2002-04-12  Jim Meyering  <meyering@lucent.com>
74334         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
74335         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
74336         existence of the getmntinfo function.  Needed for Darwin 5.3.
74338         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
74339         This is necessary at least on Darwin 5.3.
74341         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
74342         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
74343         strnlen.o in the library, and that makes some versions of ranlib
74344         object.
74346 2002-04-12  Jim Meyering  <meyering@lucent.com>
74348         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
74350 2002-04-09  Jim Meyering  <meyering@lucent.com>
74352         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
74353         to be more precise.  Rather than saying we're checking whether the
74354         function `works', say what we're testing.
74355         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
74356         Reported by Bruno Haible.
74358 2002-03-10  Jim Meyering  <meyering@lucent.com>
74360         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
74361         Suggestion from Santiago Vila.
74363 2002-03-08  Jim Meyering  <meyering@lucent.com>
74365         * lib/rename.c: Mention that this wrapper is needed also on
74366         mips-dec-ultrix4.4 systems.
74368 2002-03-02  Jim Meyering  <meyering@lucent.com>
74370         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
74371         not HAVE_CLOCK_SETTIME.
74373 2002-02-27  Paul Eggert  <eggert@twinsun.com>
74375         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
74376         Check for clock_settime.
74378 2002-02-27  Paul Eggert  <eggert@twinsun.com>
74380         * lib/nanosleep.h: Rename to....
74381         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
74383         * lib/gettime.c: New file.
74384         * lib/settime.c: New file.
74385         * lib/stime.c: Remove.
74387         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
74388         timespec.h.  Remove nanosleep.h.
74390 2002-02-25  Paul Eggert  <eggert@twinsun.com>
74392         * m4/acl.m4: New file.
74393         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
74394         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
74396 2002-02-25  Paul Eggert  <eggert@twinsun.com>
74398         * lib/acl.c, lib/acl.h: New files.
74399         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
74401 2002-02-24  Jim Meyering  <meyering@lucent.com>
74403         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
74404         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
74405         cause trouble.  Reported by Nelson Beebe.
74407 2002-02-23  Paul Eggert  <eggert@twinsun.com>
74409         * lib/path-concat.c (xpath_concat): Reorder code to pacify
74410         compilers that don't know that xalloc_die never returns.
74412 2002-02-20  Jim Meyering  <meyering@lucent.com>
74414         * lib/getdate.c: Regenerate using bison-1.33.
74416 2002-02-17  Jim Meyering  <meyering@lucent.com>
74418         * config/config.guess (main): Don't use `head -1'; it's no longer
74419         portable. Use `sed 1q' instead.
74421 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
74423         * m4/codeset.m4: Upgrade to gettext-0.11.
74424         * m4/gettext.m4: Upgrade to gettext-0.11.
74425         * m4/glibc21.m4: Upgrade to gettext-0.11.
74426         * m4/iconv.m4: Upgrade to gettext-0.11.
74427         * m4/isc-posix.m4: Upgrade to gettext-0.11.
74428         * m4/lcmessage.m4: Upgrade to gettext-0.11.
74429         * m4/lib-ld.m4: New file, from gettext-0.11.
74430         * m4/lib-link.m4: New file, from gettext-0.11.
74431         * m4/lib-prefix.m4: New file, from gettext-0.11.
74432         * m4/progtest.m4: Upgrade to gettext-0.11.
74434 2002-02-15  Paul Eggert  <eggert@twinsun.com>
74436         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
74437         (jm_PREREQ): Use it.
74439 2002-02-15  Paul Eggert  <eggert@twinsun.com>
74441         * lib/posixver.c, lib/posixver.h: New files.
74442         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
74444 2002-02-02  Paul Eggert  <eggert@twinsun.com>
74445             Bruno Haible  <bruno@clisp.org>
74447         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
74448         (fwrite_success_callback): New declaration.
74449         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
74450         print_unicode_char. Call failure callback instead of error.
74451         (fwrite_success_callback): New function.
74452         (exit_failure_callback): New function.
74453         (fallback_failure_callback): New function.
74454         (print_unicode_char): Call unicode_to_mb.
74456 2002-01-26  Jim Meyering  <meyering@lucent.com>
74458         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
74459         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
74461 2002-01-26  Jim Meyering  <meyering@lucent.com>
74463         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
74465 2002-01-22  Paul Eggert  <eggert@twinsun.com>
74467         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
74469 2002-01-22  Jim Meyering  <meyering@lucent.com>
74471         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
74472         Otherwise, some versions of automake would omit the rule that makes
74473         Makefile from Makefile.in.
74475 2002-01-21  Paul Eggert  <eggert@twinsun.com>
74477         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
74478         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
74479         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
74480         (memcoll): Set errno to zero if there is no error.
74482         * lib/quotearg.c (quotearg_buffer_restyled):
74483         Fix bug with quoting buffers containing NUL when backslashing escapes.
74484         This bug was exposed by the other changes in this patch.
74485         (quotearg_n_options): New arg ARGSIZE.
74486         All callers changed.
74487         (quoting_options_from_style): New function.
74488         (quotearg_n_style): Use it.
74489         (quotearg_n_style_mem): New function.
74491         * lib/quotearg.h (quotearg_n_style_mem): New function.
74493 2002-01-19  Jim Meyering  <meyering@lucent.com>
74495         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
74496         Remove useless quotes: DF_PROG="df".
74497         * m4/strnlen.m4: New file.
74499 2002-01-16  Paul Eggert  <eggert@twinsun.com>
74501         * lib/backupfile.c (ISDIGIT): Comment fix.
74502         * lib/getdate.y (ISDIGIT): Likewise.
74503         * lib/posixtm.c (ISDIGIT, year): Likewise.
74504         * lib/strverscmp.c (ISDIGIT): Likewise.
74505         * lib/userspec.c (ISDIGIT): Likewise.
74507 2002-01-16  Jim Meyering  <meyering@lucent.com>
74509         * lib/getdate.y: Add three semicolons, each just before a closing
74510         brace. Bison (as of version 1.31) no longer papers over that mistake.
74512 2002-01-05  Jim Meyering  <meyering@lucent.com>
74514         * lib/version-etc.c (version_etc_copyright): Update copyright year.
74516 2001-12-19  Paul Eggert  <eggert@twinsun.com>
74518         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
74519         not silently exit merely because the output buffer happens to
74520         have nothing pending.
74522 2001-12-18  Paul Eggert  <eggert@twinsun.com>
74524         See the big note in ../ChangeLog.
74525         * lib/human.c (suffixes): Prefer K to k for 1024.
74526         (generate_suffix_backwards): New function.
74527         (human_readable_inexact): Use it.
74528         * lib/xstrtol.c (__xstrtol): If there is no number but there
74529         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
74530         Accept 'K' as well as 'k'.
74532 2001-12-15  Jim Meyering  <meyering@lucent.com>
74534         * lib/regex.h (__restrict_arr): Update from libc.
74536         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
74537         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
74538         (STREQ): Define.
74540 2001-12-14  Jim Meyering  <meyering@lucent.com>
74542         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
74543         Suggestion from Bruno Haible.
74545 2001-12-10  Jim Meyering  <meyering@lucent.com>
74547         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
74548         xrealloc, Instead, include "xalloc.h".
74549         (initbuffer): Don't cast xmalloc return value to char*.
74550         (readline): Reword comment.
74551         Don't cast xrealloc return value to char*
74552         Return NULL, not 0.
74554 2001-12-09  Jim Meyering  <meyering@lucent.com>
74556         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
74557         about `signed and unsigned type in conditional expression'.
74558         * lib/posixtm.c (posix_time_parse): Likewise.
74560         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
74562         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
74563         to avoid a pedantic warning.
74565         * lib/getstr.c: Don't include assert.h.
74566         (getstr): Remove warning-evoking assertions.
74567         Return -1 if offset parameter is out of bounds.
74568         Change the type of a local from int to size_t.
74570         * lib/strftime.c (my_strftime_localtime_r): Include this function
74571         definition in the `#if ! HAVE_TM_GMTOFF' block.
74573         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
74574         Include xalloc.h instead.
74576 2001-12-02  Jim Meyering  <meyering@lucent.com>
74578         * lib/tempname.c: Don't declare getenv, thus reverting the change of
74579         2001-11-18.  It's no longer necessary, now that stdlib.h is always
74580         included.
74582         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
74583         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
74585 2001-11-30  Akim Demaille  <akim@epita.fr>
74587         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
74588         before being defined.
74590 2001-11-27  Paul Eggert  <eggert@twinsun.com>
74592         * lib/quotearg.h (quotearg_n, quotearg_n_style):
74593         First arg is int, not unsigned.
74594         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
74595         (SIZE_MAX, UINT_MAX): New macros.
74596         (quotearg_n_options): Abort if N is negative.
74597         Avoid overflow check on hosts where size_t is 64 bits and int
74598         is 32 bits, as overflow is impossible there.
74599         Fix off-by-one typo that caused unnecessary reallocation.
74601 2001-11-27  Jim Meyering  <meyering@lucent.com>
74603         * lib/tempname.c: Merge with version from libc.
74604         * lib/regex.c: Likewise.
74606         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
74607         systems for which STDC_HEADERS is 0, it was not included, resulting in
74608         a warning about an integer-to-pointer conversion problem with getenv.
74609         Reported by Volker Borchert.
74611 2001-11-26  Jim Meyering  <meyering@lucent.com>
74613         * lib/gtod.h: Remove file.
74614         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
74615         * lib/gettimeofday.c: Don't include gtod.h.
74616         (GTOD_init): Remove function.
74617         (rpl_gettimeofday): Do its job here instead, rather than aborting.
74618         Suggestion from Volker Borchert.
74620 2001-11-23  Jim Meyering  <meyering@lucent.com>
74622         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
74623         it.
74624         * lib/hash.c (struct hash_table): Define it here instead.
74626 2001-11-22  Jim Meyering  <meyering@lucent.com>
74628         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
74630 2001-11-20  Jim Meyering  <meyering@lucent.com>
74632         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
74633         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
74635 2001-11-19  Jim Meyering  <meyering@lucent.com>
74637         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
74638         directory.  Use "conftestXXXXXX" as the template.
74639         Suggestion from Paul Eggert.
74641         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
74642         immediately, so the test doesn't mistakenly hit the max-open-files
74643         limit.
74645 2001-11-18  Paul Eggert  <eggert@twinsun.com>
74647         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
74648         (TEMPORARIES): New macro.
74649         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
74650         removes an artificial limitation (e.g. HP-UX 10.20, where
74651         TMP_MAX is 17576).
74653 2001-11-18  Jim Meyering  <meyering@lucent.com>
74655         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
74657 2001-11-18  Jim Meyering  <meyering@lucent.com>
74659         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
74660         on SunOS 4.
74662         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
74663         files will be created before anything else.
74665 2001-11-17  Paul Eggert  <eggert@twinsun.com>
74667         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
74668         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
74670 2001-11-17  Jim Meyering  <meyering@lucent.com>
74672         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
74673         Prompted by a report from Bob Proulx.
74675         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
74676         Instead, require UTILS_FUNC_MKSTEMP.
74678 2001-11-17  Jim Meyering  <meyering@lucent.com>
74680         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
74681         Now, that's done as part of AC_FUNC_STRTOD.
74683 2001-11-17  Jim Meyering  <meyering@lucent.com>
74685         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
74686         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
74687         rather than group writable.  Patch by Juan F. Codagnone.
74689         * lib/readtokens.c: Remove explicit declarations of xmalloc and
74690         xrealloc, Instead, include "xalloc.h".
74692         * lib/mountlist.c: Include unlocked-io.h after all system headers.
74693         Remove explicit declarations of xmalloc, xrealloc,
74694         and xstrdup.  Instead, include "xalloc.h".
74696         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
74697         unlocked-io.h.
74698         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
74699         Likewise.
74700         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
74702         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
74703         Reported by Padraig Brady.
74705         * lib/mkstemp.c: #undef mkstemp.
74706         Include config.h.
74707         (rpl_mkstemp): Rename from mkstemp.
74708         Protoize.
74710 2001-11-16  Jim Meyering  <meyering@lucent.com>
74712         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
74713         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
74714         determine the amount of total physical memory, use pstat_getstatic.
74715         HPUX-11 doesn't define _SC_PHYS_PAGES.
74716         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
74717         If sysconf couldn't be used to determine the amount of available
74718         physical memory, use both pstat_getstatic and pstat_getdynamic.
74719         Based on a patch from Bob Proulx.
74721 2001-11-10  Jim Meyering  <meyering@lucent.com>
74723         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
74724         (jm_PREREQ): Use it.
74726 2001-11-09  Jim Meyering  <meyering@lucent.com>
74728         * m4/jm-macros.m4: Require autoconf-2.52f.
74729         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
74730         Use these AC_-prefixed names, not the AM_-prefixed ones.
74732         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
74734 2001-11-05  Jim Meyering  <meyering@lucent.com>
74736         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
74738 2001-11-04  Jim Meyering  <meyering@lucent.com>
74740         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
74741         $DEFS.
74743 2001-11-03  Jim Meyering  <meyering@lucent.com>
74745         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
74746         of AC_DEFUN.
74748         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
74749         know the name of the variable in the macro definition.
74751 2001-11-03  Jim Meyering  <meyering@lucent.com>
74753         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
74754         in argmatch_to_argument call.
74756         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
74757         argument.
74759         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
74760         e.g., a fault due to an attempt to free a NULL pointer.
74762 2001-11-01  Jim Meyering  <meyering@lucent.com>
74764         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
74765         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
74767 2001-11-01  Jim Meyering  <meyering@lucent.com>
74769         * lib/dirfd.c, lib/dirfd.h: New files.
74770         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
74772         * lib/hash.c (hash_print) [TESTING]: Clean up.
74774 2001-10-22  Paul Eggert  <eggert@twinsun.com>
74776         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
74777         to avoid a warning if -Wall.
74779 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
74781         * README: New file
74782         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
74783         (per RMS's instructions, this is now the canonical source)
74784         * lgpl/, gpl/: New directories.
74786 2001-10-21  Paul Eggert  <eggert@twinsun.com>
74788         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
74790 2001-10-21  Jim Meyering  <meyering@lucent.com>
74792         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
74793         this code would end up calling gettext even in packages built
74794         with --disable-nls.
74795         * lib/getopt.c (_): Likewise.
74796         * lib/regex.c (_): Likewise.
74798 2001-10-20  Paul Eggert  <eggert@twinsun.com>
74800         * m4/error.m4 (jm_PREREQ_ERROR):
74801         Do not invoke AC_CHECK_FUNCS with strerror_r, as
74802         AC_FUNC_STRERROR_R does that.
74803         Check for strerror declaration.
74805         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
74806         are supposed to have them these days.
74807         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
74808         Merge changes from latest Autoconf CVS.
74809         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
74810         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
74811         POSIX decided to standardize on the int flavor of strerror_r.
74813 2001-10-20  Paul Eggert  <eggert@twinsun.com>
74815         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
74816         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
74817         Use strerror_r that is only a macro, even if it is not a function.
74818         (strerror): Check for HAVE_DECL_STRERROR before declaring.
74819         (private_strerror): Use prototypes, not old-style function definition.
74820         (print_errno_message): New function.
74821         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
74822         char*-flavored one.
74823         (error_tail, error, error_at_line): Use it.
74825 2001-10-11  Jim Meyering  <meyering@lucent.com>
74827         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
74828         and quote_n (1, ... to avoid clobbering a buffer.
74830 2001-10-05  Jim Meyering  <meyering@lucent.com>
74832         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
74833         hash-pjw.h.
74834         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
74835         * lib/hash-pjw.h: New file.
74837 2001-09-30  Jim Meyering  <meyering@lucent.com>
74839         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
74840         `struct fsstat' has the `f_fstypename' member.
74841         Use that to define FS_TYPE, which is now used to make
74842         the getfsstat link test tighter.
74844 2001-09-30  Jim Meyering  <meyering@lucent.com>
74846         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
74847         Include <sys/ucred.h>, for Apple Darwin.
74848         Include sys/mount.h and sys/fs_types.h only if available.
74849         (FS_TYPE): Define.
74850         (read_filesystem_list): Use FS_TYPE.
74852 2001-09-29  Paul Eggert  <eggert@twinsun.com>
74854         * lib/exclude.c (excluded_filename): 0 -> false, since it's
74855         a boolean context.
74857 2001-09-29  Jim Meyering  <meyering@lucent.com>
74859         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
74860         [one-argument getmntent function]): Include stdio.h before mntent.h.
74861         SunOS 4.1.x needs it for the declaration of `FILE'.
74862         Patch by Volker Borchert.
74864         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
74865         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
74866         sys/fs_types.h, and make the link-test for getfsstat guard #include
74867         directives with appropriate #if HAVE_*_H tests so that we can
74868         detect getfsstat on Apple Darwin1.3.7 systems.
74869         Reported by Nelson Beebe.
74870         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
74872 2001-09-28  Paul Eggert  <eggert@twinsun.com>
74874         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
74875         #defines strtoimax.  Also treat the other strto* functions
74876         like strtoimax.
74878         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
74879         Check for strtoul and strtoumax,
74880         as those declarations are made even in the signed case.
74881         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
74882         Likewise, for strtol and strtoimax.
74884 2001-09-28  Paul Eggert  <eggert@twinsun.com>
74886         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
74887         #defines strtoimax.  Also treat the other strto* functions
74888         like strtoimax.
74890         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
74891         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
74892         (strtoimax, strtoumax): Do not declare if already defined as a macro.
74894 2001-09-26  Jim Meyering  <meyering@lucent.com>
74896         Most macros in unlocked-io.h had the wrong number of arguments.
74897         * lib/gen-uio: New script.
74898         (USE_UNLOCKED_IO): Define to 1 if not already defined.
74899         * lib/unlocked-io.hin: Remove file.
74900         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
74901         rather than trying to embed it here.
74902         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
74903         Reported by Padraig Brady.
74905 2001-09-25  Volker Borchert  <bt@teknon.de>
74907         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
74908         `result'.
74910 2001-09-24  Jim Meyering  <meyering@lucent.com>
74912         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
74914 2001-09-23  Jim Meyering  <meyering@lucent.com>
74916         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
74917         instead of the mere test for existence of mntent.h.  The latter
74918         would get a false-positive on AIX 3.4 systems.
74919         In the outer getmntent if-block, don't die if neither of the getmntent
74920         tests succeeds.  Instead, just fall through and continue with the
74921         remaining tests.
74923 2001-09-23  Jim Meyering  <meyering@lucent.com>
74925         * lib/mountlist.c: Remove useless parentheses in #if directives.
74926         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
74927         the deprecated MOUNTED symbol is no longer defined in mntent.h.
74929 2001-09-22  Jim Meyering  <meyering@lucent.com>
74931         * m4/gettext.m4: New file.  From gettext.
74932         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
74933         * m4/progtest.m4: Likewise
74934         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
74935         * m4/glibc21.m4: Likewise.
74937         * m4/libintl.m4: Remove.  No longer used.
74939 2001-09-22  Jim Meyering  <meyering@lucent.com>
74941         * lib/localcharset.c: Update from latest gettext.
74942         * lib/config.charset: Likewise.
74944 2001-09-20  Jim Meyering  <meyering@lucent.com>
74946         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
74947         strtoimax.
74948         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
74949         strtoumax.
74951 2001-09-20  Jim Meyering  <meyering@lucent.com>
74953         * lib/xstrtol.c (strtoimax): Guard declaration with
74954         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
74955         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
74956         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
74957         (strtoumax): Likewise, for completeness (it wasn't necessary).
74959 2001-09-17  Paul Eggert  <eggert@twinsun.com>
74961         * lib/strtoimax.c (HAVE_LONG_LONG):
74962         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
74963         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
74964         to work around bug in IBM C compiler.
74966 2001-09-17  Jim Meyering  <meyering@lucent.com>
74968         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
74969         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
74970         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
74971         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
74972         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
74973         whenever the right hand side need not be expanded by the shell.
74975 2001-09-16  Paul Eggert  <eggert@twinsun.com>
74977         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
74978         library.  It's not correct, as some older glibcs are buggy.
74979         fnmatch wasn't fixed until glibc 2.2.
74981         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
74982         special shell magic here.
74984 2001-09-16  Jim Meyering  <meyering@lucent.com>
74986         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
74987         * m4/jm-macros.m4: Require it.
74989 2001-09-16  Jim Meyering  <meyering@lucent.com>
74991         * lib/mkdir.c: New file.
74993 2001-09-15  Jim Meyering  <meyering@lucent.com>
74995         * m4/jm-macros.m4: Check for help2man.
74997 2001-09-11  Jim Meyering  <meyering@lucent.com>
74999         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
75000         The body, by Paul Eggert, was moved here from configure.in.
75001         * m4/jm-macros.m4: Require UTILS_HOST_OS.
75003 2001-09-04  Paul Eggert  <eggert@twinsun.com>
75005         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
75006         (jm_PREREQ): Use it.
75008 2001-09-04  Paul Eggert  <eggert@twinsun.com>
75010         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
75011         Use ssize_t, not int, to store result of readlink.
75012         Check for ssize_t overflow as well as size_t overflow,
75013         as POSIX says the result of readlink is implementation-defined
75014         when ssize_t overflows.
75015         Remove unnecessary cast to char*.
75016         Use free+malloc instead of realloc, as the storage doesn't need
75017         to be preserved and it's clearer and can be more efficient that way.
75018         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
75019         * lib/xreadlink.h (xreadlink): Update prototype.
75021 2001-09-04  Paul Eggert  <eggert@twinsun.com>
75023         * lib/xgetcwd.c: Revert some of the previous change; intead,
75024         fix the HAVE_GETCWD_NULL code to behave more like the
75025         !HAVE_GETCWD_NULL code used to.
75027         Include "xalloc.h".
75028         (xgetcwd): Do not return NULL when memory is exhausted; instead,
75029         invoke xalloc_die.
75031 2001-09-03  Paul Eggert  <eggert@twinsun.com>
75033         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
75034         sys/param.h, as pathmax.h includes them.
75036 2001-09-03  Paul Eggert  <eggert@twinsun.com>
75038         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
75039         (jm_PREREQ_XGETCWD): New macro.
75041         * m4/getcwd.m4: New file.
75043 2001-09-03  Paul Eggert  <eggert@twinsun.com>
75045         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
75046         like the HAVE_GETCWD_NULL code.
75047         Include pathmax.h if not HAVE_GETCWD.
75048         Do not include xalloc.h.
75049         (INITIAL_BUFFER_SIZE): New symbol.
75050         Do not use xmalloc / xrealloc, since the caller is responsible for
75051         handling errors.  Preserve errno around `free' during failure.
75052         Do not overrun buffer when using getwd.
75054 2001-09-03  Paul Eggert  <eggert@twinsun.com>
75056         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
75057         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
75058         getcwd (NULL, 0).
75060 2001-09-03  Paul Eggert  <eggert@twinsun.com>
75062         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
75063         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
75064         spotted by Jim Meyering.
75066 2001-09-03  Jim Meyering  <meyering@lucent.com>
75068         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
75069         failure.
75071 2001-09-02  Jim Meyering  <meyering@lucent.com>
75073         * lib/error.c: Update from GNU libc.
75075 2001-09-01  Jim Meyering  <meyering@lucent.com>
75077         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
75078         Used by df.
75080 2001-09-01  Jim Meyering  <meyering@lucent.com>
75082         * lib/xreadlink.c: New file.
75083         * lib/xreadlink.h: New file.
75084         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
75085         xreadlink.h.
75087         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
75088         doesn't conflict with sparc Solaris 7's definition in
75089         /usr/include/sys/int_types.h.
75091         * lib/exclude.c: Use `""', not `<>' to #include non-system header
75092         files.
75093         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
75094         and strncasecmp as r-values.  Unixware didn't have declarations.
75096 2001-08-31  Paul Eggert  <eggert@twinsun.com>
75098         * lib/xstrtol.h: Add copyright notice.
75099         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
75100         LONGINT_INVALID_SUFFIX_CHAR.
75102 2001-08-31  Paul Eggert  <eggert@twinsun.com>
75104         * lib/xstrtol.c (strtoimax): New decl.
75106 2001-08-31  Paul Eggert  <eggert@twinsun.com>
75108         * lib/xgetcwd.c: Don't include pathmax.h.
75109         Include stdlib.h and unistd.h if available.
75110         Include xalloc.h.
75111         (xmalloc, xstrdup, free): Remove decls.
75112         (xgetcwd): Don't assume sizes fit in unsigned.
75113         Check for overflow when computing sizes.
75114         Simplify reallocation code.
75116 2001-08-31  Paul Eggert  <eggert@twinsun.com>
75118         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
75119         a directory's st_size can have an arbitrary value, so the old
75120         usage could waste an arbitrary amount of memory.  All uses
75121         changed.
75122         * lib/savedir.h: Update prototype.
75124 2001-08-31  Paul Eggert  <eggert@twinsun.com>
75126         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
75128         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
75129         old strtoimax.c.
75131         Also, make the following further changes to make this file's
75132         configuration more similar to that of strtol.c:
75133         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
75134         (strtoumax, uintmax_t, strtoull, strtol): Remove.
75135         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
75136         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
75137         changed to signed values.
75139         And make the following changes as well:
75140         Fix copyright notice, as 1999 was missing.
75141         (verify): New macro.
75142         (strtoimax): Check sizes at compile-time, not run-time.
75143         Prefer strtol to strtoll if both work.
75144         (main): Remove; it was not that useful and was a pain to maintain.
75146         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
75148 2001-08-31  Jim Meyering  <meyering@lucent.com>
75150         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
75151         Use an initial, malloc'd, buffer of length 128 rather than
75152         a statically allocated one of length 1024.
75154 2001-08-30  Paul Eggert  <eggert@twinsun.com>
75156         Simplify code, partly by assuming autoconf 2.52 semantics.
75158         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
75160         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
75161         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
75162         All uses removed.
75163         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
75164         Move AC_REQUIRE to next-to-top level, to avoid confusion.
75165         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
75166         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
75167         jm_AC_HEADER_INTTYPES_H.
75168         * m4/jm-macros.m4 (jm_MACROS): Likewise.
75170         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
75172         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
75173         Quote first arg of AC_DEFUN.
75174         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
75175         since they are needed to parse the include file even if we need
75176         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
75177         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
75178         but with opposite signedness.
75180 2001-08-30  Paul Eggert  <eggert@twinsun.com>
75182         Merge 'exclude' changes from tar 1.13.22.
75183         This fixes one or two unlikely storage allocation overflow bugs,
75184         but doesn't change user-visible behavior otherwise.
75186 2001-08-30  Paul Eggert  <eggert@twinsun.com>
75188         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
75189         (jm_PREREQ_EXCLUDE): New macro.
75191 2001-08-30  Paul Eggert  <eggert@twinsun.com>
75193         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
75194         tm to be declared.
75196 2001-08-30  Paul Eggert  <eggert@twinsun.com>
75198         * lib/hash.c: Remove '2001' from copyright notice.
75200 2001-08-30  Paul Eggert  <eggert@twinsun.com>
75202         * lib/full-write.h: New file.
75203         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
75204         * lib/full-write.c: Correct credits, as cccp.c no longer
75205         exists and anyway it was so heavily changed from the old cccp
75206         code as to be unrecognizable.  Include full-write.h.
75207         (full_write) Return size_t, with short writes meaning failure.
75208         All callers changed.  This fixes a bug with large buffers
75209         on 64-bit hosts.
75210         * lib/utime.c: Include full-write.h.
75212 2001-08-30  Paul Eggert  <eggert@twinsun.com>
75214         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
75215         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
75216         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
75217         Include if available.
75218         (<xalloc.h>): Include
75219         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
75220         (verify): New macro.  Use it to verify that EXCLUDE macros do not
75221         collide with FNM macros.
75222         (struct patopts): New struct.
75223         (struct exclude): Use it, as exclude patterns now come with options.
75224         (new_exclude): Support above changes.
75225         (new_exclude, add_exclude_file):
75226         Initial size must now be a power of two to simplify overflow checking.
75227         (free_exclude, fnmatch_no_wildcards): New function.
75228         (excluded_filename): No longer requires options arg, as the options
75229         are determined by add_exclude.  Now returns bool, not int.
75230         (excluded_filename, add_exclude):
75231         Add support for the fancy new exclusion options.
75232         (add_exclude, add_exclude_file): Now takes int options arg.
75233         Check for arithmetic overflow when computing sizes.
75234         (add_exclude_file): xrealloc might modify errno, so don't
75235         realloc until after errno might be used.
75237         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
75238         New macros.
75239         (free_exclude): New decl.
75240         (add_exclude, add_exclude_file): Now takes int options arg.
75241         (excluded_filename): No longer requires options arg, as the options
75242         are determined by add_exclude.  Now returns bool, not int.
75244 2001-08-30  Paul Eggert  <eggert@twinsun.com>
75246         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
75248 2001-08-27  Jim Meyering  <meyering@lucent.com>
75250         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
75252         * lib/version-etc.c (N_): Remove definition.
75253         Revert most of last change.
75254         Instead, simply don't mark the `Copyright...' string for translation.
75255         Based on advice from Paul Eggert.
75257         * lib/strtoxmax.c: Tweak comment.
75259 2001-08-26  Jim Meyering  <meyering@lucent.com>
75261         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
75263         * m4/xstrtoimax.m4: New file.
75264         * m4/xstrtoumax.m4: Add comments explaining why we
75265         AC_REPLACE_FUNCS(strtol).
75267 2001-08-26  Jim Meyering  <meyering@lucent.com>
75269         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
75270         of copyright with `%s' so translators don't get an untranslated
75271         message in 2002.
75272         (COPYRIGHT_YEAR): Define.
75273         (version_etc): Use fprintf rather than fputs.
75274         Suggestion from Ulrich Drepper.
75276         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
75278         * lib/strtoll.c: New file, from GNU libc.
75279         * lib/xstrtoimax.c: New file.
75281         * lib/xstrtol.h: Add xstrtoimax.
75282         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
75283         * lib/strtoimax.c: New file.  Likewise, but first define
75284         STRTOUXMAX_SIGNED.
75286         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
75287         ...
75288         * lib/strtoxmax.c: ... then renamed to this.
75290 2001-08-18  Paul Eggert  <eggert@twinsun.com>
75292         * m4/inttypes.m4: Add AC_PREREQ(2.13).
75293         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
75294         (jm_AC_TYPE_INTMAX_T): New macro.
75295         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
75297         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
75299         * m4/longlong.m4: Renamed from ulonglong.m4.
75300         * m4/inttypes.m4: Renamed from inttypes_h.m4.
75301         * m4/uintmax_t.m4: Removed.
75303 2001-08-13  Paul Eggert  <eggert@twinsun.com>
75305         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
75306         Port to Solaris 8, where 'sed' requires a space after the 'r'
75307         command, and where sh dislikes "$/".  Clean up the spacing a bit.
75308         Redirect output to $tmp just once.
75310 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
75312         * lib/addext.c (<errno.h>): Include.
75313         (errno): Declare if not defined.
75314         (addext): Work correctly when pathconf returns -1 and leaves
75315         errno alone because there is no limit.  Also, work even if
75316         pathconf returns a value greater than SIZE_MAX.
75318 2001-08-12  Jim Meyering  <meyering@lucent.com>
75320         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
75321         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
75322         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
75323         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
75324         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
75325         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
75326         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
75327         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
75328         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
75329         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
75330         utime.m4, utimes.m4, xstrtoumax.m4:
75331         Quote the first argument in each use of AC_DEFUN.
75333 2001-08-12  Jim Meyering  <meyering@lucent.com>
75335         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
75336         Simply `return getcwd (NULL, 0);'.
75337         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
75338         Use 1300 as initial value for length, not PATH_MAX.
75340         * lib/pathmax.h: Clean up cpp syntax.
75342 2001-08-12  Jim Meyering  <meyering@lucent.com>
75344         * lib/gettimeofday.c: New file.
75345         * lib/gtod.h: New file.
75346         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
75348 2001-08-05  Jim Meyering  <meyering@lucent.com>
75350         * m4/jm-macros.m4: Require autoconf-2.52.
75352 2001-08-04  Jim Meyering  <meyering@lucent.com>
75354         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
75355         stmt, to get in sync with glibc.
75357 2001-08-03  Paul Eggert  <eggert@twinsun.com>
75359         The following changes are from gettext 0.10.39 as maintained by
75360         Bruno Haible.
75362         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
75363         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
75364         with inverted sense.  All uses changed.
75366         * lib/mbswidth.c: Don't include <limits.h>.
75367         Include <stdlib.h> and <string.h> unconditionally.
75368         (iswcntrl, mbsinit, ISCNTRL): New macros.
75369         (mbsnwidth): Use K&R style function declarations.
75370         Don't bother checking for MB_LEN_MAX == 1, since the compiler
75371         can optimize it when MB_CUR_MAX == 1.
75372         The width of control characters is zero, not 1.
75374 2001-08-03  Paul Eggert  <eggert@twinsun.com>
75376         The following changes are from gettext 0.10.39 as maintained by
75377         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
75379         * m4/codeset.m4: Upgrade to serial AM1.
75380         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
75381         all uses changed.  Quote first arg of AC_DEFUN.
75382         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
75384         * m4/iconv.m4: Upgrade to serial AM2.
75385         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
75386         Add --with-libconv-prefix.
75387         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
75388         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
75389         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
75390         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
75391         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
75393         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
75394         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
75395         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
75396         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
75397         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
75398         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
75399         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
75400         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
75401         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
75403         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
75404         string.h any more.
75406         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
75407         not the default value.
75409         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
75410         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
75411         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
75412         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
75413         Also check for iswcntrl, used for wcwidth fallback.
75414         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
75415         to Autoconf 2.13.
75417 2001-08-03  Jim Meyering  <meyering@lucent.com>
75419         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
75420         as it was in the original.  Reported by Paul Eggert.
75422 2001-07-16  Jim Meyering  <meyering@lucent.com>
75424         * m4/gettimeofday.m4: New file.
75425         Prompted by a report from Bernhard Baehr.
75427 2001-07-15  Jim Meyering  <meyering@lucent.com>
75429         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
75430         stuff. Now it's in ../Makefile.cfg.
75432 2001-07-15  Jim Meyering  <meyering@lucent.com>
75434         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
75435         (BUILT_SOURCES): Add unlocked-io.h.
75436         (io_functions): Define.
75437         (unlocked-io.h): New rule.
75438         (DISTCLEANFILES): Add unlocked-io.h.
75439         (all-local): Depend on unlocked-io.h, to ensure it is created.
75441         * lib/unlocked-io.hin: New file
75443         * lib/regex.c: Update from glibc.
75445 2001-07-05  Jim Meyering  <meyering@lucent.com>
75447         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
75448         recommendation.
75449         (libfetish_a_SOURCES): Put all .h files here instead.
75450         Remove a thus-exposed (better checks in automake) duplicate and
75451         two unnecessary .h files.
75453 2001-07-04  Jim Meyering  <meyering@lucent.com>
75455         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
75456         that generates jm-glibc-io.m4 so that it doesn't trigger any make
75457         distcheck failure.
75459 2001-07-02  Jim Meyering  <meyering@lucent.com>
75461         The following changes were prompted by suggestions from Bruno Haible.
75463         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
75464         is now generated.
75465         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
75466         definition of EXTRA_DIST.
75467         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
75468         ensure that the generated file is created/updated whenever the list
75469         of $(unlocked_functions) is changed.
75470         (jm-glibc-io.m4): New rule.
75471         (unlocked-io.h): New rule -- currently unused.
75473 2001-06-24  Jim Meyering  <meyering@lucent.com>
75475         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
75476         unmatched right bracket, rather than kludging it with an extra,
75477         falsely-matching quote in a comment.  Patch by Akim Demaille.
75479 2001-06-11  Jim Meyering  <meyering@lucent.com>
75481         * lib/regex.c: Update from GNU libc.
75483 2001-05-27  Jim Meyering  <meyering@lucent.com>
75485         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
75486         Check for ut_type in struct utmp.
75488 2001-05-27  Jim Meyering  <meyering@lucent.com>
75490         * lib/readutmp.h (UT_TYPE): Define.
75492 2001-05-24  Jim Meyering  <meyering@lucent.com>
75494         * lib/argmatch.c: Include "quote.h".
75495         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
75496         quote function.  Reported by Göran Uddeborg.
75498 2001-05-22  Jim Meyering  <meyering@lucent.com>
75500         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
75501         now that we use the package-supplied version unconditionally.
75502         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
75504 2001-05-21  Jim Meyering  <meyering@lucent.com>
75506         * m4/regex.m4: Change a couple backticks to single quotes to avoid
75507         shell syntax errors.
75509 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
75511         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
75513 2001-05-20  Paul Eggert  <eggert@twinsun.com>
75515         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
75516         Don't bother to check library strftime, since
75517         we'll be using our own my_strftime function anyway.
75518         Define my_strftime instead of strftime.
75520 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
75522         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
75523         which is not yet declared.
75525 2001-05-15  Jim Meyering  <meyering@lucent.com>
75527         * m4/regex.m4: Use proper quoting so brackets appear in the test
75528         program.
75529         Reported by, and with help from, Bruno Haible.
75531 2001-05-13  Jim Meyering  <meyering@lucent.com>
75533         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
75534         undefined.
75536 2001-05-11  Paul Eggert  <eggert@twinsun.com>
75538         dirname code cleanup.  base_name now behaves more compatibly
75539         with POSIX basename when given file names that have trailing
75540         slashes, and similarly for dir_name.  Add new primitives
75541         base_len and dir_len.  Put the directory-name-related decls
75542         into dirname.h.
75544         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
75545         * lib/backupfile.c (base_name): Likewise.
75546         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
75547         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
75548         * lib/makepath.c (strip_trailing_slashes): Likewise.
75549         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
75550         ISSLASH): Likewise.
75551         * lib/rename.c (strip_trailing_slashes): Likewise.
75552         * lib/same.c (base_name): Likewise.
75553         * lib/stripslash.c (ISSLASH): Likewise.
75555         * lib/addext.c: Include <dirname.h> after size_t is defined.
75556         * lib/backupfile.c: Likewise.
75558         * lib/addext.c (addext): Use base_len to trim redundant
75559         trailing slashes instead of doing it ourselves.
75560         But do not trim the last slash if it is not redundant.
75562         * lib/backupfile.c (find_backup_file_name,
75563         max_backup_version): Use base_len instead of rolling it ourselves.
75564         Handle the case of "" and (on DOS) "C:" correctly.
75566         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
75567         needed. Include <string.h>, <dirname.h>.
75568         (base_name): Allow file names ending in slashes, other than names
75569         that are all slashes.  In this case, return the basename followed
75570         by the slashes.  This is more general, and can be used in places
75571         where the original base_name purposely had an assertion failure.
75572         (base_len): New function.
75574         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
75575         Do not include <assert.h>; no longer needed.
75576         Include xalloc.h.
75577         (memrchr): Remove decl.
75578         (dir_name_r): Remove.
75579         (dir_len): Renamed from dirlen.  All callers changed.
75580         Rewrite in terms of base_name, for simplicity and consistency.
75581         (dir_name): Never return NULL.  All callers changed.
75582         Do not include <stdlib.h> in test program; no longer needed.
75583         return 0; is fine for test program.
75585         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
75586         New macros.
75587         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
75589         * lib/path-concat.c (path_concat): Use base_len to compute
75590         base length, not strlen; this means we cannot rely on memcpy
75591         to null-terminate.
75593         * lib/same.c (STREQ): Remove.
75594         (same_name): Handle the case where the basename ends in trailing '/'.
75596         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
75597         a slash was stripped.  Do not strip the last slash after a
75598         file system prefix.
75600 2001-05-11  Paul Eggert  <eggert@twinsun.com>
75602         * lib/Makefile.am (libfetish_a_SOURCES):
75603         Add strftime.c, since we now compile it on all hosts.
75605         * lib/strftime.c (my_strftime):
75606         Define to nstrftime if emacs, but only if my_strftime is not defined.
75607         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
75608         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
75609         Add one more extra argument: a nanoseconds value.
75610         All uses changed.
75611         (ns): New macro.
75612         (my_strftime function): Add %N format.
75613         (emacs_strftimeu): Renamed from emacs_strftime,
75614         with extra ut argument.
75616 2001-05-09  Paul Eggert  <eggert@twinsun.com>
75618         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
75620 2001-04-21  Jim Meyering  <meyering@lucent.com>
75622         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
75623         doesn't interfere.
75625 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
75627         * m4/ftruncate.m4: Check for chsize.
75628         Link with ftruncate.o unconditionally if ftruncate is missing.
75629         This was required when cross-compiling to i586-mingw32msvc.
75631 2001-04-08  Jim Meyering  <meyering@lucent.com>
75633         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
75634         recomputed; that's necessary when the offset spans a DST transition.
75635         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
75637 2001-04-02  Jim Meyering  <meyering@lucent.com>
75639         * lib/regex.h, regex.c: Update from GNU libc.
75641 2001-03-24  Jim Meyering  <meyering@lucent.com>
75643         * m4/jm-macros.m4: Require autoconf-2.49d.
75645 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
75647         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
75649 2001-03-19  Paul Eggert  <eggert@twinsun.com>
75651         * lib/version-etc.c (version_etc_copyright): Update to 2001.
75653 2001-03-17  Jim Meyering  <meyering@lucent.com>
75655         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
75656         now that the version in autoconf is equivalent.
75657         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
75659         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
75660         Suggestion from Akim Demaille.
75662         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
75663         (jm_PREREQ_TEMPNAME): New function.
75665 2001-03-16  Paul Eggert  <eggert@twinsun.com>
75667         * lib/tempname.c (uint64_t): Define to uintmax_t if
75668         not defined, and if UINT64_MAX is not defined.
75669         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
75670         Reported by John David Anglin.
75672 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
75674         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
75675         resolve alias if codeset is empty.
75676         * lib/config.charset (BeOS): Use wildcard syntax.
75678 2001-03-13  Jim Meyering  <meyering@lucent.com>
75680         * lib/path-concat.c (path_concat)
75681         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
75682         concatenating e.g., `C:' and `foo'.
75683         From Bruno Haible.
75685 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
75687         * lib/localcharset.c (locale_charset): Don't use
75688         setlocale(LC_CTYPE,NULL). Don't return NULL.
75689         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
75691 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
75693         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
75694         support for DOS/DJGPP.
75696 2001-03-01  Paul Eggert  <eggert@twinsun.com>
75698         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
75699         lacks mkstemp.  Compile our own tempname.c if we compile our own
75700         mkstemp.c, as mkstemp relies on tempname.
75702 2001-03-01  Jim Meyering  <meyering@lucent.com>
75704         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
75705         AH_VERBATIM really does output its argument verbatim.
75707 2001-02-28  Paul Eggert  <eggert@twinsun.com>
75709         * lib/Makefile.am (libfetish_a_SOURCES):
75710         Add dup-safer.c, fopen-safer.c.
75711         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
75713         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
75714         * lib/unistd-safer.h: New files.
75716 2001-02-25  Paul Eggert  <eggert@twinsun.com>
75718         The mkstemp replacement is taken from glibc 2.2.2, with some
75719         portability fixes for use outside glibc, as follows:
75721         * lib/tempname.c (struct_stat64): New macro.
75722         (direxists, __gen_tempname): Use it.
75723         This avoids a portability problem with Solaris 8.
75725         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
75726         (<stddef.h>, <stdint.h>, <string.h>):
75727         Include only if STDC_HEADERS || _LIBC.
75728         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
75729         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
75730         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
75731         (__set_errno): Define this macro if <errno.h> doesn't.
75732         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
75733         Define these macros if <stdio.h> doesn't.
75734         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
75735         Define these macros if <sys/stat.h>
75736         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
75737         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
75738         __xstat64): Define if not _LIBC.
75739         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
75740         (__gen_tempname): Invoke gettimeofday only if
75741         HAVE_GETTIMEOFDAY || _LIBC;
75742         otherwise, fall back on plain "time".
75743         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
75745         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
75747         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
75749 2001-02-18  Paul Eggert  <eggert@twinsun.com>
75751         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
75753 2001-02-17  Paul Eggert  <eggert@twinsun.com>
75755         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
75756         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
75757         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
75758         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
75760 2001-02-17  Paul Eggert  <eggert@twinsun.com>
75762         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
75763         Remove workaround macros for hosts that have mbrtowc but not
75764         mbstate_t, as we now insist on proper declarations for both
75765         before using mbrtowc.
75767 2001-02-17  Jim Meyering  <meyering@lucent.com>
75769         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
75770         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
75771         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
75772         UnixWare 7.1.1.
75774         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
75775         rather than AC_CACHE_VAL.
75777 2001-02-17  Jim Meyering  <meyering@lucent.com>
75779         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
75780         around included file name.
75782         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
75784         * lib/strftime.c: Update from GNU libc (the only changes were to
75785         comments).
75787 2001-02-17  Jim Meyering  <meyering@lucent.com>
75789         * lib/regex.c: Update from libc.
75791 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
75793         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
75794         clash.
75796 2001-02-16  Paul Eggert  <eggert@twinsun.com>
75798         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
75799         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
75800         Reported by Mark Hounschell via Paul Eggert.
75802 2001-02-07  Jim Meyering  <meyering@lucent.com>
75804         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
75806 2001-02-05  Jim Meyering  <meyering@lucent.com>
75808         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
75809         it includes the patch required for `large file' support with at least
75810         HP-UX's 10.20 /bin/cc.
75812 2001-02-03  Jim Meyering  <meyering@lucent.com>
75814         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
75815         AS_IF, now that it works once again (mysteriously).
75816         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
75818 2001-01-30  Jim Meyering  <meyering@lucent.com>
75820         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
75821         * m4/chown.m4: Rename conftestchown to conftest.chown.
75822         * m4/rename.m4: s/conftestdir/conftest.d1/ and
75823         s/conftestdir2/conftest.d2/.
75824         * m4/utimes.m4: s/conftestdata/conftest.data/
75825         Inspired by Pavel Roskin's change in autoconf.
75827 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
75829         * lib/config.charset: Update for FreeBSD 4.2.
75831 2001-01-27  Jim Meyering  <meyering@lucent.com>
75833         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
75834         a use of AS_IF.
75835         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
75837 2001-01-26  Jim Meyering  <meyering@lucent.com>
75839         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
75840         quotearg.c includes it.
75842 2001-01-26  Jim Meyering  <meyering@lucent.com>
75844         * lib/quotearg.c: Include stddef.h.
75845         * lib/quote.c: Include stddef.h.
75846         Reported by Axel Kittenberger.
75848         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
75849         line in double quotes so that it evokes a better diagnostic.
75850         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
75851         Reported by Axel Kittenberger.
75853 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
75855         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
75856         as if it was a `charset'.
75858 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
75860         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
75861         has const.
75863 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
75865         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
75866         to avoid a warning.  Add back 'const' to inptr.
75868 2001-01-20  Jim Meyering  <meyering@lucent.com>
75870         Be sure that headers are checked before used in code compiled
75871         for the type checks.
75872         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
75873         In place of that, invoke jm_CHECK_ALL_TYPES.
75874         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
75875         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
75876         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
75877         The check for ssize_t was mistakenly run before the test for unistd.h.
75879         The configure-time check for stdbool.h was missing.
75880         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
75881         (jm_PREREQ_HASH): New function.
75883 2001-01-17  Jim Meyering  <meyering@lucent.com>
75885         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
75886         for autoconf-2.49c.
75887         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
75889 2001-01-16  Jim Meyering  <meyering@lucent.com>
75891         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
75892         From Bruno Haible.
75894 2001-01-14  Jim Meyering  <meyering@lucent.com>
75896         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
75897         foo and bar.  Create conftestdir/ in the script, not in the C code.
75898         Remove directories in the script, not in the C code.
75899         Remove conftestdir{,2} before trying to create the directory.
75900         Make the entire configure script fail if the mkdir fails.
75902 2001-01-14  Jim Meyering  <meyering@lucent.com>
75904         * lib/rename.c: New file.  From Volker Borchert.
75905         Include stdlib.h, string.h or strings.h, and xalloc.h.
75906         Use strip_trailing_slashes rather than open-coding it.
75908 2001-01-03  Paul Eggert  <eggert@twinsun.com>
75910         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
75912 2001-01-03  Jim Meyering  <meyering@lucent.com>
75914         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
75915         of local `inptr' to avoid warning with some system declarations of
75916         iconv.
75918 2001-01-02  Volker Borchert  <bt@teknon.de>
75920         * m4/rename.m4: New file.
75921         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
75923 2001-01-01  Jim Meyering  <meyering@lucent.com>
75925         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
75926         even on systems with utmpx.h.  It's necessary for the declaration of
75927         utmp's ut_user member.  Reported by Andreas Jaeger.
75929         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
75930         available. They are required for the declarations of getgrgid and
75931         getpwuid resp.
75932         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
75933         Reported by Andreas Jaeger.
75935 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
75937         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
75938         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
75939         so `make install' also works in VPATH builds.
75941 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
75943         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
75944         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
75945         can be used in subdirectories.
75947 2000-12-29  Paul Eggert  <eggert@twinsun.com>
75949         * lib/modechange.c: Do not assume that mode_t uses the
75950         traditional octal encoding.  E.g. "chmod 1 FOO" should set
75951         the other-execute bit of FOO even if S_IXOTH != 1.
75953         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
75954         WOTH, XOTH, ALLM): New macros.
75955         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
75956          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
75957         Use them.
75958         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
75959         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
75960         (mode_compile):
75961         No need to use uintmax_t; unsigned long is long enough.
75962         Don't bother to get suffix since we don't use it.
75964 2000-12-26  Jim Meyering  <meyering@lucent.com>
75966         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
75967         better with autoheader.
75969 2000-12-24  Jim Meyering  <meyering@lucent.com>
75971         * lib/hash.c (is_prime): Return explicit boolean values.
75972         (hash_get_first): Return NULL to appease Irix5.6's 89.
75973         Reported by Nelson Beebe.
75975 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
75977         * lib/localcharset.c (locale_charset): Add support for Win32.
75979 2000-12-18  Paul Eggert  <eggert@twinsun.com>
75981         * lib/physmem.h, lib/physmem.c: New files.
75983         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
75984         (noinst_HEADERS): Add physmem.h.
75986         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
75987         't' for compatibility with Solaris 8 sort.
75989 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
75991         * lib/config.charset: Add support for BeOS.
75993 2000-12-17  Jim Meyering  <meyering@lucent.com>
75995         * m4/dos.m4 (jm_AC_DOS): New file and macro.
75996         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
75998 2000-12-16  Jim Meyering  <meyering@lucent.com>
76000         This bug had a serious impact on chown: `chown N:M FILE' (for integer
76001         N and M) would have treated it like `chown N:N FILE'.
76003         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
76005 2000-12-16  Jim Meyering  <meyering@lucent.com>
76007         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
76008         SHELLS_FILE to a file name that's useful on djgpp systems.
76009         Include stdlib.h.
76010         (ADDITIONAL_DEFAULT_SHELLS): Define.
76011         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
76012         Based mostly on a patch from Prashant TR.
76014 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
76016         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
76017         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
76018         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
76020 2000-12-08  Andreas Schwab  <schwab@suse.de>
76022         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
76023         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
76025 2000-12-07  Jim Meyering  <meyering@lucent.com>
76027         * lib/stripslash.c (ISSLASH): Define.
76028         (strip_trailing_slashes): Use ISSLASH rather than comparing against
76029         `/'.
76030         From Prashant TR.
76032         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
76033         (dir_name_r): Declare this function as static.
76034         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
76035         manifest itself on a name containing a mix of slashes and
76036         backslashes.
76037         Make this function work with names starting with a DOS-style
76038         drive letter and colon prefix.
76039         (dir_name): Append `.' if necessary.
76040         Based mostly on patches from Prashant TR and Eli Zaretskii.
76042         * lib/dirname.h (dir_name_r): Remove prototype.
76044 2000-12-06  Paul Eggert  <eggert@twinsun.com>
76046         * m4/off_t-format.m4: Remove this file.
76047         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
76049 2000-12-06  Jim Meyering  <meyering@lucent.com>
76051         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
76052         replacement strtoull, we may well need the replacement strtoul, too.
76053         Check for declarations of strtoul and strtoull.
76054         Check for strtol.  Mainly as a cue to cause automake to include
76055         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
76056         Check for limits.h -- strtol.c needs it.
76058 2000-12-05  Jim Meyering  <meyering@lucent.com>
76060         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
76062 2000-12-04  Jim Meyering  <meyering@lucent.com>
76064         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
76065         Also include memory.h, stdlib.h, unistd.h if appropriate.
76066         Reported by Andreas Jaeger (conflicting declaration of malloc).
76068 2000-12-02  Jim Meyering  <meyering@lucent.com>
76070         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
76071         * m4/jm-macros.m4 (jm_MACROS): require it.
76073 2000-12-02  Jim Meyering  <meyering@lucent.com>
76075         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
76077 2000-12-01  Paul Eggert  <eggert@twinsun.com>
76079         * lib/memrchr.c: Include <config.h> before any system include file.
76081 2000-11-30  Jim Meyering  <meyering@lucent.com>
76083         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
76085 2000-11-30  Jim Meyering  <meyering@lucent.com>
76087         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
76089 2000-11-29  Paul Eggert  <eggert@twinsun.com>
76091         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
76093 2000-11-26  Jim Meyering  <meyering@lucent.com>
76095         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
76097 2000-11-22  Paul Eggert  <eggert@twinsun.com>
76099         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
76100         size of (size_t) -1; it's not portable.
76102 2000-11-17  Jim Meyering  <meyering@lucent.com>
76104         * lib/strstr.c: Update from GNU libc.
76106 2000-11-17  Akim Demaille  <akim@epita.fr>
76108         * lib/obstack.h: Formatting changes.
76109         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
76110         prevent type checking.
76111         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
76112         cast the value to (void *): assigning a `foo *' to a `void *'
76113         variable is valid.
76114         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
76116 2000-11-16  Jim Meyering  <meyering@lucent.com>
76118         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
76120 2000-11-11  Jim Meyering  <meyering@lucent.com>
76122         * lib/error.c: Add a couple #includes, merging from GNU libc version.
76124 2000-11-10  Jim Meyering  <meyering@lucent.com>
76126         * lib/obstack.h: Update from GNU libc.
76127         * lib/obstack.c: Likewise.
76129 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
76131         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
76133 2000-11-06  Paul Eggert  <eggert@twinsun.com>
76135         * lib/getusershell.c (setusershell): Use rewind rather than
76136         fseek/fseeko, to avoid configuration hassles with fseeko.
76137         Don't bother opening SHELLS_FILE if shellstream is NULL;
76138         it's not necessary.
76140 2000-11-05  Jim Meyering  <meyering@lucent.com>
76142         * lib/makepath.h (make_dir): Declare.
76143         * lib/makepath.c (make_dir): Remove `static' attribute.
76144         Tweak a comment.
76146 2000-11-04  Jim Meyering  <meyering@lucent.com>
76148         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
76150 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
76152         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
76153         last one in a bucket, advance to the next bucket.
76155 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
76157         * lib/fnmatch.c: Do not comment out all the code if we are using
76158         the GNU C library, because in some cases we are replacing buggy
76159         code in the GNU C library itself.
76161 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
76163         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
76164         (regex_compile): Catch bogus \(\1\).
76166 2000-10-30  Paul Eggert  <eggert@twinsun.com>
76168         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
76169         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
76170         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
76172 2000-10-30  Paul Eggert  <eggert@twinsun.com>
76174         * lib/error.h, getline.h, modechange.h:
76175         Remove "2000" from Copyright line, as the file hasn't been
76176         changed this year other than in the copyright notice.
76178         * lib/xalloc.h: Add "2000" to Copyright line, as this file
76179         was changed this year.
76181 2000-10-29  Jim Meyering  <meyering@lucent.com>
76183         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
76184         renaming.
76185         * m4/ls-mntd-fs.m4: Likewise
76187 2000-10-29  Jim Meyering  <meyering@lucent.com>
76189         * lib/xstat.in: Fix grammar in comment.
76191 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
76193         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
76194         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
76195         doesn't define __restrict_arr.
76197 2000-10-28  Jim Meyering  <meyering@lucent.com>
76199         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
76200         (jm_PREREQ_MEMCHR): New function.
76202 2000-10-28  Jim Meyering  <meyering@lucent.com>
76204         * lib/memchr.c: Update from libc.
76205         Adjust for portability:
76206         [HAVE_STDLIB_H]: Include stdlib.h.
76207         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
76208         Undef __memchr, too.
76209         [!weak_alias]: Define __memchr to memchr.
76211         * lib/regex.c: Update from libc.
76212         * lib/regex.h: Likewise.
76213         * lib/getopt1.c: Likewise.
76214         * lib/memcmp.c: Likewise.
76216         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
76217         Avoid using fseek, when possible -- it's broken by design.
76218         Patch by Ulrich Drepper.
76220 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
76222         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
76223         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
76224         Giving in to popular pressure to shut up the compiler with casts.
76226 2000-10-26  Jim Meyering  <meyering@lucent.com>
76228         * lib/strftime.c: Update from libc.
76230 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
76232         * regex.c: More `unsigned char' -> `re_char' changes.
76233         Also change several `int' into `re_wchar_t'.
76234         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
76235         (PUSH_FAILURE_POINTER): Don't cast any more.
76236         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
76237         We want GCC to complain, since this piece of code makes
76238         re_match non-reentrant, which *should* be fixed.
76239         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
76240         (EXTEND_BUFFER): Use RETALLOC.
76241         (SET_LIST_BIT): Don't cast.
76242         (re_wchar_t): New type.
76243         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
76244         that those two functions will always properly return.
76245         (IMMEDIATE_QUIT_CHECK): Cast to void.
76246         (analyse_first): Use recursion rather than an explicit stack.
76247         (re_compile_fastmap): Can't fail anymore.
76248         (re_search_2): Don't check re_compile_fastmap for failure.
76249         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
76250         Now also sets the new value (passed in a new argument).
76251         (re_match_2_internal): Use it.
76252         Also, use a new var `reg' of type size_t when looping through regs
76253         rather than reuse the inappropriate `mcnt'.
76255 2000-10-25  Jim Meyering  <meyering@lucent.com>
76257         * lib/obstack.c: Update from libc.
76259 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
76261         * regex.c (regex_compile): Change the way of handling a range from
76262         a char less than 256 to a char not less than 256.
76264 2000-10-24  Andrew Innes  <andrewi@gnu.org>
76266         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
76267         NT-Emacs only.
76268         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
76269         so that re_search functions only quit when callers expect them to.
76271 2000-10-23  Jim Meyering  <meyering@lucent.com>
76273         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
76274         wrong.  That set_locale call must not have any side effects.
76275         From Paul Eggert.
76277 2000-10-22  Jim Meyering  <meyering@lucent.com>
76279         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
76280         [CYCLIC]: Remove now-unused definition.
76282         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
76283         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
76284         Suggestion from Ulrich Drepper.
76286 2000-10-21  Jim Meyering  <meyering@lucent.com>
76288         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
76289         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
76290         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
76292 2000-10-21  Jim Meyering  <meyering@lucent.com>
76294         * lib/dirname.c (memrchr): Declare if necessary.
76295         (dir_name): Remove the restriction that there be no
76296         trailing slashes.  Now, this code skips past them, effectively
76297         ignoring them.
76298         [TEST_DIRNAME] (main): New unit tests.
76300         * lib/memrchr.c: New file from GNU libc.
76301         Undef __memrchr, too.
76302         [!weak_alias]: Define __memrchr to memrchr.
76303         Guard weak_alias use with `#ifdef weak_alias'.
76305 2000-10-21  Jim Meyering  <meyering@lucent.com>
76307         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
76308         (dir_name): Use dir_name_r.
76309         * lib/dirname.h (dir_name_r): Declare it.
76311 2000-10-17  Jim Meyering  <meyering@lucent.com>
76313         * lib/quote.h (PARAMS): Define and use.
76314         Reported by Akim Demaille.
76316         * lib/getopt.c: Update from libc.
76318 2000-10-16  Jim Meyering  <meyering@lucent.com>
76320         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
76321         setlocale.
76322         From Jan Fedak.
76324 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
76326         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
76328 2000-09-25  Jim Meyering  <meyering@lucent.com>
76330         * lib/md5.h (rol): Define (from GnuPG).
76332         * lib/sha.c: Give credit (GnuPG) where due.
76333         (M): Use rol rather than open-coding it.
76334         Add a FIXME comment.
76336 2000-09-21  Jim Meyering  <meyering@lucent.com>
76338         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
76339         Reported by Michael Stone.
76341 2000-09-20  Jim Meyering  <meyering@lucent.com>
76343         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
76344         (noinst_HEADERS): Add sha.h.
76345         Based on code from Scott G. Miller and from GnuPG.
76347 2000-09-18  Jim Meyering  <meyering@lucent.com>
76349         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
76350         LIBS. Otherwise, everyone ends up linking with -lelf for some
76351         configurations.
76352         Reported by Mike Stone.
76354 2000-09-15  Jim Meyering  <meyering@lucent.com>
76356         * lib/regex.c: Update from libc.
76358 2000-09-10  Jim Meyering  <meyering@lucent.com>
76360         * lib/getopt.c (_getopt_internal): Update from glibc.
76362 2000-09-09  Jim Meyering  <meyering@lucent.com>
76364         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
76365         think it should be used as a general replacement for isascii.
76366         * lib/fnmatch.c: Likewise.
76367         * lib/mbswidth.c: Likewise
76368         * lib/regex.c: Likewise.
76370         Don't use atoi.
76371         * lib/userspec.c: Include sys/param.h and limits.h.
76372         Include xstrtol.h.
76373         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
76374         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
76375         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
76376         UID, GID.  Check range.
76378 2000-09-06  Jim Meyering  <meyering@lucent.com>
76380         * lib/getopt.c (_getopt_internal): Update from glibc.
76382 2000-08-30  Jim Meyering  <meyering@lucent.com>
76384         * lib/strftime.c: Merge in changes from GNU libc.
76386 2000-08-26  Jim Meyering  <meyering@lucent.com>
76388         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
76389         * m4/fpending.m4: New file.
76391 2000-08-26  Jim Meyering  <meyering@lucent.com>
76393         * lib/closeout.c: Include "__fpending.h".
76394         (close_stdout_status): Return right away if there's nothing to flush.
76396         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
76397         * lib/__fpending.c: New file.
76398         * lib/__fpending.h: New file.
76400 2000-08-20  Jim Meyering  <meyering@lucent.com>
76402         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
76403         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
76404         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
76406 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
76408         Improve fileutils installation on systems where running
76409         programs (like install) can't be unlinked.
76410         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
76411         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
76413 2000-08-07  Paul Eggert  <eggert@twinsun.com>
76415         Standardize on "memory exhausted" instead of "Memory exhausted"
76416         or "virtual memory exhausted".
76417         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
76418         "virtual memory exhausted".
76419         * lib/same.c (same_name): Invoke xalloc_die instead of printing
76420         our own message.
76421         * lib/userspec.c (parse_user_spec): Likewise.
76422         * lib/bumpalloc.h: comment fix
76423         * lib/same.c, userspec.c: Include xalloc.h.
76425         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
76426         not char *const and pointing to a constant array.
76427         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
76428         (xrealloc): Comment fix.
76430         * lib/userspec.c (parse_user_spec):
76431         Don't translate a message until just before returning,
76432         to avoid unnecessary translation.
76434 2000-08-07  Jim Meyering  <meyering@lucent.com>
76436         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
76437         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
76438         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
76439         getgroups.c, gethostname.c, getopt.h, group-member.c,
76440         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
76441         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
76442         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
76443         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
76444         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
76445         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
76446         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
76447         yesno.c: Back out Copyright date changes for each file with no change
76448         this year.  This eases coordination with other programs using the same
76449         source code modules.  From Paul Eggert.
76451 2000-08-06  Paul Eggert  <eggert@twinsun.com>
76453         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
76454         not char, for compatibility with glibc 2.1.3 strftime.c.
76456 2000-08-03  Greg McGary  <greg@mcgary.org>
76458         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
76459         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
76460         (EXTEND_BUFFER): Use them.
76462 2000-08-01  Jim Meyering  <meyering@lucent.com>
76464         * lib/dirname.c (ISSLASH): Define.
76465         (BACKSLASH_IS_PATH_SEPARATOR): Define.
76466         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
76467         both `\' and `/' may be use as path separators.
76468         Based on a patch from Prashant TR.
76470 2000-07-31  Paul Eggert  <eggert@twinsun.com>
76472         * lib/quotearg.c (quotearg_n_options): Don't make the initial
76473         slot vector a constant, since it might get modified.
76475 2000-07-31  Jim Meyering  <meyering@lucent.com>
76477         * lib/xmalloc.c: Use `virtual memory exhausted', not
76478         `Memory exhausted'.
76479         * lib/obstack.c (print_and_abort): Likewise.
76481 2000-07-30  Paul Eggert  <eggert@twinsun.com>
76483         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
76484         buffer, so that the caller can always quote one small
76485         component of a "memory exhausted" message in slot 0.
76486         From a suggestion by Jim Meyering.
76488 2000-07-30  Jim Meyering  <meyering@lucent.com>
76490         * lib/makepath.c (make_path): Quote the other instance, too.
76492         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
76493         (STATIC_BUF_SIZE): Define.
76494         (quotearg_n_options): Use only statically allocated storage when
76495         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
76496         than STATIC_BUF_SIZE.
76498 2000-07-29  Jim Meyering  <meyering@lucent.com>
76500         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
76501         * lib/dirname.c (dir_name): Likewise.
76503         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
76504         `/'.
76506         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
76507         (dir_name): Assert that there are no trailing slashes.
76509 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
76511         * lib/mbswidth.h (mbswidth): Add a flags argument.
76512         (mbswidth): New declaration.
76513         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
76514         * lib/mbswidth.c (mbswidth): Add a flags argument.
76515         (mbsnwidth): New function.
76517 2000-07-24  Jim Meyering  <meyering@lucent.com>
76519         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
76521 2000-07-23  Paul Eggert  <eggert@twinsun.com>
76523         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
76525 2000-07-23  Paul Eggert  <eggert@twinsun.com>
76527         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
76528         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
76529         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
76530         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
76531         invoke multibyte primitives.
76533 2000-07-23  Paul Eggert  <eggert@twinsun.com>
76535         * lib/quotearg.c:
76536         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
76537         so that mbstate_t is always defined.
76539         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
76540         be 1 in at least one GCC installation, and this configuration
76541         error is likely to be common.  Ignoring MB_LEN_MAX hurts
76542         performance on hosts that have mbrtowc but have only unibyte
76543         locales, but I assume these hosts are rare.
76545 2000-07-23  Paul Eggert  <eggert@twinsun.com>
76547         * lib/mbswidth.c (_XOPEN_SOURCE):
76548         Don't define; this causes problems on Solaris 7.
76549         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
76551 2000-07-23  Jim Meyering  <meyering@lucent.com>
76553         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
76554         too: getgrgid, getpwuid, getuid.
76556 2000-07-23  Jim Meyering  <meyering@lucent.com>
76558         * lib/basename.c (base_name): Add an assertion.
76560 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
76562         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
76563         shadow its mbsinit function.
76565 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
76567         * lib/mbswidth.h: New file.
76568         * lib/mbswidth.c: New file.
76569         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
76570         (noinst_HEADERS): Add mbswidth.h.
76572 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
76574         * lib/config.charset: Add support for FreeBSD. Improve support for
76575         HP-UX and IRIX 6.
76577 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
76579         * m4/mbswidth.m4: New file.
76580         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
76582 2000-07-15  Jim Meyering  <meyering@lucent.com>
76584         * lib/makepath.c: Include quote.h.
76585         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
76586         corresponding argument in a `quote (...)' call.
76587         Give better diagnostics.
76589         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
76590         (noinst_HEADERS): Add quote.h.
76592         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
76593         from tar's src/misc.c.
76594         * lib/quote.h: New file.  Prototypes for same.
76596 2000-07-14  Paul Eggert  <eggert@twinsun.com>
76598         From a suggestion by Bruno Haible.
76599         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
76600         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
76601         to decide whether to define the BeOS workaround macro;
76602         this adjusts to the change to AC_MBSTATE_T.
76604 2000-07-14  Jim Meyering  <meyering@lucent.com>
76606         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
76607         jm_AC_TYPE_UINTMAX_T.
76609 2000-07-13  Paul Eggert  <eggert@twinsun.com>
76611         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
76613         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
76614         quotearg_buffer_restyled): Add support for
76615         clocale_quoting_style.  Undo previous change to
76616         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
76617         and "{RIGHT QUOTATION MARK}" msgids.
76619 2000-07-10  Paul Eggert  <eggert@twinsun.com>
76621         From a suggestion by Bruno Haible.
76622         * m4/mbstate_t.m4 (AC_MBSTATE_T):
76623         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
76624         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
76625         and mbstate_t, to a single-part test that simply defines mbstate_t.
76626         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
76627         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
76629 2000-07-10  Jim Meyering  <meyering@lucent.com>
76631         * m4/strerror_r.m4: Mirror the correction made in autoconf.
76633         * m4/gnu-source.m4: Output to confdefs.h directly.
76634         Suggestion from Akim Demaille.
76636 2000-07-09  Paul Eggert  <eggert@twinsun.com>
76638         The old behavior of quoting `like this' doesn't look good with
76639         newer, ISO-style fonts.  See:
76640         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
76642         Instead, quote "like this" by default.  Let the translator
76643         tailor the locale-specific quoting behavior by providing
76644         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
76646         * lib/quotearg.c (N_): New macro.
76647         (gettext_default): New function.
76648         (quotearg_buffer_restyled): Use
76649         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
76650         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
76652 2000-07-09  Jim Meyering  <meyering@lucent.com>
76654         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
76655         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
76657         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
76658         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
76660 2000-07-09  Jim Meyering  <meyering@lucent.com>
76662         * lib/Most files: Update copyright dates to include 2000.
76664 2000-07-08  Jim Meyering  <meyering@lucent.com>
76666         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
76667         if not defined.
76668         (xgethostname): Remove now-unnecessary #ifdef.
76669         Move declaration of `err' into loop where it's used.
76671 2000-07-05  Paul Eggert  <eggert@twinsun.com>
76672         and Bruno Haible  <haible@clisp.cons.org>
76674         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
76675         only if the test for an object-type mbstate_t fails.  This
76676         prevents us from mistakenly reporting that mbstate_t is a
76677         system object type after we "#define mbstate_t int" to work
76678         around its lack.
76680 2000-07-05  Paul Eggert  <eggert@twinsun.com>
76681         and Bruno Haible  <haible@clisp.cons.org>
76683         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
76685 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
76687         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
76688         to strerror_r.
76689         Include <ctype.h> for use of isalpha.
76691 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
76693         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
76694         by allocating a larger buffer. Test the gethostname return value for
76695         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
76696         returns an error and ENAMETOOLONG isn't defined.
76698 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
76700         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
76701         dimension.
76703 2000-07-04  Jim Meyering  <meyering@lucent.com>
76705         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
76706         of the deprecated AC_CHECKING.
76708 2000-07-04  Jim Meyering  <meyering@lucent.com>
76710         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
76711         Reported by Bruno Haible.
76713 2000-07-04  Jim Meyering  <meyering@lucent.com>
76715         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
76716         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
76717         lacks mbrtowc.
76719 2000-07-03  Paul Eggert  <eggert@twinsun.com>
76721         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
76722         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
76724 2000-07-03  Paul Eggert  <eggert@twinsun.com>
76725         and Bruno Haible  <haible@clisp.cons.org>
76727         * lib/quotearg.c (mbrtowc):
76728         Assign to *pwc, and return 1 only if result is nonzero.
76729         (iswprint): Use ISPRINT when substituting our own mbrtowc.
76731 2000-07-03  Jim Meyering  <meyering@lucent.com>
76733         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
76735 2000-07-03  Jim Meyering  <meyering@lucent.com>
76737         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
76738         This is necessary to get a definition of e.g., UTMP_FILE on
76739         HP-UX 10.20.
76740         From Bob Proulx.
76742 2000-07-02  Jim Meyering  <meyering@lucent.com>
76744         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
76746         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
76747         AC_LIBOBJ(function_name).
76748         * m4/chown.m4: Likewise.
76749         * m4/fnmatch.m4: Likewise.
76750         * m4/ftruncate.m4: Likewise.
76751         * m4/getgroups.m4: Likewise.
76752         * m4/getline.m4: Likewise.
76753         * m4/group-member.m4: Likewise.
76754         * m4/jm-macros.m4: Likewise.
76755         * m4/lstat.m4: Likewise.
76756         * m4/malloc.m4: Likewise.
76757         * m4/memcmp.m4: Likewise.
76758         * m4/nanosleep.m4: Likewise.
76759         * m4/putenv.m4: Likewise.
76760         * m4/realloc.m4: Likewise.
76761         * m4/regex.m4: Likewise.
76762         * m4/stat.m4: Likewise.
76763         * m4/strftime.m4: Likewise.
76765 2000-07-02  Jim Meyering  <meyering@lucent.com>
76767         * lib/quotearg.c (mbstate_t): Don't define here.
76769 2000-07-02  Jim Meyering  <meyering@lucent.com>
76771         * lib/nanosleep.c (SIGCONT): Define if not already defined.
76773 2000-07-01  Jim Meyering  <meyering@lucent.com>
76775         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
76777 2000-07-01  Jim Meyering  <meyering@lucent.com>
76779         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
76780         problem.
76782 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
76784         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
76785         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
76787 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
76789         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
76790         per change in ../m4/ls-mntd-fs.m4.
76791         (read_filesystem_list): Ignore symbolic links.
76793 2000-06-29  Jim Meyering  <meyering@lucent.com>
76795         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
76796         for declaration of strcmp.
76798         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
76800         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
76801         Avoid warning by casting result to `char *' to remove `const'.
76803 2000-06-28  Jim Meyering  <meyering@lucent.com>
76805         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
76806         included by quotearg.c, for which we perform this test.  From
76807         Bruno Haible.
76809 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
76811         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
76812         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
76813         <utmpx.h> exists, put readutmp.o into LIBOBJS.
76815 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
76817         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
76819 2000-06-26  Paul Eggert  <eggert@twinsun.com>
76821         savedir now sets errno on failure and invokes xmalloc to get memory.
76822         Fix a couple of other minor bugs while we're at it.
76824         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
76825         (NAMLEN): Remove macro.
76826         (malloc, realloc): Remove decls.
76827         (stpcpy): Likewise.
76828         ("xalloc.h"): Include.
76829         (NAME_SIZE_DEFAULT): New macro.
76830         (savedir): Use xmalloc / xrealloc to allocate memory.
76831         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
76832         Skip "" directory entries.
76833         Use strlen to calculate directory entry length, since the old method
76834         is rarely used these days and isn't worth supporting.
76835         Don't use a pointer after freeing it.
76836         Check for integer overflow when calculating allocation size.
76837         Use memcpy to copy entries, instead of stpcpy.
76838         Set errno properly when returning NULL.
76839         Check for readdir error.
76841 2000-06-26  Jim Meyering  <meyering@lucent.com>
76843         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
76845 2000-06-25  Jim Meyering  <meyering@lucent.com>
76847         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
76848         Linux header bug when _XOPEN_SOURCE is defined to 500.
76850 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
76852         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
76853         deficiency.
76855 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
76857         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
76858         Include xalloc.h.
76859         Don't include <stdlib.h>.  Don't declare malloc, realloc.
76861 2000-06-24  Jim Meyering  <meyering@lucent.com>
76863         * m4/strerror_r.m4: Revive this file -- to try out an experimental
76864         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
76865         for which strerror does return char*, but which lacks a conveniently
76866         accessible declaration of the function.  If the compile-test says
76867         strerror_r doesn't work, then resort to a `run'-test that works on
76868         BeOS and segfaults on DEC Unix.
76870 2000-06-24  Jim Meyering  <meyering@lucent.com>
76872         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
76874 2000-06-23  Paul Eggert  <eggert@twinsun.com>
76876         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
76877         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
76879 2000-06-23  Paul Eggert  <eggert@twinsun.com>
76881         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
76882         (mbrtowc, mbstate_t): Define substitutes if
76883         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
76884         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
76885         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
76887 2000-06-23  Jim Meyering  <meyering@lucent.com>
76889         * m4/afs.m4: Add missing AC_MSG_RESULT.
76890         Reported by Bruno Haible.
76892         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
76893         Suggestion from Bruno Haible.
76895 2000-06-23  Jim Meyering  <meyering@lucent.com>
76897         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
76899 2000-06-21  Jim Meyering  <meyering@lucent.com>
76901         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
76903 2000-06-21  Jim Meyering  <meyering@lucent.com>
76905         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
76906         (noinst_HEADERS): Add getstr.h.
76908         * lib/getline.c (getstr): Move into a separate file.
76909         * lib/getstr.c (getstr): New file, extracted from getline.c, with
76910         the following changes: new parameter, delim2; both delim[12]
76911         parameters have type `int', not `char'.  The latter would lose
76912         with 8-bit delimiters.
76913         * lib/getstr.h: New file.
76915 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
76917         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
76918         than 1024, return a memory chunk of least possible size, instead
76919         of size PATH_MAX + 2. In the loop, increment the size proportionally.
76920         Use free/xmalloc instead of xrealloc to avoid copying for very long
76921         paths.
76923 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
76925         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
76926         the empty string.
76928 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
76930         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
76931         address, not strdup.  Include <stdlib.h> and don't declare free().
76933 2000-06-19  Jim Meyering  <meyering@lucent.com>
76935         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
76937 2000-06-18  Jim Meyering  <meyering@lucent.com>
76939         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
76941         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
76942         `checking whether...' message to be consistent with that of the
76943         lstat test.
76945 2000-06-18  Jim Meyering  <meyering@lucent.com>
76947         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
76948         Besides, these days every porting target provides a mkdir function.
76950         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
76951         needed. (this snippet comes from src/system.h).
76953 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
76955         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
76957 2000-06-15  Paul Eggert  <eggert@twinsun.com>
76959         * lib/human.c (adjust_value): New function.
76960         (human_readable_inexact): Apply rounding style even when
76961         printing approximate values.
76963 2000-06-14  Paul Eggert  <eggert@twinsun.com>
76965         * lib/human.c (human_readable_inexact): Allow an input block
76966         size that is not a multiple of the output block size, and vice versa.
76967         Reported by Piergiorgio Sartor.
76969 2000-06-14  Paul Eggert  <eggert@twinsun.com>
76971         * lib/getdate.y (get_date): Apply relative times after time
76972         zone indicator, not before.  Reported by Todd A. Jacobs.
76974 2000-06-13  Jim Meyering  <meyering@lucent.com>
76976         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
76978         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
76980 2000-06-12  Paul Eggert  <eggert@twinsun.com>
76982         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
76984 2000-06-12  Jim Meyering  <meyering@lucent.com>
76986         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
76987         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
76988         optional argument.
76989         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
76990         the optional argument, `lib'.
76992 2000-06-08  Jim Meyering  <meyering@lucent.com>
76994         * m4/largefile.m4: Remove file (now that it's part of autoconf).
76996 2000-06-04  Paul Eggert  <eggert@twinsun.com>
76998         Rewrite largefile configuration so that we don't need to run
76999         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
77000         AC_CANONICAL_HOST in configure.in -- jmm]
77002         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
77003         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
77004         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
77005         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
77006         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
77007         All uses changed.
77008         Instead of inspecting the output of getconf, try to compile the
77009         test program without and with the macro definition.
77010         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
77011         for getconf.  Instead, check for the needed flags by compiling
77012         test programs.
77014 2000-06-04  Paul Eggert  <eggert@twinsun.com>
77016         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
77018 2000-06-04  Jim Meyering  <meyering@lucent.com>
77020         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
77021         SunOS 4.1.4 for which gid_t is an unsigned type.
77023 2000-06-03  Jim Meyering  <meyering@lucent.com>
77025         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
77026         now that autoconf requires that.
77028         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
77029         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
77030         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
77032 2000-06-03  Jim Meyering  <meyering@lucent.com>
77034         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
77036 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
77038         * m4/glibc21.m4: New file.
77039         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
77041 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
77043         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
77044         newer, don't install charset.alias.
77045         * lib/config.charset: Change the Linux/glibc rules so they become empty
77046         on glibc-2.1 or newer.
77048 2000-06-02  Jim Meyering  <meyering@lucent.com>
77050         * lib/mountlist.c: Back out last change.  Instead, do this...
77051         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
77052         me_dummy member using the same `ignore'-testing code.
77053         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
77054         fs_type strings.
77055         From Mark D. Roth.
77057 2000-05-29  Jim Meyering  <meyering@lucent.com>
77059         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
77060         mounts with the `ignore' attribute.  Based on a patch from
77061         Mark D. Roth.
77063 2000-05-28  Jim Meyering  <meyering@lucent.com>
77065         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
77066         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
77067         * m4/stat.m4: Likewise.
77068         * m4/lstat.m4: Likewise.
77069         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
77071         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
77072         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
77074 2000-05-26  Jim Meyering  <meyering@lucent.com>
77076         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
77078 2000-05-24  Jim Meyering  <meyering@lucent.com>
77080         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
77081         autoconf requires that.
77082         * m4/lib-check.m4: Likewise.
77083         * m4/jm-macros.m4: Likewise.
77084         * m4/strftime.m4: Likewise.
77086         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
77087         AC_CHECK_DECLS, now that autoconf requires that.
77089 2000-05-22  Jim Meyering  <meyering@lucent.com>
77091         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
77092         * m4/lstat.m4: Likewise.
77094 2000-05-22  Jim Meyering  <meyering@lucent.com>
77096         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
77098 2000-05-20  Jim Meyering  <meyering@lucent.com>
77100         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
77101         (jm_PREREQ): Use it.
77103 2000-05-18  Jim Meyering  <meyering@lucent.com>
77105         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
77106         back, too, since it may have been modified by allocate_entry.
77107         (hash_delete): Rewrite to use neither the assignment operator
77108         nor the comma operator in an if-expression.
77110 2000-05-15  Paul Eggert  <eggert@twinsun.com>
77112         * lib/closeout.c:
77113         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
77114         Remove; no longer needed.
77115         "quotearg.h": Add include.
77116         (file_name): Do not bother to explicitly initialize to NULL; it's less
77117         efficient on some hosts.
77118         (close_stdout_status): Remove test as to whether stdout was already
77119         closed; it breaks for the case "echo x | sort >&-".
77120         Quote file name colons.
77121         Do not assume that _("write error") lacks format strings.
77123 2000-05-15  Jim Meyering  <meyering@lucent.com>
77125         * lib/version-etc.c (version_etc_copyright): Update the copyright
77126         string used in all --version output.
77128 2000-05-14  Jim Meyering  <meyering@lucent.com>
77130         * lib/closeout.c (close_stdout_set_file_name): New function.
77131         (close_stdout_status): Use new file-scoped global.
77132         Return right away if fstat says the stdout file descriptor is invalid.
77133         * lib/closeout.h (close_stdout_set_file_name): Declare.
77135 2000-05-10  Jim Meyering  <meyering@lucent.com>
77137         * lib/closeout.c [default_exit_status]: New file-scoped variable.
77138         (close_stdout_set_status): New function.
77139         * lib/closeout.h (close_stdout_set_status): Declare.
77141 2000-05-09  Jim Meyering  <meyering@lucent.com>
77143         * m4/gettext.m4: Rename this...
77144         * m4/libintl.m4: ...to this.
77146 2000-05-08  Jim Meyering  <meyering@lucent.com>
77148         * lib/long-options.c: Don't include closeout.h.
77149         (parse_long_options): Don't call close_stdout for --version.
77151 2000-05-06  Paul Eggert  <eggert@twinsun.com>
77153         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
77154         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
77155         2.1.3 bug.  This avoids a clash when files like regex.c define
77156         _GNU_SOURCE.
77158 2000-05-06  Jim Meyering  <meyering@lucent.com>
77160         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
77161         (AC_REPLACE_FUNCS): Add strnlen.
77163         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
77164         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
77166         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
77167         AC_SEARCH_LIBS call for nanosleep.
77168         (LIB_NANOSLEEP): Set and AC_SUBST.
77170 2000-05-06  Jim Meyering  <meyering@lucent.com>
77172         * lib/strnlen.c: Undefine __strnlen and strnlen.
77173         [!weak_alias]: Define __strnlen to strnlen.
77175         * lib/atexit.c: New file, from libiberty.
77177 2000-05-06  Jim Meyering  <meyering@lucent.com>
77179         * lib/closeout.c (close_stdout_status): Also check for errors on the
77180         stderr stream.
77182 2000-05-05  Jim Meyering  <meyering@lucent.com>
77184         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
77185         AC_SEARCH_LIBS call for clock_gettime.
77186         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
77188         * m4/search-libs.m4: Update from autoconf.
77190         su doesn't work on Solaris 2.6.
77191         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
77192         <shadow.h>.  Reported by Dragos Harabor.
77194 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
77196         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
77197         memcpy instead of xmalloc, xrealloc, path_concat.
77198         (locale_charset): Treat empty environment variables as absent.
77199         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
77201 2000-05-04  Jim Meyering  <meyering@lucent.com>
77203         * lib/getopt.c: Update from glibc.
77204         * lib/obstack.c: Likewise.
77205         * lib/obstack.h: Likewise.
77206         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
77207         file
77209         * lib/regex.h: Likewise.
77210         * lib/strndup.c: Likewise.
77211         * lib/strnlen.c: New file, from glibc.
77213 2000-05-03  Jim Meyering  <meyering@lucent.com>
77215         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
77217 2000-05-02  Paul Eggert  <eggert@twinsun.com>
77219         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
77220         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
77221         compile-time test, rather than inspecting host and OS, to
77222         decide whether to define _LARGEFILE_SOURCE.
77224 2000-05-01  Jim Meyering  <meyering@lucent.com>
77226         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
77228         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
77229         Based on a patch from Bruno Haible.
77231 2000-05-01  Jim Meyering  <meyering@lucent.com>
77233         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
77235 2000-04-29  Jim Meyering  <meyering@lucent.com>
77237         * lib/path-concat.c: Declare strdup only if it's not defined.
77238         * lib/canon-host.c: Likewise.
77240 2000-04-28  Jim Meyering  <meyering@lucent.com>
77242         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
77243         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
77244         is included first, then limits.h is included by locale.h by libintl.h.
77245         From John David Anglin.
77247 2000-04-25  Jim Meyering  <meyering@lucent.com>
77249         * lib/makepath.c (S_IRWXUGO): Define.
77250         (make_path): Always perform explicit chmod if MODE specifies any
77251         of the `special' permission bits.  Prompted by a bug report against
77252         install from Mate Wierdl and Joost van Baal.
77254 2000-04-18  Jim Meyering  <meyering@lucent.com>
77256         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
77257         (jm_PREREQ): Use it.
77259 2000-04-18  Jim Meyering  <meyering@lucent.com>
77261         * lib/README: New file.
77263         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
77264         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
77266 2000-04-17  Jim Meyering  <meyering@lucent.com>
77268         Get it right :-)
77269         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
77270         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
77271         Suggestion from Akim Demaille.
77273 2000-04-17  Jim Meyering  <meyering@lucent.com>
77275         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
77276         the definition of it to rpl_strftime also defined-away the system's
77277         declaration.
77279 2000-04-15  Jim Meyering  <meyering@lucent.com>
77281         Use `C' to denote so-called `contiguous' files, the same way
77282         that tar does.
77283         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
77284         (ftypelet): Use S_ISCTG.
77285         From Michael Deutschmann.
77287 2000-04-14  Jim Meyering  <meyering@lucent.com>
77289         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
77290         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
77291         clobbered.
77293 2000-04-14  Jim Meyering  <meyering@lucent.com>
77295         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
77297 2000-04-13  Jim Meyering  <meyering@lucent.com>
77299         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
77300         AH_VERBATIM to insert required #ifndef into config.h.in.
77301         Suggestion from Akim Demaille.
77303 2000-04-12  Jim Meyering  <meyering@lucent.com>
77305         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
77306         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
77307         Christian Krackowizer.
77309         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
77310         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
77311         (AC_SYS_LARGEFILE): Require.
77312         (AM_C_PROTOTYPES): Require.
77314 2000-04-08  Jim Meyering  <meyering@lucent.com>
77316         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
77317         names don't conflict.  Reported by Eli Zaretskii.
77319 2000-04-07  Jim Meyering  <meyering@lucent.com>
77321         * lib/putenv.c: Move inclusion of errno.h so it follows that of
77322         sys/types.h, to work around system header problems on AIX 3.2.5.
77323         From Bruno Haible.
77325 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
77327         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
77328         bug.  Deal with the different error behavior of Irix iconv.
77330 2000-04-05  Paul Eggert  <eggert@twinsun.com>
77332         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
77333         IRIX if the installer said otherwise.
77335 2000-04-05  Jim Meyering  <meyering@lucent.com>
77337         Portability tweaks required for ultrix4.3.
77338         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
77339         (jm_CHECK_DECLS): Add getutent to the list of functions.
77340         (_jm_DECL_HEADERS): Add utmpx.h.
77341         From John David Anglin.
77343         * m4/strftime.m4: Back out the 2000-04-02 change.
77344         Instead of that change, simply undefine putenv in the test program.
77346 2000-04-05  Jim Meyering  <meyering@lucent.com>
77348         Portability tweaks required for ultrix4.3.
77349         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
77350         getutent.
77351         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
77352         * lib/canon-host.c: Declare strdup.
77353         * lib/path-concat.c: Likewise.
77354         From John David Anglin.
77356 2000-04-04  Jim Meyering  <meyering@lucent.com>
77358         Be more DOS 8.3-friendly.
77359         * lib/ref-add.sin: Renamed from ref-add.sed.in.
77360         * lib/ref-del.sin: Renamed from ref-del.sed.in.
77361         * lib/Makefile.am: Reflect renaming.
77362         Reported by Eli Zaretskii.
77364         Use a temporary file name that won't clash with `charset.alias'
77365         in the DOS 8.3 name space.
77366         * lib/Makefile.am (charset_tmp): Define.
77367         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
77368         (uninstall-local): Likewise.
77369         Reported by Eli Zaretskii.
77371 2000-04-03  Jim Meyering  <meyering@lucent.com>
77373         * m4/gettext.m4: Fix typo in comment.
77375         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
77376         textutils/configure.in).  Suggestion from Paul Eggert.
77377         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
77379 2000-04-02  Paul Eggert  <eggert@twinsun.com>
77381         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
77382         variable in the shell rather than using putenv, which isn't
77383         portable.  This avoids the configure-time inter-test dependency
77384         on the potentially-renamed putenv function.
77386 2000-03-30  Paul Eggert  <eggert@twinsun.com>
77388         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
77389         before checking struct stat.st_blksize, so that
77390         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
77392 2000-03-29  Paul Eggert  <eggert@twinsun.com>
77394         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
77395         since strftime.c uses HAVE_STRFTIME to decide whether to use
77396         the underlying strftime.
77398 2000-03-29  Paul Eggert  <eggert@twinsun.com>
77400         * lib/time/strftime.c (my_strftime): Make sure we call the system
77401         strftime, not ourselves, when invoking the underlying strftime.
77403 2000-03-24  Jim Meyering  <meyering@lucent.com>
77405         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
77406         (charset_alias): Define.
77407         (install-exec-local): Factor out common code.
77408         (uninstall-local): Split lines longer than 80.
77409         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
77410         (SUFFIXES): Define.
77411         (.sed.in.sed): New rule.  Don't redirect directly to $@.
77412         (CLEANFILES): Add ref-add.sed and ref-del.sed.
77414 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
77416         * lib/config.charset: Output a line containing "Packages using this
77417         file".
77418         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
77419         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
77420         ref-del.sed): New rules.
77422 2000-03-17  Jim Meyering  <meyering@lucent.com>
77424         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
77425         Otherwise, include <strings.h>
77427 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
77429         * lib/unicodeio.c (utf8_wctomb): New function.
77430         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
77431         format instead of in UCS-4 with platform dependent endianness.
77433 2000-03-10  Jim Meyering  <meyering@lucent.com>
77435         * m4/lib-check.m4: Look for getspnam in -lgen, too.
77436         From Marco Franzen.
77438 2000-03-07  Paul Eggert  <eggert@twinsun.com>
77440         * lib/savedir.c (savedir): Work even if directory size is
77441         negative; this can happen with some screwy NFS configurations.
77443 2000-03-06  Jim Meyering  <meyering@lucent.com>
77445         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
77446         if it's NULL (because we ran out of memory).  From Bruno Haible.
77448 2000-03-05  Jim Meyering  <meyering@lucent.com>
77450         * lib/localcharset.c ("path-concat.h"): Include.
77451         (get_charset_aliases): Use path_concat instead of ANSI string
77452         concatenation.
77454         * lib/unicodeio.h (PARAMS): Define.
77455         Use it to guard prototype.
77457 2000-03-04  Jim Meyering  <meyering@lucent.com>
77459         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
77460         for lib/localcharset.c.
77462 2000-03-04  Jim Meyering  <meyering@lucent.com>
77464         * lib/Makefile.am (install-exec-local): Create $(libdir) before
77465         installing into it.
77466         (uninstall-local): Uncomment this rule so `make distcheck' works
77467         once again.
77469         * lib/unicodeio.c (<errno.h>): Include it.
77470         (errno): Declare if not defined.
77472         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
77474         * lib/config.charset: New version, incorporating remarks from a linux
77475         i18n mailing list.  From Bruno Haible.
77477 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
77479         * m4/codeset.m4: New file.
77480         * m4/iconv.m4: New file.
77481         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
77483 2000-03-03  Jim Meyering  <meyering@lucent.com>
77485         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
77487 2000-03-02  Jim Meyering  <meyering@lucent.com>
77489         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
77490         the messages come out on separate lines.
77492         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
77493         rather than jm_CHECK_DECLARATIONS.
77494         * m4/decl.m4: Remove now-unused file.
77496         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
77497         geteuid.
77499 2000-03-02  Jim Meyering  <meyering@lucent.com>
77501         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
77503 2000-03-01  Jim Meyering  <meyering@lucent.com>
77505         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
77506         * lib/unicodeio.c: Likewise.
77508 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
77510         * lib/config.charset: New file.
77511         * lib/localcharset.c: New file.
77512         * lib/unicodeio.h, lib/unicodeio.c: New files.
77513         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
77514         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
77515         (noinst_HEADERS): Add unicodeio.h.
77516         (all-local, install-exec-local, charset.alias): New targets.
77518 2000-02-28  Paul Eggert  <eggert@twinsun.com>
77520         * lib/quotearg.c (ALERT_CHAR): New macro.
77521         (quotearg_buffer_restyled): Use it.
77523 2000-02-27  Jim Meyering  <meyering@lucent.com>
77525         * m4/check-decl.m4: Add getenv to the list.
77527 2000-02-27  Jim Meyering  <meyering@lucent.com>
77529         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
77530         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
77532         * lib/backupfile.c: Guard inclusion of stdlib.h with
77533         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
77534         Declare malloc if needed.
77536         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
77537         `#ifndef HAVE_DECL..'
77538         now that autoconf always defines the HAVE_DECL_ symbols.
77539         * lib/human.c: Likewise.
77540         * lib/same.c: Likewise.
77541         * lib/strtoumax.c: Likewise.
77543         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
77544         declaration check was not run.
77545         * lib/hash.c: Likewise.
77546         * lib/human.c: Likewise.
77547         * lib/same.c: Likewise.
77548         * lib/strtoumax.c: Likewise.
77550         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
77551         `.', then first look up the entire `.'-containing string as a login
77552         name.
77554 2000-02-23  Jim Meyering  <meyering@lucent.com>
77556         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
77557         in place of my hack.
77559 2000-02-18  Paul Eggert  <eggert@twinsun.com>
77561         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
77562         (textint): New typedef.
77563         (parser_control): Member year changed from int to textint.
77564         All uses changed.
77565         (YYSTYPE): Removed; replaced by %union with int and textint members.
77566         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
77567         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
77568         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
77569         (tSNUMBER, tUNUMBER): Now of type <textintval>.
77570         (date, number, to_year): Use width of number in digits, not its value,
77571         to determine whether it's a 2-digit year, or a 2-digit time.
77572         (yylex): Store number of digits of numeric tokens.
77573         Reported by John Kendall.
77575         (parser_control): Changed from struct parser_control to typedef (for
77576         consistency).  All uses changed.
77578         (tID): Removed; not used.
77579         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
77581 2000-02-14  Paul Eggert  <eggert@twinsun.com>
77583         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
77584         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
77586 2000-02-12  Jim Meyering  <meyering@lucent.com>
77588         * lib/userspec.c (ISDIGIT): Define it.
77589         (isdigit): Remove definition.
77590         (is_number): Use ISDIGIT, not isdigit.
77591         <libintl.h>: Include.
77592         (_ and N_): Define.
77593         (parse_user_spec): Mark translatable strings.
77595 2000-02-10  Jim Meyering  <meyering@lucent.com>
77597         With these changes, nanosleep.[ch] are finally enough like the other
77598         lib/* replacement files to compile on a few more losing systems.
77600         * lib/nanosleep.h: Don't include config.h.
77601         Remove prototype from declaration of nanosleep.
77602         (PARAMS): Remove now-unneeded definition.
77603         * lib/nanosleep.c: #undef nanosleep.
77604         (rpl_nanosleep): Rename from nanosleep.
77606 2000-02-10  Jim Meyering  <meyering@lucent.com>
77608         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
77609         gnu_nanosleep to rpl_nanosleep.
77611 2000-02-09  Jim Meyering  <meyering@lucent.com>
77613         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
77614         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
77616 2000-02-08  Akim Demaille  <akim@epita.fr>
77618         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
77619         `[' and `]' and remove uses of `changequote'.
77620         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
77621         (AC_SYS_LARGEFILE): Likewise.
77622         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
77623         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
77624         of changequote.
77625         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
77626         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
77627         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
77628         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
77630 2000-02-05  Jim Meyering  <meyering@lucent.com>
77632         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
77633         Remove explicit use of AC_HEADER_TIME.  It is required by
77634         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
77635         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
77636         in autoconf whereby the expansion of the latter ended up preceding
77637         the expansion of its prerequisite, AC_HEADER_TIME.
77638         Reported by Volker Borchert.
77640 2000-02-03  Jim Meyering  <meyering@lucent.com>
77642         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
77644 2000-02-03  Jim Meyering  <meyering@lucent.com>
77646         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
77647         rather than with `#if HAVE_UTMPNAME'.
77649 2000-02-02  Jim Meyering  <meyering@lucent.com>
77651         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
77652         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
77653         Reported by Eli Zaretskii.
77655 2000-02-01  Jim Meyering  <meyering@lucent.com>
77657         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
77659 2000-01-31  Jim Meyering  <meyering@lucent.com>
77661         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
77662         functions.  Add the time.h and sys/time.h headers along with the
77663         AC_REQUIRE'ment of AC_HEADER_TIME.
77665 2000-01-31  Jim Meyering  <meyering@lucent.com>
77667         * lib/nanosleep.h (nanosleep): Guard declaration with
77668         `#if ! HAVE_DECL_NANOSLEEP'.
77669         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
77670         the declaration in that vendor's sys/timers.h.
77671         Reported by Christian Krackowizer.
77673         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
77674         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
77675         (ISPRINT): Likewise.
77676         Reported by Tom Tromey.
77678 2000-01-30  Jim Meyering  <meyering@lucent.com>
77680         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
77682         * m4/prereq.m4 (utmp_includes): Define.
77683         Check for ut_user and ut_name members in both struct utmpx
77684         and struct utmp.
77686 2000-01-30  Jim Meyering  <meyering@lucent.com>
77688         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
77689         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
77690         header files where only utmpx.ut_user is declared.
77692         * lib/readutmp.h (UT_USER): Define.
77694 2000-01-29  Jim Meyering  <meyering@lucent.com>
77696         * m4/lib-check.m4: New file containing library-related checks from
77697         fileutils and sh-utils (textutils had none).
77699 2000-01-28  Jim Meyering  <meyering@lucent.com>
77701         * m4/perl.m4: Change format of warning message to look more like that
77702         from the missing script.  Suggestion from François Pinard.
77704 2000-01-25  Jim Meyering  <meyering@lucent.com>
77706         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
77707         well as time.h in the compile check.
77708         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
77709         Fix typo in cross-compiling case: s/yes/no/.
77711 2000-01-23  Jim Meyering  <meyering@lucent.com>
77713         * m4/jm-macros.m4: Move df-related tests here from
77714         fileutils/configure.in
77716         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
77717         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
77719         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
77720         s/space/ac_fsusage_space/.
77721         (jm_FILE_SYSTEM_USAGE): Take two parameters.
77723         * m4/ftruncate.m4: New file (derived from part of
77724         fileutils/configure.in).
77725         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
77726         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
77728         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
77729         AC_SUBST these here, rather than just in sh-util/configure.in, so
77730         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
77731         all the same.
77732         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
77733         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
77734         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
77735         (AC_SUBST(POW_LIBM)): Likewise.
77736         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
77738 2000-01-23  Jim Meyering  <meyering@lucent.com>
77740         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
77741         obstack.c.
77743 2000-01-22  Jim Meyering  <meyering@lucent.com>
77745         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
77747         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
77749         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
77750         configure.in
77751         (AC_CHECK_HEADERS): Likewise for sh-utils.
77752         (AC_CHECK_HEADERS): Likewise for textutils.
77753         Merge the three lists of headers.
77755         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
77756         from fileutils' configure.in.
77758         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
77759         code. Moved tests into their own function (_jm_DECL_HEADERS) in
77760         check-decl.m4.
77762         * m4/check-decl.m4: Use #if rather than #ifdef.
77763         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
77764         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
77765         (_jm_DECL_HEADERS): Define new function.
77766         (jm_CHECK_DECLARATIONS): Require it.
77768 2000-01-22  Jim Meyering  <meyering@lucent.com>
77770         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
77771         [! HAVE_DECL_STRTOULL]: Declare strtoull.
77772         Required for some AIX systems.  Reported by Christian Krackowizer.
77773         [TESTING] (main): New function.
77775         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
77776         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
77777         letters.
77779         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
77780         iswprint.
77782         * lib/strverscmp.c (ISDIGIT): Define.
77783         (strverscmp): Use ISDIGIT, not isdigit.
77785 2000-01-19  Jim Meyering  <meyering@lucent.com>
77787         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
77788         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
77789         defines `struct timespec' in <sys/time.h>
77791         * m4/c-bs-a.m4: Remove uses of changequote altogether.
77792         Thanks to Akim for explaining.
77794 2000-01-17  Paul Eggert  <eggert@twinsun.com>
77796         * lib/nanosleep.c (nanosleep):
77797         Don't use SA_INTERRUPT to decide whether to call sigaction, as
77798         POSIX.1 doesn't require SA_INTERRUPT and some systems
77799         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
77800         it's been part of POSIX.1 since day 1 (in 1988).
77802 2000-01-17  Jim Meyering  <meyering@lucent.com>
77804         * lib/interlock: Remove unused file.  Reported by François Pinard.
77806 2000-01-16  Paul Eggert  <eggert@twinsun.com>
77808         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
77809         alert, backslash, formfeed, and vertical tab unnecessarily in
77810         shell quoting style.
77812 2000-01-16  Jim Meyering  <meyering@lucent.com>
77814         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
77815         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
77816         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
77817         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
77819 2000-01-16  Jim Meyering  <meyering@lucent.com>
77821         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
77822         because the latter didn't work.
77824 2000-01-15  Jim Meyering  <meyering@lucent.com>
77826         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
77827         (AC_REPLACE_FUNCS): Add memcpy and memset.
77828         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
77829         Add strpbrk.
77830         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
77832 2000-01-12  Jim Meyering  <meyering@lucent.com>
77834         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
77835         (jm_PREREQ): Use it.
77836         (jm_PREREQ_READUTMP): New macro.
77837         (jm_PREREQ): Use it.
77839 2000-01-11  Paul Eggert  <eggert@twinsun.com>
77841         Quote multibyte characters correctly.
77842         * m4/c-bs-a.m4: New file.
77843         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
77844         (jm_PREREQ): Use it.
77846 2000-01-11  Paul Eggert  <eggert@twinsun.com>
77848         * m4/uintmax_t.m4: Port to autoconf 2.13.
77850 2000-01-08  Jim Meyering  <meyering@ascend.com>
77852         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
77853         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
77855 2000-01-04  Jim Meyering  <meyering@ascend.com>
77857         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
77858         jm_STRUCT_DIRENT_D_TYPE.
77859         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
77860         jm_STRUCT_DIRENT_D_INO.
77861         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
77862         jm_STRUCT_UTIMBUF.
77863         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
77864         renamings.
77865         * m4/utime.m4: Likewise.
77867         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
77868         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
77870 2000-01-03  Paul Eggert  <eggert@twinsun.com>
77872         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
77873         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
77875 2000-01-02  Jim Meyering  <meyering@ascend.com>
77877         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
77878         remember if this is necessary.
77880 1999-12-26  Jim Meyering  <meyering@ascend.com>
77882         * m4/jm-macros.m4: Use it here.
77883         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
77885 1999-12-23  Jim Meyering  <meyering@ascend.com>
77887         * m4/jm-macros.m4: Check for clock_gettime (moved from
77888         fileutils/configure.in)
77889         Check for gettimeofday.
77891 1999-12-20  Jim Meyering  <meyering@ascend.com>
77893         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
77894         autoconf-2.14a-1999-12-20.
77896 1999-12-19  Jim Meyering  <meyering@ascend.com>
77898         * m4/lstat-slash.m4: New file.
77899         * m4/jm-macros.m4: Use the new macro:
77900         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
77902 1999-12-07  Jim Meyering  <meyering@ascend.com>
77904         * m4/perl.m4: Require that File::Compare be available, too.
77905         Too many systems seem to lack it.
77907         * m4/strftime.m4: Add checks for most of the cpp macros tested in
77908         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
77910 1999-11-18  Paul Eggert  <eggert@twinsun.com>
77912         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
77913         problem with the QNX 4.25 shell, which doesn't propagate exit
77914         status of failed commands inside shell assignments.
77916 1999-11-17  Jim Meyering  <meyering@ascend.com>
77918         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
77920 1999-11-07  Jim Meyering  <meyering@ascend.com>
77922         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
77924 1999-11-06  Jim Meyering  <meyering@ascend.com>
77926         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
77927         * m4/jm-macros.m4 (jm_MACROS): Use it here.
77929 1999-11-05  Jim Meyering  <meyering@ascend.com>
77931         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
77932         configure.in of textutils, fileutils, and sh-utils into this one
77933         (shared between those packages) file.
77934         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
77935         AC_STRUCT_ST_BLKSIZE.
77937 1999-11-03  Jim Meyering  <meyering@ascend.com>
77939         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
77940         of AC_CHECK_TYPE checks includes unistd.h.
77941         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
77942         Suggestion from Akim Demaille.
77944 1999-10-30  Jim Meyering  <meyering@ascend.com>
77946         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
77947         m4-quoted string.
77948         * m4/ls-mntd-fs.m4: Likewise.
77949         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
77950         * m4/jm-winsz1.m4: Likewise.
77952         * m4/const.m4: Remove file, since the fix made it into the experimental
77953         version of autoconf.
77954         * m4/mktime.m4: Likewise.
77956         * m4/check-type.m4: Remove file, now that the latest version of
77957         AC_CHECK_TYPE takes a third arg to specify additional #includes.
77959         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
77960         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
77961         AC_CHECK_TYPE.
77963 1999-10-04  Jim Meyering  <meyering@ascend.com>
77965         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
77967 1999-09-22  Paul Eggert  <eggert@twinsun.com>
77969         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
77970         2.95.1 bug with HP-UX 10.20.
77972 1999-09-17  Jim Meyering  <meyering@ascend.com>
77974         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
77975         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
77976         due to missing strdup (against sh-utils-2.0).
77978 1999-08-29  Jim Meyering  <meyering@ascend.com>
77980         * m4/jm-macros.m4: Require jm_BISON.
77981         * m4/bison.m4: New file.
77983 1999-08-17  Paul Eggert  <eggert@twinsun.com>
77985         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
77986         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
77988 1999-08-05  Jim Meyering  <meyering@ascend.com>
77990         * m4/getline.m4: Rename test file from conftestdata to conftest.data
77991         to avoid conflicts with `conftest' on 8+3 filesystems.
77992         Suggestion from Eli Zaretskii.
77994 1999-08-04  Jim Meyering  <meyering@ascend.com>
77996         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
77997         fileutils and sh-utils (textutils's getline test was inadequate).
77998         (AM_FUNC_GETLINE): Run this test.
77999         (AC_CHECK_FUNCS): Check for getdelim.
78000         Reported by Bob Proulx.
78002 1999-08-02  Jim Meyering  <meyering@ascend.com>
78004         * m4/jm-macros.m4: Add a comment.
78006 1999-08-01  Paul Eggert  <eggert@twinsun.com>
78008         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
78009         <inttypes.h> defines strtoumax as a macro (and not as a
78010         function).
78012 1999-08-01  Paul Eggert  <eggert@twinsun.com>
78014         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
78015         that we can shift, multiply and divide unsigned long long
78016         values; Ultrix cc can't do it.
78018 1999-08-01  Paul Eggert  <eggert@twinsun.com>
78020         * m4/mktime.m4: New file, which is a preview of what should appear
78021         in the next public autoconf release.
78023 1999-08-01  Paul Eggert  <eggert@twinsun.com>
78025         * m4/lfs.m4: Remove this file.
78026         * m4/largefile.m4: New file.  It contains the old contents of
78027         lfs.m4, except that all names with prefix AC_LFS have been
78028         changed to use the prefix AC_SYS_LARGEFILE instead, to be
78029         compatible with future autoconf versions.  Also, some minor m4
78030         quoting problems have been fixed.
78032 1999-08-01  Paul Eggert  <eggert@twinsun.com>
78034         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
78035         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
78036         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
78037         and simplify the shell code.
78039 1999-08-01  Jim Meyering  <meyering@ascend.com>
78041         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
78042         m4.
78044 1999-07-20  Jim Meyering  <meyering@ascend.com>
78046         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
78048 1999-07-15  Jim Meyering  <meyering@ascend.com>
78050         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
78052 1999-05-22  Jim Meyering  <meyering@ascend.com>
78054         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
78056 1999-05-20  Jim Meyering  <meyering@ascend.com>
78058         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
78059         Add a colon after each `then' in case $4 is empty.
78061 1999-05-16  Jim Meyering  <meyering@ascend.com>
78063         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
78065 1999-05-10  Jim Meyering  <meyering@ascend.com>
78067         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
78069         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
78070         AC_FUNC_MKTIME.
78072 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
78074         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
78076 1999-05-04  Paul Eggert  <eggert@twinsun.com>
78078         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
78079         not CPPFLAGS, so that linking works correctly in IRIX.
78081 1999-04-30  Paul Eggert  <eggert@twinsun.com>
78083         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
78085 1999-04-20  Paul Eggert  <eggert@twinsun.com>
78087         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
78088         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
78089         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
78090         jm_AC_TYPE_UNSIGNED_LONG_LONG.
78091         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
78093         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
78095 1999-04-20  Jim Meyering  <meyering@ascend.com>
78097         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
78098         AC_REPLACE xstroull if necessary.  From Paul Eggert.
78099         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
78101 1999-04-18  Jim Meyering  <meyering@ascend.com>
78103         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
78104         * m4/jm-macros.m4: Use it.
78106 1999-04-06  Jim Meyering  <meyering@ascend.com>
78108         * m4/strftime.m4: Remove test for %f.
78110 1999-03-29  Jim Meyering  <meyering@ascend.com>
78112         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
78113         superset of the AC_TYPE_* checks in the textutils, fileutils,
78114         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
78115         AC_TYPE_PID_T.
78117 1999-03-28  Jim Meyering  <meyering@ascend.com>
78119         * m4/jm-macros.m4: Define GNU_PACKAGE here.
78120         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
78121         replaced e.g., in the *.sh files of the sh-utils.
78123 1999-03-20  Jim Meyering  <meyering@ascend.com>
78125         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
78126         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
78127         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
78129 1999-03-19  Jim Meyering  <meyering@ascend.com>
78131         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
78133 1999-03-12  Jim Meyering  <meyering@ascend.com>
78135         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
78137 1999-03-07  Jim Meyering  <meyering@ascend.com>
78139         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
78140         declared.
78142 1999-02-17  Jim Meyering  <meyering@ascend.com>
78144         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
78145         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
78147 1999-02-07  Jim Meyering  <meyering@ascend.com>
78149         * m4/group-member.m4: New file -- extracted from sh-utils'
78150         configure.in.
78152         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
78153         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
78155 1999-02-06  Jim Meyering  <meyering@ascend.com>
78157         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
78158         * m4/fnmatch.m4: Likewise.
78159         * m4/getgroups.m4: Likewise.
78160         * m4/lstat.m4: Likewise.
78161         * m4/malloc.m4: Likewise.
78162         * m4/putenv.m4: Likewise.
78163         * m4/realloc.m4: Likewise.
78164         * m4/regex.m4: Likewise.
78165         * m4/stat.m4: Likewise.
78166         * m4/strftime.m4: Likewise.
78167         Suggestion from Alain Magloire.
78169         * m4/chown.m4: Use `.$ac_objext', not `.o'.
78170         * m4/fnmatch.m4: Likewise.
78171         * m4/getgroups.m4: Likewise.
78172         * m4/getline.m4: Likewise.
78173         * m4/lstat.m4: Likewise.
78174         * m4/malloc.m4: Likewise.
78175         * m4/memcmp.m4: Likewise.
78176         * m4/putenv.m4: Likewise.
78177         * m4/realloc.m4: Likewise.
78178         * m4/regex.m4: Likewise.
78179         * m4/stat.m4: Likewise.
78180         * m4/strftime.m4: Likewise.
78181         Suggestion from Alain Magloire.
78183         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
78184         an argument.
78186         * m4/regex.m4: Add a run-time Test for proper operation of
78187         re_compile_pattern.
78189 1999-01-31  Jim Meyering  <meyering@ascend.com>
78191         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
78193 1999-01-30  Jim Meyering  <meyering@ascend.com>
78195         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
78197         * m4/jm-mktime.m4: Make this a wrapper around the official
78198         AM_FUNC_MKTIME rather than my private copy, now that the official one
78199         is up to date.
78200         * m4/mktime.m4: Remove file.
78202         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
78203         * m4/uptime.m4: Likewise.
78204         * m4/uintmax_t.m4: Likewise.
78206 1999-01-28  Jim Meyering  <meyering@ascend.com>
78208         * m4/jm-macros.m4: Use jm_AFS.
78209         * m4/afs.m4: New file (from fileutils' configure.in).
78211         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
78212         * m4/chown.m4: Likewise.
78213         * m4/d-ino.m4: Likewise.
78214         * m4/d-type.m4: Likewise.
78215         * m4/fnmatch.m4: Likewise.
78216         * m4/getgroups.m4: Likewise.
78217         * m4/gettext.m4: Likewise.
78218         * m4/jm-mktime.m4: Likewise.
78219         * m4/jm-winsz2.m4: Likewise.
78220         * m4/lcmessage.m4: Likewise.
78221         * m4/ls-mntd-fs.m4: Likewise.
78222         * m4/malloc.m4: Likewise.
78223         * m4/memcmp.m4: Likewise.
78224         * m4/putenv.m4: Likewise.
78225         * m4/realloc.m4: Likewise.
78226         * m4/st_mtim.m4: Likewise.
78227         * m4/strftime.m4: Likewise.
78229 1999-01-16  Jim Meyering  <meyering@ascend.com>
78231         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
78232         (ARGMATCH_DIE_DECL): Define.
78234 1999-01-12  Jim Meyering  <meyering@ascend.com>
78236         * m4/Makefile.am.in: Rewrite to avoid using fmt.
78237         Reported by Lars Hecking.
78239 1999-01-10  Jim Meyering  <meyering@ascend.com>
78241         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
78242         gross kludge.
78243         * m4/inttypes_h.m4: Likewise.
78244         * m4/lstat.m4: Likewise.
78245         * m4/malloc.m4: Likewise.
78246         * m4/readdir.m4: Likewise.
78247         * m4/realloc.m4: Likewise.
78248         * m4/st_dm_mode.m4: Likewise.
78249         * m4/stat.m4: Likewise.
78250         * m4/utimbuf.m4: Likewise.
78251         * m4/utimes.m4: Likewise.
78253         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
78254         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
78255         comments in config.h.in are meaningful.
78257         * m4/jm-macros.m4: Require autoconf-2.13 here.
78259         * m4/regex.m4: By default, don't use the included regex.c on systems
78260         with glibc 2.  Suggestion from Uli Drepper.
78262 1999-01-02  Jim Meyering  <meyering@ascend.com>
78264         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
78266 1998-12-18  Jim Meyering  <meyering@ascend.com>
78268         * m4/Makefile.am.in (Makefile.am): Simplify rule.
78269         Based on a suggestion from Lars Hecking.
78271 1998-11-16  Paul Eggert  <eggert@twinsun.com>
78273         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
78275 1998-11-16  Jim Meyering  <meyering@ascend.com>
78277         * m4/lfs.m4: Double-quote the `uname...` expression.
78279 1998-11-14  Jim Meyering  <meyering@ascend.com>
78281         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
78282         * m4/stat.m4: Likewise.
78284 1998-11-03  Jim Meyering  <meyering@ascend.com>
78286         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
78287         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
78289 1998-10-18  Jim Meyering  <meyering@ascend.com>
78291         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
78293 1998-10-17  Jim Meyering  <meyering@ascend.com>
78295         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
78296         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
78297         calls for those previously hard-coded headers.  Instead, take a new
78298         parameter.
78299         (jm_CHECK_DECLARATIONS): Reflect interface change.
78300         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
78301         (jm_CHECK_DECL_LOCALTIME_R): New macro.
78303         * m4/mktime.m4: Test for spring-forward gap before long-running test.
78305 1998-10-14  Jim Meyering  <meyering@ascend.com>
78307         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
78308         instead of "TZ=America/Vancouver".  From Paul Eggert.
78310 1998-10-11  Jim Meyering  <meyering@ascend.com>
78312         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
78313         This adds a test for a recently added compatibility fix for mktime.c.
78314         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
78316 1998-09-27  Jim Meyering  <meyering@ascend.com>
78318         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
78320         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
78321         ../configure.in, including a change from Gordon Matzigkeit to allow
78322         cross-compiling for the Hurd.
78324         * m4/glibc.m4: New file/macro to test for the GNU C Library
78325         versions 1 and 2.  From Gordon Matzigkeit.
78326         Indent.
78328 1998-09-21  Jim Meyering  <meyering@ascend.com>
78330         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
78332 1998-08-18  Paul Eggert  <eggert@twinsun.com>
78334         Port nanosecond-resolution times to UnixWare 2.1.2 and
78335         pedantic Solaris 2.6.
78337         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
78338         AC_STRUCT_ST_MTIM.
78339         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
78340         Generate name of ns member, instead of just 1 or undef.
78341         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
78343 1998-08-15  Jim Meyering  <meyering@ascend.com>
78345         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
78346         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
78347         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
78348         instead of jm_TYPE_SSIZE_T.
78350 1998-08-12  Jim Meyering  <meyering@ascend.com>
78352         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
78354 1998-08-02  Jim Meyering  <meyering@ascend.com>
78356         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
78357         in acconfig.h manually.
78359 1998-07-31  Paul Eggert  <eggert@twinsun.com>
78361         * m4/st_mtim.m4: New file.
78363 1998-07-28  Jim Meyering  <meyering@ascend.com>
78365         * m4/utimes.m4: Undef stat.
78367 1998-07-25  Jim Meyering  <meyering@ascend.com>
78369         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
78370         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
78372 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
78374         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
78375         uid and gid actually remain unchanged.
78377 1998-07-07  Jim Meyering  <meyering@ascend.com>
78379         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
78381 1998-07-04  Jim Meyering  <meyering@ascend.com>
78383         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
78384         to prove that this macro can be used in packages without regex.c.
78386 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
78388         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
78389         is to be used.
78391 1998-07-03  Jim Meyering  <meyering@ascend.com>
78393         * m4/gettext.m4: Add -lintl if it's found to be necessary.
78395         * m4/gettext.m4: New file -- from gettext-0.10.35.
78396         * m4/lcmessage.m4: Likewise.
78397         * m4/progtest.m4: Likewise.
78399         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
78400         * m4/jm-macros.m4: Require the new macro.
78402 1998-06-29  Jim Meyering  <meyering@ascend.com>
78404         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
78405         for the definition of NGROUPS (used in a system header included
78406         by sys/mount.h).
78408 1998-06-28  Jim Meyering  <meyering@ascend.com>
78410         * m4/ls-mntd-fs.m4: New file.
78411         * m4/fstypename.m4: New file.
78413         * m4/jm-macros.m4: Require the new macro.
78414         * m4/jm-glibc-io.m4: New file.
78416 1998-05-19  Jim Meyering  <meyering@ascend.com>
78418         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
78419         * m4/lchown.m4: New file.
78421         * m4/Makefile.am.in: New file.
78422         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
78424 1998-05-14  Jim Meyering  <meyering@ascend.com>
78426         * m4/Makefile.am (EXTRA_DIST): Add them.
78427         * m4/jm-macros.m4: New file.
78428         * m4/utimbuf.m4: New file.
78430 1998-05-12  Jim Meyering  <meyering@ascend.com>
78432         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
78434 1998-05-11  Jim Meyering  <meyering@ascend.com>
78436         * m4/isc-posix.m4: New file.
78438 1998-05-10  Jim Meyering  <meyering@ascend.com>
78440         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
78442 1998-05-09  Jim Meyering  <meyering@ascend.com>
78444         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
78445         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
78446         with automake.
78448         * m4/ssize_t.m4: New file.
78449         * m4/mktime.m4: Remove file -- the new automake has this now.
78451 1998-04-26  Jim Meyering  <meyering@ascend.com>
78453         * m4/assert.m4: New file.
78454         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
78456 1998-04-05  Jim Meyering  <meyering@ascend.com>
78458         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
78459         (jm_PREREQ): Use it here.
78461 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
78463         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
78464         in acconfig.h.
78466 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
78468         * m4/prereq.m4: New file.
78469         * m4/error.m4: New file.
78470         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
78472 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
78474         * m4/getline.m4: Don't set am_cv_func_working_getline before the
78475         cache-check for the same variable -- that defeated the purpose of
78476         the test; the test program was never run.  This was a problem only
78477         on systems with losing getline functions -- HP-UX 10.20 is one.
78478         Reported by Bjorn Helgaas.
78480 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
78482         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
78484 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
78486         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
78488         * m4/const.m4: New file.  Use an initializer in this declaration
78489         typedef int charset[2]; const charset x;
78490         Reported by Bob Glickstein.
78492 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
78494         * m4/chown.m4: Fix reversed types on -1 args to chown.
78495         From Kaveh Ghazi.
78497 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
78499         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
78500         Add lseek and memchr.
78502         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
78503         T.E.Dickey <dickey@clark.net> said that some older preprocessors
78504         have a 20-character limit on names.
78506 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
78508         * m4/inttypes_h.m4: New file.
78509         * m4/uintmax_t.m4: New file.
78510         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
78513         -----
78515         Local Variables:
78516         coding: utf-8
78517         End:
78519         Copyright (C) 1997-2011 Free Software Foundation, Inc.
78521         Copying and distribution of this file, with or without
78522         modification, are permitted provided the copyright notice
78523         and this notice are preserved.